SINUMERIK
System 8
Computer Link
Description
in: 3.86
‘Siemens Aktiengesellschaft
General Section 1
gniemanaue Sexton
ae input a —_ =
Lsvapecede ‘Sach
Messages between NC and
production master computer Section 5
PLC funetion blocks Section 6
Alarms during data
transfer Section 7System 8 (RK) A0385
‘SINUMERIK®-Dokumentation
Key to editions
Up to the present edition, the editions below have been issued.
nthe column ‘alternations’, the chapters are listed which have been altered with respect to the
preceeding edition,
Diskette No.
Edition Order Number Alternations
A0386 E80210744-XA6-7600 1A, 1-4, 24 102-5, 34 10.3.3, 54,
5:3 to 5-8, 5-11 to 5-20, 5.23, 5-25,
5:30, 64, 6-2, 6-4, 6-5, 67, 6-9, 6-11,
731075‘System 8 (RK) 04
Contents
1 General
4.1 Computer link requirements
1.2 NCiproduction master computer interface
1.3. NCIPLC interface
2 ‘System structure
2.1 Computer link functions, System 8
2.2 Functions of NC
2:3 Functions of PLC
3 Operator input
3.1. Operator initiation
3.2 Operator initiation in block-by-block operation (from software version 03)
4 LSV2 procedure
41 Procedure status
42 Control characters used
43 Description of procedure
4.3.1 Data exchange sequence
43.1.1. Poling phase
4.3.1.2 Text transmission phase
4.3.1.3 Termination phase
432 — Monitoring times,
433 Repeats
44 Dataprotection
45 Callsion
0386
Page
4
4
13
14
a4
ant
ant
412
413
414System 8 (RK) o2
81
52
53
534
53.1.4
83.1.2
53.2
53.2.1
53.2.2
533
53.4
5.35
5.3.5.1
5.3.6.2
536
5.3.6.1
5.3.6.2
5.3.63
5.3.6.4
537
5.3.74
5.3.7.2
54
5.41
5.42
5.43
5.44
5.45
5.46
5.47
5.48
5.49
5.4.10
54.11
5.4.12
Messages between NC and production master computer
Message structure
Survey of messages
Message sequences
NC supply with data
Operator initiation
Initiation by production master computer
Re+transmission of NCIPLC data
Operator initiation
Initiation by production master computer
Resetting
Automatic operation
Transmission of status data
NC initiation of transmission
Request for transmission
Faults, alarm signals
Faulted link
Production master computer inoperable
Negative acknowledgement NAK
Data transfer abort
Master computer block by-block operation (trom software version 03)
Operator initiation
Production master computer initiation
Data formats
RePP, RAO, R-ZO, RTE,
RCL
RAL
MST
RST
RBM
2oTDxx, tool data
M-cs.
TDxx, Pex, ROxx
TDD
TOMB, M-ME
RPN
0386
Page
51
51
52
54
54
54
56
56
87
58
59
59
510
B11
511
512
512
512
513
513
519
519
5:20
521
521
5:22
5:23
524
5:26
530
531
5:32
5:32
5:32
5:33
5:33‘System 8 (RK) 03
61
62
63
64
65
66
7
* Functions outside the scope of this description may be able to run in the control.
However. this does not constitute a right tothe funetions in new deliveries and service.
We reserve the right to modify the description on account of technical advances.
PLC function blocks for computer link operation
Survey
Command interpreter
Standard routines.
Data output to production master computer
Input/output of magazine data
Loading and unloading of magazine
‘Alarms during data transfer
0386
Page
64
61
63
65
66
68
610
ra)system 8 (RK) 1-2 A.03.86
1. General
This description explains the functions and operations
of the "Computer Link" option.
As with System 7, System 8 uses the LSV2 procedure for
the computer link, with the exception that transmission
is code~independent.
The operating or programming instructions should be
consulted for the data formats not included in this
description.
The system 8 computer link requires the "2nd interface
for input and output units" and "computer link" options.
1.1 Computer link requirements
The following requirements must be satisfied for System
8 computer interfacing:
- Integrated PLC
- pata transfer either from/to Ist v24 interface or
from/to production master computer, not
simultaneously
- Programs from the production master
computer mugt be entered in the NC memory for
processing
e eransmission of part programs, tool compensations,
zero shifts and machine data from/to the production
master computer in operating mode DATA 1/0 *
* As of software version 03, block-by-block operation
from the production master computer is also
possible (see section 5.3./)system 8 (RK) 1-2 03.85
- Tool compensation, zero shift and machine data can
be fully transmitted
- | "Autocoder" expansion not possible
- When retrofitting the computer link, it must be
ensured that the software versions are compatible.
Any bubble memories must be replaced with C-MOS
memories.system 8 (RK) 1-3 4.03.85
1.2 NC/production master computer interface
Message interchange with the higher-level production
master computer is carried out via the 2nd interface by
means of the secured LSV2 procedure.
The serial interface can be jumpered either as a V24
interface or as a 20mA current loop (see description
"Universal interface for data input/output system
3/system 8").
In contrast to the NC program supply, one character
comprises:
1 start bit
8 information bits
1 optional parity bit (USART parity bit even/odd
and one or two stop bits.
The interface is matched to the production master
computer via machine datum TE N429.System 8 (RK) 1-4 A.03.86
1.3 NC/PLC interface
The NC/PLC interface has been expanded to enable PLC
data to be transmitted via the NC interface to the
production master computer.
“ mitted state. ready
Tape
memory
ready
ba ro. for tnpor menoey | cove ne) | 1908, 150
ste a0 iver foc me) (S051 9h
bw no. for tegut enoey | (PLC ne) | (30M, 180 81
orate sadceer tor inpkt nemoey (PLE NED. 50S
on no. for ontput meory (PLO wc) | 11304, 18081
rcorsce solizeco thighil or output memory (PLEIN) (18081
ne ow an. for onepet memory (PLE AC) | ( *30W, 150)81
49 aweotete cdgcaan (1ov) for output memory (pion) | 15081
* CL = Computer Link
In the case of the PLC 150S the absolute address of the
data block is entered by the PLC in flags F46 and F47 or
F48 and F49.system 8 (RK) 2-1 4.03.86
2. System structure
Fig. 2 shows the system structure.
Data transmission can be triggered at a terminal, at
the NC or by the production computer (PMC) itself.
With terminal input the logic control behaves as with
initiation by the production master computer, i.e, the
Nc does not differentiate between the terminal and
production master computer.
Max. distance NC/ : 300 m for 20 mA interface
50 m for V24 interface
Production Pig. 2: System structure
} master conputer PMC = Production
Master Computer
(PM computer)
0
List BUFFER
NC-FUNCTIONS,
10 UIST PLC
BUFFER FUNCTIONS.
PART NC PLC
PROGRAM STATUS
TOOL INTERACTIVE
OATA INFORMATION
ZERO MAGAZINE
OFFSETS ATA
MACHINE WORKPLBCE
OATA DATAsystem 8 (RK)
2.1
Table 1 (Page 1)
A.
Computer link functions, system 8&
03.86
Functton
Messages from PC or message initiated
to PM
Messages to PC
[Transmit data from PHC to NC
a) Operator intiated
bb) Conputer initiated
b) PRPP (...TE):
a) Operator input via from "DATA re aes
THPP (TE)
MARR
PRPPF
Re-transnit data fron NC to PNC
a) Operator initiated
b) Computer initiated
OPP (
1) Operator input via form "DATA START" TR
») PTPP (...TE):
Block-by-block operation fron PRC
a) Operator initiated
b) computer initiated
a) Dai
»)
RPP.
source "EXT", "NC START*———}—————- ppp
-—P Rw
Transmit error messages to PHC
—————— 7 na
sc, AUC error
Transmit operational indications to PAC
"BMAU = 1"
——$—$—<— ae
Transeit NC program status to PRE
T-sF
NoaU
MCs:
NCW
Jcrange in progran status (form).
[{———+ r-st
Erasing of part prograns by PHC
PR irre
Switch NO to AUT
hit
NAL
Start NC program t
St — >
RST
N-CSF
Load magazine Tocatton
fa) cocputer initiated
b) Operator initiated
la) HM.
Jb) Record T no. at machine
ae
—>—108
lUntoad magazine location
fa) Conputer-pronpted
lb) Overator-prompted
lc) Conputer initiated
) NeME
) Signal “Untoad™ and tol? withdrawn ne
) Tool withdrawn fee
-———R-10-System 8 (RK)
Table 1 (Page 2)
A,03.86
Function
Massages from PHC or messagelative For
intiated to PAC
moseages to PHC
‘Signa? blocked tools
Toot bolcked
[oR T0-S
Transmit pallet no. to PHC
— a
Palette arrive
Read magazine essignment
+ RID
Sie
Reset NC
$e
MCF
Reset ONC interface MCI
t go PMcsystem 8 (RK)
5-3 A.03.86
Messages processed or transmitted by the PLC are
expanded by one character each for faults and
sub-groups.
The possible characters are listed below.
5th Character
6th Character
Fault
sub-group
F: is fed back
to transmitter
as addition
for an
infeasible
message
Blank: all
other cases
=
nn
G: Overall magazine assignment
: Used tools with acknowledgement
E: Individual magazine location
N: Normal tool
: Oversize tool
B: Loading initiated by operator
M: Unloading prompted by computer
F: Unloading prompted by operator
S: Blocked tool
I: Initiated by PLC
C: Fixed location coding
W: Tool in change position
Blank: all other casessystem 8 (RK) 5-4 A,03.86
5.3 Message sequences
All possible message sequences are listed in Tables
3-6. A number of sequences are explained below. For
identifier referencing purposes the identifiers
mentioned in the text are written out again on one
side. The direction is indicated by an arrow.
The following applies:
Left Direction Right
Nc — PMC Nc to PMC
NC —- PMC PMC to NC
5.3.1 NC _supply with data
Data transmission is triggered either
- by the operator, or
- by the PMC itself
5.3.1.1 Operator initiation
Using the Data I/O key the operator can inform
the logic control that data are to be
transmitted by the computer. He can then
specify a program number or identifier via the
NC operator ‘panel, The PLC generates output
TDxx of the message TDxx (Transmit Data:
— xx-identifier).system 8 (RK) 5-5 A, 03.86
Mau
I
2
i
o
4
On the basis of this request to transmit, the
master computer sends the message PRxx (Prepare
Numeric For Reception) with the corresponding
identifier.
If the Nc is ready to receive, it sends the
message M-RR (Mode Ready For Reception).
‘The computer then sends the first NC record with
the message R-xx (x identifier).
If the NC is ready to accept an additional data
block, it informs the master computer of this
requirement by means of message T-NB (Transmit
Next Block).
If the NC is not ready to receive (e.g. during
program processing), it sends telegram PRxxF.
In this way the program is transmitted to the
Nc in successive data blocks of up to 120
characters.
Once transmission has been completed, the
computer sends message T-FD (Transmission
Finished)
If no additional data are available, the
production master computer informs the NC by
means of message M-AU (Mode Automatic) that
"Automatic" mode is to be re-selected. The PLC
acknowledges this selection with message R-ST.
During data transfer to the NC memory the keys
for "selection displays" modes are locked. The
operator can abort transfer only by depressing
the "RESET" key. Message T-BD (Transmission
Break-Down) is then sent to the computer.System 8 (RK) 5-6 4.03.86
oe oe lea
PRxX
5.3.2
Alternatively, message M-IN can be sent if
machine datum N478/bit 6 has been set (as
opposed to message T-BD as in section 5.3.6.1)
Acceptance of the machine data (TE) is dependent
on the position of the service switch. Alarm
553 is displayed when the service switch is
locked,
Initiation by production master computer (PMC)
If the PMC wishes to transmit data on its own
initiative, it sends message PRxx. If the NC is
ready to receive, the PLC prompts the transfer
to DATA I/O mode and output of message M-RR.
The computer then sends the first block with
message R-xx.
All other messages correspond to the sequence
with operator initiation.
Re-transmission of NC/PLC data
Re-transmission of NC data can also be initiated by
- the operator, or
= the PMcSystem 8 (RK) 5-7 A.03.86
5.3.2.1 Operator initiation
In the event of operator initiation, the logic
control is informed by depressing the DATA
I/O key that data are to be transmitted to the
computer.
After the corresponding number has been
RDKX entered a message RDxx (Receive Data) is sent
_ to the computer with a corresponding
identifier. The computer then sends message
pTxx PTxx (Prepare Transmission) with identifier
— (xx).
If the NC is ready for transmission, it
M-RT informs the computer by means of M-RT
aaa (Mode Ready Por Transmission). The computer
then requests the first block with message
‘T-NB T-NB (Transmit Next Block).
ee
The NC/PLC then sends the requested data type
block-by-block.
Roxx Message R-xx with the corresponding identifier
a (xx) is also sent for each additional block as
identification.
PTRXF If the NC/PLC is not ready for transmission,
— it informs the computer with message PTxx?.
The program formats are in accordance with the
programming instructions, Blanks are not transmitted
(except in the identifier). CRLF is sent to terminate
the block.system 8 (RK) 5-8 A.03.86
5.3.2.2
The PMC requests each additional block of up
to 120 characters by means of message T-NB
(Transmit Next Block).
The computer is informed of the end of
transmission with message T-FD (Transmission
Finished).
During data transfer from the NC memory the
keys for "selection displays" modes are
locked. The operator can abort PMC/NC
transfer only by depressing the "RESET" key.
Message T-BD (Transmission Break Down) is
then sent to the PMC.
Alternatively, message M-IN may be sent if
machine datum N478/Bit 6 is set (as opposed to
message T-BD as per item 5.3.6.1).
Initiation by production master computer (PMC)
In the case of PMC initiation this computer
requests NC or PLC to select Data I/0 mode
with message PTxx (Prepare Transmission) with
identifier (xx). Once the PLC has set this
mode, the computer is informed by means of
message M-RT (Mode Ready For Transmission).
All other messages correspond to the sequence
with operator initiation.system 8 (RK) 5-9 A.03.85
5.3.3 Resetting
Resetting of the logic control from the PMC is by
M-CN means of a message with identifier M-CN.
<— The computer link interface is also set to the
initial status. The message acts in the same
way as the "RESET" key on the operator panel.
‘he "RESET" command from the computer only
becomes active when there is no travel command
and when a thread is not being machined.
The command is acknowledged by the NC by means of
R-ST a message with the current status data, R-ST
— > (receive Status) is sent as the identifier.
M-CI With message M-CI only the computer link
€— interface is set to the initial status. this
message can be used, for instance, to
re-synchronise the NC and PMC following computer
failure without interrupting NC machining.
5.3.4 Automatic operation
I£ automatic operation is required without operator,
the Nc Start function must be possible from the PNC.
M-CS This operation can be carried out in the form of
<— __—imessage M-CS (NC Start) to the NC. If this
message is to be effective, "Automatic" mode must
be selected, no program may have commenced and
starting must have been enabled.system 8 (RK) 5 - 10 A.03.85
M-CSE If this is not the case, M-CSF is set to the PMC.
Before NC Start can be authorised, "Automatic"
mode may have to be selected with identifier
M-AU | N-AU.
Switching to "Automatic" is not allowed in
operating modes
Repos
+ Jog
+ Incr.
. Ref.
+ Preset
In these cases message M-CSF is sent to the PMC.
R-ST Messages M-AU and M-CS are acknowledged with
R-ST.
5.3.5 Transmission of status data
The transmission of status data is initiated by the NC
or whenever requested by the PMC. The data intended to
trigger automatic transmission may be specified by
means of a mask.
In order to ensure maximum accuracy when recording the
machine status, the following data are transmitted in
the status message:
- Operating mode
- Sub-mode
- Event
- Program status
- Current machining pointer (as far as 3rd nesting
depth)
- Override position for
. Feed
+ Spindle
+ Rapid traverse (with 8T rapid traverse
compensation if effective)system 8 (RK) 5-1 4.03.86
5.3.5.1 NC initiation of transmission
The transmission of status data is initiated by the NC
only in "Automatic" mode (not with "Single block” or
"pry run") and may be triggered when the following
signals are modified:
- Program start
- Program end
~ moo/MoL
- Feed stop
- Spindle stop
- Automatic interrupted
~ Reset
- Override = 0
Transmission of a mask with message M-ST specifies
which of the signals are to trigger transmission.
5.3.5.2 Request for transmission
With message T-ST the PMC can request the NC to
indicate the current status.
The NC/PLC then issues the following message contents
to the computer:
R-sT |Operating| Sub- | Event+ | Current | Override
mode modes | program | machining | positions
status | pointerSystem 8 (RK) 5-12 A.03.86
5.3.6.2
TDxxF
RDXXP
—
Faults, alarm signals
Faulted link
If the computer link is faulted or
interrupted, causing time monitoring to
respond (see Description of procedure), the NC
attempts periodically to send a message with
identifier T-BD "Link faulted",
Simultaneously an alarm is shown on the NC
display.
"Data transfer" mode is aborted. "Automatic"
mode is not aborted. The alarm can be
acknowledged without affecting machining. as
soon as the link has been cleared, any alarm
is cancelled.
Production master computer inoperable
If the PMC is not ready when requested to
transmit data or accept data, it sends a
message with identifier TDxxP or RDxxF
"Input not possible". Flag bit 45.2 is set at
the NC/PLC interface. The flag is cancelled
with the next message from the PMC (e.g. M/CI
from the computer).system 8 (RK) 5-13 A.03.86
5.3.6.3 Negative acknowledgement NAK
If the NC is no longer ready to receive an additional
message, an acknowledgement is made with NAK after
ENQ. NAK is sent as an acknowledgement if a parity
error (vertical or horizontal parity) has been detected
during the text transmission phase.
If the NC has a transmission request and receives a
negative acknowledgement NAK, it will continue to
attempt to issue the message.
Even after several computer NAKs the NC repeats the
previous message as a function of the number of repeats
specified in TE N477. Only when this value has been
exceeded is alarm 554 given, with no indication on the
display. However, the error flag is set, permitting
evaluation by the PLC.
The NC continues to attempt to make contact with the
computer by sending ENQ and cancels the alarm and error
flag once contact has been established.
5.3.6.4 Data transfer abort
PMC/NC data transfer can be aborted at any time by the
operator by depressing the "RESET" key or by the
computer with message M-CN.system 8 (RK) 5-14 A.03.86
~
= + +
' Process ‘computer! PLC! computer computer! Remarks !
_—. +
' ' : : ‘ toot :
' : : ut : 1 hoot !
Saeanamission ——' PRPPE] =) WAR =——t=) RPP te) THB moot Pott
{of DP, 10, bo. tl hoo. 1 Dt tabort
isoryeas tot 1g pet) TBD pH BY Reana
Inietation fom fi mos root 1
: : in ut : hoo :
' : 4 her —— ee '
: 1 ul ‘ 1: fot '
: ! 16> RPE — : Ho :
' 1 ood ' hot '
+ + 7 — =
Yrcangaisgion en a ! ! snitéacea !
Mectaretece y a 1 tas abover! 1 by dnpue |
‘nes : n ! : ‘aiepiay |
sioeerneer : ST! +> TRE > 11 SBI ang |
fens elat ee : : : : i a ae coacateae
am : ' it ' 1 yStarttkey |
ncansmission 1 PIPBL] ate) HeT== ——tPT-KB tO RPPEI fo !
1 of PPy 0, to : ' hoo :
20, TE to
{ pag; Bae hoe \ hos '
Hinieiatioa TEED | 4 eTepe i hoo '
Narananisaion {ROP 9 PT, + tinietation!
Of PP, TO, ' iG 11 (as above)! §tby inpae
‘Puc; operator to i ! disp. *Br0" !
initiation at! 1 Tf]! +) aver ! fand “pata !
Ne 1 ' aa to tStare™ key ,
' : : ce boot :
+ =
‘ : ' — aes :
‘erasure of ! : "1 Hl ; hoot ‘
Ver NC SP RE HR Te , 4 :
: * : "1 DoF sony
: : y ie — y abort by
‘ : Hy : :
i : 4 —— Hoot !
‘ ' i foot 1
! : 1 > PRUE hoe tm
{] User data
Table 3: Messages for transmitting NC programs and datasystem 8 (RK)
ro
' process ' computer
Request '
Slarne :
Request : TST
Fc states
| Request LR > BBE —— !
operator ! ! : : : :
} Swateh NC to
| AUP
! oe) RSTH
1 " fl
' 1 Sa HE
— at
1 start NC FMCG aoe STE] —) !
| program Hy 7 ; :
: Fy ee > !
‘Transmission i Prompted
of current q by errors
Slaras ' : : ' {in aur
: fl fl : | mode or
daca 1/0
‘transmission i Prompted
| of current ' ! I in ’abr by?
1 NC states ' ' : 1 ONG states
buch az
' ' ' 1 ' a
' : : : ' erg Ho)
prompted by
1 operational
indications,
Transmission
of current
operator and
nessages ' Lparaneter!
1 pBBRAUSIT
Setting of
mask for NC : . i 4 i
States
computer link
1 IneerEace
+ tpt
(] User data
Table 4; Messages affecting NC and status interrogationsystem 8 (RK) 5 - 16 A.03.86
Table 5
! Process ! computer | AC ! computer NC Remarks!
a i —
' ' to a :
' : : it '
! Reading of PISO +) RIG] —) T-TD-8E) +! ' '
1 overall ‘ MW ' ' :
magazine : ' !
‘assignment f 1) TH10F6 > !
‘ : i : ' :
: : ‘orbs ——> ! : !
Pt tt :
: ' (ah | Location |
» daca must,
G ! ‘ 1 not be!
1 Reading of 1H + 1 Tonger
‘etinet,. | AIRE ey emt » t Beet
Jocation characters
1 ' rene eee : '
: : a Hi ' :
: : 14 RE ———> : : t
' Reading of : : ; E
1 magazine 1M > I > THD +! : '
1 Seelganen " Hi ' ‘ '
» goo1s ' ' I ———> ' !
' : HT : ‘ ‘
' : 1) RTD ' : :
[] User data
Table 5: Messages for transmitting magazine and pallet
datasystem 8 (RK) 5-17 A.03.86
ee
! process ‘computer
mith
MiB an
enpty
aoeat ion
‘oa
tmagazine
location:
PHC initiation
specifica:
with RTD
sata
for,
actual ,
toad magazine! ! ! ! inittated by
Tocation; ne | recording T no
operator : 1 (e.g. bar code
thitiaeion at reader) and swite
' roe—0 st magazine
magazine
‘ ata are stored
subsequently iT 1.
already in magazine
Location no
* mages : ‘ funload sian:
1 Toeation: ! ' message i
| computer = ‘ : ‘Bene ae noon
Bronpees : tqithdeayn
fh Initiates by
tgnal
Sthdea:
'unkoad magazine; :
operator-peonpted , i i
Indication
ig given
when pai lot
indication of
pallet number! ' : | reaches
' machining
table
Indication
given when
1 fool se
| blockes :
andication of
' blocked tool no. t
eee
{] User data
Table 6: Messages for loading and unloading tool
magazinesystem 8 (RK) 5-18 A,03.86
, Process 1 pc ' Ne ' computer ‘
Block-by-block
operation;
! operator ! RPPP—E}, 7
ea or ‘
! ! WPPLT !
! : TD !
re: ae
ee a ;
: ; a :
() User data
Table 7: Messages for block-by-block operationsystem 8 (RK) 5-19 A.03.86
5.3.7 Master computer block-by-block operation
(from Software version 03)
5.3.7.1 Operator initiation
After moving the "Data source" switch to the "EXTERNAL"
position, the operator inputs the program number on the
Automatic display.
Program number 0 is not allowed.
The operator gives the NC Start.
Ne Start is not yet relayed to the NC by the PLC.
In the NC display input line the PLC writes the text
PLEASE WAIT: DATA TRANSMISSION
(BITTE WARTEN: DATENUBERTRAGUNG)
The PLC then requests the program number
entered by the operator.
(Read out of current block pointer)
The PLC transmits the program number together
TPPR with message TPPP__ % xxxx to the PMC.
—
RPPP If ready, the PMC sends message RPPP &xxxx to
— the PLC.
TPPPP If the PMC is not ready, it sends message
TPPPF to the PLC. The PLC clears the
input line,,
The PLC checks whether a program start is
M-RW permitted. If so, it sends message M-RW to
me the PMC and transmits NC Start to the NC.system 8 (RK) 5 - 20 A.03.86
RPPPE
—
If NC Start is not allowed, the PLC sends
message RPPPF to the PMC.
Program start is not allowed if the NC is not
in the RESET status (Signal "Progr. running"
= 0 and interface signal 745.5 = 1).
After receiving message M RW the PMC transmits
the first block with message
W PP&XXxxxcCRLFNI...
The message length is limited to 120 characters
of NC data. The transmitted block may contain
several NC blocks, Once the NC has stored the
transmitted block in the NC intermediate
buffer, it requests the next block with message
T NB.
The PMC then transmits the next block with 120
characters.
Once the NC has received the last block, it
requests the PMC with message T NB to
terminate message interchange with T FD.
PMC initiation
The PMC sends message RPPP %xxxx to the PLC.
The PLC checks whether processing is allowed.
If so, the PLC switches the NC to "AUTOMATIC"
mode and sends message M RW to the PMC.
The PLC gives NC Start.
If processing is not allowed, the PLC sends
message RPPPF to the PMC.
See section 5.3.7.1 for remaining sequenceSystem 8 (RK) 5 - 21 A.03.85
5.4 Data formats
5.4.1 R=PP, R-70, R-Z0, R-TE
The user data in the messages have the same format as
with tape input (see System 8 Programming
Instructions). The data are transmitted in blocks of
120 characters each.
Examples:
% 120 LF* Nl G90
j-———__—_ max. 120 characters —_____+|
% SP LF* L12300 LF Nl ...
R-TO % TO LF* G92 DOl ...
R-Z0 & 20 LF* G59 NI...
tax, “120 charavices ——_-|
R-TE % TE LF* N100 S...
_ max. 120 characters |
* Character sequence CR LF is transmitted.system 8 (RK) 5 - 22 A.03.85
The erasing of memory areas or individual data via the
PMc is performed by means of identifier % CL LF* at
the start of the message or tape.
Tape code Meaning
% CL LFt Tape identifier: erase
% 1234 Let Part program $ 1234 erase
% 1 $9999 Le Part program $1 to $9999 erase
L 1000 LF* Subroutine L10 erase
L 1000 499900 LF*] Subroutines L10 to L999 erase
M30 or MO2 LF* End identifier M30 or M02
Main programs and subroutines can be erased in any
sequence,
Example:
R-CL % CL LF*] $1 LF* | 15500 LF*
e100 In1000 L10000
e200 LE* LE*
Erase Erase | Erase Erase Erase
programs program] subrouting program 110 to
1 55 8100 td L100
$200
115000 LF*
Erase L150
M30 or MO2 LF*
End of erasure
block
* Character sequence CR LP is transmitted.system 8 (RK) 5 - 23 4.03.86
5.4.3 ReAL
Nc and PLC alarms separated by "LF" are indicated. The
individual alarms are separated by a "comma".
In the event of PLC fault messages, the category and
type of fault are separated by means of a "full stop".
Example: NC alarms : 102; 112; 104
PLC alarms: 17.12; 5.20; 23.127
R-AL--102, 112,104 LF 17.012, 05.020, 23.127
A maximum of 12 NC alarms and 6 PLC alarms are
transmitted. In the absence of alarms only the
identifier is transmitted.system 8 (RK) 5
Form for automatic transmiss.
Message: M-ST abcd
Coding of abcd
Meaning
Program start
Program end
a | M00/MO1
Feed stop
‘Spindle stop
Automatic interrupted
by Reset
Override 0
‘Automatic On
Feed On
© spindle on
*: has not been used to date
24
ion
Bit
ocoo
coco
coco
eooo
coco
coco
ecco
of NC states
combination
Hooo
choo
eore
2
oroe
oroo
coro
A.03.85
coor doorsystem 8 (RK) 5 - 25 A.03.86
Fundamentally the following applies:
- "1" signal at appropriate position signifies:
Automatic transmission is being performed.
- If no message N-ST is sent, all "events" are used for
automatic transmission (initial status of PLC).
Example:
The masking is intended to ensure that automatic
transmission takes place with all events, except for
MOO/MOi and override = 0.
The following message must then be issued:
M-ST--;722(ASCII)
4D20535420203B37 3F 3 (hexa)system 8 (RK) 5 - 26 A.03.85
The status messages are transmitted as ASCII
characters. The tables below show the corresponding
hexadecimal code.
The appropriate message is entered in bits 0-3.
Bit pattern 0011 is entered in bits 4-7.
Bit 7654 3210
TO11 status messages
Operating mode Bit 0-3 Hex code
Automatic ooo1 31
MDI 0010 32
DATA 1/0 oo11 33
Jog 0100 34
Incr. o1o1 35
Repos o1l0 36
Ref. 011i 37
Preset 1000 38
Sub-mode Bit 0-3 Hex code
None 000 30
MOL 001 31
Single block oo10 32
Deletable block 0100 34
Dry run 1000 38
Event Bit 0-3 Hex code
None 0000 30
Autom, interrupted ooo 31
Feed stop 0010 32
Spindle stop o100 34
RESET 1000 38system 8 (RK) 5 - 27 A.03.85
Program status Bit 0-3 Hex code
None 0000 30
Program running 0001 31
moo/MOL 0010 32
M02/M30 0100 34
Current machining pointer
Program no.
Block no. in main program
Subroutine no. with number of passes (Level 1)
Block no.
Subroutine no. with number of passes (Level 2)
Block no.
Subroutine no. with number of passes (Level 3)
Block no.
Current nesting depthSystem 8 (RK) 5 - 28 A,03.85
Override positions Bit 0-3 Hex code
Examples:
- Feed
oe 0000 30
28 oo10 32
48 oo11 33
68 0100 34
88 0101 35
108 0110 36
208 oui 37
408 1000 38
608 1001 39
70% 1010 3A
808 1o1l 3B
908 1100 3C
1008 i101 3D
1108 1110 3E
1208 qa. 3F
- Spindle
508 0000 30
608 ooo1 31
708 0010 32
808 ooil 33
908 0100 34
1008 o1o1 35
1108 o1i0 36
1208 o1i1 37
- Rapid traverse (with 8T as for Feed, if effective)
1s ooo1 31
108 0010 32
508 0100 34
1008 1000 38system 8 (RK) 5 - 29 4.03.85
Example:
- Operating mode Automatic
= Sub-mode None
- Event. Spindle stop
- Program status Program running
- Current machining Program no. 1234
pointer Block no. N 485
Subroutine no. (Level 1) L900
Number of passes 25
Block no. N25
Subroutine no. (Level 2) L910
Number of passes 3
Block no. N251
Subroutine no. (Level 3) 1902
Number of passes 2
Block number Na
Current nesting depth 5)
~ Override positions Feed 60%
Spindle 100%,
Rapid traverse 1008
R-ST-- 10 4 1 1234 0485 0900 0025 0025 0910 0003 0251
0902 0002 0004 0003 958system 8 (RK) 5 - 30 A.03.86
The various PLC operator messages are separated.
from one another by means of a "comma", the category
and type being separated by means of a "full stop".
Example: PLC operator messages
1.11; 7.83; 14,210; 21.104
R-BM-~ 01.011, 07.083, 14.210, 21.104
A maximum of 6 operator messages are transmitted.system 8 (RK) 5-31 4.03.85
5.4.7 xxTDxx, tool data
The data format must be specified individually for each
application. The user data length must not exceed 120
characters per message.
Example for reading of T no. and current life of tool
‘at location 27:
T TD E 027 T 0120 ST 420
[00 Like
‘T no.
‘Location no.system 8 (RK) 5 - 32 A,03.85
5.4.8 M-cS
To start a program the part program number is specified
without stating "8".
Example: Start of part program % 100
M-cs--0100
5.4.9 TDxx, PTxx, RDxx
The program numbers are transmitted with the above
messages as user data.
Example: Operator request for part program $ 1234 or
L 12300
TDPP--% 1234
TDPP--L 12300
5.4.10 DTD
The magazine location format consists of a 3-digit
number.
Example: Magazine location 25
TDTD--025system 8 (RK) 5 - 33 A.03.85
5.4.11 TDMB,
The tool number format consists, for instance, of 2
numbers.
Example: Max. 6 digits for tool number: r125
2 digits for tool compensation
compensation no. 3
‘TDMB--T-000125-D0-03
5.4.12 RoPN
The pallet number format consists of a 4-digit number.
Example: Pallet 5
R-PN--0005system 8 (RK) 6-1 A.03.86
6. PLC function blocks for computer link operation
6.1 Overview
Fig. 6 shows the structure of the PLC programs for
computer link operation. Data interchange with the NC
is via 2 data blocks acting as the input and output
buffers, as well as the associated interfaces (see Fig.
1).
When the machine is first switched on, the input and
output buffers are set up automatically with a length
of 64 data words; this corresponds to a user data
length of 120 characters and a message capacity of 126
characters. The messages entered by the NC in the
input buffer are analysed on the basis of their header
and then transmitted as a command no, or "command bit".
These "command bits" are evaluated in function blocks
"standard routines" or “Input/output of magazine data";
from here they are also acknowledged.
PLC messages are also output to the computer via
“command no." or "command bits". However, separate
command lists are kept for input and output purposes.A.03.86
system 8 (RK)
7d ONVWHOD
213 "UN dd @ 91d
yang
Andino
Moz fox
vivo-3N
‘ON- WO fae
SLVOQMNEINT,
saNinoy “SHavTY
Py cuvanvis
@
e9zad
yaaane
Auloadas
“Fq0W ON
wvagoud
“Lave
uaaan
Andino/- NI
WALNGKOD
RALSVH_NOTIONGOUA,
8 NIUSWANIS NO ZOVANMINI ANIT WALNAKOO JO TUNLONUTSsystem 8 (RK) 6-3 A.03.85
6.2 Command interpreter (Fig. 7)
The list of all permissible input messages is stored in
a data block in the EPROM; if the NC signals an entry
in the input buffer, the message header is compared
with the specified command list. The appropriate
number is stored in a special data location. In addition,
the appropriate bit is set in the field with the
command bit. If the entered message header is not
found, a fault message is issued.
The command bit remains set until all operations
triggered by the message involved have been completed.
only then is this bit reset by the appropriate
evaluation program; the command interpreter then
acknowledges the message entered by the NC and thus
releases the input buffer for a new message.system 8 (RK) 6-4 A.03.86
COMMAND INTERPRETER
NC.
COMMAND LIST
(EPROM)
INPUT BUFFER
MESSAGE
HEADER
FB 240
COMMAND,
INTERPRETER
(ACKNOWLEDGEMENT) | INPUT BUFFER”
(45.6)
SINGLE BITS FOR SIGNAL
COMMAND INTERROGATION "MESSAGE ARRIVED"
(ACKNOWLEDGEMENT)
(EVALUATION)
EG.
‘STANDARD
ROUTINES
FIG. 7system 8 (RK) 6-5 4.03.86
6.3 Standard routines
Among the operations included in the standard routines
are the interrogation or influencing of NC data and
operating modes or states at the machine.
These operations are listed in detail below:
Transmission of current alarms
(both NC alarms and PLC fault messages)
- Transmission of current operator messages
- Transmission of NC states
- Preparation of NC for transmission of NC data
(PP, TO, 20, TE)
- Switching of NC to Automatic mode
- NC reset
- Starting a part program
- Preparation of NC for erasing NC programs
Where the computer initiates one of these operations
(e.g. switching to Automatic), it is first checked
whether this operation is permissible at that
particular moment in time. If this is not the case,
the message is given fault identifier F and sent back
to the computer. Any user data (e.g. program no.) are
not transmitted simultaneously .system 8 (RK) 6-6 A,03.85
6.4 Data output to production master computer
Fig. 8 shows the program structure for the transmission
of messages to the computer. On the basis of the
specified command no, or command bit, the relevant
message header is selected from the command list and
entered in DW 1 and 2 of the output buffer. Any user
data (including ETX) must already have been entered in
the output buffer.
On the basis of the BTX character, the message length
is determined and entered in DWO; the interface signal
"Information entered in output buffer" is then set.
In view of the fact that only one buffer is available
for message output purposes, it may only be overwritten
again when the NC has collected the last information
and acknowledged the interface signal. A co-ordination
bit is provided for this purpose, indicating when the
output buffer is occupied. It must be interrogated and
set by all user programs writing to the output buffer
after an entry has been made.
The function block "Data to production master computer"
resets this bit as soon as the NC has acknowledged the
message.system 8
(RK) 6-7 4.03.86
LOADING OF OUTPUT BUFFER
NC
"COLLECT
FROM
FIG. 8
PC
COMMAND:
SINGLE BITS FOR "PRANSMIT DATA
OUTPUT BUFFER COMMANDS TO PMc"
FB 241
INFORMATION
OUTPUT-BUFFER
DATA TO
COMPUTER
COORDINATION -BIT
cra “QUTPUT BUFFER OCCUPIED"
MAS.
COMMANO- LIST
1 -BUFFER
OuTPUT-B\ (EPROM)system 8 (RK) 6-8 A,03.85
6.5 Input/output of magazine data
The "Data input/output" modular package is used for
loading and reading magazine data. For each message
the structure (format and assignments) is specified by
the user in a data block. The messages from the
computer must then correspond precisely to this defined
format. ‘The format and assignment lists are managed by
FB 246. On the basis of the message sent by the
computer, the formats and assignments relative to this
message are selected from the lists.
The BCD/ASCII and ASCII/BCD conversion and entry in the
magazine table or output buffer is then performed by
the function blocks of the "Data input/output" modular
package. The input or output sequence and entry of the
correct message header are organised by a primary
function block "Magazine data 1/0°4.03.86
System 8 (RK)
6 Old
No1Lv307
ANRNOISSY ANI? vivO O4NI
uasne indino
S a0vNIvd
‘Sina
~oIss¥
INN
‘TYHYOS
awnnino|
(viva aNTZvOWR TILIA
Sao¥SSaH TIV oa)
sanzomsis
aovssan JO NOTEvOLATOaas
Ta0d
NO 4O4
* L1GNOD
vivo
83448 LNdNI
Jd
ONsystem 8 (RK) 6 - 10 A.03.85
6.6 Loading and unloading of magazine
For loading and unloading purposes use is always made
of the same function blocks as for input and output
(see Fig. 10), In addition, FB 44 is used for loading.
The data relative to the tool loaded in the magazine
are entered in one input line of the magazine
assignment table via the computer link port.
The required signals for restoring to the corresponding
table line are then supplied for the "loading block".
The table location (line number) results from the
actual value at the machine, i.e. the tool must be in
the loading position.
The process is very similar during unloading:
In this case the location is cleared in the loading
position via FB44.6-11 A.03.86
(RK)
system 8
NIZVOWA LY YOSNAS Ould
VLVO OdNI
jasov3- 734}
avon L~
BNIZVOWH
wayn@ ingino
y34dN8 ANNI
Jd INsystem 8 (RK) CE A.03.85
Alarms during data transfer
Alarm no. Description and action
551 Message identification error
If this alarm is shown, the NC expects
a message with a different identifier.
caus!
a) The identifier is incorrect, i.e.
the NC does not understand this
identifier at all (possibly
incorrectly structured)
b) ‘The sequence of messages received
is incorrect
Example: Computer sends RPPP
Nc replies H-RR
Computer sends T-NB
instead of R-PP
Message interchange is to be
recommenced once the alarm has been
cleared using "Reset".system 8 (RK)
Alarm no.
7-2 4.03.85
Description and action
552
553
Program already available
This alarm appears when the computer
tries to transmit a program to the NC
but the NC program is already
available.
Teansmission is aborted.
In order to save time the available
program was not compared with the
transmitted program.
The production master computer must
erase the existing program if it is to
transmit its program
Message interchange is to be
recommenced.
NC_program input defective
This alarm appears when
a) the NC block format is incorrect
b) a block of more than 120 characters
has been receivedsystem 8 (RK) 7-3 A.03.86
Alarm no. Description and action
554 No acknowledgment 1
With program transmission only.
The alarm is signalled when monitoring
times Tl and T4 have been exceeded or
when the NC has failed to make contact
with the computer on the basis of the
number of repeats set as per TE
N47.
The NC continues to attempt to
establish contact with the computer by
sending ENQ. If the computer responds,
the alarm is cleared automatically.
555 No acknowledgement 2
Only with processing by the
production master computer.
The alarm is signalled when time 10
specified as per TE N474 has expired
and the number of repeats specified as
per TE N477 has been exceeded. If no
new character or ETX is received
during time TO, the existing message
interchange is aborted and the
procedure returns to the initial
status. The station ready for
transmission must re-establish
message interchange and repeat the
interrupted block.
In the event of a fault, flag F45.2 is
set to the value 1, The alarm must be
cleared using RESET.system 8 (RK)
Alarm no.
7-4 A.03.86
Description and action
556
557
NC memory full in computer link
operation
The alarm is triggered when it is
established during transmission of a
part program that this program cannot
be fully stored.
The alarm must be cleared using
"RESET", and it must be ensured by
erasing other programs that the program
can be stored after re-transmitting.
Signal sequence error for mode
re-selection via NS 180
Alarm 557 is triggered when
- switchover to DATA I/O is specified
and the NC is not in the basic
automatic position;
- the signal DATA START is specified
and the NC is not in the DATA I/o
mode;
- switchover to AUTOMATIC is specified
while the NC is not in the DATA I/O
mode.
The alarm can be cleared using "RESET"
and the signal sequence corrected.system 8 (RK) 7-5 A.03.86
Alarm no. Description and action
558 PLC identity error
The PLC wants to transmit an illegal
message to the PMC. The identity is
checked as opposed to the message
sequence.
Messages with the following identity
are allowed:
RD xx A certain response from
TD xx the PMC is expected
RW xx Response is arbitrary or
MW xx not required
TW XX
J
The message is not sent (by the NC).
The alarm is indicated and can be
cleared using "RESET"