Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
153
BEGIN
END_DATA_BLOCK
DATE_BLOCK 112
//Unassigned user DB, as instance for FB 3
FB 3
BEGIN
END_DATA_BLOCK
//A user-defined channel variable from channel 1 must be read
//with conversion into a variable pointer to allow subsequent
//writing of a variable.
Function FC "VariablenCall" : VOID
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 5, DB 111 (
Req :=
M 100.0,
//Starting edge for reading
Addr :=
GUDVAR.GUDVar1,
Area :=
B#16#2,
//Channel variable
Unit :=
B#16#1,
//Channel 1
Index1 :=
0,
//No field index
Index2 :=
0,
//No field index
CnvtToken :=
TRUE,
//Conversion into 10-byte token
VarToken :=
GUDVAR.GUDVar1T,
Error :=
M102.0,
Done :=
M100.1,
State :=
MW104,
RD :=
P#DB99.DBX0.0 DINT 1);
Following a successful FB5 call, FB3 can be used to write the returned address in the
"VarToken" parameter.
CALL FB 3, DB 112 (
Req :=
M 200.0,
//Starting edge for writing
NumVar :=
1,
//Write 1 GUD variable
Addr1 :=
GUDVAR.GUDVar1T,
Error :=
M102.0,
Done :=
M100.1,
State :=
MW104,
SD1 :=
P#DB99.DBX0.0 DINT 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 ...