Siemens SINUMERIK 840D sl Function Manual page 1099

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

Advertisement

Parameterization of FB 2 with instance DB 110:
DATA_BLOCK DB 110
FB 2
BEGIN
END_DATA_BLOCK
Function FC "VariablenCall": VOID
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
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
U
I 7.7;
S
M 100.0;
U
M 100.1;
R
M 100.0;
U
I 7.6;
U
M 102.0;
R
M 100.0;
CALL FB 2, DB 110 (
Req :=
NumVar :=
Addr1 :=
Addr2 :=
Addr3 :=
Error :=
NDR :=
State :=
RD1 :=
RD2 :=
RD3 :=
C1_RP_rpa0_0:
STRUCT
SYNTAX_ID :
area_and_unit :
column :
line :
block type :
NO. OF LINES :
type :
length :
//Unassigned user DB, as instance for FB 2
//Unassigned machine control panel key
//Activate req.
//NDR completed message
//Terminate job
//Manual error acknowledgment
//Error pending
//Terminate job
M 100.0,
3,
NCVAR.C1AxConfMachAxUsed1,
NCVAR.C1AxConfMachAxUsed2,
NCVAR.C1SpindDefMasterSpind,
M102.0,
M100.1,
MW104,
P#DB99.DBX0.0 BYTE 1,
P#DB99.DBX1.0 BYTE 1,
P#M110.0 INT 1);
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;
Detailed description
2.12 Block descriptions
//Read 3 variables
115

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