EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 972

Siemens SINUMERIK 840DE SL
2050 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Detailed description
2.7 Structure and functions of the basic program
Power Line Basic PLC Program (P3)
2-60 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
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] 123
MD14510 USER_DATA_INT[1] 456
MD14510 USER_DATA_INT[2] 789
MD14510 USER_DATA_INT[3] 1011
...
MD14512 USER_DATA_HEX[0] 12
MD14512 USER_DATA_HEX[1] AC
...
MD14514 USER_DATA_FLOAT[0] 123.456
BP parameters (OB 100):
Call fb 1, db 7(
MCPNum := 1,
MCP1In := P#E0.0,
MCP1Out := P#A0.0,
MCP1StatSend := P#A8.0,
MCP1StatRec := P#A12.0,
MCP1BusAdr := 6,
MCP1Timeout := S5T#700MS,
MCP1Cycl := S5T#200MS,
NCCyclTimeout := S5T#200MS,
NCRunupTimeout := S5T#50S;
BP parameters (to scan runtime):
l gp_par.UDInt; //=4,
l gp_par.UDHex; //=2,
l gp_par.UDReal; //=1 )
During PLC run-up, DB20 was generated with a length of 28 bytes:
DB 20
DB 20
Address Data
0.0 123
2.0 456
4.0 789
6.0 1011
8.0 b#16#12
9.0 b#16#AC
10.0 e+02

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals