Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-98 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Signal I/O Type Value range Remarks
MsgUser I Int 0...25 Number of user areas for messages
(DB 2)
UserIR I Bool Local data expansion OB40
required for processing of signals
from user
IRAuxfuT I Bool Default, false Evaluate T function in OB40
IRAuxfuH I Bool Default, false Evaluate H function in OB40
IRAuxfuE I Bool Default, false Evaluate DL function in OB40
UserVersion I Pointer Pointer to string variable.
The associated string variable is
indicated in the version display
(max. 41 characters).
MaxBAG Q INT 1..10 Number of mode groups
MaxChan Q INT 1..10 Number of channels
MaxAxis Q INT 1..31 Number of axes
ActivChan Q ARRAY[1..
10] OF
BOOL
Bit string for active channels
ActivAxis Q ARRAY[1..
31] OF
BOOL
Bit string for active axes
UDInt Q Int Quantity of integer machine data
in DB 20
UDHex Q Int Quantity of hexadecimal machine
data in DB20
UDReal Q Int Quantity of real machine data
in DB 20
Declaration 810D
Code Comment
FUNCTION_BLOCK FB 1
VAR_INPUT
MCPNum: INT:= 1; //0: No MCP
//1: 1 MCP (default)
//2: 2 MCPs
MCP1In: POINTER;
MCP1Out: POINTER;
MCP1StatRec: POINTER;
MCP1Timeout: S5TIME:= S5T#700MS;
MCP2In: POINTER;
MCP2Out: POINTER;
MCP2StatRec: POINTER;
MCP2Timeout: S5TIME:= S5T#700MS;
HHU: INT:= 0; //Handheld unit interface
//0 - no HHU