Siemens SINUMERIK 840D sl Function Manual page 936

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
END_DATA_BLOCK
U
S
U
R
U
U
R
CALL FB3, DB111(
Example: Variable addressing
Writing 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 DB120
VERSION : 0.0
STRUCT
C1_RP_rpa0_0:
STRUCT
SYNTAX_ID :
area_and_unit :
column :
line :
block type :
NO. OF LINES :
type :
length :
END_STRUCT;
END_STRUCT;
BEGIN
END_DATA_BLOCK
CALL FB3, DB122(
936
I 7.7;
// Unassigned machine control panel key
M 100.0;
// Activate req.
M 100.1;
// Done completed message
M 100.0;
// Terminate job
I 7.6;
// Manual error acknowledgment
M 102.0;
// Error pending
M 100.0;
// Terminate job
Req :=
M 100.0,
NumVar :=
3,
Addr1 :=
"NCVAR".rpa_5C1RP,
Addr2 :=
"NCVAR".rpa_11C1RP,
Addr3 :=
"NCVAR".rpa_14C1RP,
Error :=
M102.0,
Done :=
M100.1,
State :=
MW104,
SD1 :=
P#DB99.DBX0.0 REAL 1,
SD2 :=
P#DB99.DBX4.0 REAL 1,
SD3 :=
P#M110.0 REAL 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;
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
// Write three variables
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents