Fb 157 Stue/Vwg Workpiece Count/Prewarning Limit - Siemens SINUMERIK 840 Planning Manual

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

Advertisement

11.92
5.16
FB 157 STUE/VWG
Workpiece count/prewarning limit
Description
FB 157 is used to determine the tool wear by monitoring the number of workpieces machined.
An empirically determined number of workpieces to be machined (max. 9998) is preset for
every tool. The monitor for the number of pieces is deactivated by entering 9999 for this tool
(available soon).
When a tool is inserted (BEAR = "1"), the stored value for the number of pieces is decre-
mented by "1" and identification bit 4 "Number of pieces decremented" set in DBZW +2.
Depending on the value of the input parameter, a prewarning limit can additionally be set as a
limit value. As a result, identification bit "0" "Prewarning limit of number of workpieces
reached" is set.
If the number of workpieces reaches the value "0", the tool is either locked out immediately
(SPER = "1") or disabled when the program is terminated (SPER = "0"). Additionally, the
signal "Number of workpieces = "0" is output for the duration of one cycle.
Number of workpieces and prewarning limit are stored in consecutive P memories in the NC.
For the workpiece count the data are read from the P memories and entered again after being
updated.
Sequence: P(n): Number of pieces; P(n+1): Prewarning limit.
For addressing the tool offset memory in the NC, the block accesses the D number stored in
the status word DB and the TO area. If an error occurs during machining, the error number is
entered in DR 0 of DB 134 and processing of the block is terminated by setting error bit = "1"
(one cycle). The error number is to be evaluated immediately after the block call depending on
the error bit set since further block calls might follow.
Block data
Lib. No.
FBs to be loaded
DBs to be loaded
Type of FB call
DBs to be input
Error messages
_______
1)
Range applies to SINUMERIK 840/840C 1...4
© Siemens AG 1991 All Rights Reserved
SINUMERIK 840/880 (PJ)
: E88530-B-5557-A
: FB 157
: None
: Unconditional
: None
: 01: Invalid job number; range: 1...4
02: Invalid spindle or locator number
03: Invalid magazine number; range: 1...16
04: Invalid memory number; range: 10...14
06: Allocation of spindle No. to channel is missing
07: FBs 61, 62: Invalid number format
08: FBs 61, 62: Error, values 1...3
09: Invalid channel number; range: 1...16
10: MD for TO area not read
11: Invalid TO area
12: Magazine is fictitious magazine
6FC5 197-0AA40-1BP1
5.16 FB 157 Workpiece count/prewarning limit
1)
1)
5 Configuring
5–71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840cSinumerik 880Sinumerik 880 ga2

Table of Contents