P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1046
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Explanation of formal parameters
The table below shows all formal parameters of the "Transfer" function.
Function 1, 2: Signals synchronized actions to / from Channel
Synchronized actions can be disabled or enabled by the PLC.
The data area is stored on the user interface in DB21, ... .DBB300 ...307 (to channel) and DB21, ... .DBB308
...315 (from channel). The parameter "S7Var" is not evaluated for this function, but must be assigned an actual
parameter (see call example). The data are transferred to/from the NC as soon as FC 21 is processed.
The following signals are relevant:
Signal
Typ
e
Type
Value range
Comment
Enable
I
BOOL
1 = FC 21 active
Funct
I
BYTE
1 ... 7
1:
Synchronized actions at
channel
2:
Synchronized actions from
channel
3:
Read data
4:
Write data
5:
Control signals to channel
6, 7: Control signals to axis
S7Var
I
ANY
S7 data storage area
Depends on "Funct"
IVAR1
I
INT
0 ...
Depends on "Funct"
IVAR2
I
INT
1 ...
Depends on "Funct"
Error
O
BOOL
ErrCode
O
INT
Depends on "Funct"
Signal
Typ
e
Type
Value range
Comment
Enable
I
BOOL
1 = FC 21 active
Funct
I
BYTE
1, 2
1: Synchronized actions at
channel
2: Synchronized actions from
channel
S7Var
I
ANY
S7 data storage area
Not used
IVAR1
I
INT
1..MaxChannel
Channel number
Error
O
BOOL
ErrCode
O
INT
1:
"Funct" invalid
10: Channel no. invalid