EasyManua.ls Logo

Siemens SINUMERIK 840DE SL - Page 1292

Siemens SINUMERIK 840DE SL
2050 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-98 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
State := MW104,
RD1 := P#DB99.DBX0.0 BYTE 1,
RD2 := P#DB99.DBX1.0 BYTE 1,
RD3 := P#M110.0 INT 1);
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
C1_RP_rpa0_0:
STRUCT
SYNTAX_ID : BYTE := B#16#82;
area_and_unit : byte := B#16#41;
column : word := W#16#1;
line : word := W#16#0;
block type : byte := B#16#15;
NO. OF LINES : BYTE := B#16#1;
type : byte := B#16#F;
length : byte := B#16#8;
END_STRUCT;
END_STRUCT;
BEGIN
END_DATA_BLOCK
CALL FB 2, DB 110 (
Req := M 0.0,
NumVar := 2,
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);

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals