Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-226 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Functions
1: Signals for synchronized actions to channel:
2: Signals for synchronized actions from channel:
Synchronized actions can be disabled or enabled by the PLC.
The data area is stored on the user interface in DB21 to DB30.DBB 300..307 (to channel)
and DBB 308..315 (from channel). 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 I/O Type Value range Remarks
Enable I Bool 1 = FC 21 active
Funct I Byte 1, 2 1: Synchronized actions to channel
2: Synchronized actions from
channel
S7Var I Any S7 data storage area Not used
IVAR1 I Int 1..MaxChannel Channel number
Error Q Bool
ErrCode Q Int 1: "Funct" invalid
10: Channel no. invalid
Call example
FUNCTION FC 100: VOID
VAR_TEMP
myAny: ANY ;
END_VAR
BEGIN
NETWORK
...
// Deactivate synchronized actions with ID3, ID10 and ID31 in NC channel 1 :
SYAK: OPEN DB 21
SET;
S DBX300.2; //ID3
S DBX301.1; //ID10
S DBX303.6; //ID31
L B#16#1;
T MB11;
SPA TRAN;
// Synchronized actions from NCK channel:
SYVK: L B#16#2;
T MB11;
TRAN: CALL FC 21 (
Enable M 10.0, // if True, FC 21 is active