P3: Basic PLC Program for SINUMERIK 840D sl
13.14 Signal/data descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1073
13.14.3
G Functions
The M functions programmed in the part program, ASUB or synchronized actions are channel specifically
transferred from the NC to the PLC:
• G functions from channel 1: DB 21
• G functions from channel 2: DB 22
• etc.
The signal length is one PLC cycle.
POWER ON
After POWER ON, the value zero, i.e. active G groups undefined, is specified in the NC/PLC interface for all G
groups.
Part program end or abort
After part program end or abort, the last state of the G group is retained.
NC START
After NC-START the values of the 8 G-groups specified in the machine data:
MD22510 $NC_ GCODE_GROUPS_TO_PLC
are overwritten according to the default setting set via the machine data as well as the values programmed in the
part program.
Note
The
M02
/
M30
auxiliary function output to the PLC does not state that the part program has
been terminated. To determine definitely the end of a part program in the channel, the
following interface signal must be evaluated:
DB21, ... .DBX33.5 (M02/M30 active)
The channel status must be RESET. The auxiliary function output could arise from an
asynchronous subroutine (ASUB) or a synchronized action and has nothing to do with the
real end of the parts program in this case.
Address in DB 21, ...
Variables
Type
Basic position
Comment
DBB 208
G_FKT_GR_1
BYTE
0
Active G function of group 1
DBB 209
G_FKT_GR_2
BYTE
0
Active G function of group 2
DBB 210
G_FKT_GR_3
BYTE
0
Active G function of group 3
DBB 211
G_FKT_GR_4
BYTE
0
Active G function of group 4
DBB 212
G_FKT_GR_5
BYTE
0
Active G function of group 5
DBB 213
G_FKT_GR_6
BYTE
0
Active G function of group 6
DBB 214
G_FKT_GR_7
BYTE
0
Active G function of group 7
DBB 215
G_FKT_GR_8
BYTE
0
Active G function of group 8
DBB 216
G_FKT_GR_9
BYTE
0
Active G function of group 9
DBB 217
G_FKT_GR_10
BYTE
0
Active G function of group 10
DBB 218
G_FKT_GR_11
BYTE
0
Active G function of group 11
DBB 219
G_FKT_GR_12
BYTE
0
Active G function of group 12