P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
939
Data types
The data types of the NCK are listed in the NCVAR selector with the variables. The tables below give the
assignments to the S7 data types.
In order to read a double variable from the NCK without adapting the format, an ANY pointer of the REAL 2 type
must be specified in the target area for read data (e.g. P#M100.0 REAL 2). If the basic program recognizes REAL
2 as the target type when reading a double variable, the data is applied to the PLC data area as a 64-bit floating
point number.
Addr1 :=
"NCVAR".C1_RP_rpa0_0,
Line1 :=
W#16#1,
Addr2 :=
"NCVAR".C1_RP_rpa0_0,
Line2 :=
W#16#2,
Error :=
M 1.0,
NDR :=
M 1.1,
State :=
MW 2,
RD1 :=
P#M 4.0 REAL 1,
RD2 :=
P#M 24.0 REAL 1);
Classification of data types
NCK data type
S7 data type
double
REAL
double
REAL2
float
REAL
long
DINT
integer
DINT
uint_32
DWORD
int_16
INT
uint_16
WORD
unsigned
WORD
char
CHAR or BYTE
string
STRING
bool
BOOL
datetime
DATE_AND_TIME
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...