Siemens SINUMERIK 840D sl Function Manual page 1231

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

2.12.25
FC 22: TM_DIR Direction selection for tool management
Description of Functions
The block TM_DIR provides the shortest path for positioning a magazine or a revolver based
on the actual and setpoint position.
As long as a 1 signal is applied to the Start input, all output parameters are updated
cyclically. Changes can be made to input parameters (e.g., position values) in subsequent
PLC cycles.
The output signals are undefined when the start signal is at 0 level.
In the case of direction selection with special positioning input "Offset" > 0, a new setpoint
position is calculated from the setpoint and special positions and the number of magazine
locations according to the following formula:
New setpoint position = (setpoint pos. - (special pos. -1)) neg. modulo # locations
The new setpoint position corresponds to the location number at which the magazine must
be positioned so that the setpoint position requested by the user corresponds to the location
number of the special position. The directional optimization is active both with and without
special positioning.
The block must be called once with the appropriate parameter settings for each magazine.
Warning
The block may be called only in conjunction with tool management or after a DB 74 data
block has been set up as described below in the example. In this example there are two
magazines. The first magazine has 10 locations and the second has 12 locations. When
adapting to the real machine, you only need to change the data AnzMag, MagNo[.].
DATA_BLOCK DB 74
STRUCT
end_struct
BEGIN
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
P: ARRAY [1..9] OF
DINT;
w1:
WORD ;
AnzMag:
BYTE ;
Res.
BYTE ;
MagNo: array [1..16] of struct
AnzPlatz :
INT ;
res1 :
BYTE ;
res2 :
BYTE ;
end_struct;
P[4]:=L#320;
AnzMag:=b#16#2;
MagNo[1].AnzPlatz:=10;
2.12 Block descriptions
//Byte 40
//Absolutely essential
//Total number of magazines = 2
//Number of locations for magazine 1 = 10
Detailed description
247

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents