Example
The project in the example requires 4 integer values, 2 hexadecimal fields with bit
information and 1 real value.
Machine data:
MD14510 USER_DATA_INT[0]
MD14510 USER_DATA_INT[1]
MD14510 USER_DATA_INT[2]
MD14510 USER_DATA_INT[3]
...
MD14512 USER_DATA_HEX[0]
MD14512 USER_DATA_HEX[1]
...
MD14514 USER_DATA_FLOAT[0]
GP Parameter (OB 100):
CALL FB 1, DB 7 (
BP parameters (to scan runtime):
During PLC power-up, DB20 was generated with a length of 28 bytes:
DB 20
address
0.0
2.0
4.0
6.0
8.0
9.0
10.0
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
MCPNum :=
MCP1In :=
MCP1Out :=
MCP1StatSend :=
MCP1StatRec :=
MCP1BusAdr :=
MCP1Timeout :=
MCP1Cycl :=
NCCyclTimeout := S5T#200MS,
NCRunupTimeout
:=
l gp_par.UDInt;
l gp_par.UDHex;
l gp_par.UDReal;
data
123
456
789
1011
b#16#12
b#16#AC
1.234560e+02
2.7 Structure and functions of the basic program
123
456
789
1011
12
AC
123.456
1,
P#E0.0,
P#A0.0,
P#A8.0,
P#A12.0,
6,
S5T#700MS,
S5T#200MS,
S5T#50S;
//=4,
//=2,
//=1 )
Detailed description
65