Siemens SINUMERIK 840D sl Function Manual page 1387

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Example: Variable addressing
Reading of two R parameters of channel 1, whose address specifications are stored in DB
120 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
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
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);
Detailed description
2.12 Block descriptions
113

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents