SINUMERIK 840C
Software Versions 1, 2, 3, 4, 5 and 6
135 WB2/WD PLC Function Blocks
Package 0: Basic Functions
Planning Guide |
01.99 Edition |
Manufacturer Documentation
SINUMERIK 840C
Software Versions 1, 2, 3, 4, 5 and 6
135 WB2/WD PLC Function Blocks
Package 0: Basic Functions
Planning Guide
Manufacturer Documentation
Applies to: |
|
Control |
Software versions |
SINUMERIK 840C/CE |
|
(Standard/Export Version) |
1, 2, 3, 4, 5 and 6 |
01.99 Edition
SINUMERIK® documentation
Printing history
Brief details of this edition and previous editions are listed below.
The status of each edition is shown by the code in the "Remarks" column.
Status code in ºRemarksº column:
A. . . New documentation
B. . . Unrevised reprint with new Order No.
C. . . Revised edition with new status.
If factual changes have been made on a page since the last edition, this is indicated by a new edition coding in the header on that page.
Edition |
Order No. |
Remarks |
06.93 |
6FC5197-2AA30-0BP0 |
A |
12.93 |
6FC5197-3AA30-0BP0 |
C |
10.94 |
6FC5197-4AA30-0BP0 |
C |
09.95 |
6FC5197-5AA30-0BP0 |
C |
04.96 |
6FC5 197-5AA30-0BP1 |
C |
07.97 |
6FC5 197-6AA30-0BP0 |
C |
01.99 |
6FC5 197-6AA30-0BP1 |
C |
This manual is included in the documentation on CD-ROM (DOCONCD)
Edition |
Order No. |
Remarks |
01.99 |
6FC5198-6CA00-0BG1 |
C |
For more information, refer to the Internet: http://www.a&d.siemens.de/sinumerik
The publication was produced on the Siemens 5800 0ffice System.
The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including created by patent grant or registration of a utility model or design, are reserved,
© Siemens AG 1993, 1994, 1995, 1996, 1997, 1998, 1999 All Rights Reserved
Other functions not described in this documentation might be executable in the control. This does not, however, represent an obligation to supply such functions with a new control or when servicing.
We have checked that the contents of this publication agree with the hardware and software described herein. The information given in this publication is reviewed at regular intervals and any corrections that might be necessary are made in the subsequent printings. Suggestions for improvement are welcome at all times.
Subject to change without prior notice.
Order No. 6FC5197-6AA30-0BP1 |
Siemens-Aktiengesellschaft |
|
|
Printed in the Federal Republic of Germany |
|
Definitions |
1 |
|
|
|
|
Data Sheets for Digital Functions |
2 |
|
|
|
|
Data Sheets |
3 |
|
for Scanning/Displaying Messages |
|
|
|
||
|
|
|
Data Sheets for Sequencer Blocks |
4 |
|
|
|
|
Block Data |
5 |
|
|
|
|
|
|
|
Appendix |
6 |
|
|
|
|
Preliminary Remarks
Notes for the reader
This documentation is intended for manufacturers of machine tools using SINUMERIK 840C.
The publication explains the application of the complete Software Package 0, Basic Functions, which the machine tool manufacturer can incorporate in his PLC program.
The SINUMERIK documentation is organized in 4 levels:
·General documentation
·User documentation
·Manufacturer documentation
·Service documentation
The Manufacturer Documentation for the SINUMERIK 840C control is divided into the following parts:
·Interface Description Part 1: Signals
Part 2: Connection Conditions
·135 WB/WB2/WD PLC Planning Guide
·Function Macros
·Function Blocks
Paket 0: Basic Functions Paket 1/2: Tool Management Paket 4/5: Computer Link Paket 7: Code Carriers
Paket 8: PLC Controlled Data Input/Output
In addition, there are SINUMERIK publications applying to all SINUMERIK controls (e.g. Measuring Cycles, Cycles Language CL 800).
Please contact your Siemens regional office for further details.
Technical Comments
The diskette for package 0 contains package versions 16, 20, 21 and 22. Depending on the SINUMERIK 840C software version being used, one of the following package 0 versions must be used.
SW |
Package 0 version |
File |
|
|
|
1 and 2 |
16 |
P00416ST.S5D |
|
|
|
3 |
20 |
P00420ST.S5D |
|
|
|
4 |
21 |
P00421ST.S5D |
|
|
|
5 |
22 |
P00422ST.S5D |
|
|
|
6 |
|
|
|
|
|
This documentation is valid for software versions 1, 2, 3, 4, 5 and 6.
Contents
|
|
|
|
Page |
1 |
Definitions |
. . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±1 |
1.1 |
Explanations of FB designations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±1 |
||
1.2 |
Overview of PLC interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±2 |
||
1.2.1 |
Inputs . . . |
. . . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±2 |
1.2.2 |
Outputs . . |
. . . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±2 |
1.2.3 |
Flags, data formats . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±3 |
|
1.3 |
Data blocks |
. . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±4 |
1.3.1 Class DB data blocks . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±4 |
||
1.3.2 |
Class DX data blocks . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±6 |
|
1.4 |
Function blocks . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±7 |
|
1.4.1 Class FB function blocks . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±7 |
||
1.4.2 |
Class FX function blocks . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
1±11 |
|
2 |
Data Sheets for Digital Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . |
2±1 |
||
|
FB 30 |
MUL:16 |
Multiplier:16 . . . . . . . . . . . . . . . . . . . . . . . . . . |
2±1 |
|
FB 32 |
DIV:16 |
16-bit binary divider . . . . . . . . . . . . . . . . . . . . . |
2±3 |
|
FB 33 |
DIV:32 |
Divider:32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
2±5 |
|
FB 35 |
DIV/100 |
Divide by 100 . . . . . . . . . . . . . . . . . . . . . . . . . |
2±8 |
|
FB 36 |
ADD:32 |
Adder:32 bits . . . . . . . . . . . . . . . . . . . . . . . . . . |
2±10 |
|
FB 37 |
SUB:32 |
Subtracter: 32 bits . . . . . . . . . . . . . . . . . . . . . . |
2±12 |
|
FB 39 |
DUAL/BCD |
3-decade binary/BCD converter . . . . . . . . . . . . . |
2±14 |
|
FB 40 |
COD:16 |
Binary/BCD converter . . . . . . . . . . . . . . . . . . . . |
2±16 |
|
FB 41 |
COD:32 |
Binary/BCD converter . . . . . . . . . . . . . . . . . . . . |
2±18 |
|
FB 42 |
COD:B4 |
BCD/binary converter . . . . . . . . . . . . . . . . . . . . |
2±20 |
|
FB 43 |
COD:B8 |
BCD/binary converter . . . . . . . . . . . . . . . . . . . . |
2±22 |
|
FB 110 |
SUCH |
Search for word . . . . . . . . . . . . . . . . . . . . . . . . |
2±24 |
|
FX 31 |
GRAYDUAL |
Gray code/binary converter . . . . . . . . . . . . . . . . |
2±28 |
|
FX 32 |
DUALGRAY |
Binary/Gray code converter . . . . . . . . . . . . . . . |
2±30 |
|
FX 35 |
RESREQ |
Triggering link bus reset . . . . . . . . . . . . . . . . . . |
2±31 |
|
FX 38 |
PRO-KO1 |
Program coordination . . . . . . . . . . . . . . . . . . . . |
2±32 |
|
FX 81 |
IKONEN |
Icon display . . . . . . . . . . . . . . . . . . . . . . . . . . . |
2±34 |
|
FX 82 |
STERNDRE Star-delta switchover . . . . . . . . . . . . . . . . . . . . |
2±36 |
|
3 |
Data Sheets for Scanning/Displaying Messages . . . . . . . . . . . . . . . . |
3±1 |
||
3.1 |
Error and operational messages (840C SW 1 and 2) . . . . . . . . . . . . . . . . |
3±1 |
||
3.1.1 |
General . . |
. . . . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±1 |
3.1.2Program overview for error messages, operational messages and
|
message groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±2 |
|
3.1.3 |
Block calls for EMs/OMs/MGs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±6 |
|
|
FB 54, FB 57 |
Scan and display error messages . . . . . . . . . . . . . . . . . . . |
3±7 |
|
FB 55, FB 58 |
Scan and display operational messages . . . . . . . . . . . . . . |
3±8 |
|
FB 56, FB 59 |
Scan and display message groups |
|
|
|
(SW1 and SW2 only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±9 |
3.2 |
Error and operational messages (840C SW 3 and higher) . . . . . . . . . . . . |
3±10 |
3.2.1 |
General |
. . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±10 |
3.2.2 |
Program overview . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±11 |
|
3.2.3 |
Block calls for EMs/OMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±12 |
||
3.2.4 |
Data sheets . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±13 |
|
|
FB 45 |
ANLAUF |
Initial settings for error messages and operational |
|
|
|
|
messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
3±13 |
|
FB 57 |
FM-ABFR |
Scan error messages . . . . . . . . . . . . . . . . . . . . |
3±14 |
|
FB 58 |
BM-ABFR |
Scan operational messages . . . . . . . . . . . . . . . |
3±15 |
4 |
Data Sheets for Sequencer Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±1 |
||
4.1 |
Programming of sequencers (FB 91, FB 92) . . . . . . . . . . . . . . . . . . . . . |
4±1 |
||
4.1.1 |
General notes . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±1 |
|
4.1.1.1 |
Sequencers with OR branches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±6 |
||
4.1.1.2 |
Sequencer with AND branching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±9 |
||
4.1.1.3 |
Sequencer modes . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±11 |
|
4.1.1.4 |
Step display . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±14 |
|
4.1.1.5 |
Status words . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±15 |
|
4.1.1.6 |
Behaviour when execution is aborted . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±16 |
||
4.1.2 |
Data sheets . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±17 |
|
|
FB 91 |
AK 2:V/R |
Sequencer forwards/backwards . . . . . . . . . . . . . |
4±17 |
|
FB 92 |
AK 3:AUT |
Sequencer automatic . . . . . . . . . . . . . . . . . . . . |
4±23 |
4.1.3 |
Programming examples |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±27 |
|
4.1.3.1 |
Programming example for a driver control with FB 92 (AK 3:AUT) . . . . . . |
4±27 |
||
4.1.3.2 |
Programming example for a tool change with FB 91 (AK 2: V/R) . . . . . . . |
4±30 |
||
4.2 |
General notes . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±30 |
|
4.2.1 |
What is GRAPH 5? . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±32 |
|
4.2.2 |
The elements of GRAPH 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±35 |
||
4.2.3 |
Program structure . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±39 |
|
4.3 |
Data sheets . . . . . . . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±41 |
|
|
FB 93 |
ALS:V/R |
GRAPH 5 sequencer forwards/backwards . . . . . . |
4±41 |
|
FB 94 |
ALS:AUT |
GRAPH 5 automatic sequencer . . . . . . . . . . . . . |
4±49 |
4.4 |
Program examples . . . |
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±54 |
4.4.1Program example for a drive control sequencer with
|
GRAPH 5 block FB94 (ALS:AUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
4±54 |
4.4.2 |
Program example of a tool change with GRAPH 5 block FB 93 (ALS: V/R) |
4±57 |
4.5 |
Function block FB 27 (SW 6.1 and higher) . . . . . . . . . . . . . . . . . . . . . . |
4±59 |
5 |
Block Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
5±1 |
6 |
Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
6±1 |
6.1 |
Appendix 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
6±1 |
6.2 |
Appendix 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
6±23 |
06.93 |
1 Definitions |
1 Definitions
1.1Explanations of FB designations
FB call |
|
|
|
|
|
Parameter |
|
|
|
Type of parameter |
Allowed actual operand |
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I |
Input |
|
|
|
IB |
Operand with |
I |
n.m Input |
|||
|
|
|
FB name |
|
|
Q |
Output |
|
|
|
|
bit address |
Q |
n.m Output |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
F |
n.m Flag |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BY |
Operand with |
IB |
n |
Input byte |
I,.. |
|
|
|
|
|
Q,... |
|
|
|
|
|
|
|
|
byte address |
QB |
n |
Output byte |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FB |
n |
Flag byte |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
I,BI |
- Q |
|
Q - |
Q,BI |
|
|
|
|
|
|
|
|
|
DL |
n |
Data byte left |
|||
|
|
|
|
|
|
|
|
|
|
DR |
n |
Data byte right |
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
I,BI |
- I |
|
I - |
Q,BI |
|
|
|
|
|
|
|
|
|
PB |
n |
I/O byte |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
D,.. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
W |
Operand with |
IW |
n |
Input word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
word address |
QW |
n |
Output word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
BO |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FW |
n |
Flag word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DW |
n |
Data word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
T |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PW |
n |
I/O word |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
C |
|
|
|
|
|
|
|
BO |
Block |
|
|
|
Not applicable |
DB |
n |
Data block |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FB |
n |
Function block |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
$F... |
|
|
|
|
|
$F... |
|
|
|
|
|
|
|
|
|
PB |
n |
Program block |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SB |
n |
Sequence block |
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
$DW... |
|
|
|
|
$DW... |
T |
Timer |
|
|
|
Not applicable |
T |
n |
No. of timer |
|||||
|
|
|
|
|
|
|
|||||||||||||
*F... |
|
|
|
|
|
*F... |
|
C |
Counter |
Not applicable |
C |
n |
No. of counter |
||||||
|
|
|
|
|
|
||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
D |
Data |
|
|
|
KM |
Binary pattern, 16 positions |
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KY |
Two absolute values from 0 to 255 |
|||
*DW.. |
|
|
|
*DW... |
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
KH |
Hexadecimal number, max. of 4 positions |
||||||||
. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
- % 1 |
|
|
|
|
|
|
|
|
KS |
Two alphanumeric characters |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KT |
Time (1.0 to 999.3) |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||
|
|
|
|
|
|
- %v1 |
|
|
|
|
|
|
|
KC |
Count (0 to 999) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KF |
Fixed-point number (-32768 to +32767) |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I,BI |
|
|
|
|
|
|
Input signal, statically effective |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
I,BI |
|
|
-Q |
|
|
|
Input signal which is acknowledged by the FB |
||||
|
|
|
|
|
|
|
|
I,BI |
- / |
|
|
|
Input signal whose leading edge is evaluated |
||||||
|
|
|
|
|
|
|
|
I,.. |
|
|
|
|
|
|
No DW allowed as parameter |
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
$... |
|
|
|
|
|
|
Input signal which must be applied before the FB call |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
*... |
|
|
|
|
|
|
Defined input signal which need not be applied, |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
e.g. NC signal |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Q,BI |
Output signal, statically effective |
|
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
Q- |
Q,BI |
Output signal which must be acknowledged by the |
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
user |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
I- |
Q,BI |
Output signal for one cycle (pulse) |
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
$... |
|
Output signal on defined flag or data word which |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
can be evaluated immediately after the FB |
||||
|
|
|
|
|
|
|
|
|
|
|
|
*... |
|
Defined output signal, e.g. NC signal |
|||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|||||||
|
|
|
|
|
|
|
|
|
|
|
|
% 1 |
Error number ACCU2 for system stop (STS); ACCU1 |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FB number |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%v1 |
Additional specification of interface byte number |
||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
in high byte ACCU2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±1 |
SINUMERIK 840C (PJ) |
|
1 Definitions |
06.93 |
1.2 Overview of PLC interface
1.2Overview of PLC interface
1.2.1Inputs
Inputs
Byte |
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit No. |
|
|
|
||
No. |
|
|
|
|
|
|
|
|
|
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
0
Physical interface with process image
(Input modules, DMP submodules, machine control panel)
127
128
Physical interface without process image (Input modules, DMP submodules)
255
1.2.2Outputs
Outputs
Byte |
|
|
|
|
|
|
|
|
|
|
|
|
|
Bit No. |
|
|
|
||
No. |
|
|
|
|
|
|
|
|
|
|
7 |
6 |
5 |
4 |
3 |
2 |
1 |
0 |
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
0
Physical interface with process image
(Output modules, DMP submodules, machine control panel)
127
128
Physical interface without process image (Output modules, DMP submodules)
255
1±2 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
06.93 |
1 Definitions |
1.2.3 Flags, data formats
1.2.3Flags, data formats
FY |
0 |
|
. |
|
24 |
|
25 |
|
. |
|
. |
|
. |
|
. |
|
. |
|
99 |
|
100 |
|
. |
|
. |
|
. |
|
. |
|
. |
|
199 |
|
200 |
|
. |
|
224 |
|
. |
|
. |
|
. |
|
255 |
Basic signals
e.g. auxiliary flags or dynamically assignable by interface signals
e.g. interface Channel 1 Channel 2 etc.
User assignable
Reserved for function blocks (see note)
Area saved on change of level and warm restart
Notes:
1.To simplify programming, the interface signals from data blocks can be copied into flag area FY 25 - 99 using function macros FB 70, FB 71.
Function macros are function blocks programmed in Assembler and integrated in the PLC operating system.
2.Flag area FY 224 - 255 is saved by the basic program integrated in the system software on a level change and on a warm restart. The flag area is reloaded when the relevant program has ended.
This flag area can also be used to store intermediate results.
Flag area FY 200 - 223 is used in part by function blocks (see FB Package Description). If the user does not require these function blocks, these flags can be used in the same manner as those in flag area FY 25 - 199.
Caution:
Flag area FY 200 - 255 is also used in part by SIMATIC FBs. Flag area FY 200 - 255 is saved; this setting is performed via PLC MD.
Data formats:
All word-oriented interface signals are input and output as fixed-point numbers. Exceptions are expressly indicated.
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±3 |
SINUMERIK 840C (PJ)
1 Definitions |
04.96 |
1.3 Data blocks
1.3Data blocks
1.3.1Class DB data blocks
Data blocks DB |
|
1-149 are used or reserved for Siemens applications. |
|
||||
Data blocks DB |
150-255 are available to the user. |
|
|
||||
|
|
|
|
|
|
|
|
DB |
|
DB desig. |
|
DB name |
|
Pack. |
|
No. |
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
DIAG-DB |
|
Diagnostic DB |
|
OS |
|
2 |
|
STATUS-DB |
|
PLC status channel (up to SW2, not used in SW3), from |
OS |
||
3 |
|
DATKAN-DB |
|
SW4 used for ºRapid data channelº function |
OS |
||
|
|
PLC data channel (up to SW2, not used in SW3), from |
|||||
4 |
|
FM/BM-DB |
|
SW4 used for ºRapid data channelº function |
OS |
||
|
|
Error and operational messages |
|
||||
10 |
* |
NS KN |
1 |
|
Interface NC channel 1 |
|
OS |
11 |
* |
NS KN |
2 |
|
Interface NC channel 2 |
|
OS |
12 |
* |
NS KN |
3 |
|
Interface NC channel 3 |
|
OS |
13 |
* |
NS KN |
4 |
|
Interface NC channel 4 |
|
OS |
14 |
* |
NS KN |
5 |
|
Interface NC channel 5 |
|
OS |
15 |
* |
NS KN |
6 |
|
Interface NC channel 6 |
|
OS |
16-17 |
|
|
|
Reserved |
|
|
|
28 |
|
SI |
|
|
Interface Signals for Safety Integrated |
|
FB |
29 |
|
NS ELG |
|
|
GI signals and 611D signals (GI=gearbox interpolation) |
OS |
|
30 |
* |
DEC MFU |
|
Decoded M functions (list) |
|
OS |
|
31 |
* |
SPI SIG |
|
|
Interface for spindle-specific signals |
|
OS |
32 |
* |
ACHS SIG |
|
Interface for axis-specific signals |
|
OS |
|
33 |
|
|
|
|
Reserved |
|
CL |
34 |
|
E-PU |
|
|
Input buffer, computer link |
|
CL |
35 |
|
A-PU |
|
|
Output buffer, computer link |
|
OS |
36 |
* |
DUE NC |
|
|
Interface for data transfer NC <-> PLC |
|
OS |
37 |
* |
SER SCH. |
|
Data transfer control |
|
CL |
|
38 |
|
RK : ZW-DB |
|
Status DB computer link |
|
OS |
|
40 |
* |
NS BEDT. |
|
Interface for operator panel |
|
OS |
|
41 |
* |
NS KK |
|
|
Interface for command channel |
|
OS |
48 |
* |
NS COM |
|
|
Interface for NC/PLC communication |
|
OS |
50 |
|
E : PLC 1 |
|
Input signals from PLC 1 |
880/880 GAZ only |
OS |
|
51 |
|
A : PLC1 |
|
|
Output signals to PLC 1 |
880/880 GAZ only |
OS |
52 |
|
E : PLC 2 |
|
Input signals from PLC 2 |
880/880 GAZ only |
OS |
|
53 |
|
A : PLC2 |
|
|
Output signals to PLC 2 |
880/880 GAZ only |
OS |
54 |
|
E : PLC 3 |
|
Input signals from PLC 3 |
880/880 GAZ only |
OS |
|
55 |
|
A : PLC3 |
|
|
Output signals to PLC 3 |
880/880 GAZ only |
OS |
56 |
|
E : PLC 4 |
|
Input signals from PLC 4 |
880/880 GAZ only |
OS |
|
57 |
|
A : PLC4 |
|
|
Output signals to PLC 4 |
880/880 GAZ only |
OS |
58 |
* |
MELD |
|
|
Interface for general messages |
|
OS |
59 |
|
DB-ZENTRAL |
|
Central DB in link RAM |
880/880 GAZ only |
OS |
|
60 |
* |
MDG WO |
|
MD words operating system |
|
OS |
|
61 |
* |
MDF WO |
|
|
MD words function blocks |
|
OS |
62 |
* |
MDA WO |
|
|
MD words user |
|
OS |
63 |
* |
MDG BI |
|
|
MD bits operating system |
|
OS |
64 |
* |
MDF BI |
|
|
MD bits function blocks |
|
OS |
65 |
* |
MDA BI |
|
|
MD bits user |
|
OS |
66 |
|
IKO-DB |
|
|
Icon control in MMC |
|
OS |
67 |
|
INT-MSTT |
|
Internal machine control panel |
|
OS |
|
68 |
* |
SEA WO |
|
|
SE user words |
|
OS |
71 |
* |
SEA BI |
|
|
SE user bits |
|
|
|
|
|
|
|
|
|
|
Abbreviations: |
|
|
Note: |
|
|
||
OS PLC operating system Data blocks marked * are generated and initialized by the PLC |
|||||||
CL Computer link |
|
|
operating system on each cold restart, after a general reset. These |
||||
SE setting data |
|
|
blocks are always reinitialized with every automatic cold restart. |
FB Description of
Functions
Safety Integrated
1±4 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
12.93 |
1 Definitions |
1.3 |
Data blocks |
DB |
DB design. |
DB name |
Pack. |
|
No. |
||||
|
|
|
||
|
|
|
|
|
|
|
|
|
|
76 |
Quit FM/BM |
EM/OM acknowledgement signals (up to SW2) |
0 |
|
77 |
DB FM/BM |
DB status words for EMs/OMs (up to SW2) |
0 |
|
78 |
Quit FM/BM |
EM/OM acknowledgement signals (up to SW2) |
0 |
|
79 |
QUITFMBM |
EM/OM acknowledgement signals (up to SW2) |
0 |
|
80 |
LMDKN 1 |
List for M decoding, NC Channel 1 |
UR |
|
81 |
LMDKN 2 |
List for M decoding, NC Channel 2 |
UR |
|
82 |
LMDKN 3 |
List for M decoding, NC Channel 3 |
UR |
|
83 |
LMDKN 4 |
List for M decoding, NC Channel 4 |
UR |
|
99 |
Log-Part |
Assignment user-interface/logical peer destination |
CL |
|
100 |
NCDAT-T |
Texts for file transfer display (operator request) |
CL, 4 |
|
101 |
EIN ASS |
Input user interface |
CL |
|
102 |
AUS ASS |
Output user interface |
CL |
|
103 |
ZWSP-WZD |
Buffer for tool data |
CL, 4 |
|
104 |
WZ-V-BO |
Tool management, operator interface |
CL |
|
105 |
|
Reserved |
||
. |
|
. |
CL |
|
. |
|
. |
CL |
|
. |
|
. |
CL |
|
|
|
|
CL |
|
122 |
|
Reserved |
CL |
|
125 |
S-SIGNALE |
Standard signals |
CL |
|
126 |
FORM-DB |
Format list |
6 |
|
127 |
ZUST-DB |
Status DB |
6 |
|
128 |
E-PUFFER |
Input useful data DB |
6 |
|
129 |
A-PUFFER |
Output useful data DB |
6 |
|
130 |
|
Reserved |
6 |
|
134 |
|
|
1 |
|
ZW-STAZ |
Status DB for tool life, quantity |
1 |
||
135 |
ZW |
Status word DB for punched tape input |
1 |
|
136 |
DYNPUFF 1 |
Dynamic buffer |
1 |
|
137 |
DYNPUFF 2 |
Dynamic buffer |
1 |
|
138 |
DYNPUFF 3 |
Dynamic buffer |
1 |
|
139 |
DYNPUFF 4 |
Dynamic buffer |
1 |
|
140 |
DYNPUFF 5 |
Dynamic buffer |
1 |
|
141 |
DYNPUFF 6 |
Dynamic buffer |
1 |
|
142 |
DYNPUFF 7 |
Dynamic buffer |
1 |
|
143 |
DYNPUFF 8 |
Dynamic buffer |
1 |
|
144 |
ZW-DATVT |
Status word DB data distributor 1) |
1 |
|
145 |
ZW-BT |
Status word DB operator panel 1) |
1 |
|
146 |
ZW-ANZBT |
Display parameters, operator panel |
1 |
|
147 |
ZW-MESS |
Interface, measurement |
1 |
|
148 |
TO-DATVT |
TO memory distributor |
1 |
|
149 |
TO-DATLS |
Buffer for read/write TO data (FB 61/FB 62) |
1 |
|
150 |
ZW-WZV |
Status words, tool management |
1 |
|
|
|
|
|
Abbreviations:
OS PLC operating system
0FB Package 0 CL Computer link UR User
1FB Package 1
6FB Package 6
Note:
Data blocks marked * are generated and initialized by the PLC operating system on each cold restart, after a general reset. These blocks are always reinitialized with every automatic cold restart.
Data blocks marked 1) are created contiguously according to the tool management configuration.
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±5 |
SINUMERIK 840C (PJ)
1 Definitions |
12.93 |
1.3 Data blocks |
|
DB |
DB desig. |
DB name |
Pack. |
|
No. |
||||
|
|
|
||
|
|
|
|
|
|
|
|
|
|
151 |
KENN 1 |
Identifiers |
1 |
|
152 |
KENN 2 |
Identifiers |
1 |
|
153 |
KENN 3 |
Identifiers |
1 |
|
154 |
IDENT 1 |
Ident. number |
1 |
|
155 |
IDENT 2 |
Ident. number |
1 |
|
156 |
DUPLO |
Duplo number |
1 |
|
157 |
ANWEND 1 |
User data 1) |
1 |
|
158 |
ANWEND 2 |
User data 1) |
1 |
|
159 |
ANWEND 3 |
User data 1) |
1 |
|
160 |
ANWEND 4 |
User data 1) |
1 |
|
161 |
ANWEND 5 |
User data 1) |
1 |
|
162 |
ANWEND 6 |
User data 1) |
1 |
|
163 |
ANWEND 7 |
User data 1) |
1 |
|
164 |
D-NR. 1 |
Reference list 1) |
1 |
|
165 |
D-NR. 2 |
Reference list 1) |
1 |
|
166 |
D-NR. 3 |
Reference list 1) |
1 |
|
167 |
D-NR. 4 |
Reference list 1) |
1 |
|
168 |
D-NR. 5 |
Reference list 1) |
1 |
|
169 |
D-NR. 6 |
Reference list 1) |
1 |
|
170 |
D-NR. 7 |
Reference list 1) |
1 |
|
171 |
D-NR. 8 |
Reference list 1) |
1 |
|
172 |
D-NR. 9 |
Reference list 1) |
1 |
|
173 |
ERSATZPL |
Replacement location number 1) |
1 |
|
174 |
WZAUF1 L1 |
Tool holder L1 1) |
1 |
|
175 |
WZAUF2 L1 |
Tool holder L1 1) |
1 |
|
176 |
WZAUF1 L2 |
Tool holder L2 1) |
1 |
|
177 |
WZAUF2 L2 |
Tool holder L2 1) |
1 |
|
178 |
ADAGE1 L1 |
Adapter geometry L1 1) |
1 |
|
179 |
ADAGE2 L1 |
Adapter geometry L1 1) |
1 |
|
180 |
ADAGE1 L2 |
Adapter geometry L2 1) |
1 |
|
181 |
ADAGE1 L2 |
Adapter geometry L2 1) |
1 |
|
182 |
ADALAGE |
Adapter position 1) |
1 |
|
|
|
|
|
Abbreviations:
OS PLC operating system
0FB Package 0 CL Computer link UR User
1FB Package 1
Note:
Data blocks marked * are generated and initialized by the PLC operating system on each cold restart, after a general reset. These blocks are always reinitialized with every automatic cold restart.
Data blocks marked 1) are created contiguously according to the tool management configuration.
DBs 150 to max. DB 182 are needed when tool management is used. The |
actual number of data blocks depends on the "width" of the magazine |
table (see documentation: SINUMERIK 840/840C/880/880 GA2, Function |
Blocks for PLC 135 WB, Package 1 and 2: Tool Management). |
1.3.2Class DX data blocks
Data blocks DX |
0-105 |
are used or reserved for Siemens applications. |
Data blocks DX |
106-255 |
are available to the user. |
1±6 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
01.99 |
1 Definitions |
1.4 Function blocks
1.4Function blocks
1.4.1Class FB function blocks
Function blocks FB |
0-199 |
are used or reserved for Siemens applications. |
|
|
|||
Function blocks FB |
200-255 |
are available to the user. |
|
|
|
||
|
|
|
|
|
|
|
|
FB |
|
FB desig. |
FB name |
|
|
Pack. |
|
No. |
|
|
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
* |
EINR-DB |
Create data blocks |
|
OS |
|
|
12 |
* |
WDTGR |
Retriggering cycle monitoring |
|
OS |
|
|
17 |
|
STATUS |
PLC status channel (840C SW 1 and 2) |
0 |
|
||
27 |
|
IM308C |
Profibus interface for 840C (SW 6.1 and higher) |
0 |
|
||
30 |
|
MUL:16 |
Multiplication of two 16-bit binary numbers |
0 |
|
||
32 |
|
DIV:16 |
Division of two 16-bit binary numbers |
|
0 |
|
|
33 |
|
DIV:32 |
Division of two 32-bit binary numbers |
|
0 |
|
|
35 |
|
DIV/100 |
Division by 100 |
|
0 |
|
|
36 |
|
ADD:32 |
Addition of two binary numbers |
|
0 |
|
|
37 |
|
SUB:32 |
Subtraction of two binary numbers |
|
0 |
|
|
39 |
|
DUAL/BCD |
Convert binary to BCD, 4 decades |
|
0 |
|
|
40 |
|
COD:16 |
Convert fixed-point binary number (16 bits) to BCD |
0 |
|
||
41 |
|
COD:32 |
number |
|
|
|
|
42 |
|
|
Convert fixed-point binary number (32 bits) to BCD |
0 |
|
||
|
COD:B4 |
number (flags used: FW 220, 238) |
|
|
|||
43 |
|
|
Convert BCD number (4 decades) to fixed-point binary |
0 |
|
||
|
COD:B8 |
number |
|
|
|
||
|
|
|
Convert BCD number (8 decades) to fixed-point binary |
0 |
|
||
|
|
|
number |
|
|
|
|
45 |
|
GST-FMBM |
Initial settings for error messages/operational messages |
0 |
|
||
45 |
|
ANLAUF |
Initial settings for error messages/operational messages |
0 |
|
||
|
|
|
(840C SW 3) |
|
|
||
47 |
|
PSP:FMBM |
Buffer, error/operational messages |
|
0 |
|
|
48 |
|
FMBM:HSG |
Auxiliary signals for EMs/OMs |
|
0 |
|
|
48 |
|
FMBM:MMC |
Auxiliary signals for EMs/OMs |
(840C SW 3) |
0 |
|
|
49 |
|
UP:57/58 |
Subroutine FB57, FB58 |
|
0 |
|
|
50 |
|
UP:FB49 |
Subroutine FB49 |
|
0 |
|
|
51 |
|
UP:FB45 |
Subroutine FB45 |
|
0 |
|
|
52 |
* |
BTR 8-16 |
Block transfer between 8 bit and 16 bit memory |
OS |
|
||
54 |
|
FM-ANZ |
Display error messages (840C SW 1 and 2) |
0 |
|
||
55 |
|
BM-ANZ |
Display operational messages (840C SW 1 and 2) |
0 |
|
||
56 |
|
MG-ANZ |
Display message groups (840C SW 1 and 2) |
0 |
|
||
57 |
|
FM-ABFR |
Scan error messages |
|
0 |
|
|
58 |
|
BM-ABFR |
Scan operational messages |
|
0 |
|
|
59 |
|
MG-ABFR |
Scan message groups (840C SW 1 and 2) |
0 |
|
||
60 |
* |
BLOCK-TR |
Block transfer |
|
OS |
|
|
61 |
* |
NCD-LESE |
Read NC data |
|
OS |
|
|
62 |
* |
NCD-SCHR |
Write NC data |
|
OS |
|
|
63 |
* |
PCD-LESE |
Read PLC data from PLC 1/2/3/4 |
(applies to 880 only) |
OS |
|
|
64 |
* |
PCDSCHR |
Write PLC data to PLC 1/2/3/4 |
(applies to 880 only) |
OS |
|
|
|
|
|
|
|
|
|
|
Abbreviations: |
Note: |
OS PLC operating system |
Blocks marked * are function macros which are integrated in |
0 FB Package 0 |
the PLC operating system. |
(see description of FUNCTION MACROS)
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±7 |
SINUMERIK 840C (PJ)
1 Definitions |
12.93 |
1.4.1 Class FB function blocks |
|
FB |
|
FB desig. |
FB name |
|
Pack. |
No. |
|
|
|||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
* |
M-STACK |
Transfer flags |
--> flag stack |
OS |
66 |
* |
STACK-M |
Flag stack |
--> transfer flags |
OS |
67 |
* |
T:RI->ACH |
Transfer direction keys (840C T version) to axes |
OS |
|
68 |
* |
AP RUF |
Aperiodic program call |
OS |
|
69 |
* |
G-DECOD |
G functions decoding |
OS |
|
70 |
* |
T:NS->EAM |
Transfer interface DB to I/Q/F |
OS |
|
71 |
* |
T:EAM->NS |
Transfer I/Q/F to interface DB |
OS |
|
72 |
* |
T:NCK->DB |
Transfer NC channel --> DB channel |
OS |
|
73 |
* |
T:DB->NCK |
Transfer DB channel --> NC channel |
OS |
|
74 |
* |
T:SPI->DB |
Transfer spindle --> DB spindle |
OS |
|
75 |
* |
T:DB->SPI |
Transfer DB spindle --> spindle |
OS |
|
76 |
* |
T:ACH->DB |
Transfer axis --> DB axis |
OS |
|
77 |
* |
T:DB->ACH |
Transfer DB axis --> axis |
OS |
|
78 |
* |
T:MS->KN |
Transfer machine control panel --> NC channel |
OS |
|
79 |
* |
T:MS->ACH |
Transfer machine control panel --> DB axis (840C M version) |
OS |
|
88 |
* |
BA-LAMPE |
Mode LED driver |
OS |
|
89 |
* |
BAA-LESE |
Read block start address |
OS |
|
91 |
|
AK2:V/R |
Sequencer forwards/reverse |
0 |
|
92 |
|
AK3:AUT |
Sequencer reverse |
0 |
|
93 |
|
ALS:V/R |
Sequencer forwards/reverse Graph 5 |
0 |
|
94 |
|
ALS:AUT |
Sequencer automatic Graph 5 |
0 |
|
95 |
|
RK:S880 |
Computer link FB |
CL, 4 |
|
96 |
|
RK:TWZD |
Reserved, transfer tool data |
CL, 5 |
|
97 |
|
|
Reserved |
|
CL |
98 |
|
|
Reserved |
|
CL |
99 |
|
RK:GLOBA |
Reserved |
|
CL |
100 |
|
Global functions |
CL, 4 |
||
101 |
|
RK:MELDG |
Messages |
|
CL, 4 |
102 |
|
RK:NCDAT |
File transfer (operator request) |
CL, 4 |
|
103 |
|
|
Reserved |
|
CL |
104 |
|
|
Reserved |
|
CL |
105 |
|
|
Reserved |
|
CL |
106 |
|
UP:FB101 |
Reserved |
|
CL |
107 |
|
Subroutine for FB 101 |
CL, 4 |
||
108 |
|
UP:RK880 |
Subroutine |
|
CL, 4 |
109 |
|
SUCH |
Reserved |
|
CL |
110 |
|
Search for word |
|
0 |
|
111 |
|
SUCHROUT |
Search routine |
|
1 |
112 |
|
LEERPL1 |
Search for empty location without default |
1 |
|
113* |
SUCH-SYM |
Direction of search, symmetrical |
OS |
||
114 |
|
SUCH-VOR |
Forward search |
|
1 |
115 |
|
SUCH-RWS |
Backward search |
1 |
|
116 |
|
WZV-INIT |
Initialize tool management |
|
|
117 |
|
EINR-MAG |
Create magazine table |
1 |
|
118 |
|
WZ-GR:ST |
Standard tool size |
1 |
|
119 |
|
|
Reserved |
|
1 |
120 |
|
|
Reserved |
|
1 |
|
|
|
|
|
|
Abbreviations: |
Note: |
|
|
OS PLC operating system Blocks marked * are function macros which are integrated in the
0 |
FB Package 0 |
PLC operating system |
1 |
FB Package 1 |
(see description of FUNCTION MACROS). |
4FB Package 4 of computer link
CL Computer link
1±8 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
06.93 |
1 Definitions |
1.4.1 |
Class FB function blocks |
FB |
|
FB desig. |
FB name |
Pack. |
|
No. |
|||||
|
|
|
|||
|
|
|
|
||
|
|
|
|
||
121 |
LEERPL2 |
Reserved |
1 |
||
122 |
Search for empty location with default |
1 |
|||
123 |
WZ-BS |
Prepare tool |
1 |
||
124 |
UP: T=ID |
Subroutine tool search T = ident |
1 |
||
125 |
UP: T=PL |
Subroutine tool search T = location |
1 |
||
127 |
UP:ZW-SP |
|
1 |
||
|
1 |
||||
128 |
TRANSFER |
Transfer tool data |
1 |
||
129 |
TOS-VER |
Reserved |
1 |
||
130 |
Subroutine |
1 |
|||
131 |
UP: MD-B |
Subroutine MD bits |
1 |
||
132 |
UP: MD-W |
Subroutine MD words |
1 |
||
133 |
RI-AUSW |
Direction selection |
1 |
||
134 |
TODAT-W |
Reserved |
1 |
||
135 |
D-NR:WZW |
Prepare D number after tool change |
1 |
||
136 |
WZDAT-LS |
Read tool data |
1 |
||
137 |
DYN-PUFF |
Subroutine |
1 |
||
138 |
Management of data I/O buffers |
1 |
|||
139 |
DAT-VERT |
Processing of data I/O buffers |
1 |
||
140 |
UP: FB139 |
Subroutines of FB 139 |
1 |
||
141 |
UP: KC-0 |
Subroutines of FB 139 |
1 |
||
142 |
UP: KC1-4 |
Subroutines of FB 139 |
1 |
||
143 |
UP: KC5-7 |
Subroutines of FB 139 |
1 |
||
144 |
UP:KC8+9 |
Subroutines of FB 139 |
1 |
||
145 |
BEL-CDTR |
Load tool with code carrier |
6 |
||
146 |
ENT-CDTR |
Unload tool with code carrier |
6 |
||
147 |
CT-FORMAT |
Formatting |
6 |
||
148 |
|
Reserved |
6 |
||
149 |
|
Reserved |
6 |
||
150 |
|
Reserved |
1 |
||
151 |
NP-SIF |
Reserved |
1 |
||
152 |
Subroutine |
1 |
|||
153 |
AD-AD |
Subroutine |
1 |
||
154 |
RK: AW-SS |
User interface for CL (processing) |
1 |
||
155 |
LOCHSTEG |
Punched tape input |
1 |
||
156 |
STAZ/VWG |
Tool life monitor (prewarning limit) |
1 |
||
157 |
STUE/VWG |
Monitor for no. of pieces (prewarning limit) |
1 |
||
158 |
WZ-SPER |
Tool lockout |
1 |
||
159 |
BCD-DUAL |
BCD/binary conversion |
1 |
||
160 1) |
|
Central calling block |
1 |
||
161 1) |
|
Subroutine check |
1 |
||
162 1) |
|
Spare |
1 |
||
163 1) |
|
Spare |
1 |
||
164 1) |
|
Transfer tool selection |
1 |
||
165 1) |
|
Reserved |
1 |
||
166 1) |
|
Signal: load spindle |
1 |
||
167 1) |
|
Signal: unload spindle |
1 |
||
168 1) |
|
Acknowledge spindle |
1 |
||
169 1) |
|
Spare |
1 |
||
170 1) |
|
Assignments, buffer |
1 |
||
Abbreviations: |
Note: |
|
|||
1 |
FB Package 1 |
Blocks marked 1) are part of the user interface example of tool |
|||
6 |
FB Package 6 |
management. |
|
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±9 |
SINUMERIK 840C (PJ)
1 Definitions |
06.93 |
1.4.1 Class FB function blocks |
|
FB |
FB desig. |
FB name |
Pack. |
|
No. |
||||
|
|
|
||
|
|
|
|
|
|
|
|
|
|
171 1) |
|
Magazine assignments |
1 |
|
172 1) |
|
Selection tool according to T number |
1 |
|
173 1) |
|
Load/unload magazine from preselect/spindle |
1 |
|
174 1) |
|
Spare |
1 |
|
175 1) |
|
Display tool data from buffer assignments |
1 |
|
176 1) |
|
Change tool data from buffer assignments |
1 |
|
177 1) |
|
Display tool data from magazine assignments |
1 |
|
178 1) |
|
Change tool data from magazine assignments |
1 |
|
179 1) |
|
Selection tool according to cursor position from magazine |
1 |
|
180 1) |
|
assignments |
1 |
|
|
Additional cutter from buffer and magazine |
1 |
||
181 1) |
|
Additional cuffer from loading |
1 |
|
182 1) |
|
Load |
1 |
|
183 1) |
|
Unload |
1 |
|
184 1) |
|
Spare |
1 |
|
185 1) |
|
Manual acknowledgement |
1 |
|
186 1) |
|
Abort manual magazine/spindle |
1 |
|
187 1) |
|
Display next cutter |
1 |
|
188 1) |
|
Reactivate tool |
1 |
|
189 1) |
|
Delete last cutter |
1 |
|
190 1) |
|
Select loading display, punched tape |
1 |
|
191 1) |
|
Acknowledge punched tape positive/negative |
1 |
|
192 1) |
|
Abort punched tape |
1 |
|
193 1) |
|
Spare |
1 |
|
194 1) |
|
Spare |
1 |
|
195 |
|
Reserved |
1 |
|
196 |
WZ-LISTE |
Reserved |
1 |
|
197 |
TAUSCHL |
Open tool list |
1 |
|
198 |
FIFO |
Open swap list |
1 |
|
199 |
|
Buffer processing |
|
|
|
|
|
|
Abbreviations: |
Note: |
1 FB Package 1 |
Blocks marked 1) are part of the user interface example of tool |
|
management. |
1±10 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
09.95 |
1 Definitions |
1.4.2 Class FX function blocks
1.4.2Class FX function blocks
Function blocks FX 0-99 are used or reserved for Siemens applications.
FX No. |
FX desig. |
FX name |
Pack. |
||
|
|
|
|
|
|
|
|
|
|
|
|
1 |
SI |
Self-start-up |
OS |
|
|
2 |
|
Reserved |
|
|
|
3 |
|
Reserved |
|
|
|
4 |
|
Reserved |
|
|
|
5 |
|
Reserved |
|
|
|
6 |
|
Reserved |
|
|
|
7 |
SIMULAT |
Simulation of a part program |
1 |
|
|
8 |
WZ-GRIEP |
Presetting tool size via EPROM |
1 |
|
|
9 |
|
Reserved |
1 |
|
|
10 |
|
Reserved |
1 |
|
|
11 |
|
Reserved |
1 |
|
|
12 |
|
Reserved |
1 |
|
|
13 |
|
Reserved |
|
|
|
14 |
BEL-CDTR |
Load code carrier |
7 |
|
|
15 |
ENT-CDTR |
Unload code carrier |
7 |
|
|
16 |
UP-CDTR |
Subroutine code carrier |
7 |
|
|
17 |
|
Reserved |
CL |
|
|
: |
|
Reserved |
CL |
|
|
21 |
|
Reserved |
CL |
|
|
22 |
|
Reserved |
|
|
|
23 |
|
Reserved |
|
|
|
24 |
|
Reserved |
|
|
|
25 |
|
Reserved |
|
|
|
26 |
DAT-EIN |
PLC-controlled data input |
8 |
|
|
27 |
DAT-AUS |
PLC-controlled data output |
8 |
|
|
28 |
DAT-UHR |
Date/time |
8 |
|
|
29 |
|
Reserved |
CL |
|
|
30 |
|
Reserved |
CL |
|
|
31 |
GRAYDUAL |
Gray code/binary converter |
0 |
|
|
32 |
DUALGRAY |
Binary/gray code converter |
0 |
|
|
33 |
RECHNEN |
Contour and technology calculation |
CP |
|
|
34 |
MESSEN |
Measuring in JOG mode |
CP |
|
|
35 |
RESREQ |
Triggering link bus reset |
0 |
|
|
36 |
|
Reserved |
CL |
|
|
37 |
|
Reserved |
CL |
|
|
38 |
PRO-KO1 |
Program coordination (840C SW 2 and higher) |
0 |
|
|
39 |
PRO-KO2 |
Subroutine FX 38 |
0 |
|
|
40 |
RK:WZABF |
Computer link, interrogate tool |
5 |
|
|
41 |
RK: WZM |
Computer link, report tool |
5 |
|
|
42 |
RK: WZBEL |
Computer link, load tool |
5 |
|
|
43 |
RK: WZENT |
Computer link, unload tool |
5 |
|
|
44 |
RK:WZBGB |
Computer link, load magazine assignment data |
5 |
|
|
45 |
RK:KASSE |
Tool cassette processing |
5 |
|
|
46 |
|
Reserved |
|
|
|
47 |
|
Reserved |
|
|
|
48 |
UPWZKASS |
Subroutine tool cassette processing |
5 |
|
|
49 |
EA-TRAN |
Data transfer I/O buffer Tool management |
5 |
|
|
50 |
UPWZDIAL |
Subroutine tool dialog |
5 |
|
|
51 |
|
Reserved |
|
|
|
: |
|
Reserved |
|
|
|
54 |
|
Reserved |
|
|
|
|
|
|
|
|
|
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
1±11 |
SINUMERIK 840C (PJ)
1 Definitions |
12.93 |
1.4.2 Class FX function blocks |
|
FX No. |
FX desig. |
FX name |
Pack. |
||
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
DIAGNOSE |
Diagnostics main module |
|
|
56 |
|
ALLFUNK 1 |
General functions 1 |
|
|
57 |
|
ALLFUNK 2 |
General functions 2 |
|
|
58 |
|
SINFUNKT |
SINUMERIK-dependent functions |
|
|
59 |
|
PLCFUNKT |
PLC-dependent functions |
|
|
60 |
|
|
Reserved |
|
|
67 |
|
|
Reserved |
|
|
68 |
|
PRO-MESS |
Logging measuring data |
|
|
69 |
|
TP-UEB |
Transfer part program |
|
|
70 |
|
TP-BEARB |
Process part program |
|
|
71 |
|
DRU-AUSG |
Printer output |
|
|
72 |
|
PRO-UP1 |
Subroutine |
|
|
73 |
|
OEM-SEND |
Send data to MMC (reserved for OEM customers) |
8 |
|
74 |
|
OEM-EMPF |
Receive data from MMC (reserved for OEM customers) |
8 |
|
75 |
|
AX-G-FKT |
Decode axis-specific G functions (840C SW 3 and higher) |
8 |
|
76 |
|
|
Reserved |
8 |
|
77 |
|
|
Reserved address calculation flag area |
8 |
|
78 |
|
|
Reserved |
OS |
|
79 |
|
|
Reserved |
OS |
|
80 |
|
|
Reserved |
OS |
|
81 |
|
IKONEN |
Icon display |
|
|
82 |
|
STERNDRE |
Star-delta switchover (840C SW 3) |
|
|
83 |
|
|
Reserved PG functions |
|
|
84 |
|
|
Reserved PG functions |
|
|
85 |
|
|
Reserved PG functions |
|
|
86 |
|
|
Reserved PG functions |
0 |
|
87 |
|
|
Reserved PG functions |
0 |
|
88 |
|
|
Reserved PG functions |
|
|
89 |
|
|
Reserved |
|
|
: |
|
|
|
|
|
99 |
|
|
Reserved |
|
|
|
|
|
|
|
|
Abbreviations: |
|
|
|
||
0 |
FB Package 0 |
8 FB Package 8 |
|
|
|
1 |
FB Package 1 |
OS PLC Operating System |
|
|
|
5 |
FB Package 5 |
CP Cycles Package |
|
|
|
7 |
FB Package 7 |
CL Computer Link |
|
|
Caution:
1.Make sure that no confusion with SINUMERIK blocks is possible. The user must not utilize a SINUMERIK standard block name, nor may he assign a SINUMERIK library number to his user blocks.
2.In the range of FB 0 - FB 199
FX 0 - FX 99 SINUMERIK blocks have absolute priority.
If SINUMERIK blocks must be used at a later time that overlap user block numbers, the user blocks must be given a new number.
END OF SECTION
1±12 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
06.93 |
2 Data Sheets for Digital Functions |
2 Data Sheets for Digital Functions
FB 30 MUL:16
Multiplier:16
1. Description
The ºMultiplier:16º function block can be used to multiply two fixed-point binary numbers (15+1 bits).
The result is a fixed-point binary number (31 + 1 bits).
The function block also scans the result for ºzeroº.
If 8-bit numbers are to be multiplied, they must be transferred to 16-bit words.
Function: |
Y = A x B |
|
Y = Z32, Z31; A = Z1; B = Z2 |
2. Block data |
|
Lib. No. |
: E88530-B 6030-A-_ _ |
FBs to be loaded |
: FB30 |
DBs to be loaded |
: None |
Type of FB call |
: Unconditional |
DBs to be input |
: None |
Error messages |
: None |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
2±1 |
SINUMERIK 840C (PJ)
2 Data Sheets for Digital Functions |
06.93 |
FB 30 MUL:16 Multiplier:16
3. Block call
FB 30 MUL:16
I,W |
± |
Z1 |
Z3=0 |
± |
Q,BI |
I,W |
± |
Z2 |
Z32 |
± |
Q,W |
|
|
|
Z31 |
± |
Q,W |
|
|
|
|
|
|
4. Signal descriptions
Z1, |
|
Multiplicand, multiplier |
||
Z2 |
|
The multiplicand must be stored in Z1, the multiplier in Z2. |
||
Z3=0 |
|
Result = 0 |
|
|
|
|
A º1º signal indicates that the arithmetic result is zero. |
||
Z32, |
|
Product H word, product L word |
||
Z31 |
|
The high word of the arithmetic result is stored (with sign) in Z32, the low word in |
||
|
|
Z31. |
|
|
5. Program example |
|
|||
|
: |
L |
KF |
+512 |
|
: |
T |
FW |
100 |
|
: |
L |
KF |
+1024 |
|
: |
T |
FW |
102 |
|
: |
JU |
FB |
30 |
NAME |
: |
MUL: |
16 |
|
Z1 |
: |
|
FW |
100 |
Z2 |
: |
|
FW |
102 |
Z3=0 |
: |
|
F |
104.0 |
Z32 |
: |
|
FW |
106 |
Z31 |
: |
|
FW |
108 |
2±2 |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
SINUMERIK 840C (PJ)
06.93 |
2 Data Sheets for Digital Functions |
|
FB 32 DIV:16 16-bit binary divider |
FB 32 DIV:16
16-bit binary divider
1. Description
The ºDivider:16º function block is used to divide two fixed-point binary numbers (15+1 bits). The result (quotient and remainder) is a fixed-point binary number (15 + 1 bits).
The function block also scans the result for ºzeroº.
If 8-bit numbers are to be divided, they must be transferred to 16-bit words.
Function: |
A |
Y = |
±±± |
|
B |
Y = Z3; remainder = Z4
A = Z1, B = Z2
2. Block data |
|
Lib. No. |
: E88530-B 6032-A-_ _ |
FBs to be loaded |
: FB32 |
DBs to be loaded |
: None |
Type of FB call |
: Unconditional or conditional |
DBs to be input |
: None |
Error messages |
: None |
© Siemens AG 1993 All Rights Reserved 6FC5197AA30 |
2±3 |
SINUMERIK 840C (PJ)
2 Data Sheets for Digital Functions |
06.93 |
FB 32 DIV:16 16-bit binary divider
3. Block call
FB 32 DIV:16
I, W |
± |
Z1 |
OV |
± |
Q,BI |
I, W |
± |
Z2 |
FEH |
± |
Q,BI |
|
|
|
Z3=0 |
± |
Q,BI |
|
|
|
Z4=0 |
± |
Q,BI |
|
|
|
Z3 |
± |
Q,W |
|
|
|
Z4 |
± |
Q,W |
|
|
|
|
|
|
4. Signal descriptions
Z1, Z2 The dividend must be stored in Z1, the divisor in Z2.
OV A º1º signal indicates overflow (divisor is negative).
FEH Output FEH is set on division by zero.
Z3=0 A º1º signal indicates that the arithmetic result is zero.
Z4=0 A º1º signal indicates that the remainder is zero.
Z3, Z4 The result of the division is stored in Z3, the remainder in Z4.
5. Program example |
|
|||
|
: |
L |
KF |
+1025 |
|
: |
T |
FW |
100 |
|
: |
L |
KF |
+512 |
|
: |
T |
FW |
102 |
|
: |
JU |
FB |
32 |
NAME |
: |
DIV: |
16 |
|
Z1 |
: |
|
FW |
100 |
Z2 |
: |
|
FW |
102 |
0V |
: |
|
F |
104.0 |
FEH |
: |
|
F |
104.1 |
Z3=0 |
: |
|
F |
104.2 |
Z4=0 |
: |
|
F |
104.3 |
Z3 |
: |
|
FW |
106 |
Z4 |
: |
|
FW |
108 |
2±4 © Siemens AG 1993 All Rights Reserved 6FC5197AA30
SINUMERIK 840C (PJ)
06.93 |
2 Data Sheets for Digital Functions |
FB 33 DIV:32 Divider:32
FB 33 DIV:32
Divider:32
1. Description
The ºDivider:32º function block divides two fixed-point binary numbers (31+1 bits). The result (quotient and remainder) is a fixed-point binary number (31 + 1 bits).
The function block also scans the result for ºzeroº.
Function: |
A |
Y = |
±±±± |
|
B |
Y = Z32, Z31; remainder = Z42, Z41
A = Z12, Z11; B = Z22, Z21
2. Block data |
|
Lib. No. |
: E88530-B 6033-A-_ _ |
FBs to be loaded |
: FB33 |
DBs to be loaded |
: None |
Type of FB call |
: Unconditional |
DBs to be input |
: None |
Error messages |
: None |
© Siemens AG 1993 All Rights Reserved 6FC5 197AA30 |
2±5 |
SINUMERIK 840C (PJ)
2 Data Sheets for Digital Functions |
06.93 |
FB 33 DIV:32 Divider:32
3. Block call
FB 33 DIV:32
I, W |
± |
Z12 |
OV |
± |
Q,BI |
I, W |
± |
Z11 |
FEH |
± |
Q,BI |
I, W |
± |
Z22 |
Z3=0 |
± |
Q,BI |
I, W |
± |
Z21 |
Z4=0 |
± |
Q,BI |
|
|
|
Z32 |
± |
Q,W |
|
|
|
Z31 |
± |
Q,W |
|
|
|
Z42 |
± |
Q,W |
|
|
|
Z41 |
± |
Q,W |
|
|
|
|
|
|
4. Signal descriptions
Z12, |
High-word dividend, low-word dividend |
Z11 |
The high word of the dividend must be stored in Z12 and the low word in Z11. |
Z22, |
High-word divisor (bits 16 to 31), low-word divisor (bits 0 to 15) |
Z21 |
The high word of the divisor must be stored in Z22 and the low word in Z21. |
OV |
Overflow |
|
A º1º signal signifies an overflow. |
FEH |
Fault (division by 0) |
|
Output FEH is set on division by zero. |
Z3=0 |
Quotient equal to zero |
|
A º1º signal indicates that the arithmetic result is zero. |
Z4=0 |
Remainder equal to zero |
|
A º1º signal indicates that the remainder of the division is zero. |
Z32, |
High-word quotient (bits 16 to 31), low-word quotient (bits 0 to 15) |
Z31 |
The high word of the arithmetic result (with sign) is stored in Z32, the low word in |
|
Z31. |
Z42, |
High-word remainder (bits 16 to 31), low-word remainder (bits 0 to 15) |
Z41 |
The remainder of the division is output in words Z42 (high word) and Z41 (low |
|
word). |
2±6 |
© Siemens AG 1993 All Rights Reserved 6FC5 197AA30 |
SINUMERIK 840C (PJ)
06.93 |
2 Data Sheets for Digital Functions |
|
FB 33 DIV:32 Divider:32 |
5. Program example |
|
|||
|
: |
L |
KF |
+8 |
|
: |
T |
FW |
100 |
|
: |
L |
KF |
+1 |
|
: |
T |
FW |
102 |
|
: |
L |
KF |
+4 |
|
: |
T |
FW |
104 |
|
: |
L |
KF |
+0 |
|
: |
T |
FW |
106 |
|
: |
JU |
FB |
33 |
NAME |
: |
DIV:32 |
|
|
Z12 |
: |
|
FW |
100 |
Z11 |
: |
|
FW |
102 |
Z22 |
: |
|
FW |
104 |
Z21 |
: |
|
FW |
106 |
0V |
: |
|
F |
108.0 |
FEH |
: |
|
F |
108.1 |
Z3=0 |
: |
|
F |
108.2 |
Z4=0 |
: |
|
F |
108.3 |
Z32 |
: |
|
FW |
110 |
Z31 |
: |
|
FW |
112 |
Z42 |
: |
|
FW |
114 |
Z41 |
: |
|
FW |
116 |
© Siemens AG 1993 All Rights Reserved 6FC5 197AA30 |
2±7 |
SINUMERIK 840C (PJ)
2 Data Sheets for Digital Functions |
06.93 |
FB 35 DIV/100 Divide by 100
FB 35 DIV/100
Divide by 100
1. Description
The "Divide by 100" function block divides a positive binary number (max. 6553500) by 100. The result is also a binary number.
The divisor is not subjected to a range check.
2. Block data |
|
Lib. No. |
: E88530-B 6035-A-_ _ |
FBs to be loaded |
: FB35 |
DBs to be loaded |
: None |
Type of FB call |
: Unconditional |
DBs to be input |
: None |
Error messages |
: None |
2±8 |
© Siemens AG 1993 All Rights Reserved 6FC5 197AA30 |
SINUMERIK 840C (PJ)
06.93 |
2 Data Sheets for Digital Functions |
FB 35 DIV/100 Divide by 100
3. Block call
FB 35 DIV/100
I, W ± |
Z12 |
Z2 |
± Q,W |
I, W ± |
Z11 |
|
|
|
|
|
|
4. Signal descriptions
Z12, High word dividend, low word dividend
Z11 The high word of the dividend is stored in Z12 (right justified), the low word in Z11.
Z2 |
|
Result |
|
|
|
|
Word in which the result of the division is stored (must always be interpreted as a |
||
|
|
positive number). |
||
5. Program example |
|
|||
|
: |
L |
KF |
10 |
|
: |
T |
FW |
100 |
|
: |
L |
KF |
+1000 |
|
: |
T |
FW |
102 |
|
: |
JU |
FB |
35 |
NAME |
: DIV/100 |
|
||
Z12 |
: |
|
FW |
100 |
Z11 |
: |
|
FW |
102 |
Z2 |
: |
|
FW |
104 |
© Siemens AG 1993 All Rights Reserved 6FC5 197AA30 |
2±9 |
SINUMERIK 840C (PJ)
2 Data Sheets for Digital Functions |
06.93 |
FB 36 ADD:32 Adder: 32 bits
FB 36 ADD:32
Adder:32 bits
1. Description
The ºAdder:32º function block adds two fixed-point binary numbers (31+1 bits). The result is a fixed-point binary number (31 + 1 bit).
The function block additionally contains a scan of the result for "zero".
If 8-bit numbers are to be added, they must be transferred to 16-bit words.
Function: |
Y = A + B |
|
Y = Z32, Z31; A = Z12, Z11; B = Z22, Z21 |
2. Block data |
|
Lib. No. |
: E88530-B 6036-A-_ _ |
FBs to be loaded |
: FB36 |
DBs to be loaded |
: None |
Type of FB call |
: Unconditional |
DBs to be input |
: None |
Error messages |
: None |
2±10 © Siemens AG 1993 All Rights Reserved 6FC5 197AA30
SINUMERIK 840C (PJ)