Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
120
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Call example
Writing of three channelspecific machine data of channel 1:
Select the three data with NC VAR selector and store in the file DB120.VAR:
Area
Block
Name
Type
Byte S7 Name
C[1]
RP
rpa[5]
DOUBLE
4
rpa_5C1RP
C[1]
RP
rpa[11]
DOUBLE
4
rpa_11C1RP
C[1]
RP
rpa[14)
DOUBLE
4
rpa_14C1RP
Entry NCVAR for DB 120 with the S7 SYMBOL Editor:
Symbol
Operand
Data type
NCVAR
DB 120
DB 120
File DB120.AWL must be compiled and transferred to the PLC.
Call and parameterization of FB 3 with instance DB 111:
DATA_BLOCK DB 111
//Unassigned user DB, as instance for FB 3
FB 3
BEGIN
Function FC "VariablenCall": VOID
END_DATA_BLOCK
U
I 7.7;
//Unassigned machine control panel key
S
M 100.0;
//Activate req.
U
M 100.1;
//Done completed message
R
M 100.0;
//Terminate job
U
I 7.6;
//Manual error acknowledgment
U
M 102.0;
//Error pending
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);
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...