Siemens SINUMERIK 840Di Function Manual page 1024

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

Advertisement

Detailed description
2.12 Block descriptions
Example: Variable addressing
Reading of two R parameters from channel 1, whose address specifications are stored in
DB120 as the basic type. The R parameter number is parameterized via parameter LineX.
DATA_BLOCK DB 120
VERSION : 0.0
STRUCT
END_STRUCT;
BEGIN
END_DATA_BLOCK
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
float
long
integer
2-112
C1_RP_rpa0_0:
STRUCT
SYNTAX_ID :
area_and_unit :
column :
line :
block type :
NO. OF LINES :
type :
length :
END_STRUCT;
CALL FB 2, DB 110 (
Req :=
NumVar :=
Addr1 :=
Line1 :=
Addr2 :=
Line2 :=
Error :=
NDR :=
State :=
RD1 :=
RD2 :=
BYTE := B#16#82;
byte := B#16#41;
word := W#16#1;
word := W#16#0;
byte := B#16#15;
BYTE := B#16#1;
byte := B#16#F;
byte := B#16#8;
M 0.0,
2,
"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
REAL
DINT
DINT
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Power Line Basic PLC Program (P3)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents