P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
General conditions
● Every call of FB4 must be assigned a separate instance DB from the user area.
● The start of a PI service (FB4 call with "Req" = 1) is only permitted in the cyclic part of the
PLC basic program (OB1).
If the PI service is not started (FB4 call with "Req" = 0), the parameters can also be written
in the start-up part of the PLC basic program (OB100). The PI service can then be started
using the already written parameters in the cyclic part of the PLC basic program (OB1) by
calling FB4 with "Req" = 1.
● The execution of the PI service generally extends over several PLC cycles.
Declaration of the function
FUNCTION_BLOCK FB4
VAR_INPUT
w
END_VAR
VAR_OUTPUT
END_VAR
938
Req :
PIService :
Unit :
Addr1 :
Addr2 :
Addr3 :
Addr4 :
WVar1 :
WVar2 :
WVar3 :
WVar4 :
WVar5 :
WVar6 :
WVar7 :
WVar8 :
WVar9 :
WVar10 :
Error :
Done :
State :
BOOL;
ANY;
INT;
ANY;
ANY;
ANY;
ANY;
WORD;
WORD;
WORD;
WORD;
WORD;
WORD;
WORD;
WORD;
WORD;
WORD;
BOOL;
BOOL;
WORD;
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions