Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
176
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
2.12.11
FC 2: GP_HP Basic program, cyclic section
Description of Functions
The complete processing of the NCKPLC interface is carried out in cyclic mode. In order to
minimize the execution time of the basic program, only the control/status signals are
transmitted cyclically; transfer of the auxiliary functions and G functions only takes place
when requested by the NCK.
Declaration
FUNCTION FC 2: VOID
//No parameters
Call example
As far as the time is concerned, the basic program must be executed before the user
program. It is, therefore, called first in OB 1.
The following example contains the standard declarations for OB 1 and the calls for the basic
program (FC2), the transfer of the MCP signals (FC19), and the acquisition of error and
operating messages (FC10).
ORGANIZATION_BLOCK OB 1
VAR_TEMP
OB1_EV_CLASS :
BYTE ;
OB1_SCAN_1 :
BYTE ;
OB1_PRIORITY :
BYTE ;
OB1_OB_NUMBR :
BYTE ;
OB1_RESERVED_1 :
BYTE ;
OB1_RESERVED_2 :
BYTE ;
OB1_PREV_CYCLE :
INT ;
OB1_MIN_CYCLE :
INT ;
OB1_MAX_CYCLE :
INT ;
OB1_DATE_TIME :
DATE_AND_TIME;
END_VAR
BEGIN
CALL FC 2;
//Call basic program as first FC
//INSERT USER PROGRAM HERE
CALL FC 19 (
//MCP signals to interface
BAGNo :=
B#16#1,
//Mode group no. 1
ChanNo :=
B#16#1,
//Channel no. 1
SpindleIFNo :=
B#16#4,
//Spindle interface number = 4
FeedHold :=
m22.0,
//Feed stop signal
//modal
SpindleHold :=
db2.dbx151.0);
//Spindle stop modal
//in message DB
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 ...