Siemens SINUMERIK 828D Function Manual page 892

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

P3: Basic PLC Program for SINUMERIK 840D sl
13.8 Structure and functions of the basic program
MD14514 $MN_USER_DATA_FLOAT[0]
GP Parameter (OB 100):
CALL FB 1, DB 7 (
MCPNum :=
MCP1In :=
MCP1Out :=
MCP1StatSend :=
MCP1StatRec :=
MCP1BusAdr :=
MCP1Timeout :=
MCP1Cycl :=
NCCyclTimeout :=
NCRunupTimeout :=
BP parameters (to scan runtime):
l gp_par.UDInt;
l gp_par.UDHex;
l gp_par.UDReal;
During PLC power-up, DB20 was generated with a length of 28 bytes:
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
1.234560e+02
The structure of the machine data used is specified in a UDT:
TYPE UDT 20
STRUCT
UDInt :
ARRAY [0 .. 3 ] OF INT ;
UDHex0 :
ARRAY [0 .. 15 ] OF BOOL ;
UDReal :
ARRAY [0 .. 0 ] OF REAL ;
END_STRUCT;
END_TYPE
892
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 )
//Description as field, for
// later expansions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Basic Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents