Siemens SINUMERIK 840Di Function Manual page 1246

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Detailed Description
2.7 Structure and functions of the basic program
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]
BP parameters (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
DB 20
Address
0.0
2.0
4.0
6.0
8.0
9.0
10.0
2-52
MCPNum :=
MCP1In :=
MCP1Out :=
MCP1StatSend :=
MCP1StatRec :=
MCP1BusAdr :=
MCP1Timeout :=
MCP1Cycl :=
NCCyclTimeout :=
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
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#200MS,
S5T#50S;
//=4,
//=2,
//=1 )
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents