P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
945
Example Variable addressing
Writing 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.
R
M 100.0;
//Terminate job
CALL FB 3, DB 111 (
Req :=
M 100.0,
NumVar :=
3,
//Write 3 variables
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);
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 3, DB 122 (
Req :=
M 10.0,
NumVar :=
2,
Addr1 :=
"NCVAR".C1_RP_rpa0_0,
Line1 :=
W#16#1,
Addr2 :=
"NCVAR".C1_RP_rpa0_0,
Line3 :=
W#16#2
Error :=
M 11.0,
Done :=
M 11.1,
Содержание SINUMERIK 828D Turning
Страница 34: ...Basic Functions 34 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 146: ...A3 Axis Monitoring Protection Zones 2 6 Data lists Basic Functions 146 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 328: ...F1 Travel to fixed stop 6 5 Data lists Basic Functions 328 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 816: ...K2 Axis Types Coordinate Systems Frames 10 9 Data lists Basic Functions 816 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1198: ...P4 PLC for SINUMERIK 828D 14 6 Function interface Basic Functions 1198 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1752: ...Appendix 20 2 Overview Basic Functions 1752 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...
Страница 1774: ...Glossary Basic Functions 1774 Function Manual 09 2011 6FC5397 0BP40 2BA0 ...