452 840 840C 880 PLC 135WB 135WB2 Package 7 Code Carriers
452 840 840C 880 PLC 135WB 135WB2 Package 7 Code Carriers
Manufacturer Documentation
SINUMERIK 840/840C
SINUMERIK 880/880 GA2
PLC 135 WB/WB2 Function Blocks
Package 7: Code Carriers, Tool Data
with Address Encoding, Frame
Description
Planning Guide
Manufacturer Documentation
Valid for:
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.
FX Data Sheets 3
Application 5
Configuring Lists 6
Contents
Page
1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1–1
5 Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5–1
1 Introduction
The "Code Carriers, Transfer Tool Data with Address Encoding" function block package forms
the basis when using tools equipped with data memory.
The most important features of the "Code Carriers, Transfer Tool Data with Address
Encoding" function block package are:
• Separate link-up facility for code carrier systems via user interfaces.
• Initializable user interface
• Connection of up to 4 read/write stations via serial interfaces
• The encoding station must observe the conventions presented in Part 2 of this manual.
• Use of code carrier chips of any size
One cutting edge is transferred per request; however, the number of useful data bytes per
request/response is restricted to 244*.
• The tool data is defined via the address parameter list and referenced via addresses on
the code carrier chip (address encoding), thus ensuring a flexible record structure on the
chip.
• The standard package handles the interchange of all tool data required for SINUMERIK
840/880 tool management. It can also handle data interchange with the encoding station
for user requests (i.e. requests to write user data to or read user data from the chip), the
user formulating the request and evaluating the requested data.
• The conventions presented in Sections 1.5, 1.6 and 2.3 must be observed!
Note:
The number of NC P memories (P0 to P15 or P0 to P31) supported by package 7 depends on
the SINUMERIK 840/880 tool management (package 1).
_______
* Some code carrier systems are limited to 224 bytes
Code COM NC
carrier 20mA
system loop current MPR
RS 232 C interface Active
. Evaluator CP
. 3964R/LSV2
RS 232 C
line procedure
2
PLC1
Digital input
n
Hardware signal for load/unload
n = 1-8
Tool
The following figure provides a rough overview of how data is forwarded from the code carrier
system’s evaluator to the PLC and vice versa.
Read/write
Max. 8
station
Read/
Bus interface Active write head
COM module RS 232 C
CP1 CP2
DPR DPR
MPR O I
.....
I O
PLC NC
PLC op. system
User interface
Input Output
0..................31 0.................31
UI/I (DB 101) UI/O (DB 102)
DB 128 DB 129
UI UI
Useful data DB useful data DB
input buffer output buffer
DB 127
Status
Standard FBs for DB
loading/unloading via code
DB 126
DB 38 Format
list
NST:RK
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaa
n TO
ME-
MORY
Computer Tool
link software management
Digital I/O
n=1-8
Block diagram of the link between PLC and code carrier system
As can be seen from Figure ”Link between PLC and code carrier system”, the PLC is linked
to a code carrier system evaluator (read/write station) over one of 32 user interfaces (please
refer to the publication entitled "Package 4: Computer Link" for detailed information on the
user interface).
The user must reserve a separate user interface for each read/write station.
The user interface(s) for the read/write station(s) must be specified in the machine data and
configured in DB99 (assignment list) (refer to the section on configurable requests in the
publication entitled "Package 4: Computer Link" for details).
When a code carrier system is used, FX "BEL-CDTR" organizes the loading procedure.
Case 1
User data:
The user generates the request in a data block whose number is specified in the machine
data. The standard package then requests this data and makes it available in its DB 128 input
buffer (also see Section 3.1).
The load dialog is started via a binary signal. Each loading point has its own read-write head,
and each of the up to 8 read-write heads has its own binary load signal. The signals are
evaluated in the user program and the number of the read-write head (1 to 8) forwarded to
function block FX "BEL-CDTR", together with enable bit "B-WZ" and/or "B-AW".
Since several read/write stations may be connected, the user must decide which of these is to
be used for loading and forward its number (1 to 4) to the "BEL-CDTR" function block. "BEL-
CDTR" uses this number to ascertain the user interface assigned to the encoding station
(refer to Section 1.8, Configuring via machine data).
Case 2
The tool to be loaded is at the loading point with the read/write station. The relevant read head
(which is selected via a binary signal) reads out the data over the serial interface allocated to
the corresponding user interface.
Case 3
Computer
User link
software
DB 128
DB 38 DB 126
UI
input Interface
Format
buffer to comp. list
link
software
DB 101/102
FB 145
User
interface Loading via
x code carrier
(x=0 to 31) DB 127
Status
DB 129 DB
UI
output
buffer
Interface
to 880
tool man.
DB's Tool
Standard tool manage- me-
ment FB`s
mory
Current
maga-
zine
contents
The user must inform FX "BEL-CDTR" as to whether the search was successful (FX in-
puts "F-LP"=0 and "LADE"=1) or not (FX input "F-LP"=1; "LADE" is irrelevant).
A negative acknowledgement ("F-LP"=1) aborts the load procedure and reenables the
user interface. No tool data is entered in tool memory or in the magazine table.
When the acknowledgement is positive, the magazine location into which the tool is to
be loaded must be specified in FX input parameter "PLNR". The tool data for the first
cutting edge is entered at this location in the magazine table and the relevant data in the
NC’s tool offset memory.
Case 4
If tool management data was loaded and machine data bit "FLR" (loading/unloading with host
computer) is "1", FX "BEL-CDTR" forwards an enable bit to the computer link software to
transfer the tool data to (in the case of "standard" tools) or from (in the case of special-
purpose tools) the host computer (via internal interface data block DB 38; see Section 1.7).
Case 5
When all tool data has been entered in the PLC’s magazine table and the NC’s tool offset
memory, FX "BEL-CDTR" outputs the "W-IN" signal (tool to magazine).
The user must respond with either a positive acknowledgement (FX input "WZIM" (tool in
magazine), i.e. the tool is in the magazine at the location computed during the vacant location
search) or a negative acknowledgement (FX input "FBEL" (load error); the tool could not be
loaded into the relevant location in the magazine).
If the acknowledgement is positive, FX "BEL-CDTR" terminates without reporting an error
after entering the tool data in the interface data block to the computer link software (an
acknowledgement from the host computer is not awaited).
If the user responds with a negative acknowledgement, the tool data is deleted and FX
"BEL-CDTR" terminates with error.
Case 6
FX output "AKT" is "1" during loading, and is set to "0" when loading has been completed.
When an error occurs, loading is aborted ("AKT" remains at "1" for one PLC cycle before
going to "0") and the function block’s error output ("F") is set to "1", thus enabling the error
to be analyzed as soon as it occurs (i.e. when AKT=1 and F=1).
Case 1
During unloading, the SINUMERIK 880 tool management data and/or user data currently stored
in the NC/PLC is to be written back to the code carrier chip.
User data:
The user generates the request as described in "Package 7: Code Carrier, Frame Description"
in a data block (see Section 3.2) whose number is specified in the machine data. The standard
package then forwards the data to the encoding station.
Case 2
The unload dialog is initiated by a positive edge at FX "ENT-CDTR" input "E-WZ" and/or "E-
AW" (e.g. when the operator presses a key at the unloading point). If more than one read/write
station is connected, the user must ascertain which station initiated the dialog and make the
number of that station available to FX "ENT-CDTR".
On the basis of this number, the standard function block can determine which user interface is
assigned to the station (the interface-to-station assignments are specified in the machine data;
see Section 1.8).
Computer
User link
software
DB 128
DB 38 DB 126
UI
input Interface Format
buffer to comp. list
link CT
software data
DB 101/102
FX 15
User
interface Unload via
x code carrier
(x=0 to 31) DB 127
Status
DB 129 DB
UI
output
buffer
Interface
to 880
tool
man.
User
DBs TO
Standard tool manage-
ment FBs me-
mory
Current
maga-
zine
contents
UI = User interface
Case 3:
Case 4
When tool data was unloaded and machine data bit "FLR" (load/unload with host computer) is
"1", FX "ENT-CDTR" forwards an enable signal to the computer link software over an internal
interface (DB 38); the computer link software forwards the tool data to the host computer.
Case 5
The user must delete the tool from the tool management’s magazine table when FX output bit
"PLLO" (delete location) is "1" (this bit remains at "1" for one cycle only). The user must
remember that a tool may not be deleted from the magazine table until the host computer has
been informed (the host computer has reset enable bit D24.2 in DB 38, i.e. has acknowledged)
and the tool has actually been removed from the magazine.
Case 6
During unloading, FX output "AKT" (block executing) is "1". When unloading has been
completed, "AKT" goes to "0".
When an error occurs, unloading is aborted ("AKT" remains at "1" for one PLC cycle before
going to "0") and function block error output "F" goes to "1", thus making it possible to
evaluate an error as soon as it occurs (i.e. when AKT=1 and F=1).
CL/CT interface DB 38
15 14 13 12 11 10 9 8
Byte No. Bit No.
7 6 5 4 3 2 1 0
DL 23
DR 23
DL 24 Loading/
unl. code
carr. in
progress
DW 25
Magazine location number Magazine number
DW 26
Tool number (high)
DW 27
Tool number (low)
DW 28
Duplo number
DW 29
Unassigned
DW 30
Unassigned
DW 31
Unassigned
DB 38 (CL/CT interface)
Load (D 24.0)
Set: By the "Load/unload via code carrier" package to inform the host computer or the
user that a tool has been ”loaded”.
Reset: By Package 5 when the host computer has received all relevant information (1).
Set: By the "Load/unload via code carrier" package when a special-purpose tool was
loaded (i.e. a tool whose cutting-edge specific data is not stored on the code
carrier chip; the host computer
Reset: By Package 5, when loading has been completed. (1)
Set: By the "Load/unload via code carrier" package when a tool was unloaded via code
carrier.
Reset: By Package 5 when the host computer has received all relevant information (1).
Entered by: The "Load/unload via code carrier" package (for special-purpose tools only).
Entered by: The "Load/unload via code carrier" package (for special-purpose tools only).
In the case of "Tool loaded/unloaded", the data record addressed via the magazine and maga-
zine location numbers is forwarded to the host computer. It is up to the user to make sure that
no changes can be made in the magazine complement until the host computer has received all
relevant information.
The tool number and the duplo number are also evaluated when special-purpose tools are
loaded.
_______
(1) In the event of an error, one of the three error bits in DR 2 is set and the error code entered in DW 4 in
fixed-point notation (by the "Computer link" package), see Page 3-8 ”Error messages”.
Package 5 = Computer Link: Tool Dialogs
DB 61:
DW 90 Function number of the first input request
DW 91 Function number of the first output request
DW 92 Number of the user interface (read/write station 1)
DW 93 Number of the user interface (read/write station 2)
DW 94 Number of the user interface (read/write station 3)
DW 95 Number of the user interface (read/write station 4)
DB 131:
DL 00 WZYK: Amount of tool data transferred per cycle
DR 00 TUE: Watchdog timer
DL 01 DBQB: User data block (source, load)
DR 01 DWQB: User data word (source, load)
DL 02 DBQE: User data block (source, unload)
DR 02 DWQE: User data word (source, unload)
The user must initialize only the function number for the first input/output request; the function
numbers for subsequent I/O requests are assigned automatically as listed below.
Allocation of function numbers to request identifiers (MD words, DB 61):
Note carefully:
When configuring these requests, remember that the function numbers of the first input and
first output request must be specified in machine data words DW 90 and DW 91 in data block
DB 61.
All function numbers/identifiers must be configured on the interface module (i.e. the
communications processor) and the user interface must be initialized in DB 99 (assignment
list, Package 4).
DB 61:
DW 92: No. of the user interface for read/write station 1 (which has the ASCII subaddress "1")
DW 93: No. of the user interface for read/write station 2 (which has the ASCII subaddress "2")
DW 94: No. of the user interface for read/write station 3 (which has the ASCII subaddress "3")
DW 95: No. of the user interface for read/write station 4 (which has the ASCII subaddress "4")
Important note:
A user interface number must be configured in DB 61 for each station number initialized in the
"Code carrier: Transfer tool data with address encoding" standard FX function block.
DB 61:
DW 90 = MD No. m+90
DW 91 = MD No. m+91
DW 92 = MD No. m+92
DW 93 = MD No. m+93
DW 94 = MD No. m+94
DW 95 = MD No. m+95
PLC 1: m=2000
PLC 2: m=2100
DB 131:
DW 0 to DW 2 = User must generate and initialize data block on a cold restart (F2.1).
DB 64:
D 23.15 FLR : Host computer available (PLD-MD 70x6.7)(1)
D 23.14 DXQB : User DX (source, load) (PLC-MD 70x6.6)
D 23.13 DXQE : User DX (source, unload) (PLCMD 70x6.5)
These machine data bits are discussed in detail in the sections on FX "BEL-CDTR"/FX "ENT-
CDTR" signals (Sections 3.1 and 3.2).
_______
(1) PLC1: x=4
PLC2: x = 9 (only with SINUMERIK 880/880 GA2)
Example:
If two encoding stations are connected, two user interfaces must be reserved (DB 61, DW 92
to DW 95); in logical consequence, the code carrier requests must also be configured twice in
the input list on the interface module (once for each user interface, where each interface has a
different subaddress in the input list (the subaddress being the number of the read/write station
assigned to the user interface, e.g. "1" and "2").
The addresses at which the various items of SINUMERIK 880 tool management data are
located on the code carrier chip, as well as the formats in which these data items are to be
read out from the chip, are specified in the so-called "Address parameter list".
DB 126:
DW 0: Bit string for user DBs in the magazine table
DW 1: Bit string P00-P15 for the first cutting edge
DW 2: Bit string reserved - must be 0
DW 3: Bit string P00-P15 for additional cutting edge(s)
DW 4: Bit string reserved - must be 0
DW 5: Reserved
DW 6: Reserved
DW 7: Reserved
DW 8: Reserved
DW 9: Reserved
:
Description:
1. P0-P15=P memory numbers in the NC tool memory.
2. Data words 5 to 9 are reserved for future use.
3. Activation bit string for user DBs in the magazine table (DB 126, DW 0:)
The bits in the string for the user DBs (1 to 7) are evaluated only for the first cutting edge,
and indicate which of the user DBs in the magazine table are to be located for subsequent
evaluation in the data record for the first cutting edge via the address parameter list.
DB 126: DW 0
15 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 07 06 05 04 03 02 01
Important note:
The actual number of user DBs to be evaluated must be specified in the machine data.
4. Activation bit string P0 - P15 (DB 126, DW 1/3):
The bits in bit string P0 - P15 for the first cutting edge (DW 1) or the additional cutting
edge(s) (DW 3) indicate which P parameters (tool offset memory) are to be referenced via
the address list in the relevant data records (1st cutting edge, additional cutting edge(s)):
DB 126: DW 1, DW 3
15 0
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
DB 126:
DB 126
DL DR
Conditionally/unconditionally
DW n : Address length
requested address
n=numerical value
Addressing parameters:
1. Conditionally/unconditionally requested address:
0 = Conditionally requested address:
No error is flagged if the address is not on the chip (read) or cannot be stored on
the chip (write).
1 = Unconditionally requested address:
Error abort if the address is not on the chip (read) or cannot be stored on the chip
(write).
The status of this parameter (0/1) coincides with that of address status bit 3 (refer to
"Package 7: Code Carrier Frame Description").
2. Address length:
One byte, value range 0 - 4
The address length specifies the number of address bytes subsequently defined.
3. Address:
Max. 4 bytes, ASCII format
A distinction is made between upper and lower case letters.
4. Format identifier:
1 byte
5 format identifiers:
– 12H = unsigned binary
– 14H = signed binary
– 31H = unsigned fixed-point BCD
– 33H = signed fixed-point BCD
– 40H = ASCII string
5. Format parameter:
One byte;
Length specification (in bytes) only for formats 12H, 14H and 40H; number of decimal
places (in BCD characters/decades) and length specification (in bytes) for 31H and 33H
formats.
Address length:
An address length of 0 means that the addressing data does not exist and will not be
evaluated by the standard software.
Format identifier:
The SINUMERIK’s format requirements are passed to the encoding station in a format
identifier. The encoding station formats the data to these specifications before forwarding it to
the SINUMERIK (load) or writing it to the code carrier chip (unload).
The standard package recognizes five format identifiers for the address parameter list. User
data, however, can be edited in all available formats!
Only format identifiers 12H, 14H, 31H, 33H and 40H may be used to load/unload SINUMERIK
880 tool management data. Any other format would result in an error.
User data, however, can be configured in any available format, and all format identifiers descri-
bed in "Package 7: Code Carrier Frame Description" are permitted. (Information regarding tho-
se format identifiers which have already been implemented must be obtained from the manu-
facturer of the encoding station).
Format parameter:
The table below shows the structure of the format parameter for the various format identifiers:
Format
Bit 7 - 4 Bit 3 - 0
identifier
12H Zero Number of bytes
14H Zero Number of bytes
31H No. of decimal places Number of bytes
33H No. of decimal places Number of bytes
40H Zero Number of bytes
H = hexadecimal
Address:
Jokers (ASCII "?") can be inserted in an address to represent the number of the cutting edge.
When used, a joker always stands for the number of the cutting edge, regardless of whether
the tool has one or more than one cutting edge.
Example:
Radius r? Radius of first cutting edge (r1),
Radius of second cutting edge (r2), and so on.
Wherever the cutting edge number is to be inserted in the address (e.g. geometry data, offset
data, etc.), a joker (ASCII "?") must be written at the corresponding address position in the
address parameter list.
Note:
Please refer to "Package 7: Code Carrier Frame Description" for a detailed description of the
addressing parameters.
5. Tool type
Tool size and tool type must be stored on the chip in the format required by the SINUMERIK
880 tool management:
Tool type: 0 - 9, 10 - 19, 20 - 39
Tool size: 2 BCD decades; number of half-locations in front of/behind the tool holder.
6. Number of cutting edges:
The actual number of cutting edges must be on the chip, and is therefore requested "unconditio-
nally" (error abort if the number of cutting edges is not on the chip).
The format is always 31H (unsigned BCD), the format parameter always 91H
(1 byte=2 places BCD). The value range for the number of cutting edges is 1 to 9 (BCD).
7. Formats for 880 tool management data:
Only formats 12H, 14H, 31H, 33H and 40H may be used to load/unload SINUMERIK 880 tool
management data.
Format parameter
Format No. of DW's
No. of Used for:
identifier decimal in DB 126
bytes
places
12H 0 0-2 PLC magazine table 10 - 61
As can be seen from the table, the P memories (NC tool memory) must always have BCD format
(31H or 33H) in address parameter list DB 126, whereas the tool data from the PLC’s magazine ta-
ble may have only formats 12H, 14H, 31H and 40H (hexadecimal) and are subject to the restrictions
presented in the table (exceptions: tool number, duplo number, tool size, tool type, status and num-
ber of cutting edges must always have format 31H).
Important note:
The preceding conventions and stipulations regarding format identifiers and format parameters must
be observed; failure to do so will result in incorrect formatting. In addition, each value must conform
to the format identifier defined for it (for instance, if a data item from the magazine table is assigned
format identifier 33H, its value may never be FFH).
The "Load/unload via code carrier" function blocks check only to make sure that there is a parame-
ter address list; they do not check the list entries for validity or plausibility (this is the user’s respon-
sibility).
3 FX Data Sheets
1. Description:
The load dialog is initiated via FX input "B-WZ" and/or "B-AW". FX "BEL-CDTR" requests the
relevant data (SINUMERIK 880 tool management data or user data) from the code carrier
system over the specified user interface.
When loading 880 tool management data, the function block forwards the tool size to the
user together with an enable signal for a vacant location search. When the standard package
receives confirmation that a vacant location has been found, it enters the tool data for all
available cutting edges in the magazine table and the tool offset memory (exception: special-
purpose tools).
When loading special-purpose tools without using a host computer, the standard package
enters only the tool number, the duplo number, the tool status info and the tool size in the
PLC’s magazine table and sets the "Tool not enabled" bit. Only the tool type is entered in the
NC’s tool offset memory.
When loading special-purpose tools using a host computer, the tool data is made available to
the computer link software in an internal interface data block and the host computer takes
control of the load procedure.
When he wants to read user data, the user must generate the read request in a data block
specified in the machine data. FX "BEL-CDTR" then requests the data and enters it in input
buffer DB 128.
Additional specifications:
Lib. no.: E88530-B 5614-A- – –
FBs to be loaded: FX16
DBs to be loaded: DBZW-DBx (DBx = last DB in the table)
DB38
Type of call: Unconditional
DBs to be initialized: DB 126 (address parameter list)
Errors flagged: The following errors are flagged when FX "BEL-CDTR" causes a
system stop:
AKKU1 = FX number = 14
AKKU2 = Error code:
1: No DB 126 address list or address list has incorrect length.
Block call:
FX 14: BEL-CDTR
I, BI B-WZ WZGR Q, BY
I, BI B-AW ZK-B Q, BY
I, BI LADE
I, BI F-LP ANWB Q, BI
I, BI WZIM W-IN Q, BI
I, BI FBEL LP-S Q, BI
AKT Q, BI
I, BY MANR F Q, BI
I, W PLNR
I, BY STAT
I, BY LSKP
DB64
D23.15 FLR
D23.14 DXQB
DB131
DL 0 WZYK
DR 0 TUE
DL 1 DBQB
DR 1 DWQB
4. Signal description:
Input signals
Output signals:
F Error
An error occurred while FX "BEL-CDTR" was executing. "F" is reset when a new load or
unload dialog is enabled (when "F" goes to "1", "AKT" remains at "1" for one additional cycle
to give the user time to analyze the error). The error code is in data word DW3 in status data
block DB127.
3–6
aa
aaa
aaaa
aaa
a aa
aaaaa
aaa
a
aaaaaa aaaaa
L.1
aaaaaa aaaaa
NAR
DWQB
Addr.
aaaaaa aaaaa
DBQB:
1 byte
1 byte
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
DWQB+6
DWQB+5
aa
aaaaa
aa
a aaaa
aa
a
aaa
aa
aaa aa
aaa
aaa
length
aaaaaa aaaaa
2 bytes
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaaa aaaaa
Useful data
3 FX Data Sheets
No. of addr.
aaaaaa aaaaa
NAT
aaaaaa aaaaa
1 byte
aaaaaa aaaaa
? bytes
Addr. 1
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Address block 1
DWQB+1
F1
aaaaa
aa
a aaaa
aa
a
length
2 bytes
aa
aaa
aa
aaa aa
aaa
aaa
2 bytes
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Useful data
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaaa aaaaa
3.1 Load via code carrier (FX ”BEL-CDTR”)
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaa
Sub-
aa
a aa
a
addr.
1 byte
aa
aaa
aa
aaa aa
aaa
aaa
Addr.
1 byte
1 stat.
aaaaaa aaaaa
DWQB+2
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaa
L2
aaaaaa aaaaa
Head
1 byte
aaaaaa aaaaa
Addr.
1 byte
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
© Siemens AG 1991
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa stat. aaaa
Structure: User data block (source, load) ("Read" request)
aa
a aa
a
1 byte
? bytes
Addr. 2
aa
aaa
aa
aaa aa
aaa
aaa
DWQB+3
aaaaaa aaaaa
Identifier
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
data in the request, while the second specification is part of the useful data.
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaaa aaaaa
2 bytes
2 bytes
DWQB+4
Info field
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
please refer to "Package 7: Code Carrier, Frame Description" for detailed information.
a
aa
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa
aa
a aaaa
aa
a
Res.
1 byte
aa
aaa
aa
aaa aa
aaa
aaa
stat.
aaaaaa aaaaa
1 byte
aaaaaa aaaaa
Addr. 2
aaaaaa aaaaa
Structure as per the conventions described in "Package 7: Code Carrier Frame Description";
aaaaa aaaa
The first specification is required by the computer link software but does not appear as useful
aaaaaa
a aaaaa
a
6FC5 197-0AB40-0BP0
SINUMERIK 840/880 (PJ)
11.92
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
11.92
aaaaa aaaaa
DW6
DW5
DW0
aaaaa aaaaa
L.1
aaaaa aaaaa
NAR
aaaaa aaaaa
Addr.
1 byte
1 byte
aaaaa aaaaa
DB 128:
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaa
aa
a aaaa
aa
a
aaa
aaa aa
aaa
aaa
length
2 bytes
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
aaaaa aaaaa Useful data
NAT
aaaaa aaaaa
1 byte
aaaa aaaa
© Siemens AG 1991
No. of addresses
? bytes
Addr. 1
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
F1
aaaa aaaa
length
2 bytes
aa
a aa
a
aaaaa aaaaa
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Sub-
addr.
1 byte
aaaaa aaaaa
1 stat
Addr.
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
Head
aaaaa aaaaa
1 byte
1 byte
aaaaa aaaaa
Data 1
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
6FC5 197-0AB40-0BP0
aa
aaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
DW3
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Identifier
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa a
aa
aa
aa
aa
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
aaaaa aaaaa
please refer to "Package 7: Code Carrier Frame Description" for details.
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
DW4
aaaaa aaaaa
data in the request, while the second specification is part of the useful data.
aa
aaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
2 bytes
aaaaa aaaaa
Info field
aaaaa aaaaa
with data
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Structure: Data in input buffer DB 128 (response to "Read user data" request)
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaa aaaa
. . . . further addresses . . .
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
Res.
aaaaa aaaaa
1 byte
aaaaa aaaaa
Structure as per the conventions described in "Package 7: Code Carrier Frame Description";
aaaaa aaaaa
The first specification is required by the computer link software but does not appear as useful
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaa aaaa
3.1 Load via code carrier (FX ”BEL-CDTR”)
aa
a aa
a
3 FX Data Sheets
3–7
In total max. 244 bytes
aa
aaa
aa aa
aaa
aa
aaaaa
a aaaaa
a
3 FX Data Sheets 11.92
3.1 Load via code carrier (FX ”BEL-CDTR”)
Error flags
DB 127:
DR 2 : Error identification bits
DW 3 : Error code in "Load/unload via code carrier" package
DW 4 : Error code in "Computer link" package
Refer to the "Computer Link" package for a list of error codes.
DB 127, DR 2:
1 1 1 1 1 (1)
All other bits are reserved and must not be changed by the user.
_______
(1) These bits remain static ”1”. They must be reset by the user after evaluation.
Code Description
Errors 321 to 337 are flagged by the SINUMERIK 880 tool management.
Important note:
320 must be subtracted from error codes greater than 337; for a description of the resulting
error codes, please refer to the 880 tool management manual, FB139 "DAT-VERT" (may be
required for 880 tool management expansion!).
1. Description:
FX "BEL-CDTR" receives the enable signal when the tool is at the read/write station. Tool data
and/or user data can then be written to the code carrier chip.
In the case of user data, FX "BEL-CDTR" is informed via an input signal and the data made
available to the function block. The function block itself handles only communications with the
encoding station.
In the case of tool data, the data for the various cutting edges is read out and transferred to
the encoding station. The unload procedure is regarded as complete when the read/write
station acknowledges.
2. Additional specifications:
Lib. no.: E88530-B 5615-A- – –
FBs to be loaded: FX14, FX16
DBs to be loaded: DBZW-DBx (DBx = last DB in the table)
DB 38
Type of call: Unconditional
DBs to be initialized: DB 126 (address list)
3. Block call
FX 15: ENT-CDTR
I, BI E-WZ ANWB Q, BI
I, BI B-WZ PLLO Q, BI
AKT Q, BI
I, BY MANR F Q, BI
I, BY PLNR
I, BY STAT
I, BY LSKP
I, BY ZK-E
DB64
D23.15
D23.13 FLR
DXQE
DB131
DL 0 WZYK
DR 0 TUE
DL 2 DBQE
DR 2 DWQE
4. Signal description
Input signals
Output signals
A tool must not be deleted in the magazine table until the host computer has been in-
formed (when the host computer has reset enable bit D24.2 in DB38, i.e. has ack-
nowledged) and the tool has actually been removed from the magazine.
F Error
An error occurred while FX "ENT-CDTR" was executing. "F" is reset when a new load or un-
load dialog is enabled (when an error is detected, i.e. when "F" is set to "1", "AKT" remains
at "1" for one additional cycle to allow the user to analyze the error). The error code is in data
word DW 3 of status data block DB 127.
The error codes are described in detail in FX14 "BEL-CDTR".
3–14
aaaaa aaaaa
L.1
aaaaa aaaaa
NAR
DWQB
Addr.
DBQE:
aaaaa aaaaa
1 byte
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
DWQE+6
DWQB+5
aa
aaaa
aa
a aaaa
aa
a
aaa
aaa aa
aaa
aaa
length
aaaaa aaaaa
2 bytes
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
Useful data
3 FX Data Sheets
aaaaa aaaaa
NAT
aaaaa aaaaa
1 byte
aaaaa aaaaa
No. of addresses
? bytes
Addr. 1
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
F1
DWQB+1
aaaa
aa
a aaaa
aa
a
length
2 bytes
2 bytes
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
3.2 Unloading via code carrier (FX ”ENT-CDTR”)
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa a
aa
aa
aa
aa
stat.
aa
a aa
a
1 byte
aa
aaa
aaa aa
aaa
aaa
Addr. 1
aaaaa aaaaa
DWQB+2
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Subaddr.
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaa aaaa
Data 1
? bytes
aaaaa aaaaa
no.
aaaaa aaaaa
Head
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
© Siemens AG 1991
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Description"; please refer to these conventions for details.
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Structure: User data block (source, unload) ("Write" request)
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Identifier
a
aa
aa
aa
aa a
aa
aa
aa
aa
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
with data
aaaaa aaaaa
2 bytes
aaaaa aaaaa
Info field
aa
aaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaa aaaa
. . . . further addresses . . .
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
The first specification is required by the computer link software but is not part of the useful
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Res.
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
The structure must accord with the conventions presented in "Package 7: Code Carrier Frame
aaaaa aaaaa
6FC5 197-0AB40-0BP0
aaaaa aaaaa
aaaaa
a aaaaa
a
In total max. 224 bytes
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
12.91
aaaaa aaaaa
DW6
DW5
DW0
aaaaa aaaaa
L.1
aaaaa aaaaa
NAR
aaaaa aaaaa
Addr.
1 byte
1 byte
aaaaa aaaaa
DB 128:
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aa
aaaa
aa
a aaaa
aa
a
aaa
aaa aa
aaa
aaa
length
2 bytes
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
aaaaa aaaaa Useful data
NAT
aaaaa aaaaa
1 byte
aaaa aaaa
© Siemens AG 1991
No. of addresses
? bytes
Addr. 1
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
F1
a
aa
aa
aa
aa a
aa
aa
aa
aa
length
2 bytes
2 bytes
aa
a aa
a
aaaaa aaaaa
aaaaa aaaaa
stat
aaaaa aaaaa
1 byte
aaaaa aaaaa
Addr. 1
aaaaa aaaaa
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Subaddr.
Data 1
aaaaa aaaaa
? bytes
no.
aaaaa aaaaa
Head
aaaaa aaaaa
1 byte
6FC5 197-0AB40-0BP0
aa
aaaa
aa
a aaaa
aa
a
aaa
aaa aa
aaa
aaa
Description"; please refer to these conventions for details.
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
DW3
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
1 byte
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Identifier
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaa aaaa
data, while the second specification is actually part of the useful data.
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
DW4
a
aa
aa
aa
aa a
aa
aa
aa
aa
aa
aaaaa
aaa
a aa
aaaaa
aaa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
with data
2 bytes
aaaaa aaaaa
Info field
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
Structure: Data in input buffer DB128 (response to "Write user data" request)
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
a
aa
aa
aa
aa
a a
aa
aa
aa
aa
a
aaaaa aaaaa
. . . . further addresses . . .
aa
aaaa
aa
a aaaa
aa
a
a
a
aa
a
aa
aaa
a
aa
a
a
aa
a
aa
aaa
a
Res.
aaaaa aaaaa
If data could not be written because it was not on the chip or because there was not enough
1 byte
aaaaa aaaaa
The first specification is required by the computer link software but does not appear as useful
aaaaa aaaaa
The structure must accord with the conventions presented in "Package 7: Code Carrier Frame
a
aa
aa
aa
aa a
aa
aa
aa
aa
3.2 Unloading via code carrier (FX ”ENT-CDTR”)
aa
a aa
a
3 FX Data Sheets
3–15
aa
aaa
aaa aa
aaa
aaa
3 FX Data Sheets 12.91
3.3 Subroutine (FX ”UP-CDTR”)
2. Additional specifications
Lib. no.: E88530-B 5616-A- – –
FBs to be loaded: None
DBs to be loaded: None
Type of call: "UP-CDTR" is called by both FX "BEL-CDTR" and FX "ENT-CDTR"
DBs to be initialized: DB126 (address list)
Error flags: The following errors are flagged when FX "UP-CDTR" initiates a
system STOP:
AKKU1 = FX number = 16
AKKU2 = Detailed error code
1: Invalid magazine number
2: Invalid station number (1 - 4)
3: Invalid user interface (0 - 31)
_______
1) The block length varies according to the version.
2) The library number varies according to the control type.
5 Application
1. Prerequisites:
Package 1 ("SINUMERIK 880 Tool Management") has been loaded into the PLC and
FB139 ("Data distributor for 880 tool management") is invoked unconditionally in every
cycle.
2. Configure requests for "Load/unload via code carrier" (see Sections 1.8 and 1.10).
3. Initialize machine data words (see Section 5.2).
4. Load package 7 ("Code Carriers: Transfer Tool Data with Address Encoding") into the
same PLC as the tool management standard function blocks.
5. Generate and load address parameter list DB126.
6. Initialize FX14 "BEL-CDTR" and FX15 "ENT-CDTR" as per the machine configuration.
7. Link FX14 and FX15 into the user program and execute a cold restart (RESET). Standard
blocks FX14 and FX15 must be invoked unconditionally in every cycle.
PLC MD DB 61 DW Description
:
2x90 90 Function number of the 1st input request
2x91 91 Function number of the 1st output request
2x92 92 User interface number (station 1)
2x93 93 User interface number (station 2)
2x94 94 User interface number (station 3)
2x95 95 User interface number (station 4)
:
x=0 : PLC1
x=1 : PLC2 (only for SINUMERIK 880/880 GA2)
DB131 Description
Note:
DB131 is used as data block for the machine data words required for package 7. The user
program must generate DB131 and initialize data words 0 - 2 on a cold restart (F2.1).
PLC MD DB 64 DW Description
:
m+23 23 Bit 15: Host computer available
Bit 14: DB/DX (source, load)
Bit 13: DB/DX (source, unload)
Bit 12 - 0: Unassigned
:
m = 7000 : PLC1
m = 7050 : PLC2 (only for SINUMERIK 880/880 GA2)
PLC MD:
x = 0 : PLC1
x = 1 : PLC2 (only for SINUMERIK 880/880 GA2)
5.3 Example
Assumptions:
Package 1 in PLC1
Package 7 in PLC1
Package 1: SINUMERIK 880 tool management
Package 7: Code carriers: Transfer tool data with address encoding
Stipulations:
1. Only one encoding station (read/write station) is connected. The user interface number
is 1.
2. There is only one magazine (magazine 1).
3. The user should have the option of reading user data (but no 880 tool management data)
from and writing it to the chip.
The "Read" request is to be generated in DB230, the "Write" request in DB231. These
data blocks are discussed in detail in the following.
The user can read 880 tool management data and/or user data from or write it to the code
carrier chip on a positive signal edge at FX input "B-ZW" and/or "B-AW" or at FX input
"E-ZW" and/or "E-AW".
NC MD:
MD 13 16 Number of P memories
MD 210 1 Number of TO areas
MD 211 1 TO area1 beginning D no. = 1
MD 212 0 TO area 2 beginning D no. = . . .
: :
MD 226 0 TO area 16 beginning D no. = . . .
PLC MD:
ADDRESS LIST
PD–TYP: CODETR
LPAR Dest./abs. INT.NO. Data block Data word Coord. flag Command
CODE 1 1 1 1 AD
HYBRID LIST
I 80 R CB 2 13 1 1 CODE CARRIER
I 81 T CI 2 13 1 1 CODE CARRIER
I 82 T CB F 2 13 1 1 CODE CARRIER
I 83 R CI F 2 13 1 1 CODE CARRIER
O 80 T CB 2 13 1 1 CODE CARRIER
O 81 R CI 2 13 1 1 CODE CARRIER
INPUT LIST
OUTPUT LIST
DB99:
: : : :
DW 5 P A
DW 6 K 7
UI 1 DW 7 C 0
DW 8 D E
DW 9 11
: : : :
Description:
User interface 1 is configured as follows:
DB 99: DW 5,6: Log. source "PAK7" (ASCII)
DW 7, 8: Log. destination "CODE" (ASCII)
DW 9: Receiver 11 (HEX.)
(e.g. 1st interface module = CP315)
Offset 1: P memory 05
Requested conditionally
Address: ”D0?1”
Format: BCD, fixed-point, signed
4 Bytes (8 positions, 3 decimal places)
Offset 2: P memory 06
Requested conditionally
Address: "L0?1"
Format: BCD, fixed-point, signed
4 bytes (8 positions, 3 decimal places)
Offset 3: P memory 07
Requested conditionally
Address: "R0?1"
Format: BCD, fixed-point, signed
4 bytes (8 positions, 3 decimal places)
Tool life
(remaining): P memory 11
Requested conditionally
Address: "R"
Format: BCD, fixed-point, signed
3 bytes (6 positions)
Tool life
(warning limit): P memory 12
Requested conditionally
Address: "W"
Format: BCD, fixed-point, unsigned
2 bytes (4 positions)
Feed: P memory 14
Requested conditionally
Address: "s"
Format: BCD, fixed-point, unsigned
2 bytes (4 positions, 2 decimal places)
DB126:
General section:
User DB: 7 6 5 4 3 2 1
15 07 06 05 04 03 02 01 00
DW 0: KM 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Activation bit string for user DBs 1 to 7
P15 P00
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
DW 1: KM 0 1 0 1 1 1 0 0 1 1 1 1 1 1 1 0
Activation bit string P00 - P15 for the first cutting edge
P15 P00
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
DW 3: KM 0 0 0 0 0 0 0 0 1 1 1 1 1 1 0 0
Activation bit string P0 - P15 for additional cutting edge(s)
DW 2: KH . . . 0 . . . Reserved
DW 4: KH . . . 0 . . . Reserved
DW 5 .. 9: KH . . . 0 . . . Reserved
DB230
DB231:
Example: Program
Load/unload tools via code carrier
Signal descriptions:
FY 200: Magazine number
FW 208: Magazine location
FY 202: Number of the encoding station
FY 203: Number of the read/write head
FY 204: Status info for unload
OB 1
PB 119 FB 139
DAT-VERT
PB 120 FX 14
BEL-CDTR
FX 15
ENT-CDTR
OB 20
PB 121
OB 1
SEGMENT 1
:
: JU PB119 PACKAGE 1: DATA DISTRIBUTOR
: JU PB120 PACKAGE 7: CODE CARRIER
:
: BE
OB 20
SEGMENT 1
:
: JU FB121 INITIALIZE MD/DB131
:
: BE
PB119
SEGMENT 1
:
: JU FB139 DATA DISTRIBUTOR FOR ENTERING
NAME : DAT-VERT DATA IN AND FETCHING DATA FROM
: THE 880 TOOL MANAGEMENT’S
: BE DYNAMIC INTERFACE DBs
PB121
SEGMENT 1
:
: JU FB11 INITIALIZE DB131:
NAME : EINR-DB DB FOR MACHINE DATA WORDS
DBAN : KY 131,1
DWNR : KF +2
DBTY : KS DB
:
: C DB131 MD WORDS:
: L KY 4,1 WZYK=4 (AMOUNT TOOL DATA/CYCLE)
: T DW 0 TUE=1 (TIMER FOR PACKAGE 7)
: L KY 230,0 DBQB=230 (USER DATA DB LOAD)
: T DW 1 DWQB (USER DATA DW LOAD)
: L KY 231,0 DBQE=231 (USER DATA DB UNLOAD)
: T DW 2 DWQE=0 (USER DATA DW UNLOAD)
:
: BE
PB120
SEGMENT 1
:
: L KB 1
: T FY 200 MANR=1
: T FW 208 PLNR=1
: T FY 202 STAT=1
: T FY 203 LSKP=1
: L KB 7
: T FY 204 Z-KE=7
:
: =======================
: DO FX 14 LOAD VIA CODE CARRIER
NAME : BEL-CDTR =======================
B-WZ : I 14.0 LOAD TOOL DATA
B-AW : I 14.1 LOAD USER DATA
LADE : I 14.2 TOOL DATA IN MAGAZINE TABLE
F-LP : I 14.3 ERROR DURING VACANT LOCATION SEARCH
WZIM : I 14.4 TOOL IN MAGAZINE
FBEL : I 14.5 LOAD ERROR
MANR : FY 200 MAGAZINE NUMBER
PLNR : FW 208 MAGAZINE LOCATION NUMBER
STAT : FY 202 NUMBER OF THE ENCODING STATION
LSKP : FY 203 NUMBER OF THE READ/WRITE HEAD
WZGR : QB 5 TOOL SIZE
ZK-B : QB 6 STATUS INFO FOR LOAD
ANWB : Q 4.2 RECEIVE DATA IN DB128
WZ-IN : Q 4.5 TOOL IN MAGAZINE ???
LP-S : Q 4.4 ENABLE FOR VACANT LOCATION SEARCH
AKT : Q 3.0 BLOCK EXECUTING
F : Q 4.0 ERROR
:
:
: =======================
: DO FX 15 UNLOAD VIA CODE CARRIER
NAME : ENT-CDTR =======================
E-WZ : I 14.6 LOAD TOOL DATA
E-AW : I 14.7 UNLOAD USER DATA
MANR : FY 200 MAGAZINE NUMBER
PLNR : FW 208 MAGAZINE LOCATION NUMBER
STAT : FY 202 NUMBER OF THE ENCODING STATION
LSKP : FY 203 NUMBER OF THE READ/WRITE HEAD
ZK-E : FY 204 STATUS INFO FOR UNLOAD
ANWE : Q 4.3 RECEIVE DATA IN DB128
PLLO : Q 4.6 DELETE LOCATION
AKT : Q 3.1 BLOCK EXECUTING
F : Q 4.1 ERROR
:
:
: BE
6 Configuring Lists
The next several pages contain the configuring data for the address parameter list (based on
the tool data record structure used by Mercedes-Benz): . Among other things, the T number is
addressed via the parameter ”TN” and is limited to 6 places.
General section:
User DB: 7 6 5 4 3 2 1
15 07 06 05 04 03 02 01 00
DW 0: KM 0 0 0 0 0 0 0 0 0
Activation bit string for user DBs 1 to 7
P15 P00
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
DW 1: KM
Activation bit string P00 - P15 for first cutting edge
P15 P00
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
DW 3: KM 0 0
Activation bit string P00 - P15 for additional cutting edge(s)
DW 2: KH . . . 0 . . . Reserved
DW 4 .. 9: KH . . . 0 . . . Reserved
Basic Principles 2
Frames 3
Frame Sequences 4
Closing Remarks 5
Appendix 6
12.91 1 Overview
1 Overview
General remarks:
Tool data carriers affixed to the tools or tool holder are used for automatic loading/unloading of
computer-controlled machine tools. Tool-specific information such as geometry data, and
factory-related data such as the machine number, is stored on these data carriers.
Daimler Benz has submitted a proposal to DIN for standardizing data volume, data distribution
and addressing on the data carrier. This proposal is based on the data volume required at
Daimler Benz, and is already being used by Daimler in their automated manufacturing plants.
Data is read from/written to the data carriers via encoding stations, which in turn are connected
over serial interfaces to the CNC. Secure data link protocols are used for data interchange
between encoding station and CNC.
2 Basic Principles
The diagram below provides a rough overview of how data is passed from the code carrier
system’s evaluator to the Sinumerik 880 and vice versa.
Data is interchanged over the active RS 232 C (V.24) interface. Please refer to the relevant
computer link software manual(s) for details on configuring the interface module.
The Sinumerik 880 system and the code carrier system interchange data according to specific
rules. In addition to the procedure, the requests/responses must conform to prescribed
conventions.
Max. 8 read/
write heads
.........
Hardware signal
3964R/LSV2
for load/unload
line procedure
PLC I/O CP
Active RS 232 C
(V.24) interface
Multi-port
RAM
NC COM
2.2 Procedure
The active RS 232 C (V.24) interface assembles the data in the form required by the relevant
procedure. The 3964R or LSV2 procedure is used for the link to the code carrier system.
The data frame consists of a procedure-specific header and the data.
Please refer to the applicable user’s guide for detailed information on the line procedures.
The frame length in bytes (in hexadecimal format) precedes the frame identification.
The length is computed by adding the number of bytes required for frame identification and
error code (always 10) and the number of bytes of useful data (max. 244* bytes).
A frame may therefore have a maximum length of 254 bytes.
Identification characters
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
aaaaaa
a
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
1 2 3 4 5 6 7 8
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
aa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
Command identifier
Error identifier
Subgroup identifier
Localization identifier
_______
* Some code carrier systems are limited to 224 bytes.
The following conventions apply as regards rejection of frames and error codes:
A spaceholder is reserved in all frames for an error code (fnr). The space for an error code is
located between the frame identification and the useful data, and comprises two bytes (bytes
11 and 12).
The error code is in word format (fixed-point; positive values only; value range 0 to 9999
decimal = 0 to 270F hexadecimal).
An "F" as sixth character in the frame identification identifies an error frame. When a so-called
F frame is transmitted, the error code is entered in one or more specific data areas to enable
error analysis. When the sixth character in the frame identification is a space (or blank), the
error code must always be zero.
Every frame can be returned to the transmitter with an "F" as sixth character in the frame
identification (i.e. frame rejected), but a frame with an "F" identifier is not retransmitted as
error frame.
The function blocks for loading and unloading via code carrier require that the function
numbers for the code carrier requests be stored in machine data words (DB61, DW90/91).
Function numbers need be configured only for the first input and the first output request. Each
subsequent input and output request is assigned the next higher function number. A
subaddress must also be configured (see Section 3).
Assignments:
DB61/DW90: 1st input request = function no. ”n”: R_CB__
2nd input request = function no. ”n+1”: T_CE__
3rd input request = function no. ”n+2”: T_CB_F
4th input request = function no. ”n+3”: R_CE_F
DB61/DW91: 1st output request = function no. ”k”: T_CB__
2nd output request = function no. ”k+1”: R_CE__
k and n are numerical values (as per the configuring data on the interface
module)
_ represents a blank or space
a
a
a
a
aaaaaaaaaaaaaaaaaaa
a
a
a
a
a
aaaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
When configuring these requests, it is important to make sure that the
a
a
a
a
a
a
a
a
a
a
a
a
aaaaaaaaaaa
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
function numbers of the first input/output request are entered in the
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
aaaaa
a
a
a
a
a
a
a
a
a
a
a
machine data DB61, DW90 and DW91 .
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
a
21
18
aaaaaaaaaaaaaaaa aaaaaaaa
3.1
aaaaaaa
first.
Byte
12.91
aaaaaaaaaaaaaaaa aa
a
Byte
L. 1
Byte
aa
aaa
aa
aa
aa
aaa
Res.
aaaaaaaaaaaaaaaa aaaaaaaa
edge).
Addr.
aaaaaaaa
station.
1 byte
1 byte
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaa
10 bytes
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaa aaaaaaa
aa
a
error code
aaaaaaaaaaaaaaaa aa
aaa
aa
aa
aa
aaa
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
© Siemens AG 1991
aaaaaaaaaaaaaaaa aaaaaaaa
Identification and
aaaaaaaa
?
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaa
Addr. 1
aaaaaaaaaaaaaaaa aa
a
19
aa
aaa
aa
aa
aa
aaa
11
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
F1
NAR
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
1 byte
aaaaaaa
length
aaaaaaaaaaaaaaaa aa aa
a
aaa
aa
aa
aa
aaa
2 bytes
the encoding of the data carrier.
aaaaaaaaaaaaaaaa aaaaaaaa
2 bytes
the data into the relevant format.
aaaaaaaa
Address block 1
Useful data
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaa
20
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaa
stat.
NAT
No. of addr.
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaa
1 byte
1 byte
aaaaaaaaaaaaaaaa aa
a
Addr. 1
aa
aaa
aa
aa
aa
aaa
13
aaaaaaaaaaaaaaaa aaaaaaaa
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa a
aa
aa
aa
aa
aa
aa
aa
a
1 byte
aaaaaaaaaaaaaaaa aa
aaaaaaa
aa
a
aaaaaaaaaaaaaaaa aaa
aa
aa
aa
aaa
Subaddr.
L. 2
aaaaaaaaaaaaaaaa
Format: (not including the frame length specification)
Addr.
aaaaaaaaaaaaaaaa
1 byte
6FC5 197-0AB40-0BP0
aaaaaaaaaaaaaaaa
14
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
"Read" request: CNC encoding station
1 byte
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
Head no.
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
?
aaaaaaaaaaaaaaaa
Addr. 2
15
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
1 byte
aaaaaaaaaaaaaaaa
Identifier
F2
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
2 bytes
aaaaaaaaaaaaaaaa
16
Address block 2
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
2 byte
aaaaaaaaaaaaaaaa
Info field
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
stat-
One cycle is required for each cutting edge (i.e. one request and one response per cutting
aaaaaaaaaaaaaaaa
1 byte
The SINUMERIK processes some tool data in BCD, some in fixed-point, and some in ASCII
Addr. 2
aaaaaaaaaaaaaaaa
format. The objective was to have the encoding station, rather than the SINUMERIK, convert
A dialog was therefore implemented between the SINUMERIK and the encoding station which
aaaaaaaaaaaaaaaa
In all SINUMERIK-encoding station dialogs, the high-order bytes of data words are transmitted
3.1 "Read" request: CNC encoding station
The SINUMERIK always takes the initiative in a dialog by forwarding a request to the encoding
takes into account the SINUMERIK’s data processing and addressing characteristics as well as
aaaaaaaaaaaaaaaa
3 Frames
3–1
aaaaaaaaaaaaaaaa
3 Frames 11.92
3.1 ”Read” request: CNC encoding station
..................................................
Subaddress:
The subaddress is used to identify one of the up to four encoding stations which can be
connected to the SINUMERIK over the CP315/373’s serial interfaces.
Format: 1 byte ASCII
Value range: 1 to 4 (ASCII)
The subaddress must be configured in the input lists on the interface module (CP). If more
than one encoding station is interfaced, the frames for each station must be configured with
the relevant subaddress (subaddress = number of the encoding station, an ASCII value
between 1 and 4) in the input lists on the interface module (also refer to Package 7: "Code
Carriers, Transfer Tool Data with Address Encoding").
Head number:
Each encoding station may be equipped with up to eight read/write heads. The head number
identifies one of the encoding station’s read/write heads.
Format: 1 byte BCD
Value range: 1 to 8
Identifier:
The identifier specifies the tool data record to be used by the encoding station.
Character for tool data record as per DIN proposal: "D"
Format: 1 byte (ASCII)
Info field:
The 16-bit info field is used to return information on events which require no error frame, as an
error frame would abort the dialog.
The codes are established by the manufacturer of the encoding station!
Format: 2 bytes (hexadecimal)
Reserve:
This byte is held in reserve for future expansion.
Addr. x (address):
The address specification refers to the addresses used in the tool data record as per the
Daimler Benz standardization proposal.
Format: Max. 4 bytes ASCII (for SINUMERIK)
Address status:
Eight-bit address status. For descriptions of the individual bits, please refer to Section 3.8.
Format: 1 byte (bit pattern)
F . . : (Format)
The data format required by the SINUMERIK is forwarded to the encoding station in a format
description field comprising a format identifier and a format parameter (see Section 3.7 for
details).
The encoding station formats the data as per these specifications and forwards it to the
SINUMERIK.
Format: 2 bytes (hexadecimal)
18
3–4
3.2
aaaaaaaaaaaaaaaa
Byte
Byte
aaaaaaaaaaaaaaaa
Res.
aaaaaaaaaaaaaaaa
3 Frames
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
21
aaaaaaaaa aaaaaaaaaaaaaaaa
Byte
L. 2
L. 1
aa
aaa
aa
aa
aa
aa
aaa
aaaaaaaaa aaaaaaaaaaaaaaaa
Addr.
Addr.
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
Frame identification
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aa
aaaaaaaa
aa
a aaaaaaaaaaaaaaaa
aaa
aa
aa
aa
aa
aaa
19
aaaaaaaaa aaaaaaaaaaaaaaaa
11
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aaaaaaaaa
NAR
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
aaaaaaaaa aaaaaaaaaaaaaaaa
length
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aaaaaaaaa
Addr. 2
Addr. 1
a
aa
aa
aa
aa
aa
aa
aa
aa aaaaaaaaaaaaaaaa
Useful data
aa
aaa
aa
aa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaa
aaaaaaaaa aaaaaaaaaaaaaaaa
20
a
aa
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
F2
F1
aaaaaaaaa
NAT
aaaaaaaaa aaaaaaaaaaaaaaaa
No. of addr.
aa
aaaaaaaa
aa
a aaaaaaaaaaaaaaaa
aaa
aa
aa
aa
aa
aaa
13
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
3.2 Response to ”Read” request: encoding station CNC
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
Format (not including frame length specification):
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
aaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
a
Subaddr.
a
aa
aa
aa
aa
aa
aa
aa
aa
a
stat.
stat.
a
aa
aa
aa
aa
aa
aa
aa
aa
aa
a
© Siemens AG 1991
14
aa
aaa
aa
aa
aa
aa
aaa
Addr. 2
Addr. 1
aaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaa
Data 2
Data 1
15
a
aa
aa
aa
aa
aa
aa
aa
aa
a
fier
a
aa
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaa
aaaaaaaaa
................................................
aa
aaaaaaaa
aa
a
a
a
aa
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a
Response to ”Read” request: encoding station CNC
a
aa
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
aa
a
16
aa
aaaaaaaa
aa
a
a
a
aa
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
aaaaaaaaa
a
Info field
6FC5 197-0AB40-0BP0
SINUMERIK 840/880 (PJ)
12.91
12.91 3 Frames
3.2 Response to ”Read” request: encoding station CNC
Addr. x : (address)
The address specification refers to the addresses specified in the Daimler Benz
standardization proposal.
Format: Max. 4 bytes ASCII (for SINUMERIK)
Note carefully:
The encoding station must transfer the addresses and the associated data for each cutting
edge in the order in which they appear in the "Read" request.
Example:
If the length, diameter and radius (in that order) were requested in the "Read data for first
cutting edge" request, the data appears in the following order in the response frame:
Length cutting edge 1, diameter cutting edge 1, radius cutting edge 1
6. Conditional/unconditional read:
Address status bit 3 = 0/1: Conditional/unconditional read
If the encoding station cannot find a conditionally requested address on the chip, it
responds as described under 2., and does not send an error frame.
If the encoding station cannot find an unconditionally requested address on the chip, it
sends an error frame to the SINUMERIK containing only this address format block
(NAT 0 1, NAR = 0).
The encoding station must observe all conventions listed under points 1-6.
18
3.4
aaaaaaaaaaaaaaaa
Byte
12.91
Byte
Res.
aaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aaaaaaaa
21
and error code
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
© Siemens AG 1991
Byte
L. 2
L. 1
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
Addr.
Addr.
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
Frame identification
19
aa
aaa
aa
aa
aa
aaa
11
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
aaaaaaaa aaaaaaaaaaaaaaaa
NAR
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aaaaaaa
length
aa
aaa
aa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
Addr. 2
Addr. 1
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
Useful data
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaa
aaaaaaaa
20
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
F2
F1
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
NAT
No. of addr.
a
aa
aa
aa
aa
aa
aa
aa aaaaaaaaaaaaaaaa
aa
aaa
aa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaa
13
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaa
aaaaaaaa aaaaaaaaaaaaaaaa
Format (not including frame length specification)
aa
aaaaaaa
aa
a aaaaaaaaaaaaaaaa
a
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a aaaaaaaa
Subaddr.
a
aa
aa
aa
aa
aa
aa
aa
a
stat.
stat.
a
aa
aa
aa
aa
aa
aa
aa
a
6FC5 197-0AB40-0BP0
a
aa
aa
aa
aa
aa
aa
aa
a
14
Addr. 2
Addr. 1
aaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
aa
aaa
aa
aa
aaaa
aaa
a
Head no.
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
Data 2
Data 1
aaaaaaa
15
aa
aaa
aa
aa
aaaa
aaa
a
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
................................................
a
aa
aa
aa
aa
aa
aa
aa
a
Identifier
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaa
16
aa
aaaaaaa
aa
a
aaa
aa
aa
aa
aa
aaaaaaaa
a
Info field
3.4 "Write" request: CNC encoding station
3 Frames
3–9
3 Frames 12.91
3.4 "Write" request: CNC encoding station
18
3.5
aaaaaaaaaaaaaaaaaa
Byte
12.91
Byte
Res.
aaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaa
aaaaaaaa
21
and error code
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
© Siemens AG 1991
Byte
L. y
L. x
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
Addr.
Addr.
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
Frame identification
19
aa
aaa
aa
aa
aa
aaa
11
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
aaaaaaaa aaaaaaaaaaaaaaaaaa
NAR
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaa
aaaaaaa
length
aa
aaa
aa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
Addr. y
Addr. x
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaa
Useful data
a
aa
aa
aa
aa
aa
aa
aa
a aaaaaaaaaaaaaaaaaa
aaaaaaaa
20
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
Fy
Fx
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
NAT
No. of addr.
a
aa
aa
aa
aa
aa
aa
aa aaaaaaaaaaaaaaaaaa
aa
aaa
aa
aa
aaaa
aaa
a
aaaaaaaaaaaaaaaaaa
13
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaaaaaaaaaaaa
aaaaaaaa aaaaaaaaaaaaaaaaaa
Format (not including frame length specification)
aa
aaaaaaa
aa
a aaaaaaaaaaaaaaaaaa
a
a
aa
a
aa
a
aa
a
aa
a
aa
aaa
a aaaaaaaaa
Subaddr.
a
aa
aa
aa
aa
aa
aa
aa
a
stat.
stat.
a
aa
aa
aa
aa
aa
aa
aa
a
6FC5 197-0AB40-0BP0
a
aa
aa
aa
aa
aa
aa
aa
a
14
Addr. y
Addr. x
aaaaaaaa
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
Data y
Data x
aaaaaaa
15
aa
a
Response to "Write" request: encoding station
aa
aaa
aa
aa
aa
aaa
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
................................................
a
aa
aa
aa
aa
aa
aa
aa
a
Identifier
a
aa
aa
aa
aa
aa
aa
aa
a
aaaaaaaa
CNC
a
aa
aa
aa
aa
aa
aa
aa
a
a
aa
aa
aa
aa
aa
aa
aa
a
16
aa
aaaaaaa
aa
a
aaa
aa
aa
aa
aa
was not sufficient (if it is not an error frame), the data is sent back in the useful data:
aaaaaaaa
a
Info field
3 = 0: conditionally requested address; it is not an error frame or because the chip capacity
If data could not be written, for example, because they are not on the chip (address status bit
3.5 Response to "Write" request: encoding station CNC
3 Frames
3–11
3 Frames 12.91
3.5 Response to "Write" request: encoding station CNC
2. No error
If no problems occur, the encoding station does not forward an error frame to the
SINUMERIK. The response frame, however, may vary for different situations:
When it was possible to write all data to the chip, the response contains no address data
blocks.
If no addresses with address status bit 3 = 0 (conditionally requested addresses) were
written because they were not on the chip, the encoding station returns their address data
blocks (with address status 0: invalid data).
A code is returned in the info field for evaluation in the SINUMERIK.
3. Error frame:
The error frame contains only the address data block for the address that could not be
written to the chip.
5. Data length:
The length of the useful data referenced by the addresses can change (i.e. if a data item
is longer than the one already on the chip, it is stored as defined; if it is shorter, the
decision as to how it is to be stored is made by the encoding station).
3.7 Formats
The 2-byte "format" field describes the type and length of the data immediately following the
"address status" field. The field is coded in hexadecimal as shown in the table below.
The first byte specifies the format identifier, the second the format parameter.
The high-order byte is transmitted first.
Formats:
(The code carrier manufacturer need implement only the format identifiers shown in bold type.
All other format identifiers are optional; information regarding these format identifiers can be
obtained from the code carrier manufacturer).
Format descriptions:
Note carefully:
The "number of decimal places" specification is always enforced:
If there are fewer decimal places on the chip than requested, the low-order positions are
padded with zeros. If there are more decimal places on the chip than requested, the low-order
positions are truncated.
Format type "DP", i.e. with decimal point, means that the value contains a decimal point; the
number of places after the decimal point is specified via the format parameter (e.g.: 123.45
hexadecimal 123E45). If the number of decimal places is zero, the value does not contain a
decimal point (e.g. 1234 is formatted as 1234, not as 1234E).
Format type "no DP", i.e. without decimal point means that the value does not contain a
decimal point; the number of decimal places it specified via the format parameter (e.g. 123.45
hexadecimal 12345).
In a response to a Read request, the maximum length is replaced by the actual length.
Action bit:
This bit represents a request to the encoding station.
Reaction bit:
This bit represents a reaction from the encoding station.
The action bits are set, where applicable, in the request, and are returned unchanged in the
response.
The reaction bits are zero in a request, and contain information from the encoding station in
the response.
"Read" request:
In a "Read" request, bit 3 indicates whether the address is to be read conditionally (not
mandatory) or unconditionally (mandatory).
The encoding station’s reaction to this bit is described in detail in Section 3.3, points 2 and 6.
"Write" request:
In a "Write" request, bit 3 indicates whether the address is to be written conditionally (not
mandatory) or unconditionally (mandatory).
The encoding station’s reaction to this bit is described in detail in Section 3.6, point 1.
If the address to be read is not on the chip, the encoding station reacts according to address
status bit 2:
2. In all BCD formats, the number of bytes always includes the sign (if any), the decimal
point (if any) and all fillers (fill nibble(s)).
3. Signed BCD formats: If the encoding station does not find a sign when it reads from the
chip, it regards the value read as positive and generates binary 1011 as sign before
transferring the value.
4. The standard package on the SINUMERIK requires primarily formats 12H, 14H, 31H, 33H
and 40H.
5. In floating-point numbers (see BCD formats), the decimal point (which is represented as
binary 1110) may be located anywhere within the number, i.e. a floating-point number may
be a full integer, comprise only decimal places, or comprise an integer portion and decimal
places. The location of the decimal point is specified via the format parameter.
7. The on-chip data length for various addresses may change, depending on the "Write"
requests issued.
9. If an item of data read from the chip is still too long (i.e. if the number of bytes, including
decimal point and/or sign, exceeds the total length specified in the format parameter) after
formatting (in the case of formats with decimal places, for instance, the decimal place
specification is always enforced) and after truncation of any leading zeros, there will be
what is termed a format conflict.
10. In the event of a format conflict, the total length specified for the data item in the format
parameter (e.g. the number of bytes for BCD formats) is sometimes corrected; this is
never done, however, in the case of formats involving decimal places.
11. The "number of cutting edges" for a tool must always be on the chip.
12. As of June 3, 1990, the Daimler Benz tool data record includes addresses P0 to P9 for
control-specific parameters. The tool type within the SINUMERIK 880 system must be
specified in one of these parameters.
13. The encoding station may not exceed the total useful data length of 244 bytes (which
begins with the frame identification/error code) per frame.
14. The encoding station echoes the subaddress, head number and identifier from the request
in its response.
15. The following conventions apply to error frames (error code unequal zero) from the
encoding station:
• In the case of "general" errors (errors which cannot be attributed to a specific address
format (data) block in the Read/Write request, such as syntax errors in the code
carrier’s data string), all address format (data) blocks in the control’s request are
returned in the encoding station’s response (error) frame.
• In the case of "specific" errors (errors which can be attributed to a specific address
format (data) block in the Read/Write request, such as format parameter errors,
unconditional read request for a non-existent address, chip capacity problems and the
like), the encoding station returns only the address format (data) block which caused
the error. The error frame thus contains only one address format (data) block.
The "Identification number and sister tooling ID" and the "Identification number and
tool/workpiece carrier ID" have the same symbolic addresses, as only one identification
number and one ID can be on the chip at any given time.
1. Chip read:
"Read" request:
CNC encoding station
T CB fnr: "Read" request
Negative response to "Read" request (error frame):
CNC encoding station
T CB F fnr: Negative response to "Read" request
Positive response to "Read" request:
CNC encoding station
R CB fnr: Positive response to "Read" request
2. Chip write:
"Write " request:
CNC encoding station
R CE fnr: "Write" request
Negative response to "Write" request (error frame):
CNC encoding station
R CE F fnr: Negative response to "Write" request
Positive response to "Write" request:
CNC encoding station
T CE fnr: Positive response to "Write request"
Error code:
The error code immediately follows the 8 ASCII characters; it comprises one word, and is in
fixed-point notation.
The error code specifies the cause of error ("F frame").
An error frame ("F frame") always results in a dialog abort!
A list of error codes can be found in the Appendix.
4 Frame Sequences
In some cases, more than one frame is required to transfer tool data from the encoding station
to the SINUMERIK. For tools with several cutting edges, for instance, one frame is transferred
for each. In consequence, the encoding station and the SINUMERIK communicate in
request/response cycles called frame sequences; these sequences are described in detail
below.
A sequence, or request/response cycle, always begins with a request from the SINUMERIK to
the encoding station. The encoding station subsequently issues either a positive or negative
acknowledgement, or response.
One frame is required to request or transfer the data for each cutting edge.
In the diagrams for the frame sequences, an arrow indicates the direction. The following
abbreviations are used for the specifications which follow the frame identification and error
code:
FL: Frame length
S: Subaddress
H: Head number
ID: Identifier
I: Info field
R: Reserve
N: Number of addresses
5 Concluding Remarks
The conventions and stipulations described in Package 7, "Code Carriers, Transfer Tool Data
with Address Encoding", Section 2.3 apply as regards data formats for loading and unloading
tool data (i.e. permissible formats for the various items of tool data when using the
SINUMERIK standard package).
A list of other available data formats (primarily for reading and writing user data) must be
obtained from the manufacturer of the code carrier system.
6 Appendix
A list of error codes must be obtained from the manufacturer of the encoding station.