P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
Block Description
All 4 components have a similar structure and are classified for the individual subtasks:
● Input network
In the Input network, various parameters are copied to local variables. The machine control
signals (user data for input/output area) are also copied over using the various pointers in
DB7 (gp_par). These local variables are handled in the block for reasons of efficiency. Some
values are initialized for the startup.
● Global_IN network
In the Global_IN network, the MKS/WKS switch-over with edge evaluation, axle selection,
direction keys and input overlays are determined for the additional processing in the block.
User-specific changes must take place in this part of the program, which are mainly oriented
at the axis selection.
●
Only the keyswitch information is copied in Network NC.
● Network mode group
The mode group network transfers the modes of the keys as dynamic signals to the NCK.
The INC checkback signals from the NC are stored temporarily for the corresponding LEDs.
If the mode group number is 0, this network is not processed. A number that is too large
generates the message 401901 or 402501 and changes over after stop.
● Channel network
The functions NC Start, Stop, Reset and single block with corresponding feedback
messages are activated in the Channel network. The direction keys of the geometry axes
are supplied if a corresponding preselection is made, otherwise they are cleared. If the
channel number is 0, this network is not processed. A too large number generates the
message 401902 or 402502 and changes over after stop.
● Spindle network
The Spindle network sends the spindle override to the interface parameterized via
"SpindleFNo".
● Axes network
The Axes network sends the feed override to the selected axis interface. The direction keys
are assigned to the selected axis/spindle. If an axis has been selected previously, the
direction information is set to 0.
● Global_OUT network
The output parameters are prepared and the LED signals of the INC machine function are
generated in the Global_OUT network.
● Output network
The Output network transfers the output signals of the machine control panel from the
VAR_TEMP image to the logical address. The data for the next cycle are also saved.
1060
NC network
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions