Siemens SINUMERIK 840Di Function Manual page 1084

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Detailed description
2.12 Block descriptions
Tool change
With the tool-management option, the tool-change command for revolver and the tool
change in the spindle is supported by an interrupt. The local data bit "GP_TM" in OB 40 is
set for this purpose. The PLC user program can thus check the tool management DB (DB 72
or DB 73) for the tool change function and initiate the tool change operation.
Position reached
In the bit structure, "GP_InPosition" of the local data of OB 40 is specific to the machine axis
(each bit corresponds to an axis/spindle, e.g., GP_InPosition[5] corresponds to axis 5).
If a function has been activated via FC 15 (positioning axis), FC 16 (indexing axis) or FC 18
(spindle control) for an axis or spindle, the associated "GP_InPosition" bit makes it possible
to implement instantaneous evaluation of the "InPos" signal of the FCs listed above. This
capability can be used, for example, to obtain immediate activation of clamps for an indexing
axis.
Declaration
FUNCTION FC 3: VOID
//No parameters
Call example
As far as the time is concerned, the basic program must be executed before other interrupt-
driven user programs. It is therefore called first in OB 40.
The following example contains the standard declarations for OB 40 and the call for the
basic program.
ORGANIZATION_BLOCK OB 40
VAR_TEMP
//Assigned to basic program
GP_IRFromNCK : BOOL ;
GP_TM : BOOL ;
GP_InPosition : ARRAY [1..3] OF BOOL;
2-172
OB40_EV_CLASS :
OB40_STRT_INF :
OB40_PRIORITY :
OB40_OB_NUMBR :
OB40_RESERVED_1 :
OB40_MDL_ID :
OB40_MDL_ADDR :
OB40_POINT_ADDR :
OB40_DATE_TIME :
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
BYTE ;
INT ;
DWORD;
DATE_AND_TIME;
//Interrupt by NCK for user
//Tool management
//Axis-oriented for positioning and
//indexing axes, spindles
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents