Block Descriptions; Fb 1: Run_Up Basic Program, Start­up Section - Siemens SINUMERIK 828D Function Manual

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

13.13

Block descriptions

13.13.1
FB 1: RUN_UP Basic program, start­up section
Function
The synchronization of NCK and PLC is performed during startup. The data blocks for the NC/PLC user interface
are created with reference to the NC configuration defined in the machine data and the most important
parameters verified for plausibility. In the event of an error, FB 1 passes an error identifier to the diagnostics
buffer and switches the PLC to the STOP state.
To enable an orderly start­up of the control, it is vital to synchronize the NCK and PLC, as these systems have
their own types of power­up procedure. During startup routine, therefore, the CPUs perform "subsidiary startup
functions" and exchange ID information to ensure that the procedure is functioning correctly.
Since the startup procedure is asynchronous, it is unavoidable that one CPU may have to "wait" until the other
has "caught up". This is automatically managed by the basic program.
The integrated PLC only supports cold starts. A warm restart is not provided, i.e. following system initialization,
the operating system runs organization block OB 100 and always commences cyclic execution at the start of OB
1.
Users need only supply the FB 1 parameters that are relevant to their applications. The preset values in the
associated instance DB 7 do not need to be assigned. The block can only be called in OB 100.
Output parameters
The output parameters in FB 1 provide the PLC user with information about the control system configuration.
These data can also be accessed in the cyclic program section.
There are two access options:
1. Direct access to the DB 7 data block (instance of the FB 1) in symbolic format (e.g. L gp_par.MaxChan; in this
case, gp_par is the symbolic name of the DB 7)
2. Assignment of a flag; during parameterization of the FB 1, the data element is assigned to the relevant
parameter (e.g. MaxChan:=MW 20) Information about the maximum number of channels can then be polled
in memory word 20 in the rest of the user program.
Note
For the values of the parameters of MCP and HHU see "Configuration machine control
panel, handheld unit, direct keys [Page 894] ".
Declaration SINUMERIK 840D sl
FUNCTION_BLOCK FB 1
VAR_INPUT
MCPNum:
MCP1In:
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
INT:=1;
POINTER;
P3: Basic PLC Program for SINUMERIK 840D sl
//0: No MCP
//1: 1 MCP (default)
//2: 2 MCPs
//Start addr. input signals MCP 1
13.13 Block descriptions
925

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents