Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
155
FB 5
BEGIN
END_DATA_BLOCK
//A user-defined channel variable from channel 1 must be read
//with conversion into a variable pointer to allow subsequent
//writing of a variable.
Function FC "VariablenCall" : VOID
U I 7.7;
//Unassigned machine control panel key
S M 100.0;
//Activate req.
U M 100.1;
//Done completed message
R M 100.0;
//Terminate job
U I 7.6;
//Manual error acknowledgment
U M 102.0;
//Error pending
R M 100.0;
//Terminate job
CALL FB 5, DB 111 (
Req := M 100.0,
//Starting edge for reading
Addr := GUDVAR.GUDVar1,
Area := B#16#2,
//Channel variable
Unit := B#16#1,
//Channel 1
Index1 := 0,
//No field index
Index2 := 0,
//No field index
CnvtToken := TRUE,
//Conversion into 10-byte token
FMNCNo := 1
//(in FMNC only)
VarToken := GUDVAR.GUDVar1T,
Error := M102.0,
Done := M100.1,
State := MW104,
RD := P#DB99.DBX0.0 DINT 1);