Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-225
2.12.25 FC 21: transfer PLC NCK data exchange
Description of functions
When the Transfer block is called, data are exchanged between the PLC and NCK according
to the selected function code. Data are transferred as soon as FC 21 is called, not only at the
start of the cycle.
The "Enable" signal activates the block.
FC 21 is processed only when "Enable" = "1".
Declaration of function, STL representation
VAR_INPUT
Enable : BOOL ;
Funct: BYTE ;
S7Var : ANY ;
IVar1 : INT ;
IVar2 : INT ;
END_VAR
VAR_OUTPUT
Error : BOOL ;
ErrCode : INT
END_VAR
Explanation of formal parameters
The table below shows all formal parameters of the "Transfer" function.
Signal I/O Type Value range Remarks
Enable I Bool 1 = FC 21 active
Funct I Byte 1.. 7 1: Synchronized actions to 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 Q Bool
ErrCode Q Int Depends on "Funct"