Fb 168 Q-Spind Acknowledge Loading And Unloading Of Spindle - Siemens SINUMERIK 840 Planning Manual

Function blocks for plc 135 wb
Hide thumbs Also See for SINUMERIK 840:
Table of Contents

Advertisement

01.91
9.2.8
FB 168 Q-SPIND
Acknowledge loading and unloading of spindle
Description
This function block conducts the data transfer accompanying loading and unloading operations
at the spindle. To do this, it evaluates the function flag (loading or unloading from DB
144/DW 6).
If the function flag = "Loading":
A check is first made whether the spindle is empty. If this is the case, the tool entered in the
loading line (DW 2) is transferred to the spindle (DW 4). The tool is marked as a replacement
tool.
Since, during data transfer, the loading line is removed as a source location by FB 128, a new
D number must be requested by the TO memory management and then removed and entered
into the reference list of the loading line. NC and PLC pointers are supplied. If the spindle is
not empty, the relevant error message is displayed. The block is processed only if FB 166
"Load spindle" has been executed without error and the bit D 117.1 "Acknowledge spindle" is
set.
If the function flag = "Unload":
The tool data of the spindle are deleted (including enabling of the D number in the reference
list). The loading line is also deleted. NC and PLC pointers are assigned. The old location of
the spindle in the magazine is activated only if the block is processed without error.
Special features:
Flag bytes FY 201 to FY 205 are used for the internal standard FB parameter assignment.
These flags have to be saved by the user during interrupt processing.
Usercknowledgement:
In the same cycle, the dynamic softkey signal (F 224.5) must be routed by the user
program either to the positive (F 237.5) or negative user acknowledgement (F 236.5). The
user acknowledgement may be present for only one cycle (by logic operation with the
dynamic softkey signal).
DB 146
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
DW 144
X
FY 234
dynamic
softkey signals
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
DW 145
X
FY 236
negative
user acknowledgement
© Siemens AG 1991 All Rights Reserved
SINUMERIK 840/880 (PJ)
9.2.8 FB 168 Acknowledge loading and unloading of spindle
X
FY 235
static
X
FY 237
positive
6FC5 197-0AA40-1BP1
9 Examples
9–69

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840cSinumerik 880Sinumerik 880 ga2

Table of Contents