Addr1 :=
Line1 :=
Addr2 :=
Line2 :=
Error :=
NDR :=
State :=
RD1 :=
RD2 :=
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.
Classification of data types
NCK data type
double
double
float
long
integer
uint_32
int_16
uint_16
unsigned
char
string
bool
datetime
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.
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
"NCVAR".C1_RP_rpa0_0,
W#16#1,
"NCVAR".C1_RP_rpa0_0,
W#16#2,
M 1.0,
M 1.1,
MW 2,
P#M 4.0 REAL 1,
P#M 24.0 REAL 1);
S7 data type
REAL
REAL2
REAL
DINT
DINT
DWORD
INT
WORD
WORD
CHAR or BYTE
STRING
BOOL
DATE_AND_TIME
P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
939