Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
98
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
2.12
Block descriptions
2.12.1
FB 1: RUN_UP Basic program, startup section
Description of functions
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 startup of the control, it is vital to synchronize the NCK and PLC, as
these systems have their own types of powerup 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 more information about the assignment of MCP and HHU parameters, see
"MCP/HHU configuration".
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...