Professional Documents
Culture Documents
-.,,
SIMATIC S5
COM 525
Programming Package for the Communications Processors
CP 524 and CP 525 (S5-DOS)
Manual
Volume 1/2
..,:,.
wolwodNctud Ulewmmm Ofalll rmrlualbr~rounml wilh 0,0 lho qmddon, lrmsnb8brr O, w d Uris dwwnwII Wbmn.
h8Jdw8m md 8dlwme daclbd. 8inw dwWons camot bo pm Wtsbnd@rrriitcdvAlroul
dudd mlkcty, w and @uarwo Ml qrwrwnr. Hwovu, m
UkndorI will b. M Wzw%?ig%wln ri$hll
dnuh~ rmudworovkwd rqdartyandmy
ueaerJIwMmI@antorm @mabn dauliSyrn@dar 4 n, are
~s.h @wquml ddarw. ~6mI-x%=
fof
~-.
TwMcdd#awbjoratox
&py@ht@ShrmsAG
1SS1 AJlri@mraawd
Siemens Aktiengesellschaft
PfhodlnllratWud~d Gummy
.;. ,=
Warning
--..,
.
.....,
G90w-onse3--ol
lzm
It is beyond the manufacturers capabilities to have ail these so-called SIMATICcompatibie modules checked for !helr effect on our SIMATIC products. If the use of
so-called SIMATIC-compatible modules leads to defects in a SIMATIC automation
system, no warranty for such systems will be given by Siemens.
.-.,
In the event of product liability damages due to the use of so-died SIMATICcompatible modules. Siemens are not liable since we took timely action m warmng
users of the potential hazards involved in so-called SIMATIC-compatible modules.
C79000-08S63-C70251
12189
. ,.:,
,. . .
1
What is ESD?
VSLI chips (MOS technology) are used in practically all SIMATIC S5 and
TELEPERM M modules. These VLSI components are, by their nature, very
sensitive to overvoltage and thus to electrostatic discharge:
lhey are therefore defined as
Electrostatically sensitive Qevices
ESD is the abbreviation used internationally.
The following warning label on the cabinets. subracks and packing indicates
that electrostatically sensitive components have been used and that the
modules concerned are susceptible to touch:
.,
ESDS can be destroyed by voltage and energy levels which are far below the
level perceptible to human beings. Such voltages afready occur when a
component or a module is touched by a person who has not been
electrostabcally discharged. timponents which have been subjected to such
overvoltages cannot. in most cases, be immediately detected as faulty; me
fault occurs only after a long period in operation.
An electrostatic discharge
- of 3500 V can be felt
of 4500 V can be heard
must take place at a minimum of 5000 V to be seen.
.. . ,
ESD Gudehnes
- temperature variations,
mechanical shocks,
vibrations,
change of load.
Only the consequent use of protective equipment and careful observance of
the precautions for handling such components can effectively prevent
functional disturbances and failures of ESD modules.
.. . . . . . . . . . . . . . . .
up to 35000
v
v
up to 12000
Up
to 18000 V
Ufl
to 8000 V
up to 5000
Plastic bags
up to 5000
Up to
8000
v
v
V
Most plastic materials are highly susceptible to static charge and must
therefore be kept as far away as possible from ESDS.
Personnel who handle ESDS, the work table and the packing must afi be
carefully grounded.
e.
5unolIs A(3 c7mDmn%x3901
ESK) Gudelmes
The diagram on the next page shows the required protective measures
against electrostatic discharge.
. . . . ....
ESD Guidelines
,-..
/d
/d
b
L
f
+
f
+
Sitting position
Standing position
f
&
a
b
c
d
e
f
Conducbve flooring
Antmabc table
Anb-stabc shoes
Atm-srabc coal
Standing/sitting position
~ ,% .>
.,
Contents
--.,
Warning
Information
$WJ9@~co*i~s
C79000-R8576-C499
volume 1
1
12
How to Use the Manual
C79000-D8576-C499-03
CP 525-2
Communications Processor
Instnmtions
C79000-B8576-C537-07
CP 524
Communications Processor
Instructions
C79000-B8576-C536-06
3
4
t5
6
Computer Link with RK 512
Users Guide
Event Output and Listing
with the PT86/PT89 Printer
Usefs Guide
C79000-B8576-C539-08
7
8
C79000-B8576-C541 -05
I 10
Volume 2
SIEMENS
SIMATIC S5
How to Use the Manual
C79000-D8576-CtIW-03
D8576499-01
Page
anNxaws
1 Things to Remember
3 Abbreviations
4 OrderingD ata
12
14
..
D8576499-01
1 Things to Remember
This manual is intended to help you use the CP 525-2 and CP 524
.,
.\
CP 525-2
The CP 525-2 is often abbreviated to CP 525.
CP 524
The CP 524 can be used just as the CP 525 when you wish to
commicate with cmly m partner.
The CP 524 has only cae serial device interface; it has m K
~. Therefore tiy EPROM subwdules that have been progransned on the PC can be used on the CP 524.
The serial device interface of the CP 524 corresponds to the
device interface IF 1 on the CP 525. An EPROM mlmodule programmed for IF 1 can be used both on the CP 525 and CP 524.
......
....
D8576499-01
You should first develop your user program using a CP 525. You
can then ccmnect the PG online and transfer your CP 525 user
V- directly to a RAM mbmodule plugged into the CP 525. Then
you can auryout the start-up. Any Corrections whichmybe
needed can then be carried out quickly. Once you have completed
these corrections, you can then program the EPROM for use with
the CP 524.
!InuEmRr!
.#-%
D8576499 -02
2 Where Do I Find This in the l%nual?
This manual
COM 525
.2
.
Part 1
Section 1
Section 2
Section 3
~ m IMIlg * W#xmal
These are general instmctions that you should
bear in mind; this section also includes
- abbreviations and their explanations
- ordering data
- ~r relevant documentation
Section 4
.a
~
F====
Instmctions
5=-2
D8576499-01
Section6
!JMssecticm ismxused
section 7
- bsic facts
- important, general information about programming
- help in correcting errors in the computer link
~=t
Section 8
- basic facts
- important, general information about programming
- help in correcting errors in the logging printer
D8576499-01
Part 2
Section 1
.-..
~ link with BK m
Example of application
This is sn introduction. When you have worked
section 3
Sectitm 4
...4/
~ me CCM 525
users glride
This is an introduc tory guide for the pr~
p-e m 525 as follm:
- cmtains all the screen masks output by CX)M 525
- includes instructions about the entries to be
made in the fields of the screen masks.
,;.
.,
D8576499-01
Section 5
Reference nnnual
This is a description of the error messages which
are displayed cm the screen of your programmer by
the C(M 525 pr~ package.
Section 6
ruCM 525
users gdde
This is an introduction to programing EPROMs as
follows :
- includes all the screen wsks output by PROM 525
- contains information about the entries to be made
in the f iel& of the screen masks.
,.,
D8576499-01
3
Abbreviations
AS 512C
Job number
Gmdition codeword
Ihterface mdule 51.2C
B
BI&R
Field length
A-NR
c
CF
CL
CL
COM 525
CP
CR
D%
Bell
Ccmdensed print
Coordination flag
Chained log
computer link
Current message log
~ package COM 525 for the
cmmmications processors CP 525 snd CP 524
Commmicatlons processor
Central processing unit
Carriage return
DBNR
DL
m
Dw
Ix
Dam block
Data block nmber
I.aft-hsnd data byte in a data word
Right-band data byte in a data word
Data word
-d data block
FB
Function block
FD
Disk drive
First in f ixst out buffer
Flag word
~ me
lw
Fx
Heavy print
EDB
IF
Device interface
JB
Jtnuper block
D8576499 -01
IAUFPT88
Procedure IAUFFT88
(logging printer PT88/PT89 function)
I!EP adapter
OB
~mti~ block
QVZ
IW422-A
RS485
R/w function
Reply telegrsm
EIA stsndard RS422-A
EIA standard RS485
READ/wKm function
QLU
S-DOS
S5 program
SYSID
Operating system
STEP 5 program
Sequential message log
Interface number
Identification area SYSID
Error message area of the SYSTAT
current loop signals (20 la)
Underlined
UPMTESML
-----
D8576499-01
V.24
.
-,
......
11
.,, . {.
, ,;
,.,.,
,4
,.
,,
,:;
D8576499-03
4 Ordering
Data
KHuufsak)ass
Order number
16 Kuords
32 Kwrds
64 Kumds
6ES5 373-).AA41
62S5 373-JAA61
6ES5 373-lAA81
mu Sakxhiles
Order numbsr
16
32
64
64
6ES5
6ES5
6ES5
6ES5
Kwords
Kwcmis
Kwords
Kwords, 377
SAM
subnmiule, buffered
377-0AB21
377-0AB31
377-0AB41
377-0BB41
62S5 752-0AA22
6ES5 752-0AAI,2
6ES5 752-0AA42
guwaims
s~ Iimctims
for !xalMkrd
~S:
-t ~ --:
-e OCiH
PIE:
12
D8576499-03
..
~b~
Order number
S5-135U/Rpessor
6ES5 842-xC8XO(-YY)
S5-150U
6ES5 844-xCAxO{-YY)
S5-155U
6ES5 846-xCAO1
Order mmber
Stam&rdcsble ~
CP525
6ES5 726-OX%XO
- PG 61a (TTY)
6ES5 726-lxxxO
6ES5 725-8xxx0
CP 525/524 - AS512C(TIX)
6ES5 726-2xxx0
6ES5 726-3xxx0
CP 525/524 - PT88/PT89(TJ!Yfl.24)
6ES5 726-5xxx0
6ES5 726-7xxx0
6ES5 726-8xxx0
6ES5726-4XXX0
cP524
6ES5 725-7Juu0
- CP 524 (V.11/SS422-@
6ES5 734-5xxx0
(xxx=SIMATIC len8th~Y)
13
D8576499-01
5 Further Relevant Documentation
/1/
/2/
,.--%.:
Siemens Aktiengesellschaft
C79000.08576.C4SS
Gertilewark Kedawhe
Printed in the Federol Republic 01 Germany
.,
SIEMENS
-. . .
SIMATIC S5
Communiostions Processor CP 525-2
Instructions
C79000-BS576-C537-07
contents
.
.
Page
T~ -~
1.1
1.2
1.3
1.4
1.5
1.6
1.7
Applicatim
24ecbenfml Design
Serial Device Interface
Duel-port RAM, Iimerface to the CPU
- ~~es
Hardware Clock
Technical. Data
4
5
6
12
14
15
JiMtdlatiKm
16
2.1
2.2
2.3
16
17
17
Operati.al
18
3.1
3.2
3.3
3.4
3.4.1
3.4.2
3.4.3
3.4.4
Status Displays
Jumper Settings
Module Address/Interface Number
Bnabling/Disabling IPC Flags
Settings of the Device Interfaces
Permanent Jumper Settings
18
19
19
20
21
23
26
28
29
Pin Asaigmantxl
30
5.1
5.2
5.3
5.4
5.5
Backplane Connector 1
Backplane Crmnector 2
30
31
Memo-iy
Submodule Interface
32
33
34
Stasxkd
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
6.10
connection cP525
- PC 6XX (TTY)
camection CP 525/524 - CP 525/524 (TTY)
camectioncP 525/524 - PlwMEAlf(lTY)
Camect5.0n CP 525/524 - AS 512C (~
Camection CP 525/524 - PROMEAR (TTY)
Camection CP 525/524 - PT88~89 (TIY/V.24)
Connection CP 525/524 -Hodem~O (V.24)
Connection CP 525/524 - CP 525/524 (V.24)
Connectim CP 525/524 - PRDMEAR (V.24)
connecticm cP525,1P2 -PG7XX(TTY)
Ceble Ctamecturs
ii
35
35
36
36
37
38
:
40
41
42
B8576537-04
1
1.1
----
Technical
Application
The ~ pmcesam CP 525-2 can be used in the programmable controllers of the SIMATIC 5 Urange (S5-115U, S5-135U,
S5-150U and S5-155U). Mote ti * CP 525-2 cammtbeusedti
caljumctimatlltbes5-135u/spmceSor.
The data exchange between the CP 525-2 and the central processor
(CPU) of the programsble controller is restricted to a minimm.
Only the variable data (current process values) is exchanged
bemmen the CPU and the CP 525-2. The CP 525-2 hSS its mm memory
for invariable data, which you program using the progmming
package CC&l 525.
.... .
,...
..
,,
B8576537-04
CP 525-2:
- listing process statuses and messages originating in the process
- linking programmable controllers with each other or with computers
STEP5BASICPACKAGE
forPG
Progfemmingpsckage
COM525
o
II
o
0
Programmer
e.g.PG635
PGw5
%%
~
STEP5
userprogrem
i%ogrmmsblecontrolk
cLg. s5-l15u
S5-1S5U
S5-150U
S5-155U
4
....
........................
,.. ..,
,.,. . . .,.
&=m2
*,*,
*,*,
. . ..
E8576537-04
You also pmgrsm your STEP 5 user progr~ for the CPU on the PG
using the STEP 5 BASIC PACKAGE.
... .
. ,.
Note:
With the CP 524 and with special drivers you can connect other
msnufactmrers equipnent to ymr pr ogrsmable controller (e.g.
computers, printers or intelligent subsystems). For more
information about special drivers contact your nearest Siemens
branch or technical office.
. . . . ..
3857653 i - c 3
CP 525-2
(v-iifromfront)
8-%
Receptacle for
memory submowe:
RAM: 16,32 or64 Kwords
EPROM: 16,32 or64 ) KWOdS
RUN
STOf
Mode SQ&@X
PGR
Cl
LEDdiifordeujw interface 2
Device interface 2 (IF 2 )
llY orV,24
TTY hterface for pmgmming
the CP 52s with the pG
3~375537.03
its frm-it panel, the wmmm ications processor has tvo 25-pin
female Carmm connectors with serial device interfaces for
connecting devices (printer PT88/PT89, other progr amable controllers or central computers). Instead of these detices, device
interface 2 (IF 2) can also be used to ccmnect the programmer
(PG).
On
selected:
-RUN
- STOP == PGR (no jobs will be processed)
The function of the switch setting STOP is identical with that of
PGR.
mmemorymkmodule fortheuserprogramis pluggedintothe
submodule receptacle. You csnuse either EPMK~or M
~.
The cmnectim to the S5 bus in the PC frame is established via
two 48-pin backplane connectors.
The loop mrrent (201YIA) canbe auppliedby both the CP 525-2 and
fromtiepartnertice. Only the endwhichprovides the current
isnon-fl.eating. ihe@s%@iesthe~ent (20mA)viajumpers
in the connector of the device interface. The 24 7 reqdred for
generathg loop current is takan frcm the PC bus. With a closed
circuit, a current of 20 UA must flow ( logical 1) if the line
current cimuit is functioning correctly. When the current is
interrupted, logical O results.
2$576537-03
.,
...
- which partner is to be linked on which interface
1.4
Dual-portlUUIII, InterfacetotheCPU
The data ~change between the CP 525-2 and the CPU is restricted
toaminimum. onlythevsriabledata (currentprocessvalues) is
exchanged between the CPU and the CP. The CP 525-2 has its own
user memory for invariable data, e.g., message texts.
Data is exchanged between the CPUand the CP 525-2 using a comm
memoryarea: *eH-pmtB4M.
The dual-port RAM is m +& CP 525-2 and is similar toamailbox.
The CP 525-2 and CPU can leave messages (data, requests, etc.) for
each other in this mailbox.
., ,
E4576537-03
,,
.,
,,:.
, .- . ,
The CPU of the PC always acts as master for data exchange. The
CP 525-2 must wait to be asked by the CPU whether it wants to
transfer dati. This polling function is carried out by stan&rd
function blocks (Wmd13ng blacks=) in the CPU. These are the
same handling blocks that are used by other c Cmmlmicathls
processors.
The actual exchange of &ta between the CPU and CP 525-2 is also
managed by handling blocks. For more details, refer to the &.
scripticm Using the handling blocks in this manual.
< ------------
CPU
S5
I
Handling
port
<==9
(Standard
flulcticm
bloc~)
.
DewLce
interface
1
Dual-
blocks
Data
User
memory
<>
Device
interface
2
,> .%. . .
1
,
B8576537-03
tiea:
Addresses
I&al-pom RAM
comment
D e c . Hm.
61952 F200
FYo
- FY 31
F220
FY 32
- FY 63
F240
FY 64
- FY 95
F260
FY 96
- FY 127
F280
FY 128
- FY 159
F2A0
FY 160
- FY 191
F2C0
FY 192
- FY 223
62176 F2E0
62207 F2FF
FY 224
- FY 255
f-;
. . ..... .,..-
(2048 flags)
--Rs
62464 F400
(2) page
area
(3) page
RI area
RI area
for IF 1
for IF 2
F7FF
65279 FEFF
(4) VectOr
I (5). ~
interface
interface
number
----
----
A vector register is
assigned to each page
-1----
This diagram
--
.:
38576537-03
. . . . . .=.
With the computer link and RK 512 the IPC flags (coordination
flags) can be used m inhibit and mable tlmd?lta ~ ~tweem * (XJ A @. By inhibiting tiis me, you can prevent
data that has not yet been evaluated fran being ovanvritten.
These IPC flags must be deseted as output flag bytes. For
further details see the users guide for the computer link with
RK 512.
When you are using the pcinter PT88/PT89, you do mt need the IPC
f lags.
The IPC flags are transferred once per STEP 5 program cycle
between the flag area of the CPU and the IPC flag area of the
CP 525-2 (similar to the process image for dfgital. inputs and
outputs) .
,- .,
....
,!,
B8576537-04
Note:
S5-IL5U:
S5-135U:
S5-155U:
S5-150U:
is
in
which data
is
~med be-en the CP 525-2 and the CPU. his &@ may, e.g.,
numerical values, to be logged on the printer. In additim,
the programmable controller can also transfer system messages to the CP 525-2 via the page.
(4)(5) vector re@ster - ~ IEmber
The pages of all the CPs in a PC are in the same address area. To
ensure that only the required page is addressed when data are
_ed, es* page can only be addressed by its ~
nmbar. lhis is between O and 255 end is set on the CP by means
of juqers.
Each page has a ~ ragkter allocated to it. The vector
10
.,,
.,
. . . . . .
first CP 525-2
second CP 525-2
Page 1
Page 2
Page 1
Page 2
4
- - -
4
- - -
i
- - -
4
- - -
Inter-
Inter-
Tnter-
Intar-
face
number
e. g 4W
face
number
face
face
mmber
number
e.g. 2W e.g. 3
-- - - Vector
Vector
register registex
-----
numbers between O
and 255 set with
j=pe=s on the Cp
e.g. 5W
- - - -.:ector
Vector
all vector registers
register register are in the same
addre-= area
- - - - -
. . . .. .. . .
. . .. .
11
.,!
.,.
,.,,
5357~537-f33
1.5
Memory
..+,,.,
B8576537-07
,,
28576537-07
-.
IPOO
Oc to Ssc
-40c to +700C
code letter
Operating altitie
Power supply
Current input 24 V
Back-up vol-ge
ndn. 2.7 V
140 * msx.
current input 5 v
.,
Transmission procedure
Transmission rate
Transmission cable
Transmission link
Design
dimensions (W X H X D)
backplane connector
(peckAging system)
Weight
B8576537-04
2 Installation
I I
I I I
S5-U5U with aubrack SR 701-3
I I
I I
I I
I I
The interface modules 304 and 314are required
Fanraquixed
S5-135U
I I
107
16
B8576537-06
S5-155U
11111111111
75 83 91 99 107 115 123 131 139 147
19
,.. . . .
...--.
19
27
35
43
51
59
67
75
83
91
2.2 Plugging
in
lblmt~ or@.qtitheCP525-2wben&po,erison!l!bis
....
abOapplieawhmyouaxaraplaciqthemamurgsdmo@.e?
2.3
Installation
Guidelines
......
.-
The shield must make large area contact with the casing of the
metal connector (not on pin 7). If the partner device does not
have a metal connector, the cable shield must make large area
contact with ground. If there is a large difference in ground
potential between the CP 525-2 and the partner device, a potential equalizing cable should be included. The cable should be
kept away from thyristor drives and power cables carqdng more
* 500 V. Further information about installation can be found
in the Installation guidelines for SIMA1IC canpact devices (see
ordering data).
17
i
.+/
,,.,,
,,
2s576537-(23
Operation
CP525-2
RUN
STOF
PGR
(Viewfromfront)
Mode selector
LEDdiifordeviceinterfacel
,. . ,
18
gg7-L~ ~: .~,~
--/ ,
STOP = PGR
. .
The diagram below shows the position of the jumper blocks on the
module. Adjummnts need to be made only on JB 16 / JB 25 / .J3 51.
The jumpers on the remaining jumper blocks are set in the factory
and should not be changed.
,--..,
P
Memory submodultj
EPROM or RAM
JB34
B
P
IF 1
JB51
V24contrOl
signals
JB23
AMrasshg
mode
Iiiiml
16
000
c
o
000
n
JB25
lPCilag area
1
6
&
JB . . . = jumperbkxk ,.,
B2576537-93
-..
...
?1 1.
n
IPl
IF2
Page 1
Page2
Module
address
>
Interface number
e.g. On
Imerfacenumber
plus
1=
e.g.
lw
(mlyevennumbers allowed)
!~!~j_sett~fib@.Mym~c~
be selected for IF 1; IF 2 is then automatically assigned the
nexthigheroddnmber.
luote:to enaure that the CPU addresses the CP correctly, you must
specify the same interface number (PSrameter SSNR) when assigning
parameters to the handling blocks as that set on the CP.
.....
38576537-03
16 15 14 13 12 11 MI 9
~
~~e.t~
1 2 3 4 5 6 7 8
Jumper open: O x 2 = O
n
Jumper inserted: 1 x 2
6-11
22
5-12
23
4-13
16
24
3-14
32
25
2-15
64
26
1-16
128
16 15 1413 12 11 10 9
0 0 0 0 0 0 0 0
I I
0 0 0 0 0 0 0
1 2 3 4 5 6 7 8
12decimal=
Jmpers 6-11 and 5-12 are inserted; the other jumpers remain
open.
-1
22
3.4.2 Euablin@isabli143~_
described in 1.4 and in the =ers wide _ter lfi W*
K 512 you can enable or inhibit the data transfer between the
CPU and CP 525-2 by using the x= flags. ~@s@ ~C flags -t be
specified as output flags; in tjmis simation the term tcoordinaticm flag can be used instead of the term IPC flag.
AS
7.
.,. ,
.-,...-
8 7 6 5 4 3 2 1
.,
Em=T :=
I
6-11
5-12
4-13
3-14
2-15
1-16
9 10 11 12 13 14 15 16
IPC
flag byte
--
0
31
32 ::: 63
64 . . . 95
96 . . 127
128 . . 159
160 . . 191
192 . . 223
224 . . 255
n
, ,. ,
24
Cmrdinator
firstcPu
secondCPU
first
CP 525-2
second
CP 525-2
64..255
DB1
8, 12
IPC
output
flag
bytes
64
output
flag
DB1
32,35,61
IPC
output
flag
bytes
0..31
32..63
64
IPC
input
flag
byte
the second CP 525-2 * IPC flags 32, 35, 61. On &e second
CP 525-2 the area 32 to 63 mat therefore be enabled (jumper 7-10
inserted). You mst then enter the bytes 32, 35 and 61 as IPC
output flags in DB1 of the second CPU.
Since the IPC flag area Asts mly once in each PC, only the IPC
. . . . . ..
3~57~53
7.(33
.--y
,. . .
16 15 1413 12 1110 9
1 2 3 4 5 6 7 8
b-
. . .-+
.,
:3576537 -05
8- 9
7-10
6-11
6-U
5-12 open
5-12 inserted
Device interface 2:
4-13
3-14
2-15
2-15
..
BS576537-03
changed:
---.,,
16 15 14 13 12 1110 9
I
II
0 0 0
Ill
0 0
0
0
0
Ill
0 0
0
0
0
I
0
I
Jumper block no. 17
I
1 2 3 4 5 6 7 8
16 15 1413 12 11 10 9
1 2 3 4 5 6 7 8
16 15 14 13 12 11 10 9
Jumper block no. 34
1 2 3 4 5 6 7 8
,>.
28
BS576537-03
.W,
,
., ..-.
29
28576537-93
5 Pin
5.1
Ccnmz.aicaci.ini
Assignments
Backplane Connector 1
..
I
I
Ground
ADB O
I /cPKL
~B
1-
ADB 2
1-
ADB 3
I /RDY
ADB 5
UBAT
ADB12
ADB13
10
ADB14
12
ADB15
+5V
14
16
DB 1
18
ADB 6
DB 2
20
ADB 7
DB 3
22
ADB 8
DB 4
24
ADB 9
DB 5
26
ADB 10
DB 6
ADB 11
DB 7
28
/DSI
30
BASP
32
Ground
?TGC?SSGZ CP 525-2
Grtnmd
+5V
4
6
8
10
12
14
16
18
20
@oLnA
22
TxD
/Dl#FA
/SiWPA
24
26
28
30
32
GROUND 24V
Ground
+ 24 V
31
.,
Cmm.ziicarions
5.3
Memory
Submodule
TRocessor C? 525-2
Interface
a
/--%,
ADB 12
Ground
+5V
ADB O
ADB 1
ADB 2
ADB 3
ADB 4
ADB 5
ADB 6
ADB 7
ADB 8
ADB 9
ADB 10
ADB 11
ADB 13
ADB 14
DB O
DB 1
DB 2
DB 3
DB 4
DB 5
DB 6
DB 7
10
DB O
DB 1
DB 2
DB 3
DB 4
DB 5
12
DB 6
DB 7
K1
13
/cs
/(x
K2
14
\cs
/(x
K3
15
UCMOS
Psw
K4
16
+5V
Ground
KS
32
,;.
.
5.4
Pin
.,.
1-
235678910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 -
. .. . . . ~
. . .. . . . .
Tl!LOv
not used
not used
transmi tter (+) TTY IF
not used
current source (+) 20 mA
receiver (+) TTY IFl
receiver (-) TTY IFl
not used
current source u(+) 20 mA
not used
not used
transmitter (-) TrY IF1.
not used
current source ( ) 20 IIA
not used
not used
current source (-) 20 mA
not used
35576537-93
5.5
Pin
. ., ,.
1-
235678910 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 -
,/.-%+
34
.:,
i,.
33576537-07
.,
For the most Casmn camections between devices there are stendard cable connectors available (see ordering dims).
6.1
Connection
(!P
525 - FG 6=
(TTY)
The cable can only be connected at the lower jack of the CP 525.
I
I
I
I
CP525
--
+ 12
?I
!i ~
I
I
I
I
I
I
I
I
I
I
/
I cesktg(3ex ~
I +
J
In
17
K1
IQ
,..
i
I
Y!&!.j+4~
~
I@
13
,,.
!2
i
I
I
I
I
I
I
~Transmission I
rate setting 1
I
.
35
B8576537-04
c ommunications Processor
CP 525-2
CP525/524
)----------------------------
13]
Fieceiver
1 /
141 j
+24 V-
21 I
12p1
i
loj
-TxD ~,
,--j
19
-RxD
+T)d)
-20mA
u 12 & +24 V
+20MA
21
+TxD
~e{91 ,
Casillgmx
.,+RxD
/.T,~
1[ 14
+~
-.3---.------su5P__--..--f
-t-
-------- .. --- J
n
(.
,.., ,,, ,. .,,,
.,
PROMEAM
/ .- --.-- ----------------+ 5V
1
13} /) +RxD
t
\
-RxD
14
r
10
+TxD
+s
ni
1
- s
1
I
II
-1 2V
+E
+ 5V
19
-TxD
-E
Receiver s z~
\/1
Weld
-1 2V
--------------------------&--i----- .
, J_ casing
i1---------------------------
\\
\\
\i
\\
\\
....
,.
\
\
\
\
\
\\
\\
\\
\
,,*
S8576537-G3
6 . 5
CP525/524
~ --------- -----i
.-
PROMEA R
16j
+ 24 V~ v
Receiver
14
I
T i
1~
241:.
T
1!
-1-
Casing Gex
,R%
,i +20mA
1
\/ \-w
-------
+TxD
I
~
..-20mA
------
[14
.;
,
;..
115
J_--p------y~-f*------~-y~
I
,
;--------------J
,-%,
,..!..
-
JI
,. . . ,*{
38
Comnmications P r o c e s s o r C? 5 2 5 - 2
6.6
,,.
.-.
Connection
CP
PT88/89
CP 525/524
---------------I
t3i
1
r---------------,
RxD
,. +
+20mA ..
.
+ 24 V
I
I
+ 24 V
Ii
i
I -.-. -.-. -.-. -.---. -.-. -.----J; j
/I
- 0 . . . 0
51 j
7.
,!
~!
~ CTS
;:
~i
1 I
&
-.-. - . . . . . . . . . . . . . . . . . . ------
25
/
I
I
I
I
I
I
I
1
I
I
1
II
I
I
I
1
I
I
.1
I
I
; Casing GIW
,---------------
______
i
I
Note: The cable is des@ned for both TTY and V.24 SigMb. It can
therefore be used regardless of the ~ of interface used
in the printer.
With the CP 524, mke sure that you use the same interface
@De
-. as in the .urinter.
,. .,.
39
B8576537-05
6.7
Connection
G omunications
Processor CP 525-2
CP525/524
.--. ---------- 1
Modem NIO
.-t -- -------- ---------,I
,
a
Transmitter i
Receiver ~
,
,
,
,
I
~---+A--------------------+-l
.-.----- ----.
,Rls j
4
/
CasingGex
:
t
@-E-
1
0
L-- _----;
6.8
Connection
- CP 5 2 5 / 5 2 4
CP525/524
..--.
( V . 24)
CP525/524
,.--
1
i
I,
Trmitter
!
40
.,
B8576537-03
6.9
.
C o n n e c t i o n CP 525/524 - PROMEA
R (V.24)
-.
CP525/524
r ------ ------- I
I
Receiver
I
1
I
I
I
I
I
:
~
PROMEAR
r- - - - - - - - - - - - - - 1
I
I!
Transmitter
. .
Transtnitter
~~
21!
\
:TxD
Shield
7! y-----.--------
Cash)gmx
~--t
I-------------- J
. .. . .. . .
.
41
I
!
I
I
I
iI
L -------------- I
B8576S37-07
..WZW?..,
.-P07XX
.
:2i
--%
- - - - -
.$,
,,$
.
.
1:
. . . . .(king
. . . . 1:-..
:--=w
- ---------------
42
. .,
..4...+11M8
. . . . . . . . . . .
,..
SIEMENS
----
SIMATIC S5
Communications Processor CP 524
Instructions
-, .,,
C79000-B6576-C536-06
Contents
-.
Page
~=Pf
1.1
1.2
1.3
1.3.1
1.3.2
1.3.3
1.4
1.5
1.6
Application
Mechanical Design
Serial Daxdce Interface
V.24 Module
TTY Wdule
R2422-A/485 kdule
Dual-port MM: Interface to the CPU
Memory Subwdules
Technical Data
20
IiIstdhtikn
22
2.1
2*2
2.3
22
24
24
w=t-
25
3.1
3.2
3.3
3.4
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
25
26
26
27
31
32
35
36
37
setting Up
40
the BardMare
1
1
3
4
5
8
10
13
19
..-.. .,
41
44
6
6.1
6.2
6.3
6.4
6.5
6.6
6.7
6.8
6.9
44
45
46
47
47
4$
48
49
50
!38576538/4
Technical
1.1
Description
Application
The ~tims processor CP 524 can be used in the programmable ccmtrollers of the SIMATIC 5 U range (S5-115U, S5-135U,
S5-150U and S5 155U). 190te that it ~ beuaed incomjmction
withthes5135u/spmceSSa.
..
.....
The data exchange between the CP 524 and the central processor
(CPU) of the programsble cmkroller is restricted to a minimum.
Only the mriable data (current process values) are exchanged
between the CPU and the CP 524. The CP 524 has its own memry for
invariable data, which you program using the software package
COM 525.
38576532/4
Cmrmnica:ions Processor
CP 524
Note:
With the CP 524 and with special drivers you can connect other
manufacturers equipmnt to your programsble ccmtroller (e.g.
computers, printers or intelligent subsystems). For more
information about special drivers cmtactyournearest Siemens
branch or technical office.
,,
.,,,
%
B857653S/k
1.2
.....
Mechanical Des@n
CP524
(vlIfromftwt)
I
~f~
mernorysubmodule
EPROM: 16, = or64 ) KwOrdS
Modeselecmr
Emisplays
Deviceitltetface
., ..
EE57E536/4
. .
.,
V.24 molxla
RS422-A/485 mdtile
Connecting the CP 524 to the partner &vice is made easier by
using standard cable connectors (see also Section 6). If you do
not wish to use these s tandard cables, note the pin assignment of
the interface module in 1.3.1, 1.3.2 or 1.3.3.
.,=+.
..
E857653s/&
in CP 524:
CP 524 connected
to:
Module
CP 524
CP 525
AS 512C
PROMEA M
PROMEA R
Modem Nlo
CP 524
PROMEA R
PT 88/89
PT 88/89
CP 524
- module
TrY- module
.-
- module
- module
- module
V.24 - module
V.24 - module
V.24 - module
TTY module
V.24 module
RS422/A-485 module
Interconnection in
CP 524:
transmitter, receiver
active,
active,
passive,
passive,
active,
passive
passive
passive
passive
active
passive, passive
1.3.1 V.24HDdnle
TheV.24interfacemodulenot onlyhas linas for transmitting and
receiv3ng but also has a series of cmtrol snd signal lines in
accordance witi the CCITT reccmmendations V.24/V.28. For the
computer link with RK 51.2 and the PT 88/89 printer these control
signals are, however, not required and do not need to be
connected. H you want to prepare your own cable connectors,
remember that unused inputs may have to be connected to open
circuit potential on other devices. For more in.formatti refer to
the appropriate manuals and the CCIIT reccmunendations V.24 or
V.28.
5357653 S/&
Device 2
GND
Shield
.-.,:
~ ~~ Lcatiom
5657 : 53 S/&
Processor CP 524
--,.,
102 / GND
{;
.
+ 23
125 /RI
4 22
109 /DCD 48
141/ PS3 + 18
142 /PKL + 25
113
h 24
n4/TxC + 15
u5/RxC + 17
102 Shield
mlyforsynchronous
data transfer
(not available with
standard jumper
settings)
1
(<>lkmwshowsdixectionofsignal)
Signal numbering is according to CCITT reconmndaticm V.24, signal designation is according to internatitmally accepted abbreviaticms (M 232 C).
E85765:8/4
,,-
n
..
:2
Device 1
+1
~-
TRANSMITTER
I
GROUND (CHASSIS)
24v-F?1
J
enact-wedevice
arrows show direction of flow
8
.
,.
E8576536/4
The following
25-pinfemaleconnector
pin no.
----
+
4 13
Receiver
+ 14
+
4 10
Transmitter
+ 19
+
Current source
Receiver
--
16
(20 IDA)
21
current source
Ihnsmitter
(20 HA)
Ground
24 V
-* 12
-e. 24
24 V
Current generation
show direction of
. .
flow)
B8576538/4
. .. . .
in full
- in half
.-.,
B8576538/6
Cammmications Rocessor CP 5 2 4
-.,
VA . greater than +3 v
-logic O(ON)correspmds toV >VB
l@c 1 (()~) c~e~ds to $A < VB VB = ~ller * 3 v.
R(A)
T(A)
R(B)
T(B)
T(A)
T(B)
R(A)
R(B)
Shield
1
Bhield
1
E=--l
/\
/.
R(A)
R(B)
Bhield
F=R(A)
R(B)
Shield
CaIIHM: Do
11
B8576538/4
R(A)
R(B)
1)
T(A)
T(B)
C(A)
C(B)
I(A)
I(B)
B(A)
B(B)
2)
S(A)
S(B)
X(B)
3)
I
B8576538/4
-...
-.
B8576538/4
The actual exchange of &ta between the CPU and CP 524 is also
managed by handling blocks. For more details, refer to the descripticm Using the handling blocks in this mmual.
,, . . .
< ------------
I
S5 bus
User
I
Hand15ng
blocks
Data
(Standard
function
blocks)
Dual-
pom
~ RAM
Device
interface
...4, ,
BS576536/4
Addresses
..
,,
...
Dec. H=.
61952 F200
Acea:
Dual-pelt RAM
FY o - FY
c alunent
31
F220
FY 32
- FY 63
F240
FY 64 - FY 95
F260
FY 96
- FY127
F280
FY 1.28
- FY159
F2A0
FY 160
- ln191
F2C0
FY 192
- FY223
62176 F2E0
62207 F2FF
FY 224
- FY255
(1) lrcflisg~
(2048 flags)
M - area
62464 F400
(2) plge
65279 FEFF
control.MIlg/monitoring
the data exchange
- - - - - one page is available
for the detice
interface
interface number
.....
.
B8576538/4
CPUS in bytes.
- They can also be used for the data exchange between CPUS end
the CP 524. The IPC flag area in the dual-port RAM of the
CP 524 is responsible for this functicm.
The IPC flag area in the CP 524 covers2561PCflagbytes (2048
IPC flags).
With the computer linlcandBK512, the IPC flags (coordination
fl.ags)canbeusedtoiddbitand enablethedata ~ebetwemtheCPWamlCP.Byinhibitingthisexchange,youcan
prevant data that has not yet been evaluated frcm being overwritten. These IPC flags must be designated as output flag bytes.
For further details, see the users guide for the computer link
with RK 512.
.~
The IPC flags are not used, if you are working with the PT88/PT89
logging printer.
The IPC flags are transferred once per STEP 5 program cycle
between the flag area of the CPU and the IPC flag area of the
CP 524 (similar to the process image for digital inputs and
outputs) .
To prevent multiple addressing when you are using several CPS or
CPS and a coordinator in one PC, you must divide the IPC flags
into groups (jumper settings see 3.4. 2). This also applies if
there is more than me CPU in a PC.
,. :;,
:,
B8576532/4
Note:
S5-U5U:
.,,:. . . . . .2,
.-,
The pages of all the CPs in a PC are in the same address area.
..
17
E8576538/4
first CP 524
second CP 524
Page
Page
.------
Interface
number
e.g. 12
.------
.-----Interface
nuniber
e.g. 13
-------
Vector
register
Vector
register
....,,
B8576538/4
1.5
.--%
Memory
Subniodules
onlyKPBilM dsmxlules cenbeused in the CP 524, since (in contrast to the CP 525) there fs no interface to the programmer
required to load the softwere in the RAM.
The following memory aubmodules are available for the CP 524:
EP2CUaakxhiles
16 Words
32 Kwords
64 Kwords
. . .. .
type 27256.
..,.,
19
.,:
B8576538/6
1.6 Technical
Data
IPOO
Oc to Ssc
-4(PC to +70c
Humidity
code letter F
CbSS
(DIN 40040)
Operating altitude
Power supply
5 v +/- 5%;
24 V +25X/-l5X
Current input 5 V
524
1lY module
V.24 wdule
2S422-A/485 module
1.5 A mexo
0.8 A, measured statically
0.1 A, measured statically
0.2 A, WSU?X!d statically
0.5 A, measured sQMcally
Current input 24 V
TTY tie
60 M
CP
lrenemissicm procedure
lranemission rate
asynchrcsums, exchangeable
procedures
110 to 19200 @$
with TTY mx. 9600 bp$
Transmissicm cable
mex. 1 km at 9600
hUISUli.SSfOll
link V24
max. 20 m
mex. 1200 m
@$
.....,,
Design
dimensims (W x H x D)
backplane connector
(packaging system)
Weight
approx. 0.4 kg
Es 57652 6,)4
Installation
..
The CP 524 can be plugged into the following programable controllers (fan required):
&-%.5
5
I
4
I
I I I
*\
,..
S5-135U
Slot number
19
27
35
S5-15(KI
Slot number
.-. .
38575538/4
MmIru.n
S5-155U
Slot number
.:-,
19
27
35
123
131
139
..
23
38576538/4
2.3
Installation
Guidelines
The cmnecting cable between the CP 524 and a partner device must
be a cable with a shield earthed at both ends and with me-l
connectors. The standard cable connectors listed in the catalog
and in Section 6 meet these requirements.
,,-
The shield must make large area contact with the casing of the
metal connector (not on pin 7). If the partner device does not
have a metal connector, the cable shield must make large area
ccmtact with ground. If there is a large difference in ground
potential between the CP 524 and the partner device, a potential
equalizing cable should be included. The cable should be kept
away from interfering a.c. power controller cables, thyristor
drives and power cables carrying more than 500 V.
Further information about installation can be found in the Installation guidelines for SIMATIC compact devices (see ordering
data) .
.-%,
..,
B8576538/4
(hmmunications
3 Operation
CP524
RUN
Srol
IF1 IF2
.-.....,,
Modeselecm
LEDdisp@s
Processor CP 524
B8576538/4
3.2
,,
Ccxlmnm ications
Operating
Processor CP 524
Modes
Mode selector
The processor
smP
3.3 Status
Displays
,.-%
.;.
B8576538/4
3.4
,.
Jumper settings
..
V24 Module:
Jumpersettingsassupplied
-..
Backplaneconnector
...
27
B8576538/4
ITY-Module:
Jumpersettingsassupphed
, . . . . ,., - ,. . . .- ,,. .
,..
.6.
Baokpianeconnector
,--%,
...,
88576538/6
RS422-A14e~MOdul@:
Jumpers8mw$=-
0 0
Ill
2
03
Backpbe oonnector
,.
-.
29
B8576538/4
CP 524: factory
settings
.....
,,
(;.
...
1
Memory submodule
~le
o
N
N
JB 54
:
T
10
JU8 :Iil
10
Ju9
R
1
:8
JB 53 ~
.0-0%8
Testjumpews s
m
o Ju5 (1,23)
u
c
o
Jul (3,21)
~#J
.->!.,
4
N
N
E
= Ju2 (1,2,3)
c
T
IF
R
2
IF = interface
Juo.. = jumper . . .
JB ... = jumperbio
...
30
,.,
B8576538/4
16 15 141312 U 10 9
1
a:
.;
6-n
22
5-J2
23
4-13
16
24
3-14
32
25
128
27
1 2 3 4 5 6 7 8
x open: o x 2n = o
2-I.5
Jumper inserted: 1 x F
1-16
,. . .
B8576538/4
m
16 15 1413 12 11 10 9
1 2 3 4 5 6 7 8
12 decimal == ox2%0x21+lx22+lA.0x2LOx25w6e
Jmpers 6-11 and 5-12 are inserted, the other jumpers remain
F.
B8576538/4
CaImnm ications
Processor CP 524
8 7 6 5 4 3 2 1
Jumper
..<
8- 9
7-1o
6-11
5-12
4-13
3-14
2-I-5
1-16
E
9 10 11 12 13 1415 16
o
32 ;;;
64 . . .
96 . .
128 . .
160 . .
192 . .
224 . .
31
63
95
127
159
191
223
255
entered in the DBIs of tie CPUs in the S5-135U snd 115U! These
csnthenbeaddressedasflags intheSTEI?5program.
. .. . . . .
.,.,.
33
B8576538/4
64..255
first m
DB1
8, 12
IPC
output
flag
bytes
64
-t
flag
byte
second CPU
DB1
32,35,61
IPC
output
flag
bytes
first
CP 524
second
CP 524
,.m,
0..31
32..63
64
input
flag
byte
m
, ., , :.
In the same way the second CPU coordinates the data exchange with
the second CP 524 via IPC flags 32, 35, 61. On the second CP 524,
area 32 to 63 must timrefcme be enabled (jumper 7-10 inserted).
You must then enter bytes 32, 35 and 61 as IPC output flags in
DB1 of the second CPU.
Since the IPC flag area exists only once in each PC, only IPC
flags 64 to 255 can be used for other purposes. This example uses
IPC flag 64 for CPU - CPU ccmmmi=tion (IPC output flag in DB1
of the first CPU - IPC ixpt flag in DB1 of the second CPU). The
area which contains byte 64 must therefore also be enabled in the
coordinator.
. .
34
,. .,
\
B8576538/4
.-,
MOC--
Jumpers Jul snd Ju2 d~termine whether the intexnal clock pike of
the CP 524 is used as the transmi t and receive clock pulse on the
CP 524 or whether the pulse is supplied by the line
1
o
3
o Receive clock pulse internal
~ Receive clock pulse from line
Jul
Ju8
Ju2
Ju4
0
3
0 Transmitted data with normal polarity
~ Transmitted data negated
Ju3
with jumper
3
0 AU received signals must hew the
V. 24 signal level.
0---o All received signals can be in the
positive volmge range
B8576538/4
3
o CTS at open circuit potential
~ CTS at pin 5
Ju9
o
3=4.4 ~ - * = ~
With jumpers Jal and Ja2, the polariq of the transmi tted or
received data can be reversed as follows:
1
o
3
o Transmitted data negated
~ Transmitted data with nonml polariq
Jul
B8576538/4
. . .: .,. . . .
x3
x3
1 2 3
~o
Using the ~ & you can apply either the signal /PS3 or the
internal transmit clock pulse (!IMX.nt) to the two-wire line B,
providing that the txo-wire output B is set as an input by
x4
x4
~o
can use a clock pulse transmitted on the twowire line S as the receive clock pulse.
Xs
x5
.. . . .. . .
B8576538/4
Comlmm ications
Processor CP 524
X6
x7
X6
x7
X6
x7
1 2 3
o~
~o
0 0 0
o~
*-
*
%9
SMPb -
.
,. ,.,
., ,. , . - .,----,..
... -
B8576538/4
4 Setting
up the Hardware
(??3
. . ,. . . f
B8576538/4
Beck@ane cunnectorl
Processor CP 524
PinAssi 9-=ts
5
...
Cammm ications
Ov
+5V
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
Ov
+5V
ADB C
ADB 1
ADB 2
ADB 3
ADB 4
ADB 5
ADB 6
ADB 7
ADB 8
ADB 9
ADB1O
ADBll
E
DBO
DB1
DB2
DB3
DB4
DB5
DB6
DB7
Ov
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
.....,,
41
TOPPA
H 24 V M 24 W
Ov
+ 24 T
Cclnmnm ications
B8576538/4
Processor CP 524
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
SADB
SADB
SADB
SADB
SADB
SADB
12
O
3
6
9
13
SDB 10
SDB 13
SDB O
SDB 3
SDB 6
Csl
CS2
Ucms +5 v
+5V
If
+5V
SADB 2
SADB 5
SADB 8
SADB 11
GE
SDB 9
SDB 12
SDB 15
SDB 2
SDB 5
SADB 1
SADB 4
SADB 7
SADB 10
SADB 14
SDB 8
SDB 11
SDB 14
SDB 1
SDB 4
SDB 7
CS3
a
M
K1
K2
K3
K4
K5
.,,... .,
B8576538/4
CQmuxun
1
2
3
4
.>.
5
6
7
8
9
10
11
12
13
14
15
16
, , -...
M
+5V
SsKl
M
+5V
M
+5V
SSK2
SSK3
m l
in
iiiii
lIf24 V
+ 24 V
RxD
1! 24 V
+ 24 V
FiE
iii!ii
xii
E
G
E
!hc Int.
he Int.
+ 24 V
B8576538/4
6 Standard
Cable
Connectors
For the nmst ccamKRI connections between devices there are slxndard cable connectors available (see ordering data).
.4---
CP525/524
CP525/524
13; .-, +~
1
,41 I
-RxD
r I
1
211
-20mA
T
$szRecehmr ,
I
i
I
I
121 !
+24 V-CO-:
:
~~
i
!
!
I
+20mA
-TxD
,.-, 119
+TxD
+TxD
I
~
-TxD
+FtKD
&LS!!?-
f??
... ,. .;,
!13 Receiver z s~ ~
\ / !
+ I 1
- - - f- ~
\
-
44
.,
,,
. ,:
B8576538/4
CP525/524
.. -1
PROMEAM
.---- ----- .
-.i
-----!
B8576538/4
6.3
Connection
CP 524/525 - AS
CP525/524
.-. -----------------. +RxD
-TxD
, .,,,,
,,
AS512
;---. ---- -- -------------,
i 14
,
.....
mix+
I
o
i
X*
1! .
~--y---------_____-A_+___
~ J_ Casing
.- -------..--------1 t
23
-t
11
~ 24
f 12
,2s
q 13
.--
Note: to generate
(-?
,. . , ..2
B8576538/5
COIL
6.4 C o n n e c t i o n CP 5 2 4 / 5 2 5 - PROMEA
CP525/524
.,. -
PROMEAR
6.5
:,
Connection
CP525/524
.--,
.....
.,
R (TTY)
.--3
----1
,
:
Shield
::
!:
Receiver
,., ,., ,
-1_
* I 1
bmmunications
B8576538/4
Processor CP 524
.-
CP525/524
Transmitter
31 :-.,, FM)
T
! ;
TxD
Transmitter !~
M
R@
, , , .
- ---~
!:-------------~n9Gex
~-~
..-------:
1.
Shield
i-----
6.7 Connecti.on CP
0
,
PROMEAR
,---------- ------------,
Transmitter ~
TxD ,<.,, / 3
: :
3! f-, FfKD
r : ,
:,, i \:
, ;
7 ~ ~:
I
,
Transmitter ~ ~ i
2i\
------
CP525/524
-- ----------.
Receiver
v:
------------------------..4--+--{
~casinmex
~~
: TxD
o
i
Shield
;
- r ~ - - L-- ---------
,
L---------. -----!
B8576538/4
6.8 Connection
PT88/89
CP 525/524
,
/
\
I
4
I
I
I
,
:
I
,
I
,
:- ------.-- .---------,
L---.-------.
---->
Note: The cable is designed for both Tl!Y and V. 24 signals. It can
therefore be used regardless of the type of interface used
in the printer.
With the CP 524, make sure that you use the same interface
qpe as in the winter.
B8576538/4
Ca xmzunications
6.9 Connection
CP524
,..---------------_-_--,
Processor CP 524
CP 524
.- -----_----------------a
4
,
I
1
i
8A
\/
/18
\;
I
1
/s
$
t
!!
C=fw-
I
1
9!
weld
~_ --1~-~ --------------------------&--+J---l
8
LCesingfk
- \
I
- _- -- --- J
! --------- ---------- _!
,.
....
-.
. . . .
siemens Alaengesellschaft TW WUMiW,
tranamiaeion
o r ~ of this
document or its contents is not permitted
without express written authority.
Offandesa will be liable for damages. All
rights. incfuding rights ccaated by patent
grant or registration of a utility model or
deaicin, are resewed.
. . . . . . . . . . . . . . . . . . . . . @ siefnen6
AG
0 6 8 9 0 . 5 AB 54 E n
19SS
.,*,C,*>*..<W+. $.T::..:.:::::. .,...,<,::. >, .,..::,...:?:,,
SIEMENS
.,
.
.,
,,,
L.,.
,.:.
.. ..,.
SIMATIC S5
Computer Link with RK 512
Users Guide
C79000-B6576-C5W-(M
Page
contents
. . .. .. . .
lmlctime
5
7
ml.
&me Rmctims
12
12
13
17
18
21
26
3s
Settiqp8nd
--q
38
38
38
38
39
39
3
41
42
44
Emxslkmllkansferred?
45
48
51
54
5Pmcaame
55
55
55
57
59
60
61
63
63
65
67
68
69
=~- @-t*
71
-J-
72
7.1
7.2
7.3
7.4
7.5
7.6
72
81
85
85
87
90
=~
94
8.1
Can58doatbytbamu
8.2
8.3
100
124
162
176
B8576539-04
Functions
...
.h.-
B8576539-03
CPU
CP 525
Pcl
L
CPU
CP 525
PC2
PC
{$
,
,.. .
B8576539-04
The interaction during dam exchange between progpsnmalhle controller 1 and 2 is shown in the following diagram.
>
,..
.:. .
.,..
..:,
PC1
PC2
STEP 5
user
progrsm
CP 525
user
Prw=l
CP 525
user
program
STEPS
user
pro-=
CPU
C? 525
CP 525
CPU
vIi
s5-
nan-
II
dling
blocks
Inter-
preter
preter <
II
Job
block
II
Eandlirlg
blocks
II
s5-
lmer-
Data
vH
Job
block
vH
Data
B8576539-C3
in the cPU contains all the specifications regarding the source or destinatim of the data in ita
- PC.
The Ckta badlbg block
.,
To make use of the computer link, you require two programs for
jobs
and
- the CP 525 user program in the CP 525
including the jobs in the job block and the procedure and
interpreter
Interpreter: msnages the data exchange
Procedure: implements the transfer
The programing package (%X4 525 supports you when you are
generating the CP 525 user program.
.,
*
B8576539-03
1.1
...
of PC 2 (SEND job).
Pcl
CPU
CP 525
1
l- ~
DIRECT
n
I
N
Procedure
Procedure
1:
I
IA
T
I
SR?D
Au
I I
vII
II
II
Dsta
source
vII
1 II
Inter-
limer-
preter
preter =
RECEIVE
AIL
vII
II
Job
block
Dsta
destination
n = job number
. . . ...
.,.,. .
5s57652 9-03
512
.,
the CPU of PC 1. II&s initiates the call-up of the data from the
data source in the CPU of PC 1 by * interpreter of the CP
(PC 1). The SEND DIRECT requires the following parameters to be
specified:
- interface number of the CP 525 in PC 1
- the nmber of the correspcmding SEND job on the CP 525 (PC 1)
- details of the data source (where the data to be sent is
stored in the CPU of PC 1)
The data transfer from the CPU to the CP 525 in PC 1 is handled
by the HDB SH!lD ALL.
The following parameters are assigned to the SEND job in the job
block on the CP 525 of PC 1:
- the mmber of the correspmding SEND DIRECT in the CPU
- details of the data destination: i.e. , where the data is to be
stored in the receiver (PC 2)
This information is sent to the receiver PC 2 along with the
data.
No job block is necessary on the CP 525 in PC 2. Ik the CPU of PC
2, the handling block ~ AU is called cyclically. This
handling block transfers the data received by the CP 525 to the
CPU. The RMEIVE AIL is assigned the interface number of the
CP 525 plugged into PC 2. (To set the interface number, see the
instmctions for the CP 525 in this lnamlal) .
,-.
%576539-03
.,.
..
-.
job
Pcl
Pc 2
CPU
1
l-[
DIRECT
n
I
N
I
Roce-
l
11dure I
=(2)
vII
RECEIVE
ALL
4
vII
Data
destinatim
n = job number
Interpretax
Job
block
II
nmer-
preter <
AIL
1-1
II
Data
source
38576539-03
EJE576539-03
e>
- the SIZP 5 user program for the CPU (with handling blocks)
- the CP 525 user ~ for the CP 525
You generate the CP 525 user program using the mogramI@
package COM 525. A detailed desc=iptim o; the =ctims of
COM 525 can be found in the users guide Programming package
COM 525 in this manual.
The STEP 5 user program for the CPU contains the handling block
calls. More detailed information corm erning the handling blocks
in conjmction with the contputer link can be found in the descriptim Using the handling blocks in this manual.
The next pages provide an cmrview of the following:
- the parameters requixed during progmming
- where these parameters are to be specified (STEP 5 or CPU 525
user program)
- the significance of the parameters in a wider context
In addition, Section 2.6 contains the job tables that list the
-ssible c~b~tions of P=mters. Use these tables to check
whether the transfer you requ.ixe can be implemented.
.....
........
,.:(
.,
38576539-03
,;
,
.
#-
to?
ml,
B8576539-03
3.
.. ,
......
..
. . .
STL
CSF
F
D
0
F
D
1
B8576539-03
Kwords
Interpreter and procedure
for device interface 1
4 Kwords
Interpreter and procedure
for dewice interface 2
8 Kwrds
available for ~ data
(job block)
and their manager
= .
. .a>, \
B8576539-06
2.2
.
using
the software package cXM 525 you nust assign parama tars to
a job block if your CP 525 is to transmi t daG3 to a partner, or
fetch data from a partner on its an ~ .
A CP is active when it transmits cm its own initiative. A CP is
passive when it cannot operate on its mm initiative; i.e., data
follold.ng:
(1) - job Inaer - nalst match the Mmtber specified in the HDB
(SEND DIRECT or PETQi DIBECT). The job numbar cml Ilmm values
between 1 and 189.
..... \
,-, . . .
data blocks
system data
absolute addresses
extended date blocks
B8576539-06
a FETcH job can fetch data from the following types of source:
data block
flag bytes
input bytes
output bytes
1/0 bytes
timer locations
counter locaticms
system data
absolute addresses
extended data blocks
exten&d 1/0s
(4) Deatinatial addraas for SEND or aaxrce addrasa for FETCH limit values depend on the data type.
Notes on
a- flags:
In conjunction with the compter link, the term IPC flagw can be
replaced by coordinatim flagw.
Using coordination flags you can enable or inhibit the data exchsnge between the CPU and CP.
14
,:1
58576539-03
>. .. .
In the SEND or FETCH tekgram the byte and bit number of the
coordination flag are transferred to the partner, which then
evaluates them. This prevents as yet unprocessed data from being
overwritten or read. The partner Mce then sends a reply
message with an error number to the active CP 525.
You can write the STEP 5 user program in the CPU of the active CP
so that it evaluates the received error number ana repeats the
SEND or FEI!CH message later.
For more information cm coordination flags refer to the section
in the instructions for the CP 525 (Whabling/ disabling IPC
flags). The coordinaticm flags must first be enabled by means of
@W=s on the -e. In some PCs the Coordination flags must be
defined as output IPC flags in DB 1.
B8576539-03
O to 223
7 or
no specification
o to
f, ..
j?
..,.:
B8576539-04
2.3 Assigning
Procedure
,,. ., . .
.-, .
dure in the CP 525 user memory. For the cmputer link these are
as follows:
19200
9600
4800
2400
1200
600
300
150
xate
bps (*)
bps
bps
bps
bps
bps
bps
bps
110 bps
(*) 19200 bps are only allowed if you use the V.24 interface with
the CP 525/CP 524 or the RS422-@W5 interface with the CP
524. In this case you can only load and operate m interface
vith the CP 525.
prioriq tr ansmits its telegram first and the partner with lower
17
B8576539-03
The following parameters are fixed for the 3964 and 3964R
procedures:
character length in bits:
8
- parity:
~
- number of stop bits in bits: 1
18
,-.,
B8576539-06
DB
n!
:
PB
TB
CB
M
As
DX
OB
1,
wwiously PB
2, F evi.ously OB
(6) Scume ~ (QUiE) witb SEND DIRE(7I or
=. E (w) with FZTCE? DIREC1
19
,. ,- . . _,. .. . . . . . . . . . . . .. .. . . . . . .
,,
.
28576539-03
or
;--%%
..$
B8576539-03
SSNR
interface Ilumberiso
A-NR
job number is 1
condition codeword is flag word 12
source is a data block
witi number 20 and
with the start address 10
10 data words will be sent
FYU. is selected for parameter
assignment errors
DB
;=
QM.E
20
10
10
Pm
- the SMD AIL HDB that transfers the data from the PC to the CP
must also be called. It requires the following parameters:
!Els
58576539-03
folbuixIg:
SEND
DB
1
5
-
- the interpreter I/X 512 and the procedure (e.g., 3964). For the
procedure you must set the following:
data rate
priority
9600
low
bpS
B8576539-08
In Pc2ymu =@= * f~:
interface number is O
job number is O
ALL function is selected
condititm codeword is PU 6
FY4 is selected for parameter
assigment errors
o
A-NR
PAFE
PW6
FY4
@lt@3 the
9600 bps
higher
,.....
23
BS576539-OS
- the call for the PEIW DIMCf HDB to trigger the job:
SSNR
A-NR
2
m134
DB
20
30
3
FY33
ZTYP
DBNR
ZSAE
Pm
as for task I
job mmber here is 2
ccmdition codes in PU34
destination is a DB
with no. 20 and
start address 30
fetch 6 bytes -3 uvrds
parameter assignment errors
WR
A-NR
Pm
FU27
FY26
interface number is O
job mmibar is O
AIL fmctfon is selected
condition codeword in FU27
parameter asslgment errors
in FY26
24
B8576539-08
,.
flags
7
data rate
priority
9600
low
I
bpS
In Iv2ymrequims * follming:
- a SMD ALL HDB as follows, which transfers the flag bytes to
its CP:
SSNR
A-NR
o
0
FW40
Pm
PY39
interface number is O
job number is O
ALL function is selected
FW40 is selected as ANzW
PY39 selected for parameter
assigment errors
B8576539-06
...
-!
2.6 Job
9600 bps
higher
Tables
in
26
B8576539-03
Computer
,. . . . .-
DBNR
$%
=sourcetype
= date block number
=sourcestartad&ess
=sourcelength
Z-rgp
Z-DB
Z-A&
CF-poss.
header, bytes
. . .. . .
E
M
E
=
u
destination type
data block number of the destination
destination start address
coordination flags possible?
telegram header of the data
transmission on the line
B8576S39-08
,, . . . . . ,
22L
DEwt. ,
tom2
Pcl
D=
a-
Data block
Data block
DB
3-255
0-2047
1-204s
Ext. DB
Data block
Dx
3-255
0-2047
1-2048
.
.
Flags
Inputs
outputs
irrel.
=-.l.=-
I
I Data block I IB I irrel.1 O-127 I 1-128
Date block
QB
irrel.
O-127
1-128
CB
irrel.
0-127
1-I.28
Date block
PY
irrel.
O-255
1-256
Sy-ldr. 135U
Sys. addr.
Rs
5rrel.
O-255
1-256
sy-Adr. 150U
Sys. ad&.
Rs
irrel.
0-511
1-512
Abs. addr.
Abs. addr.
As
irrel.
O-+32767
-32768
1-32767
ext. 1/0s
only for
Pc 150U
Data block
OB
irrel.
0-255
1-256
28
B8576539-03
....
DB
3-255
0-255
yes
AD
DB/DW
words
DB
3-255
0-255
yes
Ax
DB/DW
words
DB
3-255
0-255
yes
AM
DB/DW
Bytes
DB
3-255
0-255
yes
AZ
DB/DW
Bytes
DB
3-255
0-255
yes
AA
DB/DW
Bytes
DB
3-255
0-255
yes
AZ
DB/DW
Wbrds
DB
3-255
0-255
yes
AZ
DB/DW
mrds
DB
3-255
0-255
yes
AZ
DB/DW
words
DB
3-255
0-255
yes
AT
DB/l%J
words
DB
3-255
0-255
yes
AT
DB/DW
words
DB
3-255
0-255
yes
AT
DB/DW
words
DB
3-255
0-255
yes
AP
DB/DW
-s
Rs
O-255
no
AB
Address
words
Bs
0-511
no
AB
Address
words
As
O-65535
no
As
Address
Words
DB
3-255
0-255
yes
DB/DW
Byte
....
29
B8576539-06
Source,
,-
Secdti
Pcl
Dest .,
toFc2
DBNR
QANF
QIAE
Data block
Ext. DB
DB
3-255
0-2047
1-2048
W. DB
Ext. DB
DX
3-255
0-2047
1-2048
Flags
Ikt. DB
FY
irrelo
O-255
1-256
Inputs
Ext. DB
IB
ixrel.
o-127
1-3.28
-=
Ext. DB
QB
irrel.
o-127
1-128
ounters 115U
Ext. DB
CB
irrel.
O-I.27
1-128
omters 135U
Ext. DB
CB
irrel.
o-127
1-128
muters 150U
Ext. DB
CB
ixml.
O-255
1-256
I!imers I.lsu
Ext. DB
TB
irrel.
o-127
1-128
r-s 135u
Ext. DB
TB
irrel.
O-I.27
1-128
ras mu
Ext. DB
TB
in-a.
O-255
1-256
[/0s
Ext. DB
PB
tmel.
O-255
1-256
=. 1/0s
mly for
PC lsou
Ext. DB
OB
irrel.
O-255
1-256
.-%,
B8576539-06
I Psram.
.
Z-lyp
tZSS@X1. in C(IM
525 in PC 1
3-255
0-255
yes
Dx
3-255
0-255
yes
ox
Dx
3-255
0-255
yes
(x4
Dx
3-255
0-255
yes
OE
Dx
t
E
Dx
OD
OA
Dx
Dx
=-H
H
Bytes
Bytes
Bytes
=3-=3
Dx
3-255
0-255
yes
Oz
xx
3-255
0-255
yes
Dx
3-255
0-255
yes
OT
Words
Dx
3-255
0-255
yes
Words
Dx
3-255
0-255
yes
OP
Dx
B8576539-06
2. Fetch data: All data types can be specified as the source in the parmer PC.
On the right-hand side there are three colums witi specifications for the telegram header. These specificatims need to be
taken into account mly if you are using a device of a different
mske as the partner, and you are implementing the cosmumications
software yuurself; or if you wish to mmitor the dam exchange on
the line uiti an interface test tie (FOXFG). The specifications refer to the ccmtents of bytes 3 to 8 in the header of the
FEIWl telegram.
Explanation of the abbrtitions:
parameter assignment of the HDB
ZTYP
= destination qpe
DBNR
ZSAE
Q-Adr
CF-poss .
header, bytes
= source type
= data block number of the source
= source smrt address
= coordination flags possible?
= telegram header of the data
trammission on the line
33
B8576539-03
Source:
Dest. :
fetdlIW2
inlcl
Data block
Dsts block
W. DB
ZANF
DB
3-255
0-2047
1-2048
Dsts block
DB
3-255
0-2047
1-2048
Flags
Dsts block
DB
3-255
0-2047
1-M8
-s
Dsts block
DB
3-255
0-2047
1-64
-=
Dsts block
DB
3-255
0-2047
1-64
Dsta block
DB
3-255
0-2047
1-I.28
DB
3-255
0-2047
1-X28
DB
3-255
0-2047
1-256
Timers l15U
Dsts block
DB
3-255
0-2047
1-I.28
Timers 135U
Dsta block
DB
3-255
0-2047
1-128
Timers 150U
Date block
DB
3-255
0-2047
1-256
1/0s
Dsts block
DB
3-255
0-2047
1-128
sys.Ad.135u
Sys. sddr.
Bs
ixrel
O-255
1-256
sys.Ad.150u
Sys. Sddr.
Rs
irrel.
0-511
1-512
Abs. ear.
13.5 u
Abs. Sddr.
As
ixrel.
O-+32767
-32768
1-32767
Abs. ad&.
135u/150u
Abs. Sddr.
AS
irrel.
O-+32767
-32768
1-32767
ext. 1/0s
only for
s5-1.5ou
Dsts block
DB
3-255
0-2047
1-128
CQunters M.5u
. . . . . . . . . ~ . ,. .--,...
,/-..
,. ...=*,
B8576539-03
P~.
Q-TYP
sign. : b cm 5:
Q-DB
5/6
--4
bytes
7/8
Q-DB/Q-Ad Mm. in
----
Data bl
O-255
0-255
yes
ED
DB/DW
Wor&
Ext. DB
O-255
0-255
yes
Ex
Dx/Dw
0-254
no
EM
L@e addr
Input
0-126
no
EE
me addr
output
O-X26
no
Eli
byte addr,
Counter
o-1.27
no
Ez
knmter IX
counter
o-127
no
E?
bunter
Oounter
O-255
no
Bz
titer IX
O-127
no
ET
Timer m.
Timer
O-I.27
no
ET
Timer rm.
TinEIZ
O-255
no
Er
Timer no.
1/0
0-254
no
EP
1/0 addr.
Sys . det .
0-255
no
EB
Sys.addr.
Sys. det.
0-511
no
EB
Sys .addr.
Abs. addr
)-65534
no
Es
Abs .addr.
Words
AbS . ad&
)-65535
no
ES
Abs .addr.
Words
Wor& I
IX
1
1
Bytes
Bytes
Bytes
Wix&
1
Words
words
words
words
Wor&
Bytes
Words
Words
ext. 1/0
. ,,.
e..=,... . . . . . . . . . . . . . . . . .
O-254
no
1/0 addr.
..........
J
Byte
. . . .. . .. . . . . . . . , . . ..
B8576539-06
Source:
fetdlfmm
=2
Dest.:
inlcl
Psrsm. Sss -t ~ ~B ~ ~ 1
DBNR
ZANF
.
Dsts block
Eict. DB
Dx
3-255
0-2047
1-2048
Ext. DB
Ext. DB
Dx
3-255
0-2047
1-2048
Ext. DB
Dx
3-255
0-2047
1-128
Inputs
Est. DB
DX
3-255
0-2047
1-64
outputs
Ext. DB
Dx
3-255
0-2047
1-64
Counters 115U
Ext. DB
Dx
3-255
0-2047
1-128
$omters 135U
Ext. DB
Dx
3-255
0-2047
1-128
hl!lters Mm
Ext. DB
Dx
3-255
0-2047
1-256
Timers l15U
Ext. DB
Rx
3-255
0-2047
1-128
Timers 135U
-. DB
Dx
3-255
0-2047
1-128
Timers 1.50U
Ret. DB
Dx
3-255
0-2047
1-256
I @
M. DB
Dx
3-255
0-2047
1-128
ext. 1/0s
only for
Ss-lsou
Ezt. DB
Dx
3-255
0-2047
1-128
36
B8576539-06
Param. assign. i
Q-DB
Q-bP
I
==-l-=
-
I
DB/DW
O-255
yes
Ex
Dx/Dw
0-254
no
EH
byte adck
O-126
no
EE
byte addr
Bytes
-i
O-I.26
no
EA
byte addr
4
4
0-3.27
Ez
Comter n
o-127
E?
knmter xx
counter I
O-255
Ez
bunter xx
O-I.27
Xm
ET
Timer no,
-1 ,
Hmer
o-127
no
ET
Timer no.
rimer
1)-255
no
ET
Timer no.
D-254
no
EP
1/0 addr.
3-254
no
EQ
1/0 addr.
1/0
d
m.
. . ... . ..
ED
Counter
yes
Comter
1/0
-1
O-255
Words
Words
Bytes
Byees
Words
Words
--l
Words
Worda
Worda
words
Bytes
Byte
B8576539-03
3 Settings
and
Start-up
,-..
3
-:..
B8576539-03
3.3
Start-up
Routine
front panel of the CP 525 light up. The CP 525 now checks the
follod.ng:
- the MM and EPROM are ticti.mal
Ihesmmmjobis inkiamd
..
after*
~-P #-e
39
,,7
B8576539-03
B8576539-03
Note:
Aborting a PC job by mans of SYNCHRON can also cause a further
error status.
,.
intarprater
fram the partner (if a
errors) .
The ~S of the
oS!mPorm
These settings are identical. They are used to stop the transmission of data ml * serial transmis sion 1*. Any jobs arriving
are rejected wi~ an error message.
jobs (SEND/FEPCii) are terminated with the error number CH in
the cad.ition codeword. The error number 27H is written in
- PC
SYSTAT.
- Partner jobs are rejected with a reply telegram containing the
error number 2AH. The number 4EH is entered in SYSTAT.
.,
B8576539-03
switxhiqgtaemodesdactor
mm m smP~
front panel goes off (only if the intqeter and procedure are
loaded). The CP 525 does w go through a cold restart when the
mode selector positicm is changed.
42
#%,
B8576539-03
Before the soflxare of the CP 525 goes to the wait status, the
job currently being proce ssed by the partner and CPU is canpleted
without an error message. kpmding cm the number of items of
data to be transmitted, it may therefore take sane time before
the wait status is actually adopted.
During the wait status no jobs sent by the partner (partner
jobs) csn be processed. The procedure does not react to characters arriving via the serial interface. During the wait status
the LEDs on the front panel are lit.
During the wait s~tus the CP 525 also rejects auy jobs from its
own CPU (PC jobs), instead %wmrload is indicated. Thfs is
r~ed W * e== *r 9~ ~ * pm W= of *e job
affected. In rare cases, a PC job might be completed (terminated
vitb error) before the PAFE error message (number 6H in the
condition codeword and U.H in SYSTAT). In this =se the PC was
unable to recognise the overload early enough.
Following the transfer, the sofmare remains in the wait status
until yuu initiate a cold restart on the interface, either with
the cold restart key on the PG, or by switching the mode selector ml * CP from STOP/PGR to RUN.
Following the cold restart the IEDs on the front panel go off if
the transferred program is correct and uxuplete. Following the
transfer, a SYNCHRON job is no longer reqdxed.
..
43
B8576539-04
place on the
1. ~ =
2. Fnmake lsvd.
The telegrams are c&nged into a particular format and integrated
~to * ~.
3. ~ le?lml
The hardware MM covers
transfer. The CP 525/CP 524 can operate either with TTY (current
loop 20 mA) or with a voltage level V.24. The front camectors
. .
are designed for both types of signal. In addition, the RS422A/485 module can be used h the CP 524.
CP 525 (1)
CP 525 (2)
ma
Data
E!El
I
I
Pmcedmm level
EEl
I
B8576539-03
4.1 Telegram
..
Level
~ ~ to @ 525 (2).
-Y ~ to @ 525 (1).
45
B8576539-06
,.
,-
Byte
1
3
high low
high low
OOH
(R)
conmsnd
dest ./source
nmber
OPu Ilo./cP
5 and 6:
7 and 8:
~x* = extended DB
D = data block
=
VA*
= output l@es
E q bytes
Qp* = IN bytes
qqt = fq bytes
CT! = timer locations
z Culnter locatims
*B1
= system addresses
S = absolute addresses
Q = extended 1/0s
destination address for SEND or source address for
FEKH, e.g.: byte 5 = DB no. and byte 6 = DW no.
number of pieces of informsticm data to be transferred,
9:
depending on the ~ in bytes or in words
byte number of & coordination flag. If no CF ti
specified, this contains FFH
10: bits O to 3: bit number of the coordination flag (CF)
If no @ is specified, PH is entered
bits 4 to 7: CPU number, a number from 1 to 4.
If no CPU mmber is specified, but rather a coordination ~, this C~tSiIkS ~. ~ no ~ m. and m ~ is
specified, byte 10 ccmtains FFH. In both cases all
CPIJS are possible at the partner.
, ,...,>
B8576539-03
,.. . .
,...
.-,
..
aldcummta ~-==w~
The reply telegram consists of four bytes and contxdns informaticm about the processing of the job.
Byte
[
Iomml m I m I=r
1:
2:
3:
4:
B8576539-03
4.1.1 Smiillgmta
SR!JD job: CP 525 (1)
Sd dsa
CP 525 (1)
interpreter <=> procedure
to CP 525 (2).
CP 525 (2)
procedure <+ interpreter
=
~~
(telegram header + dats)
< -Y~~ -
B8576539-03
Sequmceufewentsfcma SHi#) ~:
CP 525 (1)
-.
STx
< DLB
telegram
header
data
02H
10H
1st byte OOH
2nd byte OOH
3rd byte 41H
4th bJme 44H
5th byte OAH
6th byte OIH
7th byte OoH
8th byte 32E
9th byte FFH (byte)
lOth byte FFE (bit)
llth byte
12th byte
n
m
w
Ml byte
DLE
10H
Em
03E
< DIX
10H
< S!CX
reply
telegram
CP 525 (2)
DLE
< 1st
< 2nd
< 3rd
< 4th
< DIZ
<ETX
DIE
02H
10H
bJme OOH
byte OOH
byte OOH
bp OOH
10H
03E
ICH
~>
>
>
>
>
>
>
>
>
>
>
>
>
start character
pos. acknowl.
SEND Camnand
error
number
end identifier
w
pos. ac.knowl.
...
The characters marked * are added to the &ta field with the
telegxam header during tie trausfer by the 3964 procedure.
,,
B8576539-03
.,
,.
The telegram exchange for a SEND telegram without errors and with
a length less than 1.29 bytes is caupleted (the fourth byte in the
reply telegram does not contain an error ~).
...-. .,
FolAm+m SR!lD tebgmms
A follow-on SEND telegram is started if the volume of data to be
CP 525 (1)
STX
02H
< DIZ
10H
1st byte FFH
follow-on
2nd byte OOH
tele. header 3rd byte 41H
4* byte 44H
5th byte
6th byte
m
data
w
Xth byte
DIE
10H
Em
03H
< DIE
10H
<s!lx
CP 525 (2)
follow-on
reptel
02H
DLE
10H
< 1st byte FFH
< 2nd byte OOH
< 3rd byte OOH
< 4th byte 00H
< DIE
10H
< E m
03H
DIE
10H
within 5 sec
*
start character
~> pos . aclmcwl.
end identifier
w
W
pos . aclauwl.
.,.,
B8576539-03
4.1.2 Fe_lkxea
FEK3 job: CP 525 (1) requests de- from CP 525 (2).
CP 525 (1)
CP 525 (2)
if error
dats
Im
B8576539-03
telegram
header
reply
telegram
data
CP 525 (2)
DIZ
~> end identifier
10H
w
~>w
ETx
03H
< DLE
10H
<
<
<
<
<
<
<
<
SJX
02H
DLE
10H
1st
byte
2nd
byte
3rd
byte
4th byte OOH
5th byte
6th byte
7th byte
w
w
w
< Xth
< DIE
<ETX
DIE
~ start character
~~s. acknowl.
OOH
OOH
OOH
error nuuiber
I.st data byte
2nd data byte
3rd data byte
w
w
w
m
byte
/,..%.
w
n
10H
03H
10H
~~s. aclumwl.
....
52
B8576539-03
CP 525 (2)
CP 525 (1)
02H
S I X
< DIE
follow-cm
tele. header
follcw-on
reptel
1st byte
2nd byte
3rd byte
4th byte
DIE
Em
< DIE
10H
FTH
OOH
45H
44H
10H
03H
10H
<slx
02H
DIE
10H
< 1st byte FFH
< 2nd byteooH
< 3rd byte OOH
< 4th byte OOH
< 5th byte
< 6th byte
w
m
w
data
< Xth
< DIE
< m
DIE
byte
10H
03H
10H
error nmiber
129th dsta byte
130th data byte
w!!
mu
w
w
nth dats byte
~ end identifier
w
~W
~> pos . eclmowl .
53
B8576539-03
--
- CP 525 (1) must smt send information da=, ~en CP 525 (2) is
sending inform ticm data.
- CP 525 (1) must wait until the telegram is completed with
~~ fran CP 525 (2) and UXO from CP 525 (1).
Under certain circumstances, (if both CPs wish to send), a SEND
f--%
., ..,, ,.,?;
S~ telegram ~
----Jew=~P=f==
4E==u= 1st follow-on reply telegram
2nd follow-m SEND telegram ====+
(*)
. ...
B8576539-03
..
.,
Procedures
5.1
Procedure
3964
5.1.1 Rocduca ma
The procedure 3964 ccmtrols the flow of data between P= mgramable controller and ~ partner, e.g. , a central process
CCSWpUt~, another CP 525 or an AS 512C . In the CP 525, the
interpreter transfers the data to be sent into q hxffera for
the procedure. The pxmxlure sends this data along with the
trammission protocol 3964 to the partner; if necessary repeats
the tmnsmissicm, and signals non-rec overable errors to the interpreter.
3964 ~e fi aU ~, bit =* transfer procedure. The tmnsmissicm rate both sending and receiving Bmlst be
* ~ ~ tlM CP 525 ad 011 the psrtner (~ because
there are no timing circuits belxeen the mo devices).
~
B8576539-04
I
SA= StSXt bit
I* =informationbitno.
PA= pariqbit
so= stop bit
The control characters for the 3964 procedure are taken from the
DIN s~d 66003 for the 7-bit code. Eowever, the Cbaracter
length used is S-bit (bit 7 = O). There is no code prescribed for
theinf Ormation characters (code Usnsparency) .
You can set the following procedure parameters when writing the
Olktaratxs
The speed of the data trammission is specified in bps. You can
,,
B8576539-03
,.?.
higher Prioriq
lower priority
The following are fixmd for the 3964 procedure:
8 bits
character length:
nmber of stop bits: 1
parity bit, i.e., checking for even parity
out) .
.. -----
Each DLE character found in the buffer is sent as two DIE characters (DIE doubling), i.e. , the date (1OH) is sent twice.
57
B8576539-03
After sending the contents of the buffer, the procedure adds the
characters DLE and ETX as end identifier and waits for sn aclmowledgemant . E the partner sends the character DIE within the time
allowed (QVZ), the data field was receiwed witit errors. E the
-= replies W* W, any O* character (except Dxx), a
corrupted character, or if there is a timeout, the procedure
begins again with the link establidment SK titer a total of
six unsuccessful attempts to send the data field, the procedure
breaks off the attempt, signals the error to the interpreter snd
sends NAK to the -r.
If, while data is being transmitted, the partner sends the character NM, the procedure breaks off the field and repeats it as
previously described. If any other character is received, the
procedure waits for the character delay time (ZVZ) to elapse and
then sends NAK to reset the partner. Then the procedure begins
the transmission again with the link es~blislment STX.
Example of a data
-e without
errors:
Partner
CP 525
procedure 3964
(e.g. AS 53.2 C)
>
DIE
let character
.
.
.
nth character
DLE
>
>
>
>
>
DLE
/---
B8576539-03
5.1.3
..-
In the idle state, i.e., when there is no send job to be processed, the 3964 procedure waits for the link to be established by
* ~
field was received without errors (or NAK with errors). The procedure transfers the contents of the input buffer to the interpreter and returns to the idle state.
If there is no empty input buffer available when the link is
established with SIX, a waiting time of 400 ma is s~ed. H,
after this time has elapsed, there is still no _ input buffer, * error is signalled to the interpreter. The procedure .
sends a NAK cbaracter and returns to the idle state. E an input
buffer becoms available, the procedure sends the DIE character
and receives the data as described above.
B8576539-03
CP 525
Partner
procedure 3964
(e.g. AS 512 C)
<STX
>
DIE
<
1st character
.
<
<
<
<
<
DIE
nth character
DLE
m
>
----
B8576539-03
You set the priority parsmeter when writing the CP 525 user
progrsm with CUM 525 in the ASSIGN FROC. PAM. mask. Remmber
that one device must be assigned higher, end one lower prioriq.
. . . .
,-.
E=mple of resol~ sn i.nitialsation conflict:
CP 525
procedure 3964
lcuer priority
Partner
(e.g. AS 512 C)
higher priority
>
STX
<
S!IZ
>
DIE
<
<
1st character
.
<
<
<
<
DIE
SJ!X
nth character
lxx
EJ!X
>
>
<
DU
5.1.5 Rocdnre ~
The procedure recognises errors caused by the partner*s reacting
61
),.
B8576539-03
The interpreter enters the error number received fmm the procedure in the error message area of the SYSTAT. The significance of
the individual error numbers can be found in the error tables in
Section 8. E the erxxm occurs during transmission for a PC job,
the job sab.as also has an error entry.
If you find that there is often an entry for send or receive
repetitions in the error message area of the SYSTAT, but it does
not have an exact error number, you can assme sporadic dis mrbances of tie data exchange. These disturbences are ~sated by the number of repetitions. You should check the transmission line for sources of interference, since the effectim
&w rate and reliabili~ of transmis sion are reduced by large
mmbers of repetitions. The cause of the problem could also be
incorrect reaction by the partner.
Note that a link to an AS 51.2C xtdule usiqg a higher data rate
occasionally causes repetitions.
Note:
- If there is a BREAK on the receive line, the BRE4K error number
is signalled to the interpreter immediately. No repetitims are
started. The exror signal remains active until the problem is
eliminated.
- when
. -.-%
B8576539-03
5.2
3964R
Procedure
5.2.1 Pmce&mlkta
.,
The 3964R procedue is an asynchronous, bit Serial trsnsfer procedure. The trammiasion rate both sending ad receiving mast be
tim ~ on the CP 525 and m the ~ (~ ~e
there are no timing circuits between the two detices).
Cmtrol md ~ chmummi are transmitted on the Mnk.
To ensure that every character is recogn5.sed by the receiver and
to allow the trmsmission to be checked for errors, the cbarecters are encapsulated by further bits.
I
.
SA
SA
I*
PA
SO
=
=
=
=
StSrt bit
~o~t~ bit ~.
psrity bit
stop bit
B8576539-04
The cmtrol characters for the 3964R procedure are taken from the
DIN standard 66003 for the 7-bit code. However, the character
length used is 8-bit (bit 7 = O). At the end of each &ta field a
block check character (B(X) is added for data protection. The
block check character BCC is the even lmgitudinal parity of the
information bits of all &ta bytes of a field that has been sent
or received. Me characters begin with the first byte of information data following the establishment of the link and finish with
the DIE ETX character when the link is terminated. No code is
prescribed for the information characters (code tmmpmmy).
2400
1.200
600
300
150
110
bps
bps
bps
bps
bps
bps
64
B8576539-03
Rach DIE character found in the buffer is sent as two DIE charac-
B8576539-03
.,
titer sending the ccmtents of the buffer, the procedure adds the
characters DLE EIX and EC; as end identifier and waits for an
ackmwledgemnt. If the partner sends the ckracter DIE within
the time Almd (QVZ), the data field was received without
errors. If the partner replies with NM, any other character
(=cept DIE), a corrupted character, or if there is a timeout,
the procedure begins the link establislnuent again with STX. After
a total of six unsuccessful attempts to send the data field, the
procedure breaks off the attempt, signals the error to the interpreter and sends NM to the partner.
?-l
,..
If, while &ta is being transmitted, the partner sends the character W, the procedure breaks off the field and repeats it as
previously described. If any other character is received, the
procedure waits for the character delay time (ZVZ) to elapse and
then sends NAK to reset the parlmer. Then the procedure begins
the transmission again with the link establishment STX.
Partner
(e.g. AS 512 C)
CP 525
procedure 3964R
<
DIX
IS character
.
.
.
nth character
DLE
>
>
Bcc
>
<
DIE
,..:;.
n
B8576539-03
......
.
67
B8576539-03
CP 525
procedure 3964R
Partner
(e.g. AS 512C)
Sm
<
>
ME
<
<
<
<
<
1st character
.
.
.
nth character
<
DIE
<Em
<
>
DU
,., ,.+-%
B8576539-03
CP 525
procedure 3964R
lower priority
Paruler
(e.g. AS 512C)
higher prioriq
>
<
DIX
Slx
>
1st character
.
<
<
<
<
nti character
<
DXZ
<m
<
DIE ~
STX
>
<
DIE
5.2.5 ~%mra
The procedure recognises errors caused by the partner reacting
B8576539-03
The interpreter enters the error number received from the proce-
..
Note:
- If there
- when
---%
B8576539-03
6 Multiprocessor
Operation
Compared with single processor operatiun, multiprocessor operation requires even more that the programing of the individual
CPUS (STEP 5 user programs) and of the CP 525 (Cl? 525 user
ProSr~) G c=refully matched.
The more complex the application, the greater the care that must
belAcento ensure the numbers of the individual CPUs are correctly specified in the CP 525 user program.
!n!mxmm!!
71
88576539-03
7.1
PSEUDO
READ/wRITE Function
The READ/WRITE fiction (R./U *tion) with which you are famili-
ar as a user of the handling blocks must not be used in connection with the CP 525. This is tme for the following reasons:
- This R/W function does xmt allow the specification of a
All the parameters for the source and desthation are stored in a
data block (DB) or extended data block (DX).
The job numbers 190 to 199 are resemed for the PSEUDO READ/wRITE
fiction.
,------
B8576539-03
A SEND job with the pseudo R/W functim is started by one of the
following HDBs :
SEEM)
The pseudo R/W job is entered in the internal job queue of the CP
525 just as other direct jobs. When the job is processed the CP
525 uses the SEND U HDB to request the specified data block (or
extended dati block) with the assigned parameters and checks the
source and destination parameters specified in it. If these are
within the pexmitted Mmits, ~ CP 525 requests the first source
data by means of a second SFND AU HDB and then processes the
SEND job as usual.
.--. . . .
,.
.....
PROGRAMMABLECONTROLLER 1
CPU
,
, PROGRAMMABLE CONTROLLER f
rI
Rpmessa
CP525
CP525
1
m
51.2
INTER-
F i g . 1 URIT8 ftmctim
74
PROCEDURE
B8576539-03
....
-.. .
75
B0576539-03
Canputer U.nk w i t h RX 5 1 2
PROGRAMM4BLECONTRCXLER 1
,.
Rproassor
-m=
CP525
CPU
: PROCE.
;
+ D U R E
DT
r
:
F i g . 2 READ
INTERPREIER
B8576539-03
..
The following pages show the structure of the data block wi~ the
source/destination F=$=ter$ (P==@ ter da- block). The form
and order are those you see on the FG. The letters x and y are
variables. You must replace them with values.
The addresses of the da- are relative to the start address QANF,
which is specified in the HDB.
...
.-..
77
B8576539-06
IB,PB,OB
m)t: XX, RU,NN
1:
KY=
Y;
2:
KF=
x;
3:
KF=
x;
4:
Ks==xx
o,
5:
Y;
6:
x;
7:
x;
x,
8:
9:
. . . . . . . . . . . . . -.
o,
Y;
m=
x;
.................
. .
-----.
B8576539-06
2ANF+
o:
Iw==xx
.,
o,
1:
2:
3:
Y;
x;
x;
KF=
4:
5:
Ks=xx
0,
Y;
6:
x;
7:
x;
8:
Y;
9:
x;
..--, . .
79
..............
. . . . . . . .. . . . .
B8576539-01
--%
B8576539-01
The error message area of the SYSTAT is a data area in the dualport RAM of the CP 525. Mter the CP 525 reco@ses en error, it
enters the corresponding error number in the error nm3sage area
of the SYSIYU. You &cide how the CPU is to react in your STEP 5
The area in the CPU (destinatim area) to which & error message
area of the SYSTAT is to be transferred, is fixed den p assign
parameters to RECEIVE DIRECT 200. These parameters should be a
data block. The destination length mast be at least two words.
Note:
or if
message
, ....
. . ... . .. .
81
,.
B8576539-01
stm%mure of *
area:
Iwold
1 (DRo)
Error number 1
2 (DLl)
Error number 2
3 (DRl)
Wror number 3
I
This &egrsm
is explained on the following psge.
.#-%,
i
B8576539-03
Byte
.
,,
---.,
Bit
byte O bit 3
(m
status
0
1
bit 2
(o)
bit 1
09
bit o
(m
bit 7,
6 , 5, 4
......
.-.
yte 1
yte2
yte3
Significance
entries)
error overflow (more than 3 errors )
Unnecessary
error number 1
error number 2
error mnnber 3
00 = no error
83
f..:,
.},;., ,;,
.)
B8576539-03
:0
F 1.0
:ON F1. O
..
:Ju FB121
NAME :RECEIVE
SSNR: Kxo,o
A-NR: ICY0,200
ANzu: Fwlo
ZHP: KSDB
DBNR: KYO,1O
ZANF: KF+l
ZIAZ: KF+2
PAFE: FY5
:
:C DB1O
:AN D1.1.l
:JC =WO1
i.
:.
.. .
i.
:Ju FBI.24
NAME: RESET
SSNR: KYo,o
A-NW KY0,200
PAFE: FY6
:
:C DB1O
:L KHOOOO
:T DWl
:T DW2
reset nr entry in DB
Mool: .
:etc.
:BE
84
;,-%.
B8576539-03
7.3 Resetting
-.
,.,....
(Clearing)
~ DIRECT 200
AU the entries are then cleared except the BREAK bit (B).
!nmxuu9T!: the error message area of the SYSTAT is not cleared
by a SYNCHRON call.
The CP 525 can enter up to three error numbers in * error
message area. More errors CemlOt be Si#ld.hd Ud~S the old
entries have been cleared. Therefore @e error message area must
be reset in good tim by a RESET DIRECT 200.
The destination area in the CPU must also be raset.
job
BECEK5 DIRPXI 221
The area read then ccmtains the error messages for both interfaces (in bytes 4 to 10). This job can be executed mly if there
are no error IIUIberS entered. A destination length greater ~
or equal to 16 bytes (8 words) is necessary.
. . .. . .
. .. . . ..
85
S8576539-03
The
71 615141312
Byte O
irrelevant
irrelevant
sign of life
irrelevant
.;
ma
STOI
.F----
4
5
6
error
10
11
12
13
14
15
numbarl
..- . .
IF2
resemed
RUN
STOP
= 1 mda selector
= 1 mode selector
= 1 mode selector
Sign of lifew, this byte is
Vals ml the CP
switched to RUN
switched to STOP
switched to PGR
incremented by 8 at regular inter-
B8576539-03
- Bytes 4 to 10: cover the error message area for both interfaces
(see Section 7.2 - Reading the error message area of the
SYSTAT) .
- Error message area for IFl: bytes 5 to 7 and byte 4 (bits O to
3)
- Error message area for IF2: bytes 8 to 10 and byte 4 (bits 4 to
7)
- memory suhnodde
- interface assignment
- issue~sion of the loaded software etc.
...
The CPU can read the SYSID of the CP 525 bg means of the job
RECZXWZDIRIET 223
This is possible if the field length is greater than or equal to
128 bytes; i.e. , the BIGR parameter in tie SYNCHMN is KY 0,4 /
KY 0,5 / KY 0,6.
A desthatia length greater than or equal to 1.28 bytes is also
necessary.
If the field length is less than X28 bytes the ~ssage cmpleted
with errors and the error number 7 are entered in the status
byte and the number IE in the error message area of the SYSTM.
The SS!SID area is not then transferred.
Note: the SYSID can also be read directly from the dual-port W,
i.e., without handling blocks (fran address F680H onwards) . For
more information refer to the manual for your
B8576539-03
Stmcmreoftiidc
--+-- ticaareasysn)
Byte
Description
o to 9
10
19 to 21
22 to 41
to M
Module identifier:
CP 525-2 / CP 524
. . . .. . . .. . . . . . .
42 to 50
Generated on:
EPROM: date of Em@M- pmgmmhg
RAM:
replaced by space (20E)
5 to 9
51 to 55
10
56 to 64
. . . ., . . . . . . .
,,,..-%,
B8576539-03
Interface 1
.
, Description
Parameter I Byte
11
12
13
14
15
65
68
77
80
89
to
to
to
to
to
67
76
79
88
91
I Example
component type
interpreter name (*)
interpreter version
procedure name(*)
procedure version
RK512
ml
P3964R
ml
Description
Example
component type
interpreter name (*)
interpreter verskm
procedure name (*)
procedure version
end identifier El!X
(03X)
PI!
PT88
ml
IAuFm88
m
Interface 2
Parameter
16
17
18
19
20
Byte
92
95
104
107
116
to 94
to 103
to 106
to 115
to 118
119
B8576539-08
,..--%3
,. ,
mater: the master provfdes the system t-; i.e., the maater must make this available at any time.
To SytlCkOlliS e the CPS (at regular intervals or when
certain events occur) the CPU reads the system time
fraa the th master end acts all the tim slaves to
this the. Thfs relieves the time slaves of unnecesauy updating taska.
The CPU can set the date and time on a CP 525 at any time. It
can, however, only reed the date and time of a CP 525 tbat is
des~ted as time master.
mflxxl:
90
,. ., . , .,
,9
B8576539-03
Byte
Significance
bit O: master id.
1 = master
o == slave
1
2
3
4
5
day
mrmth
8
9
the positicm
When the
B8576539-03
The job number 218 is fixed on the CP 525 for the jobs read /
write date and time .
,/----.,
SHUD D- 218
CP.
Whether the CPU transfers the date and tine depends cm the source
length specified (QIAE = length of the data to be transferred).
QIAE = 1 d
The CP 525 is declared as master/slave by means of the cmtents
of bit O (least significant bit) in the f ixst byte; master:
aft-a
Note: the source area from which the data is transferred to the
CP should be a da- block.
92
B8576539-03
Note:
The CP 525 can be declared as time master on one or botb interfaces. The date and time can mly be read on the interface cm
By ~ of this job the CPU can read the date end t~ fmn the
CP (if the CP has already been declared time master with SEND
DIRECT 218.
The destination length must be five winds. The destination area
should be a data block.
Note: the data read only bas meaning if the date and time have
been set at least once since the mdule was plugged in (with SEND
D= 218, length: five wrds) .
... ,
.,
...
B8576539-03
8 Error Handling
Errors occurring while the computer link
have been caused at various points.
is in
operation, may
,.r---+.
.,
If the CP detects the errors, they are s-led to the CPU with
as much detail as possible. The way in which the CPU then reacts
is decided by your STEP 5 user program on the CPU (for mre
details see Section 7),
For example you can have the following:
- an error message output m the printer ITSS/PTS9 (either via
another CP 525 or * the same CP 525 using the other interface)
- the error displayed as messages m a mmitor (e.g. &ith the
CP 526)
- the job repeated
The error is signalled by the following:
- an error number in the PAEE byte of the bandling block
- an error number in the condition Codamrd Am? of the
(l. )
handling block
-anerror number ill the erzor message area of the S!lSM!C
- the CP 525 S-S an error to the partner by an error
mnnber in the reply telegram in BEPl!EL
(2. )
(3. )
(4. )
the PAFS byte, the bandling blocks indicate when serious errors
occur in ccmnection with a CP or when parameters have been specified incorrectly. A detailed description of PAFE byte error
messages can be found in the description Using the handling
blocks in ~ msrlual.
94
,,
B8576539-03
.,.
.,
If you receive a PAFE error number, this means that the data
exchange bemeen the CPU and CP either was not starte dor was
aborted after smal unsuccessful attempts.
. . .
..
~S
Since cmly four bits are available for the error numbers in ANzw,
one error number normally indicates one of several error states .
Owing to the limited number of error nunibers the ANZU is suitable
for evaluation by the STEP 5 user program.
B8576539-03
Source
1 to 5
I
7
I
9, A, B,C,D
E, F
96
B8576539-03
...,
The error message area of the SYSTAT is a data srea in the dualport RAM; the CPU reads this area using the special job RECEIVE
DIRECT 200. For each interface the error message area of the
SYSTAT includes tbree error message bytes and an additional
status byte. A detailed description can be fcnmd in Section 7
Special jobs carried out by the (3PW.
in the SYSTAT is so detailed tbat it is particularly suitable for mmct error analysis during Ccsunissionillg.
read the error message area in the SYSTAT during the comd.ssion* phase. You can recognise tie oc Currence of errOrS when bit O
in the ANZU of the RECEIVE DIBECI! 200 is set to 1 by the CP and
the err= ~S are then copied into the da- block ~Cified
as a parameter. If a programer is cmmected to the CPU of the
PC, you can display the errors directly on the mllitor in the
operating mode STATUS variable or CONiROL variablew.
To clear the error entries in the STSTAT, call the special job
RESEI DIRECT 200 (for more de=ils see Section 7).
. . . . . . . .*.
B8576539-03
lto6
Source
parameter ass -t =-s de-ted by *
processing
20 to 2F
30 to 3A
40 to 53
5E to 5F
Boto B8
cotocA
Do
tom
error
in the data
38576539-03
99
B8576539-03
No. for
No. fol
8YSJAT
Description
.;,
~- $=@== ~
&tected by * C3m of the lx, ad
siglmued bydlecP
IH
--
ZH
0111
- -02H
OAH
3H
----
4H
--5H
6H
----
03H
--04H
- -05H
06H
---14H
present or
illegal
.- - - - - -
--------C) DB/DX too Short:
(start address + length > srea
or
area too short with other data
,.-%
~85@903
....
- . . . .-
. ~~
., ... -.,-- ., . -
. . -
,..,...- .
B8576539-03
No. fo~
No. for
No. fo]
SYSTAT
Description
Krmra detemed bycPChxC&qg data
excb8q& bet=!en cm - CP:
6H
10H
--
llH
----
OAH
a) Timeout for
- - - - .- -- -
------ -----
b) ALL job
or direct
job despite overload
---- .- -- ----- --- ----C) Wring sequence for bandshake by
---13H
----
----
----
14H
duriig
adshake -
f~
,.,,?.
102
B8576539-03
Remedy
------- - -
,. . ,
....
B8576539-03
No. fox
No, for
No. f
SYSTAT
Description
~ermrsat
Stert Of job
I====4K
7H
15H
- -16H
----
---
17H
- - - -
- - - - - - - - - - - - - - - - - -
C) Area is
---
- - - IFH
---
104
o.,.
E8576539-03
Remedy
,..
..
-------------
.-. .,
B8576539-03
No. fo]
No.
Description
SYSTAT
~tuese. eImxsin*mKP5
prog. detectd by the CP (e.g.
thepsem& B/@ p=amere> or job
block (CJ? 525 ~ Pw==)
7H
20H
~ P---= -e St-d
-- 21.H
---
--- 23H
--- 24H
.-
--- 25H
-- 26H
22H
in
in
the
:. . : . .
Q
.$,
106
.,
B8576539-03
Remedy
Create parameters for this job with COH 525 or select other job
number.
----- ------ .---- ------------
..,
---------------------------------
---------------------------------
Coordination flags ere not permissible for sll dete types (see
Section 2.6). tick uhetha- the bit number (O to 7) ~ been
specified correctly when using the pseudo R/w function.
- - - - - - - - - - -------------CPU nos. permitted: rime, 1, 2, 3 or 4
-------
- - - - - - - - - - ----------------------
If necessary split tie job into seversl jobs with smsller
lengths .
------------------------
------ --
.,.
B8576539-03
No.
fm
No. fo]
SYSTAT
No. fa
Description
No.fl
9H
-- -
AH
30H
--- 31H
----
321
.-.
w.fr
REPTB
OAE
.- - - - - - - - - - - - - --
b) Hardware (DMA) error at the
psrmer or with CP 525 es partner:
- SOurce/dest. type illegal
- or mmry error in partner PC
- or error in handshake betxeen
CP/CPU in partner or
~er ~ b in STOP state
--k).frl
32H
----
a) DB / DX disabled by
coordi.natim flags
---
,- . .. . .,
108
,.,
.,.
B8576539-03
Remedy
---------------------------- - -
- check whether the partner can transfer the required dati type.
- Check partners hardware configuration.
- Switch mde selector at partner PC to RUN.
whether it is long enough, or check the C(M 525 job block or the
pseudo R/w parawters. Check IAe len@ specified in the HDB.
- ------------------------
------
B8576539-03
No. for
No. for
No.frou
SYSTAT
AH
33H
Descripticm
14H
BH
in format of reply
telegram received: first byte
not OOHor Fm
--- - .- - - - - - - - - - - - - - - - b) Reply telegram received after
FElwJ job has too msny data
a) Error
--- 2BH
--- 2CH
--- - - - - - - - - - - - - - - - - - - -
----
---- - - - - - - - - - - - - - - - - - -
110
~j
., ,=, .
B8576539-03
Remedy
Check whether the required data block exists cm the parmer and
whether it is lcmg enough; or check the job block (CP 525 user
PrCWS@; or check * pseudo IL/W parameters (STEP 5 user
program). Check the length specified in the HDB.
......
. . . . . . . ..
ul
B8576539-03
No. fox
No. for
No.fra
SYSTAT
BH
34H
16H
--- 35H
--- - .
.- 36H
---
---39H
--- -
---3AH
--- ??H
5FH
34H
-----------------
b) Error in telegram header:
seccmd comnand letter in hesder
10H
34H
112
:.;,
.,:,)
.i.
B8576539-03
Remedy
line.
------------------------------
Check whether the error is being caused by a disturbance or an
incorrect reaction of the partner. Verify with an interface test
dedce (FOXFC ) epped into tdM transmis Sion line.
-- --- -------------------------Check whe*er the emmr is being caused by a distmrbsnce or an
incorre et reaction of the ~. Verify with an interface test
device (S FUXIGW) tapped into the trensdssial line.
--------------------------------
,.. -...
...
B8576539-03
No. fo]
CH
No. for
SYSTAT
No.fro
Descripticm
27H
29H
--- -
37H
----
--- -
36H
----
,p?
F
-.. <
114
, ,
. .,
.,
B8576539-03
Remedy
Switch the selector to RUN
+,
,
.-.
---------------------------------
,-.
. .>. .,
us
B8576539-03
No. for
CH
No. for
SYSTAT
38H
No.fron
Description
2PH
.,
. , .-.,
.,
116
,,.;
I
B8576539-03
Remedy
,--%
-c- a
on the CP to RUN.
.......
.- .,
.....
117
B8576539-03
No. for
No. for
SYSTAT
Description
..---,
.,.,..
m
,.
----
--- -
118
, -----
B8576539-03
Remedy
--------------------------
------
... -..,
.,, -.
119
B8576539-03
No.
foz
No. for
SYSTAT
EH
c) Abortedbypsrtner:
during transmission one or more characters were receimd from the partner
(inCl. w)
Em
---
Descriptim
E4H
--- -
----- ----------------
120
B8576539-03
Remedy
- Check whether the partner is also indicating an error, it is
possible that not all the data sent have arrived (e.g., break
in the line) or
- Partner is reacting incorrectly. Verify this if necessary with
an interface test device ( FQXPG ) @qpd into the transms
sim
line.
------ -------- ---- _ --------
- check whether the partner is also indicating an error; it is
possible that serious disturbances have occurred or
- Partner is reacting incorrectly. Verify this if necessary with
an interface test device ( FOXPG ) t+ped into the transmission
line.
-------------------------------- Partner is too slow or bas a fault. Verify incorrect reaction
......
B8576539-03
No. for
No. for
SYSTAT
Description
WI
The
canmunicatim
.....
cable (receiver cable) to
f7
.:,.
B8576539-03
Remedy
X23
B8576539-03
8.2 Error
No. foz
No. for
No. f
Description
ol.H
---02H
lx
- -2H
OAH
- - 14H
.,
- - - -
----
03H
3H
- - 14H
OCH
or
illegal
.- - - - - - - - - - - - - - - - C) DB/RX too Sbrt :
(s- address + length > area
or
area too short with Oldler data
(start
- - OAH
5H
- - OCH
---6H
- - OAH
---04H
----
---05H
----
---06H
4H
J.24
.; , : ,
, .,:
..;
,(
,...,
,.,
:::
,,.
B8576539-03
Remedy
correct or
- Partner has illegal. parameters in the telegram header
Find the permis sible data types in the job tables (Section 2.6).
.
block/area or
- Partner has wrung parameters in the telegram header
--
X25
----
B8576539-03
No. for
No. for
No. f
Description
10H
-- 11.H
6H
- - - 6H
O&l
---
-- 12H
- - - 6H
---
----
- - - 6H
- - -
- - - 6H
--
13H
---
14h
15H
--- -
7H
---
---m
---
--- -
---m
---
---ml
---m
---
----
17H
,fp,
,.. .
CPU
------------------d) Unknown job ~ or illegal job
number for direct job
- - - 7H
16H
.-------- - - - --
e) Illegal achmwledgemn tfromm
during hmdshah
~erraaatstart Olf job
~:
a) Nmber of direct jobs that can
be processed Sti~ ly too
large for CP 524/CP 525
.- ----------------
b) current job was terminated with
errcm status tien CP was cold
res@mted (power on) or cold
restarted from FG
.- ----------------
C) Area is masked by STEP 5 progrsm
(bit 7 in Amu = 1)
.- - - - - - - - - - - - - - - - - d) Field leagth for md SYSID
(RECEIVE DIRECT 223) too small
.:; , .-.,.7::,
,- - - - - - - - - - - - - - - - - e) W date/t~w (RWEIVE
DIRWT 218) illegal, CP is set
as tilw slave
1.26
..................
,,
B8576539-03
Remedy
Check whether RECEIVE ALL or SEND ALL are called in your STEP 5
Progr=; duste the PAFE in the handling block
--------------------------
Check STEP 5 program, e.g. , errors in bandl.ing block
(Message also possible after transfer from IG to CP).
-----------------------------Check STEP 5 program, e.g., errors in handling block.
-------------------------------
from me = you make sure that no more CPU jobs are running
before writing to an interface. The SYNCERON HDB clears the job
statuses in the dual-port RAM, but not the SYSTAT entry.
-- ----- ------------------------
.....
-.. .
B8576539-03
No. fox
No. for
No.fr
Description
~ass.
pqg. ~
thapsen&31B/u
block (CP 525
20H
--- 21H
---
--- 22H
--- -
-- 23H
----
-- 24H
--- -
---25H
----
-- 26H
--- -
---
7H
---
---
m
--
A
---
m
7H
.--,
=roraintks!JxP5
by * C? (e.g. in
prmltem) = job
~ FJw=)
a) ~ ~te= -e =*ed ~ *
CP 525 user program for this
direct job (under this job
mnnber)
,- --------------
b) Hrror in da= type (DB, OB. . . ) :
udmown data @pa or
data ~ not allowed (e.g.
e. DB) or
data type not allowed in HDB
parameters in Camectim with
data ~ in the job block
(CP 525 user I=%=@
-- - - - - - - -------
c) Start address specified too high
f= raquired data type or
start address or DB/DX no. too
lu#
----------------i) @Ordinate fh@ mt allowed
with tiis data qpe or wrong bit
number specified
----------------*) CPU mnnber specified too high
with pseudo R/u parameters
--------_------
F) Trammissim length > 64 Kbytes
too long for CP 525
----------------5) = of telegmm header tOO
great or length too great for
m $w@.fied (in own PC)
128
B8576539-03
Remedy
---..
Creete parameters for this job with COM 525 or select other job
number.
-------------------------------
,..
-------------- . ----------------
..-.
129
B8576539-03
No. for
No. for
No. i
Description
>.l~. . ., . ..
.. ..::. ..,. ..:........,,..::?.:.:
27H
CH
,-
28H
CH
----
---BH
---
----
---BH
---
---2CH
---BH
---
---2DH
- -BH
---
2BH
130
%, :,. -.:
o
B8576539-03
Ranedy
switch the selector to RUN.
See remedy for prewious procedure error number.
Verify incorrect reaction of partner if necessary with an interface test &rice ( FQXPG ) tapped into the tmnsmissicm line.
-----------------
- -----------.
Verify incorrect reaction of partner if necessary with m interface test device ( FOXFG* ) *pped into the transmission line.
--------------------------------Verify incorrect reactim of pamner if necessary with an interface test tie ( EOXFG ) tapped into the transmis sion line.
-------------------------------Verify incorrect reaction of parmer if necessary with an interface test device ( FOXPG ) tapped into the transmission line.
131
B8576539-03
No. for
No. for
No.fI
Descripticm
When processing a PC job:
Errors in tzansfer/reoepti.m of
data * the dwn-port-luu >
~== with the CPU.
A mre &tailed error nuniber was
entered immediately before in
Systat (error Uumbers 1 to 5 and 10,
14, 16, 17 - S- previous pages)
No reply telegram cam from *
partner within * monitoring tb
after sending a PETCH telegram.
DH
30H
9H
--- 31H
----
---
----
32H
a) DB / DX disabled by
Coordillati(nl flags
---
, ------------------
---
AH
132
-%,
#
B8576539-03
Remedy
See the remedy for the preceding error number.
IS
me
133
.
,,.
B8576539-03
No.
for
No. for
No.frc
Descriptim
32H
AH
--- 33H
--- AH
--- .
--- 34H
--- BH
--- .
16H
--- 35H
---Eu
---10H
--- 36H
---BH
--- 34H
14H
CO&-
(except DB/IUC) or
data area too small (except
DB/IIX)
,-- - - - - - - - - - - - - - - d) DB/DX accass error at partner
(DB/DX does not -t or too
short)
with CP 525 as partner:
- DB/DX doe$ xx)t exist m
- DB/DX too Sk or
- DB/IX no. illegal
- - - - - - - - - - - - - - - - e) Errors in the telegram header,
detected by partner:
first Coumsnd letter in header
- - - - - - - - - - - - - - - - 0 Error in telegram header:
second cmmand letter in header
----------------
--- 37H
--- CH
---36H
-- -
-- -
----
---------------1)
---------------
134
-----
B8576539-03
.,
-.
:.
. ,- . ,.: ,. . . ..!..;;<;q?..?.:.:.,.,
,: .:2: 4.,-.:-. , ;:
Remedy
T.
.... .
---------------------------------
Chedk whether the required data block exists on the partn~ and
whether it is lcmg emu@; or check the job block (CP 525 user
program); or the pseudo ~ parameters (STEP 5 user program).
Check the length specified in the HDB.
--
---
~ct
--
- - - - - - - - - - ----------------------
135
.., -
.-..*-.-.-.,
----
B8576539-03
No.
for
No. for
No.fmrl
Description
38H
--- -
39H
--- -
3AH
CH
--- BH
---BH
illegal
- - - - - - - - - - - - - - - -
k) Unhewn error mnnber received in
.-
reply telegram
136
,..:--%,
B8576539-03
This is an incorrect reaction by partner, the CP 525 nevar outputs a system ccmmsnd.
--------------------------------Check whether the error is being caused by dismrbances or
. . . . . ..
.,
,..:,
i
,,.!
,,.!
. . ..
,,.,
No. for
No. for
Description
%lmrixltlm2~ telegr?m Uf
~ ~= A =@Yti= fi
Seat tmlilepartaar
Spe@3ed ~ m. in * a ~. .
10II
40H
---
---
41.H
----
16H
---
- - 16H
----
- - 10H
----
--10H
42H
----
43H
----
44H
----
- - -
----
---
-----------------
B8576539-03
Remedy
For more information on cmmend tel~, see Sectiml 4 in this
s
user s guide.
B8576539-03
No. for
No. foz
Description
45H
14
- 46H
- -
- 47H
- -
- 48H
- -
--- 49H
--- -
- - OCH
,- - - - - - -
--------j) Error in loth CCmmnd byte:
CPU no. too high
(Xtted vahaes 0,1,2,3,4,F)
---
--- -
--- 4BH
--- -
- - 12H
- - -
-- -
----
--- 4DH
....,,.
-.
O(X
- - 34#
--
OCH
34H
--- -
--34H
--34H
, 0.
-!,,
B8576539-03
Remedy
Find &e permissible DB/DX numbers in the job tables (Section
2 .6).
---------------- - . -----.-----Find the permissible start addresses in the job tables (Section
2 .6).
- - - - - - - -- - - - - - - - - - ------------Find the permissible lengths in the job tables (Section 2.6).
- - - - - - - - - - - - - - - - - - - ------------Basic error in partners header stmcmre. Find the in the job
tables (Sectirm 2.6) when coordination flags are allowed.
B8576539-03
No. fox
No. for
No, f
Description
4EH
- 4FH*
--
---
-- 50H
---
---
- 51.H
---
---
36E
~error
B8576539-03
Remedy
-..
.--------- -
cold restart must be carried out (the PAFE byte in the SYIKXWM
HDB may have to be evaluated).
------------- ------------------See remedy for error number entered immediately before in SYSTAT
(~ no. EO to E5 and F3 to FF).
,
....
143
B8576539-03
No. for
No.
for
No. fo:
Description
,,
.,.
52H
32H
53H
5EH
5FH
34H
UP%
,. . .,.
f----,.
...
B8576539-03
Remedy
.. ,., ., . . . . . . .:, ,:, . . ,,<.-~
.--.,
When starting up for the first time, make sure that the coordination flags are distributed on the individual processors , CPs,
IPs and the C~tor, the jmper settings are correct and the
coordination flags used in the start-up OBS (OB20, OB21, 0B22)
are reset (see also instnactims CP 524/CP 525).
See remedy for the error nusiber entered immediately befme in
SYST&T.
line.
B8576539-03
No. for
No. on
PG
Description
Ermc~--atelegmmihm
* CP to tb m:
:.
BOH
- BIH
----
Irr. 722
xansfer
z-ror
- B2H
--- B3H
- - - - - - - - - - - - - - - - - - - - - -
d) The link termination with DIE EI!X was not
acknowledged by the PG with DIE ACK or
DIE NAK within 300 ms (acknowledgement
monitoring time) .
tiu?asqpa-recd~atelegmm
- the m:
B4H
rr. 722
ransfer
rror
146
-.
B8576539-03
Remedy
- Check cable
- had COM 525
- Hardware error at PG or CP
---- -- ----- ------------------
--------------------------------
Check cable
Iaad C014 525
Hardware error at PG or CP
.,x.,.,
B8576539-03
No. for
No. on
PG
...,
,, . . . .
Description
Ermra carqiq~ oat a job fra * IQ
.,
IF.007
CP funct .
-- -
B6H
ERR. 709
B5H
-
CP
~v
full
- - - - --
B7H
SRR. 027
F-..
-------- -- - -------
carried out, because there ia no RAM eubmdule plugged in es the user memry of
the CP 525 (either EPROM or no aubmdule
plugged in)
- - - - - - - - - -
-----------m. 721 d) The mode selector on the CP is set to
EP switch
STOPW or ~n (during cold reslxwt from
set to
the E)
plugged
in
- - - B8H
S!mP
..
B8576539-03
Remedy
,.
,,-
-.
--- . ----------- --
Plug in submdule with greater Capsciq
Ersse unnecessary module files ml the CP
---------
---
Plug in RAM
149
,:
~.
.
B8576539-03
No. for
No. for
Description
Eamkare ermrSaltiM?m&le:
COH*
-
Clll
--- C2H
--
C3H
--
--
--
------------------e) lkmry submdule not permitted
-- -
-
-------------------
f) Error in memory mbmodule tie program is
--- -
- - - - - - - - - - - - - - - - - - - - - -
-~ submdule empty or contents
C4H*;
-- -
C5H
----
C6H*I
--- -
--- -
-----------------------
--- -
c&)
---
*):
These error messages mst then be read directly frm the duslport RAM (structure from address F660H onwards as for read
SEmT) .
,---%.
B8576539-03
Remedy
Replace CP.
---- ----- --- ---------------
Replace CP.
- - - - - - ------- -------------- --Replace RAM submdule.
------ ------- -------------------- Use permitted submdule
- Sdx6dule or submdule coXroller defect
- - - - - - - - - - - - - - - - - - - - - - - - - - - ------
-----
and used
1 is not
- - - - - -
,-------
151
B8576539-03
No. for
No. for
Description
.., . ,.,
~H*)
.,.: .. .,..:.
- - - C9H
---
- - - --&-)
*):
These error messeges must then be read directly from the dualPOYX RAM (structure from address F660H onwards es for read
SYSTAT) .
~.%
B8576539-03
Remedy
:,<
y,
. .
.....
B8576539-03
No. for
No. for
Description
DOH
EOH
,(-.
..
---
--- EH
-- -
-- EH
-- -
-- -
---------- ------------
154
,,,
B8576539-03
Remedy
---
is not an error. It can, however, point to disturbances on the transmission line or to an imorrect reaction by
A repetition
Note:
when coupled to an AS 51.2C module the AS 512C module somtimes
requests a repetiticm owimg to overload at high data rates.
--------------------------------Verify incorrect reactim of partner if necessary with an
interface test device (1-) tapped into the trammission
line.
---------------------------------
B8576539-03
No. for
No. for
Description
.:..
E3H
--- -
E4H
---
E5H
--- -
RI
d) Aborted by partner:
during transmission me or more characters were received from the partner
(inCl. NAK)
--- EH
-- HE
- - - -
F(IH
--- -
---
--
B8576539-03
Remedy
...
----
in the line) or
- partner is reacting incorrectly. Verify this, if necessary,
with an interface teat tice ( *FCKFG ) tapped into the trans missim line.
--
A repetition is not an error. It can, however, point to dismrbances m the tranmissiml line or @ an incorrect reaction by
the partner. If. after * ~ ~ uf rep&Mms, *
telegumomildmtbe mmsfemd, an ~ ~ is s~
ld3MldesCK&S* ~ WhMl OCxmrmd fixst.
------------------------------
. , .,
B8576539-07
No. for
No. for
Description
,...,
.,.
FIH
--- F2H
--- -
--- F3H
--- -
--- F4H
--- -
--- .
F5H
--- -
---
--- -
...
IR576539-07
Remedy
-..
Verify incorrect reaction of partner if necessary with an interface test device (FOXPG) tapped into the transmis sion line.
---------------------------------
---------------------------------
B8576539-03
No. fox
No. for
Descriptim
.-
-.,
F6H
--
F8H
--
- - - -
- - - -
-----------------------
8)
EH
fro%
FH
.P
B8576539-03
Remedy
. . .
-,: . ,. . .
This error can only occur if the transmis Sion is extremely badly
disturbed because of short term overload of the MC 512
interpreter. Correct the problem by changing the system configuration or re-laying the cables.
:..
......
161
B8576539-03
Arranged
,,
.:.
-,,,. . ,,.
No. for
,.4-.,
Description
,. . .
~ assigml?nt ~ Cktectdbytlhe
cm of tile m immi ?@@lled to tk CP:
OAH
olH
- - - 04H
---06H
ErrorindicationfrCmltheCPutothecP,
whichthecP cannot inte~et
......
162
,.,
. .:,
B8576539-03
-7-
,.
Remedy
,... ,..
,.
B8576539-03
No. for
No. for
SYSTAT
Description
~ -~ ~ detededbytbe
Cm of * Q? - Siguaued m tk CP:
O(X
02H
--
03H
B8576539-03
Remedy
block/area or
- Partner has incorrect parameters in telegrsm header
B8576539-03
No, for
No. for
SYSTAT
Description
f--+
46H
- - - 48H
----------- ------- --
--49H
---------------------
c ) Error in loth COmand
CPU no. too large
w=:
B8576539-03
Remedy
-----------Basic format error in the partner header. Find in the job tables
(Section 2.6) when a coordination flag is permissible.
---------------------------------
------
B8576539-03
No. for
10H
No. for
SYSTAT
40H
Description
d) Error in 1st ccmmnd byte:
is not OOH or FFH
--
43H
--------------
-- 44H
------------------
,,.-..
B8576539-03
Remedy
.-, :
,,.
.-- . . .
B8576539-06
No. for
No. for
SYSTAT
12H
.,
Description
g) system Coasnand T not permissible
~ -$~ ~ deaxmedbythO
Sigmlled to * CP:
cm of * M Urd ad
14H
02H
- - - 03H
45H
----
16H
---41H
---42H
>.,
170
, .,... -
E8576539-03
Rqnedy
system
block or
- Partner has wrong parameters in the telegram header
Find the permissible data types in the job @bles (Section 2.6).
------------------------.
- Check parameter assignment on CPU and CP if necessary check
block/area or
- Partner has wrong parameters in the telegram header
B8576539-03
No. for
No. fox
SYSTAT
Descripticm
,.-.
4EH
---
---4FH
--------------------
b) Conmand telegram was received, however,
the CPU of the PC has not yet run the
SYNCHBON HDB
32H
52H
34H
47H
--
-- 4BH
---
---
172
B8576539-03
Remedy
,. . . . ., : ~,:. .., . . . , . .
Foil-
*G a
cold restart mat be carried out (the PAFE byte in the SNCHRON
HDB may bave to be evaluated).
In your am STEP 5 program: reset the coordination flags again
B8576539-03
No. fo~
No, foI
SYSTAT
34H
4CH
-- 4rxI
5FH
Description
c) send telegram was too short m
<128 byteS , i.e. less data were received
(possible with follow-on telegrams) than
were indicated in tie telegram header
--------------------
d) Fetch telegram received with information
data
,f. . ..7,,
job:
36H
51H
F%;
, . , . :.-
or
a normal cmmkand telegram was received
although a follow-on comsnd telegram
was expected
or
a follow-m conmand telegram arrived,
although a camnsnd tele&am was expected
174
.,
B8576539-03
Remedy
w at
------ ---.-------------------
need to & ~
*
During noxmsl operation the error cm also occur as a result of
older error statusas were &tected only by the partner. Otherwise
ycu can assume that the partner is reacting incorrectly. It is
possible that the errcm will not occur with jobs less thsn 128
bytes.
. .. . . ..
175
.,.
,:
B8576539-06
+ ..+--%
Two S5 135US, each with a CP 922 and a CP 525 were used for the
time measurement.
from
.-,.
88576539-08
Ulnn
D
L
D S rep. D E
L T tel. L T
E X 4 bytes E X
peasiva CP 525 ~ PW 2
I~
Time
>I
is
B8576539-04
bps
1920C
9600 480C
data
IDW
2DW
4DW
5DW
8DW
10DW
16DW
20DW
32DW
50DW
64DW
80DW
100DW
L28DW
192DW
42m3
44ms
46ms
57ms
60ms
64ms
67ms
73ms
83ms
.F.
2M0112001 6001 30 I
150 11(I
87ms
91ms
looms
106ms
118UU%
133ms
163ms
184ms
244ms
343ms
412ms
54110s
148ms
158ms
175sks
I183ms
5oms
212ms
58ms
236ms
66ms 97ms
295ms
75ms lo9ms
332ms
93ms 143ms
447ms
132ms 20(hss
628ms
152ms 238ms
760ms
196ms 310ms
1.01s
220ms 356ms 634ms 1.19s
252ms 42&s 760ms 1.45s
353ms dolms l.lln 2.13s
258ms
277ms
313ms
323ms
387ms
429ms
548ms
617ms
840ms
1.18s
1,4ss
1.93s
2.27s
2.80s
4.159
490ms
527ms
60Gns
637ms
75QIIS
83(hIs
1.07s
1.20s
1.64s
2.32s
2.83s
3.76s
4.49s
5.53s
8.22s
96&s
1.04s
1.19s
1.26s
1.48s
1.63s
2.11s
2.36s
3.24s
4.59s
5.61s
7.46s
8.92s
11.0s
16.4s
1.92s
2.08s
2.37s
2.52s
2. 96s
~3.25s
4.20s
4.72s
6.48s
2.63s
2.84s
3.23s
3.44s
4. 04s
4.43s
5. 74s
6.44s
8.83s
9o12s 12.4S
11.2s 3.5.2s
14.9s
17.8s
21.9s
32.7s
20. 3s
24.3s
29.9s
44.5s
The time
The tties for the 396* ~ are app~ tely as those for
processfig a DIRECT job.
Siemens Aktiengesellschaft
--s
SIEMENS
,.
:
;:, ,:.,
.,
,0.; -
SIMATIC S5
CP 525: Event Output and Listing
with the PT88/PT89 Printer
Users Guide
.-, ,.
:.--.= .
.....
..................
Page
Contents
.....
..
Overview
2.1
2.2
2.2.1
2.2.2
2.3
2.3.1
2.3.2
2.3.3
2.3.4
2.4
2.5
2.6
Print Attributes
Frames with SMk
Riority of the SML
Limit Values for the
6
9
9
19
22
22
25
26
27
28
29
31
32
3.1
3.2
3.3
3.4
3.5
3.6
33
33
36
37
37
38
39
4.1
4.2
4.3
4.4
4.5
4.6
40
40
41
43
43
44
45
5.1
5.2
5.3
5.4
5.5
46
47
47
48
49
50
6.1
6.2
6.3
6.4
51
51
51
53
54
7.1
7.2
7.3
55
56
56
57
8.1
8.2
8.3
58
59
59
New Page
60
10
60
.-,,.,
61
11
Rim Attributes
11.1
11.1.1
11.1.2
11.2
11.2.1
11.2.2
11.3
11.3.1
11.3.2
11.4
11.5
62
62
63
Compressed Rim (C)
63
Ikpanded Print
63
Normal Character Width
63
Double Character Width (E)
64
Bold Rint (B)
Bold Rht with the Impact Matrix Rinter (Needle) 64
64
Bold Rint with the Inkjet Rinter
64
Underlining (U)
64
Acoustic S-l (A)
12
setting
12.1
12.2
12.2.1
12.2.2
12.2.3
12.3
12.3.1
12.3.2
12.3.3
12.3.4
12.4
12.4.1
12.4.2
12.4.3
12.4.4
Requirements
66
67
67
67
68
69
69
72
74
76
78
78
78
80
81
13
LAUFPT88 Rocedure
83
13.1
13.2
13.2.1
13.2.2
13.3
Rocedure Data
Transmitting with the TAUFPT88 Rocedure
Data Transfer
Mode of control of the IAUFPT88 Rocedure
Receiving with the IAUPPT88 Procedure
83
85
85
85
87
Print Types
Normal Rint
up
66
14
Multiprocessor Operaticm
88
14.1
1401.1
14.1.2
14.2
89
89
90
92
93
15.1
Ixmlable Software
15.1.1
Memory Requirements of the Laadable software
User Programs for Specific Tasks
15.2
Directory (Memory Management)
15.2.1
15.2.1.1 Subdirec&y of we Messages
15.2.1.2 Directory of PC Jobs and Frames
15.2.2
Element -S and Ekments
15.2.2.1 Messages
15.2.2.2 Prams (Headers, Trailers)
15.2.2.3 PC Jobs
96
96
97
97
98
99
103
106
108
115
16
124
16.1
16.2
16.3
16.4
16.5
124
128
128
130
133
17
Error Handling
138
17.1
. -f
15
17.2
18
What
DOeS
It ~ men?
144
162
188
Printer PT88/PT89
B8576541-03
1 Overview
With the component event output and listing with the PT88/PT89
printer the CP 525 can sqamlsa or ~ your pmcaas/a part
of * l====- P-=
sf4==~ ~
list (SL)
currant
Hsage
list (QtL)
When tie (ML is called, the CP 525 has all the disturbances and
events currently active on the cPU printed out. CML therefore
records the overall s=ms of events and disturbances * the
process at a defined time (start time of the CML).
,.:j
Printer PT88/PT89
B8576541-03
The dynamic data found in the ML is not included in the CML. The
dynamic data includes the following:
,?-%
- time
- status
- parameter (process value)
Question marks are printed out in their place.
available:
section 4)
When tie PSL is called, the CP 525 fetches the current process
data from the CPU and ccmpiles a list by adding these data to
static texts stored in the CP user memory. This list is then
-t ~ the printer.
PSL is therefore an imge of the process/part of the process at a
defined time (s@rting point of the PSL).
~ I.ismJ (CL)
When the CPU starts a chained list, several PSLs (maximum eight)
are printed out automatically one after the other. In this way,
i.e. , by chaining the images of individual parts of the process,
a process imsge of the whole system can be obtained.
/--%
., . . .::
Printer PT88/FT89
B8576541-03
You can have the lists supplemented by a
.
.,.
A.
,,
IJstw
the CPU. It can be assigned to the SML, CML and PSL when they are
programmed.
==$we 1=
The dynsmic values in the header and trailer of a current SML are
updated at any time you select (e.g. change of shift).
Individual mssages in the SML or CML and any line of a PSL can
be assigned to a ~ m (=x- 16 groups). These grvups
can be released or inhibited by the CPU with the job update
9XXZP inhibit bits. Mom of the messages or PSL lines belonging
to an inhibited group are listed!
Your STEP 5 program on the CPU can send a data word at any time
in which the CP 525 can determine the status of the message group
(inhibited or released).
,. . . . . . .
.., .,
B8576541-03
Printer PT88/PT89
kupage
?.
;:. .,.
You can have a form feed carried out on the printer (printer
header is then on the next page).
Rs?setpagemaber
r--%?
>. .:
,-, ,
Printer PT88/PT89
B8576541-03
2 Sequential
+.----.---------------------------------+
3.ist
!
m e s s a g e
!Sequenti ax
+-----------------------------------------------+
I.
1
12.08.86
I)ate:
t
!
.
08 :08:00 am
Time:
+--. ---------------- -------- ------- - - - -+
IZ. Ggj. S& 0S: 08:00 am Temperature tDo high GOING
GOING
12. cMI.86 fJ8:08:@0 am Mator is OFF
GCIING
Lc)ad = 1024 ku
1 ~. OB. 86 (!8: 0 9 : 0 0 am
GOING
12.US-8~ 08:0?:00 am Fklt no. +5 dsfect
! ! ~verflo~q ! !
COMING
12.08. M 08: 10: 00 am
ACKNCNJL
Process
stable!
12.~~.6~ O&:ltI:t30 am
Fig. 1 bmple: sequential message list
....
.......
B8576541-03
Printer PT88/PT89
The disturbances that are listed can come from the following:
the process
Your STEP 5 progrsm on the CPU of the CP must collect and prepare
the data and pass them cm to the CP 525. There is en interi&
bemeenthecPuamicP 525 for this purpose (see Section 2.2).
/,i3
.. ;,: ,.
.,
Printer PT88/PT89
B8576541-04
OT.XI
Area
1
Area NEW
->
->
0
1
Message statxs
disturbance
diswrbance
going
coming
~,,- ..,
B8576541-03
Printer PT88/PT89
- purge the DB M RECOBD, i.e., make space for new entries (body
length = O; pointer = 1st message record).
Printer PT88/PT89
B8576541-03
,..:
,. . . . .~
.
... .: ..,
,
2.2 Interface
The interface between the CPU and the CP 525 is the data block
DB M BECORD.
2.2.1 stmcmre oftk DBHRMX=D
The DB M RBCORD is structured according to c e r t a i n ties to
ensure that the CP 525 can evaluate the DB H RECORD correctly.
The DB M RE(X)RD consists of a header and body as follows:
header
2
.
.
.
510
511
The header
1
.
.
255
Content
DL O
DR O
length (HEx)
Byte
ConInent
B8576541-03
Printer PT88\PT89
+.
12 bytes = 6 words
16 bytes = 8 words
without ~ters
wifi parameters
without parameters
with parameters
PrinterPT88/PT89
B8576541-03
Xessageracard
parameter type
message statws
message type
message mmher
time
date
parameter (optimal)
Smcture
Byte
,.
o
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ofamssage
record
S5 eddr.
content
DL
paramtier qpe
=!ssage Status
~ w=- ===we ~
===J@F~
10
Bls *
L
-1
h
day
month
y e a r resemad
DR O
DL 1
DRl
DL 2
DR 2
DL 3
DR3
DL 4
DR4
DL 5
DR 5
DL 6
DR 6
DL 7
DR 7
J======
,.-. .,
,. ....,
11
B8576541-03
Rinter PT88/PT89
1.lkraw2t4?rtgpe-byteo
The parameter type determines whether a parameter is included in
the message record and what type of parameter it is. The
following SIMATIC data types are possible:
5P m=)
o
1
2
3
4
5
6
7
8
9
m?
Significance
binary
character
byte
12 bytes 16 ~es -
without w==ters
with parameters
Printer PT88/FT89
B8576541-03
2. Message status - byte 1
going
~i[mrl I I I
0 0 0 0 0 0
o 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
1 I
0 0
0 1
1 0
1 1
- i - e
end of disturbance (going)
dismrbame (coming)
acknowledged
not allowed
Printer PT88/l?T89
B8576541-03
,., . . . .
~ilwrl
0
0
0
0
0
0
0
0
1
0
1
0
.
.
.
.
.
.
.
.
31210
.Ws-i-e
0
see
1-
message
number
2
.
disturbance message
reserved
for
extensicms
15 -
,!
B8576541-03
Printer Fl!88/PT89
J
Byte 2
Byte 3
DL 1
DR 1
Bit number
7 6 5 4 3 2 1 O
FE
DC
BA98
T
I
Mess. type
Message number
I
I
I
. . . .. .
15
1 to 2000
1000 messages
2000 messages
Printer PT88/PT89
B8576541-04
Byte
S5 addr.
Example
Content
23.05.87
14.15 / 16s 700ms
4
5
6
7
DL 2
DR 2
DL 3
DR3
10 ms
s
mill
h
8
9
10
DL 4
DR4
DL 5
day
mimth
year
_l
date
-
70H
16H
15H
14H
23H
05H
87H
Printer PT88/PT89
B8576541-04
Note that you must set the clock of the CP 525 using the CPU
clock. You can set the date and time on the CPU usiq KIM 526 for
e==w
7. ~ter - byte 12 to byte M
You can reserve space for am? current parameter in each dis -
mrbance message to obtain &tailed information about the dislmrbsnce. The current parameter is acquired at the time when the
disturbance occurs.
E8ample:
,. .-..
B8576541-04
Printer PT88/PT89
.beB8576541-03
H- * ~~*~~
. . ,. . . . . .
o
1
2
3
4
5
6
7
8
9
Meaning
DL
6
DR 6
Byte 12
Bfle 13
FEDCBA98 76543210
Bit
Character
Byte
BCD 16
BCD 32
FXP 16
FXI 32
FLP 32
Timer
CCnmter
YYYYYYYY
YYYYYYYY
YYYYYYYY
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
YYYYYYYY
mm
YYYYYYYY
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Zzzz Zzzz
Printer m88/mS9
DL
7
DR 7
Byte 14
Byte 15
FEW BA98 7654 3210
,/-%,
c,., ,.,..,,..~
bbbb
bbbb
Zzzz Zzzz
Zzzz Zzzz
t====
o
1
2
3
4
5
6
7
8
9
BIN
value
Bit l&l
VA*
BYTE
10
BCD 16
100
BCD 32
987654
FXP 16
1024
FXP 32
1024
FLP 32 +1.234567+02
Timer
123.3
123
counter
=7==
40
41
00
01
00
04
00
04
31
01
00
00
OA
00
98
00
00
62
23
23
Byte 14
Byte 15
OE
08
00
=
76
=
04
C3
IRK
2X
18
,,
:4
Printer PT88/PT89
88576541-04
xx= not used
DB206
AB8
PA(Z1
o :
KEi= 330E
I(H=
0001
1:
m=
0065
2:
HI= 6056
3:
KS= 3715
4:
HI= 2205
5:
KH= 8700
6:
7:
m= 0001
m= 0100
8:
m= FFoo
9:
KH= 0064
10 :
RHI- 6056;
11 :
m= 3715;
12 :
KU= 2205;
13 :
KH= 8700;
14 :
15 : KH= Oooo;
16 :240 4JI= 0000;>
....
lto8
s~
33
00
= dismrbance message
= message qpe
065 = message xnnnbar = message 101
19
Rinter PT88/l?T89
B8576541-04
m no.
si@mmlce
3
4
5
I
I
60
= time
56 = time
: 10 milliseconds
: secon&
37
= time
15 = time
: minutes
: hours
22
= dste
05 =date
: day
: mnth
87
= dste
00 = resemed
:*
01
I
{?
, . , , .-
~ ~ 14 ~ ~ ~ * ~ ~
9
FF
P====
=m
psremeter
10
11
60
= time
56 = time
: 10 milliseconds
: seconds
12
37
= time
15 = time
: minutes
: hours
13
22
= date
05 = date
: dsy
: IIDnth
14
87
= dste
: yesr
00 = reserved
= message type
= dism.rbence messege
064 = messsge number = message 100
,. ,
20
B8576541-04
PrinterPT88/PT89
B8576541-04
Printer PT88/PT89
2.3 Processing
.: :,:,. ,
:.,. . .
,.. .
. ., ,,
. ;. ., :. :.+ .: , .:
:
$-?
.>
CPU
CP 525
DB M RECORD
flFO
DB M SEND ~1
ms
max.42
~essage records
....
....
EE
RW.42
max.128
PT88
PT89
,;-=-%*
.,
PrinterPT88/PT89
B8576541-04
......
.+./
23
,.
, ;,
, , ,.<
,,.,
, ..,
,,r,
B8576541-04
PrinterPT88/PT89
From the message records provided for the CP 525 by the CPU, the
CP 525 selects those that have message texts programed for them.
These are then buffered in the FIFO and printed out on the
printer.
+.
CPU
CP 525
s1-
Memory submodule
DB M RECOR[
(m
{El
7
nax.42
235
nes 13
sage
records
9
5
DB M SEND
1
max. 42
>message
records
2;5
13
:
Messa
Messa
Mess
Messa
:
:
e 1
e
el
e2
IEEzEm I
max 1000
message
,n,
B8576541-04
Printer PT88/PT89
2.3-2 ~ ~ ~ * ~
The CP 525 processes ~e message records buffered in the FIFO
contiguously as follovs:
- the dynsmic data fran the message record is added into the
preprogramwd static message texts at the positions specified.
This @wic data includes the status, date, time and the
parameter
- the con=ol data for the printer attributes (compressed print,
_ded prfit, bold print, underlined, acoustic signal) is
added (see Section 2.3. 4).
W entire message line is prhted out.
Message record
Number
M==@
M w. =3 ,
2 }
.
.
.
I I
1 I
I I
1:
:, :
j Interpreter PT 88 / PI-
-----
/zE7
-, . . . . .
Fig. 4
82
-1
B8576541-05
Printer PT88/PT89
Note: if the CP recognises that the message record and the static
message text do not match (e.g. , the message record does not
con-in a parameter although a dynamic field is programed for
one in the static message text) then instead of the dynamic
field, the CP causes filling characters to be printed out.
f-
2.3.3 FIFO~
flthough the FIFO has the capacity for 1.28 messages, it can
become full. Space for new entries can cm.1.y be created if
messages are printed out. The FIFO can overflow because of tie
following :
- The printer
is switched offline,
has run out of paper,
has nm out of ink
- A very long list that cannot be intermpted
is being
printed
out .
- A very large number of messages arrive within a very short
time.
If the CP 525 recognises that there is a FIFO ovarflow, the CP
signals the error to the CPU and the last DB M SEND to be sent is
xxx entered in the FIRl. Until the cause of the error is
remedied, all further DB M SENDs are rejected by the CP 525 with
an error. These DB M SENDs are mt buffered cm the CP.
DB M SENDS are accepted again only when the FIFO has space for a
complete DB M SEND.
.....
Printer PT88/PT89
B8576541-03
.,
.7
to the CP 525.
Reaction of the CP: as lcmg as the error is not corrected, all
further DB M SENDs are rejected with an error and not buffered
in the FIFO.
The CPU evaluates the error message, buffers the DB M SEND that
was terminated with an error end sends it to the CP 525 again
until the CP completes the job without error.
Reaction of the CP: the DB M SEND that mused the overflow is
SSS@
individual print
c. canpressed print
E. expanded print
.........
,. -,.
27
in Section
U.
Printer PT88/ET89
B8576541-03
fixed texts
yes
yes
yes
yes
yes
dynamic texts
no
yes
yes
yas
m=
,. .:,:,.
yes
2.4
Frames
with SHL5
An SML (as well as the other qpes of lists) can ham a list
...,
Rinter PT88~89
B8576541-03
Header
Rsme
I .............
k
I
Trailer
Frame
New page
Header
Frame
.............
.............
Trailer
.-------
Prame
When the single messages that make up the SML are output, the
CP 525 counts the lines. It then recognises that the end of a
page is close and ouqnts the trailer (if this is programmed).
Then a fom fed is triggered and, if prograasne d, the hea&r is
printed at the top of the next page. Then the single mssages are
continued.
For more details on frames see 8ection 6.
messages for the SML have been listed (i.e. the message FIFO is
=wT) .
B8576541-03
Printer PT88m89
(-$
,~.,i-
You decide whether or not the CMLs end PSLs are to be interrupted
by SMIs :
,,
,-%
.....
no
> means: e.g. CML has m priori= over SML
*
B8576541-03
2.6 Limit Values for the
Printer PT88/PT89
SML
messages numbers
mar. number of messages which can
1000
parameters
time
status
w--=
value) p=
(process
line
31
B8576541-03
3
Current
Printer PT88/PT89
14essage List (CML)
p
%.,:,
32
B8576541-03
Printer PT88/PT89
follows :
- in the CP 525 user program (with COM 525)
- in the STEP 5 user program
. . .,
The data exchange between the CPU end CP 525 takes place using
SEl!m DIBEm
Withjobxmber
- transfer of the DB frcm the CPU to the CP 525: ~ AU
- status coming
- bit set
- bit ChS?X$d - status going
!:{,
Jli
,.
B8576541-03
Printer PT88/PT89
sutIctureofDBHouxm7
DB M OLDNEW
Dw
DL
I
I I I I I I I 71 I I I I I
Dw
2
DR 1 = write pointer
DR 2 = read pointer
Fieldo
:,. , .
0
....,. :,..$
127
1.28
.
.
Field 1
252
253
254
253: this data word contains the lowest ~ ~, i.e.,
the number of the message assigned bit 3.0 or 128.0 in the
areas OID/NEW.
254: contains the ~ of words containing bits to which
messages are assigned.
...,
NUMBER >125
* error
+ error
.,
PrinterPT88/PT89
B8576541-03
titer each processing cycle the areas ~/OU) are swapped over
when DW O.0 is complemn ted as follows:
,. -.
-.-, .,
.,,
, . . .,.. .,
.
(&de
n-3
n-2
n-1
w 0.0
Field O
Field 1
NEW
OLD
OLD
NEW
NEW
Oul
n+l
n+2
n+3
OLD
NEW
NBw
OID
OLD
NEW
NEW
OLD
Bit number
15 14 13
16
32
48
.
15
31
47
.
14
30
46
.
.
12
10
13
29
45
.
.
12
28
44
.
.
11
27
43
.
.
.
.
. .
. .
. .
. .
L9i4 1983
2000 1999 L994 1997 1996 1995 : :
3
19
35
.
.
2
18
34
.
.
17
33
.
.
PrinterPT88/PT89
B8576541-03
,.
fl
.:, .,
is printed out
,. .
.,
, ,;
Printer PT88/PT89
B8576541-03
3.4
-
As with the other list types, the CML can have a list header
and/or trailer. The header and trailer are selected when the CKL
is programwd and first programmed as list type *.
Header = a b printed out at the kgimhg of the CML and at
the beginning of every new page.
Trailer = a b printed out at the end of every page and at the
end of the CML.
The header and trailer are both optimal. You can use the same
3.5 Priority
of the CHL
,..-.-:
37
,,
,.,
:.
,.
,.!
B8576541-03
Printer PT88/PT89
n
SML
. . ,. .
*
1000
Rinter PT88/PT89
B8576541-03
., ., ,... ;.,;
:. . .:.
,
. .. ..,
, ,~. ; :., ,~.$ .,- :.=,. . . ,.
4 Process
.Y
status
fist (PSL)
The CP 525 can output data and statuses from the process (e.g.
temperatures, pressures, counts) in process status lists on the
printer. A PSL consists of a sequence of a XmxinUm 99 list 1311ea,
which together provide an *ge of the process at a defined time.
If required, a PSL can be printed out with a frame header and\or
trailer.
+..- ----..-----. ---------------- --------+
01
I
Dm
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
X29:12
+520 Grd / C
+7~ Grd/ C
+12 m
30 kg/h
-~ /.
Tem~erature i n tat>k :
Temperature of outer tank wa~l :
Level i n tatl k
:
:
Discharge rake
:
Deviation from =etpoint
.t
------------ +
determined when you program the PSL with (%)M 525. The dynamic
values mat be acquired by the STEP 5 program on the CPU, collected in a data block and transferred to the CP 525 *en the CP
requests the da-. There is an interface bemmm the CPU and
CP 525 for this purpose.
. . .. . . . . .
...-
B8576541-03
PrinterPT88/PT89
them in a pre-assigned data block. Before the CPU sends the job
to the CP to output a PSL, the DB must be available on the CPU
and canpletely updated, since the CP requests this DB from the
CPU immediately.
The data exchange between the CPU and CP 525 takes place using
the following handling blocks:
- job for output of a PSL:
SmDDIBECT
with job m.
- transfer of the DB from the CPU to the CP 525: ~ AIL
.,
B8576541-03
4.3
Printer PT88/PT89
525. The print attributes of the static parts are reset for each
list line. They apply to all. static texts in * list h.
The print attributes
for each fiald. They
field (i. e. not for
butes for the static
,,,-.
..
..
,1
.
B8576541-03
PrinterPT88/PT89
Fornmt
BINARY
BYTB
16BIT BCD
16BIT FxP
32BIT BCD
32BIT EXE
32BIT FLP
Significance
Range of
values
1 bit binary
0,1
character
1 byte binary
ASCII
o . . . 255
-999 . . . +999
-32768 . . . . . .
+32767
-9999999 . . . .
+9999999
-231... 231 q
approx. -999999*109 . . .
9
-999999 * 100
9
+999999 * 10- . . .
9
+999999 * 10
0 . . . +999
0 ... 3
0 . . . +999
theSTEP5userprogram
and the CP 525 user progrsm that you use the aam? data types and
same addresses in the DB!
,,<-%
B8576541-03
4.4
Printer PT88/PT89
FramesvithPSIs
ofhr list qpes, the PSL can have a list header and
trailer. You select the header and trailer when programing the
PSL and program them as a frame list ~.
AS with the
,,7-...,
......
., ,
Printer PT88/PT89
B8576541-03
4.6 Limit Values for the
PSL
199
,.-.
99
80
40
approx. 1400
60
in characters
max. no. of stamses for PSL variables
44
n
.-+;.
B8576541-03
PrinterPT88/PT89
5 Chained
. ,.
If you requixe mme than 99 lines, you should program and start a
Cbined 13St.
+ .--. ----- -. --------------------- -------1
! Date :
Tima s
I
.
01 :29:12 pm
+53j Gt-d~ C
+iG Grd/ C
+12 m
30 k g / h
-2 7.
Throug hDU
valve 1
valve ~
valve 3
...
:
:
:
129 Iimin
ZO 1,/m i~-l
i 5 l/m i n
+ ----- ---
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...
B8576541-03
,,:
Printer PT88/FI89
e.
list, simply specify the names of the individual PSV that are to
be chained.
5.1
?-?
,:
-..
46
.,.,
B8576541-03
PrinterPT88/PT89
The data exchange between the CPU and CP 525 takes place using
the following handling blocks:
- job for output of a CL:
SmDDIBmm
with job m.
5.2
The interface between the CPU and CP 525 is formed by the data
blocks you SISS@ when ~~ the individual PSLs. This can
be the same for all = or differ from PSL to PSL.
For more infomatim cm PSLs see Section 4.
./-=-..,
...
,:
B8576541-03
5.4
Frames
PrinterPT88/FT89
When programing the chained list with COM 525 you cammt specify
a header or trailer specially for the CL. The headers and trailers must be assigned for each individual PSL.
,-?
,-.
Example:
Header
Frame 1
Hea&r
Rame 3
fl
.
.,,...
PSL 1
PSL 5
Trailer
Frame 4
Header
Frame 5
PSL 2
PSL 3
PSL 6
Trailer
PSL 4
Trailer
Frame 2
Frame 6
B8576541-03
Printer PT88/PT89
199
8
*)
B8576541-03
6 Frames
Rinter PT88/PT89
(List
Headers/Trailers)
All three types of list (SML, CML, PSL) can have a list h6a&r
and/or trailer. These are parts of lists which are programed
independently from the list under the term %frzm&.
. .
f-
You can
.--m, ..
.. .
. . .. . . .. . ........ .......
.,
0
...
.,,.....
B8576541-03
PrinterPT88/PT89
The data exchange between the CPU and CP 525 takes place using
the following handling blocks:
transfer of the DBs from the CPU to the CP 525: ~ AIL
Further information on the handling blocks can be found in the
descriptim Using the handling blocks in this mauual and in /1/
in the list of relevant documentation.
_les of P=WQ the CPU and the CP 525 can be found fi
the example of an application CP 525: event output and listing
with the PT88/PT89 Printerw in this manual.
The interface between the CPU and CP 525 is the assigned data
block and can be different from frame to frame. You decide the
number of this DB in the @ 525 user program. You must also
define this DB in the STEP 5 user program.
B8576541-03
.,. ,. : .,. . .
Printer PT88/PT89
The DBs transferred from the CPU with SEND ALL (only da- words
O to 1.27) are buffered on the CP 525 until the complete list is
printed out. This ensures that the dynamic data of - the header or
trailer remain the same during the output of the list (status as
at the start of the list).
The CP 525 counts the
lines as they are printed out on the printer. The CP 525 then
recognises the end of a page, adds the trailer and triggers a
form feed to the next page where the header is then printed (if
programmed). With PSLs the header and trailer are only output at
the beginning and end of the list.
Example of frames with SML and CML:
new page
frame:
header
list line
frame :
list line
n lines
trailer
k lines
new page
frame:
header
n
i lines
. . .
B8576541-03
Printer PT88/PT89
unlimited
no
9
80
40
9*M
in the DBs for frames only the data words O to 127 are evaluated
*) In
B8576541-03
7 Update
hinter PT88/PT89
Sequential
Message
List
+ --------------------------------------------------!
s~q L4EN1
,-,,
.,:. .., . ,W
I
! Early shift
J
Bawnes
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
S 1, i $ t ~~~ g i ~~ ee fn :
E7 02: 2?: 26 pm
Tan k 1 :
Tank
i :
Tank 1 :
ilz .13.
m~;< . l~ve~
overflow
~\~M ~ ~JG
C!3MI NG
over flow
SQ r~~
G(2 I N(3
Tan k 1 : ma:.:. level
C12. 13. S7 02: 29:30 p m
+ --------------------------------------------------- i-
., .
n
.
+ ---------------------------------------------------
,.... +,,
-1-
D2 .13.87 CE!:31:CM pm
TarIk 1 :
max. level
GOING
54
,,
.,
Printer PT88/PT89
B8576541-03
.,
.,
. . .
.---%
Update SML:
If you wish to change the dynamic values for the list header and
trailer while an SML is running, you can have - ~ Wal=!s
sent fran the CPU to the CP in DBs. You use the job UPMl!E SfL
that is triggered by the CPU when the CPU calls the handling
block SEND DIRECT with a job mmber.
SO!m AT.L
More information on handling blocks can be found in the description wS~ the hsndl~ blocks in this manual and under /1/ in
the list of rekmnt documentation.
55
,,,;
. ,.
B8576541-03
7.2 Interface Between the CPU and CP 525
P.
7.3
a
Your STEP 5 user program starts me ~~te SF& by s~q
SEND DIRECT job with a job number to the CP 525. This job checks
whether a sequential message list with header and/or trailer has
already been started. If this is the case, me job requests the
DBs that you specified when programing the frame for this SML.
The CPU transfers these with a SEND ALL to the CP 525. These DBs
contain the most recent dynamic values. The CP buffers - values
transferred (W O - DW 127 for each block). From tiis point
onwards these values are used as me source for the output of
dynamic values in the header/trailer of the SML.
/@%.
,;
:
B8576541-03
8 Update
,.,.
Printer PT88/PT89
Group
Inhibit Bi-
With the GIBs you can control tie output of list lines.
GIB StStUS ==
GIB
.-.-. .
StStUS =
O : group released
All messages and PSL lines which are assigned to
this group will be listed.
The group inhibit bits (GIB) can be set or reset by the CPU at
any time. The update grasp inhibit bie job is available for this
PT-e
57
B8576541-03
Printer PT88/PT89
Smm AIL
58
...
Printer PT88/PT89
B8576541-03
,:.
,,.,
,.,.
8.2
...,,
..
The interface between the CPU and CP 525 is the defined data word
in the declared data block. This contains the group inhibit bits
for the 16 groups of messages. The following applies:
15 1413121110 9 8
15 14 . . . . 9 8
..
DWn
DR n
w no
7 6 5 4 3 2 1 0
7 6 . . . . 1 0
DW = &a
word
DL = left data byte of DW
DR = right data byte of DW
n = number of the data vord
Bit = 1
Bit = O
8.3
Immediately after the SEND DIRECT job has been started the CP 525
requests the da- block with the defined data wurd from the CPU.
Ihis sends the DB with a SEND AIL to the CP. !he CP 525 stores
the data word and interprets the contents iumwdiately as group
inhibit bits for the 16 groups.
The output of each list Mne is dependent on the statxs of the
ww Mbit bits for its group, which is ass~ed when programing the list line.
..-.
B8576541-03
9 New
RinterPT88/PT89
Page
The CP 525 automatically initiates a ~ feed when the pro_ed P$ge lexfi iS re$~d.
Your STEP 5 user program can also outpt a form feed at q tima.
Using a SEND DIRECT job with a job number, the CPU starts the
new page job on the CP 525,
Your STEP 5 user program can reset the page counter on the CP 525
to one at any tire. By means of a SEND DIRECT job, the CPU starts
the job reset page number on the CP. A form feed is automatically carried out at the same time.
PrinterPT88/PT89
B8576541-03
11
./-- -y
.+..,.
Attributes
Each list line (of an SK, CML or PSL) can be printed out individuslly. You can select fran among the following print attributes when programming the lists with COM 525:
C = Compressed print = 17 characters per inch (instead of 10
characters per inch)
E = Expanded print
B = Bold face
U = Underlined
A = Acoustic signal of the PT88/PT89
You can assign the print attributes individually to the static
parts of the list lines (fixed texts) as well as to the -C
X (date, time, process variable).
The selected attributes are then valid as follows:
- for * *la list 13xu3 for all stat5c parts
for a
l==)
The attribute compressed print is mt allowed for dynamic parts.
The following attributes are allowed:
I
.,
B
I
fixed texts
yes
yes
yes
yes
yes
dynamic texts
I@
yes
yes
yes
yes
B8576541-03
Printer PT.88/PT89
You can combine the print attributes as you wish. The text is
then output according to the print attributes assigned to it.
Example: the attributes PXYlllB are assigned to a particular text.
This text is then output as follows:
- in compressed print (C), however
- with double character width (E)
- in bold print (B)
- underlined (U)
- with the acoustic signal of the PT88/PT89 (A)
If dynsmic parts with theix own attributes are printed out within
a static text, the attributes of the static tz are used again
after the dynamic part has been printed out.
11.1 Print
Types
on a PT88
on a PT89
Printer PT88/Pl89
B8576541-03
on a PT88
on a PT89
.,
B8576541-03
Printer PT88/PT89
With bold print, each character is printed more than once. There
is, however, a difference between heavy print with the impact
matrix printer and heavy print with the inkjet printer.
11.4
Underlining
(U)
11.5 Acoustic
Signal (A)
...
B8576541-03
B&Ld . . - - -
P r i n t e r Pi88/PIW
. .,
00-- -U1.2**+G-?T?***+?
:
f] -
Rinter PT88/PT89
B8576541-03
3.2
=?=w..@$,,
.,
.,
,
..,
M*1 ~
&
,.::
:,-
-.
,,.
,.
.,.- ,: -,?;-
7,. ...
. . %.:7,.?;.:- . -
,;. . ,...
.,~v . .
. -
.,, ;,,:.,:;,
, ~-. -,,. -
,.
.........
.,.
,,..
,,.,. ~ ,.,;,.. -
jrsm
.,,
Sylfe4m
B8576541-03
printclr model
Rintez PT88/m!89
PT68 or PT$9
B8576541-03
PzQlter PT88/Pm
I dlwfaB
Px?M1/Pr89
,. .
aas4hlM11 /6
. . . . . . . . . . .. -., . . .. . . . . . . . . . . . . . , , ..,, . . . :,~.qi#-.f&j
1;:
-x- .---.
.-=..-
~.-..
m
..,,.... . . . . .
,
,.
,,.
.,,..:
,.
.,
,:
.,
.,l.
.,
Cl
.,,
.
!C3 ~1
., ;.,
Mm- * . * - * -.alP - &
.!..
B3576S41-03
Rhzmz F@)@9HW
II 52 (--y
%
...,
.
,.
S22?67-:S2- A3W
,.
.&
,
n
t%awImi8@a
mwbps
?J.
I--
B8576%l-t)3
i
~
1 , ,.
:,,
.:.
.,
,,..,
.,.
,,..,,:..,.,..
,,,. ,,.,,,
.:.
,.
.
l- ~~ ~ ~ ~
-.,
..: .,.i
,,
.,
..;
.
.
;..,
...,
.
.,
.,,
,.
:.
!.,
.,
,,,
~ ..Eqs$J$q!s9
RM76S4143
*W.: ;:@!!:,*&.
; .,,,e2,:,,,.::j:,,,,,
, ; . .
..:,:
- fsmlrldm aziu$lsqmtrn
..,.,
.tlw~ ,-,~.,.
T,:,=
d
.,:<
,.
...
.::~::~
$.
j
-.--..s..-..4..-..+
. .
.-., .. . . . .
>.,.~,-:......-.--:.--..-,:-i,
,,.:,...we:,w<:6*i:i+$,:+;+&.~:v:;:;:
-. .:-!-,. ----
.
Rlnter
PT38/ri!89
B8576541-03
,-,. .
*..M?@#il&
...
,..
~m
...
B8576541-03
Prhter P%88/PT89
,$ m
.. . .. . . . . . . . ... . ... . . ,;,.: .,. . . ., .+:. . -. ~+
.:ms~;i~~
B8576S41-03
Printez Em$$j$Tm9
B8576541-03
.
-,
tmM@!xg%tit%h8L4mm$~
-r4mcei* wiittitbefAmm?a~
1.
Prlm%r Pml$a
B!
m
~
:.
.:,
,!
,,
$:.
,.,
-.
.
~ :. . :.lJ.-
tmvititi
.> . . . ~ .: ::,
. .
.- ,.. :..?i :
.., , ..,: . . .
q, y
~.
,x ,: .... .
j
,L9.;.~4
.i!i
,:, ..
: ,,
..................
B$S76S41-03
Rfmxwr PWME18f?
B8576541-03
.,.,2 .:...-
Rhter PIt#/STS??
.,,,
B8576541-03
.~.-,:
-..,~.f-.
. . .. . .
,.
Risme.rPm&mw
..
., ...:..,,,,,,,.. ;.,.:,-, . . .
00mE41-03
R5ax~/wm9
l!
B8S76541-03
Pri.ntsx 3q%8/l?m9
B8576541-03
Prhtezm84t/m!m
Rinter PT88#PT89
B8576S41-03
8I
1
=YW*
Merpreter +
I
P-=-=*=1
38576S41-03
Printez PM8m9
B8576541-03
1
Rineer PTOO/ITMl
1
U3adabh
mftware
B8576541-03
. m
PrinteE P!m8jPT89
5xm
32 x i
.*.-----
B8576%1-03
mmBz PmJ#%#9
32 x .t
I
&
*..~..@&
~,.*,&,
. .
.. . . . ,,..
..-, -,... -:-...... :. ., . . . . . . . . . . . , .
,,
...&&*g,&g$&&,@,,,-m..&A.-..=....--... -
B85MS41-03
~~~
.......~-~=
Print= Fm/Pr89
Riategmw3#m%u?
38576%1-03
*..~:.;::;:...:- ...,.%.,:.,.,:...,:.
. . . . . ?:.,....,
~a@: ,. ~ . .: Mi?@=
4isiiiM@-
d#lM!iy $iy$it@:: .;
, .,.,
,..
..
.:.$
-,.
v
- lm~afdm; 4a&,: al@wm@ra
-i??mB8
..,,
*6*
.,
.:.
:;
. . . .. . . .
-4 ., ,.. .+ . . . . . . . ..
,,+..-.
,. .- .:.%:; -:.
.:&~-
,J: :$:,
.,
.,
,:
:,:
,. .,-., ? . ., ,;,
,1.,..
..,.,
.:....,......-..,.,
,,:.
.,,.,
.+[+,...
:,,.
.-.4
-, , . .
:::
:., .
.:
-.
.;
. . .. . . . . . . . .
,-..
-. .
.;::~:::$,
.:,,/:/;:;!-.;;;+.
?
. .::.
~odin
Wta@h
odmmamkmMbx= 8
,
fiil+. :
10lm&* m be
duli
m::*!::-:
. . . .:, , .. .,.. ....: ,.-. .. .. . .. . . , .
.
.,
~~:
...,,::.
:,
,.
,.
,:
...
;
~=-
...
,,,
. . .,,. . :
t.,,
:
,
.:
.:.
,.,
,.,,
..!:
!,):.:.
$~f.
.,
,:
,,.
.
.,
,.:.
.,
,,
& &j.;,;.
(Slmed as Ci4xw ,
%&d On aid $Lustic signal m (8to?@ii Uiodk)
p
0
*.,. +,..
4:3:,)!
., ,.
Pmalntas cm * tm following:
- &ems
-CPurumiber
-DB
e.g. Mt 123$ DU 15
.- mm (0.$. of fzaaues) eke.
i: : .:
J
4
,:,!.
?)4 :
,,
3
., ,.
,.,
.,...,,:J;.+
, , , , ., :..,. ,. .,., , , ., ,:. :(,:.,;:, :
,;
:[
::::$;,
~4G_.-,,
----
Rintxm 2T84VP=9
B8S76541-03
-~
-.- ~
.j.~~
Mmrm!iT mQusrJ@
-+. .
,.
.:.,.:,.
,,,;,,i,,.,.,,,,.,,.,
.,,,
.,
.,.
.
*:;&.
.$.:
*-@@&, ,
..+ .:. . ,
,,..
inn.rs6wm L?waggmly -
w-* ===@
.:.
,j
, ., ..,:, . . . . . .:,. :,
., :
Note: to
pf@qs
,,
-;,::.::<:,::::,:.
,,
.., . . ..
-,. .
...............
....x:.&.d&&*k.*-..:,!<*-.!A*-.A--........A.~
;.4...
.-..,,.-.
.-
B8376541-03
Rinterl?wMjTm9
230
., .., . . . ,. ... . . . ..
,.
-, ,, ..:
%!l?81mt?@m@aamem * tlwse 30
34*
4@m4?zy *
-Sw@s +
.:..*
..-
.y
~,;..,::
. . . . . .
. ..
. :
.: ?:
.:.
-~
(* 13ylM@
16
n
.= ~ :. .
. .. .. . .. . ... .. . ...
!
RiT@r Ei!8$/P!r@
38W654Z-03
.,. .
-.. .-.:.
,.
%wg%lr%lry
.~~
M
13
la
6*SQ
6+n2
.:, .
F=
.} **
dam
~~ **
raq@mmw
.
,..
.,,. :.
,.:, ,
-8
W@@&
:
.; i:. .... .:
F @ Q @ = * - Iw...
&w.,,*,. ,@g @@#+a-.~ *.-(#@g!$p:*@p &
,& ..~* @g *$ ;gg.~.:##&#j$@&##::#@~ 2
Printer PT88/PT89
B8576541-03
-J-e
... ,:.
., ,.,,, . .
.i
. ... ..:. . . . .,
2
3
123456789012345678901234567890123456789012345 678901234567
1
.,
(h bytes)
27
10
28
74
55
10
204
line
line
line
line
line
1
2
3
4
5
(according to 15.2.1).
, ., . . . .
111
.,:,~,..k-aaaa
.*a,=,,,*,,,,,.,---
~~~
~.......
. . . . . . . . . . . . . . . . . . . . .. . .&..
B8576341-03
RUwer Ymwaml
,.-..
,.
,...
&@z?Tr?Ty
i!
:
:
?aaA3Zw@Nlmt
.,:. .: . .
,.,
.,
r, ., .
~.:.
..*J
.,,..
atatic iaz$
1 byta fox *+* @ar$ *.::*$..:.
, & ayka fox *4$:i@ibLl .*;~$~?::i~;~~;$ 7- ::: ,:
5
,. . . :
,.,
;
4
,.:
.,
.:,
,,,
,$..
,,,.
.. . . . . . . . . . . . .
,,.
,,..
..$
,,
,,:,
?
.,;
,,.
2e
,.
.,, .
..:
,.
.:,,.:,.., ,:,:J,.,:?..,
,!
.,:
.,.
..,
,..
,,;{
18 m * ! txnmyor *it $M
1 I@x for i (at and of 1*)
3 bytes *
apacea (C4xripmaaed]
,:,,
,.,,
&,$.J,,
Printer PT88/PT89
B8576541-03
-@Q
The string
of numbers
==@
5
4
3
2
1
l23456789Ol23456789Ol23456789Ol23456789Ol23456789Ol234567
0
Line 1
Line
Iine
Line
Line
2
3
4
5
t ----------------------------------------------------? Q==Y=~t 03
### SLift el@laer:##m##u#
! S&t:
+
!
!
!
! --: #### ==:
f- - ---- - ----- ------ -- ---- -- -- ---- -- -- ---- ---- ---- - - ---- - !
##w
(in bytes)
27
10
28
74
55
10
204
line
line
line
line
line
1
2
3
4
5
(according to 15.2.1).
,..
.., -,,,,.,
m.
Printer PT88/PT89
B8576541-03
Ixne 5:
+- ----------------------------------------------------., . . . , , . .
,,
!.
Memory required
For
(in bytes)
basic requirement
static text
1 me for + (at start of l~e)
1 Me for + (at end of l~e)
3 -es for -w (compressed)
line 1 contains no dgnamic parts
10
5
5
B8576541-03
.
:,. . . . . .,. . .
...,., , f;~::.;.i
Line 3:
.,
Printer PT88/PT89
..,,.
+.
J Shift:
##
Shift eJ@suwm
Mmory required
(in bytes)
For
5
33
..
basic requirement
s-tic text
llbytesforw! 8hift: w
18 bytes for w Shift engineer:
1 me for ! (at fie~d)
3 bytes for
spaces (compressed)
for the tm dynamic field
18 bytes for field 1 (process variable BYTE)
18 bytes for field 2 (process variable CHAR)
36
.,
Lina 4:
! rote: ###f#
5
24
basic requirement
static text
10 bytes for ! date: m
IO bytes for time: w
l~e for ! (at end of l~e)
3 bytes for
spaces (compressed)
for the two dynamic fields
13 bytes for field 1 (DATE frcm DB)
13 bytes for field 2 (TIME &cm DB)
26
.,
55
-: ######
B8576541-03
Printer PT88/PT89
15.2.2.3 PCJobs
PC jobs are started by & CPU using theif job numbers. The
following are PC jobs:
1. Sequential message list SML
2.
3.
4.
5.
6.
7.
8.
Rocessstams
list PSL
CL
Chained list
Curmntmessagelist
CKL
update SML
Update group inhibit bits (GIB)
New page
Reset page mnnber
1.
,.,
, ...
,
,,
The memory space required for the sequential message list (SML)
is ob-ined by the following:
.,. ,. ,.
18
2 x (i + 1)
k+l
12
12
7
3+1
3+m
3+n
115
. . . .... .....-, .+a.tiw ..=.,-w-...,,+ e.....,
. . . ,. ....,w=.,~<.Am *.,.~m...w. &=.,., ~,. :,.=, `*<, . , *, ,:. , , &i*#,.wJ4,.,. ,; . i,. ,. .., -., . . . . . .
.,
, ,,
B8576541-03
Printer PT88@89
26
2 x (i + 1)
2 X (k + 1)
Sum L
=-v l=
- requiredI
For
(in bytes)
5
16
n
sum D
Note:
To save space the static texts are automatically compressed by
C(X4 525; i.e. , more than three identical successive characters
occupy only three bytes of memory!
#T-
Printer PT88/PT89
B8576541-03
, . . .:,
. . . . . .: . . . .->.
,,
Memory required
For
(in bytes)
6+nl
6+n2
basic requirement
date or time
process variable
process stitus variable:
nl = no. of chars. in text for process stems 1
n2 = no. of chars. in text for process status 2
6 + n8
17
13
18
These memory
,..
. .. . .,
B8576541-03
Printer PT88/PT89
Since there is very little difference between PSLS and the frame
in terms of structure you can simply use the example given for
calculating the memory requirements for the frame.
Included in
list header
list trailer
job number
DB number
yes
yes
yes
yes
no
no
no
yes
(-,
..:,
Printer PT88/Pl89
B8576541-03
.,
4
5
3
2
l23456789Ol23456789Ol23456789Ol23456789Ol23456789O~34567
t ----------------------------------------------------- -+
!
~ ~~t 03
!
## shift engimer:###f#H#
! sift:
!
! mme: ##### -:##i#w
t ------------------------------------------------------ !
The space required for this PSL is the total of the following:
Memoryre@xed
(in bytes)
26
11
11
10
28
74
55
10
225
For
. .. . . .
,. ,
B8576541-03
Printer PT88m89
,,.
The memory requirements for the chained list are obtained from
the following:
Fkmory required
(in bytes)
8
l+nl
l+n2
.
1 + n8
For
ChSr.
&--.\
--- .- . - -.
Printer PT88/PT89
The menmry requirements for the current message list are obtained
20
2xi
2xk
5. UPum 94L
for the job UPDATE 8MLn is the following:
The
memory
(as 3n 15.2.1).
B8576541-03
PrinterPT88/FT89
6. UPM!CE_~
~~-ement for the job WPDA15? GIB is as follows:
For
Memory requixed
(in bytes).
total requirement
24
7. lmx Pm
The memory requir ement for the job NEW PAGE is as follows:
Memory I
required For
(in bytes)
1.2
total requirement
8. BEET - IKHEER
Suppose that PAGE NUMBER = 1
~ ~ re~ ement ~r the job PAGE NUMBER = 1 is as
follows :
total requirement
B8576541-03
PrinterPT88/PT89
The CPU reads the error ~ axea of the SYSTAT for the speci-
The area in the CPU (destination area) to whiCh the error message
area is to be transferred, is fixed when you assign parameters to
the RECEIVE DIRECT 200 data block. The destination length must be
at least two words.
RECEIVE DIRECT 200 is =ecuted only when an error number has been
entered in the error message area of the ~, since mly then
is the bit RWEIVE - job ready set in the ANZW (bit O).
Note: in some cases (e.g. , if no SNCHRON has been run or if
s~-up errors occurred in the CP 525) the error message area
cannot be read by RECEIVE DIRECT 200 (cf. note in 16.3).
B8576541-03
~txre of
RinterFT88/PT89
desthatimlams
If error numbers sre catered in the error messsge ares they sre
locsted (sfter they have been read by RECEIVE DillECT 200) in the
selected srea in the CPU (e.g. in the dsta block).
./,
..
Printer PT88/PT89
B8576541-03
Byte
Bit
byteo bit 3
status
0
m
1
bit 2
(0)
bit 1
0)
bit O
m)
bit 7,
6, 5, 4
Significance
0
1
,,/-J
,.
. ,. . .
Q
yte 1
yte 2
yte 3
error number 1
error number 2
error number 3
00 = no error
Printer PT88/PT89
B8576541-03
:0
..
F 1.0
:ON F 1.0
:
:Ju FB121
NAM E:RECEIVE
SSNR:
A-NR:
Aml:
ZTXP:
DBNR:
KYo,o
KY0,200
PwLo
KSDB
KYO,1O
ZANF: KF+1
ZIAE: KP+2
Pm: FY5
s
.
J
.
*
.
*
.
>
s
.
a
.
s
.
*
.
*
:C
..
DB1O
:AN D 1.11
:JC 41001
:.
.. .
.
B
i.
:.
: XI FB124
NAME: RESET
SSNR:
K!m,o
A-NR: KY0,200
PAFE: FY6
:
:C DB1O
:L KHOOOO
:T DWl
:T DW2
.-.
..
;
.
D
Mool ! .
: etc.
:BE
127
B8576541-03
Printer PT88/PT89
DIRECT 200
AU the entries are then cleared with the exception of the BREAK
bit (B).
!RIRXUMT!: the error message area of the SYSTAT is not cleared
by a SYNCHRON call.
faces (in bytes 4 to 10). This job can only be executed if there
are no error numbers entered. A destination length greater than
or equal to 16 bytes (8 words) is necessary.
Note: in some cases, (e.g., no sYNCHRON executed or error during
the start-up of the CP 525), the SYST!4T cannot be read by means
of RECEIVE DIRECT 221. It must then be read directly fran the
dual-port RAM (fraa address F660H).
Printer
-, .-.
716 1
Byte O
irrelevant
irrelevant
sign of life
irrelevant
..
E2
02
I m I ]
I B2 I M I El I 01 I B1
error
o
L - - l
1Rl
..
10
11
12
13
14
15
nmber 2 IF2
resemred
129
Printer PT88p89
B8576541-03
16.4
Reading
.,-:+$!?
,
the SYSID
.....
,,
, ,. . -..
.L
Printer PT88/PT89
B8576541-03
Smtxme of
.,
- tiulareasxsID
the Mam5fma
o to 9
19 to 21
22 to 41
Plant designation:
EPROM: designation of programmed
plant
RAM:
replaced by space (20H)
42 to 50
Generated m:
EPROM: date of EPROM progmming
RAM:
replaced by space (20H)
5 to 9
51 to 55
10
56 to 64
,>
Descriptim
10 to 18
....
Byte
131
, . .. .. .,, -.. . . . - . .. . .+. .,. . -----------
. . . . . . . . . . ..
Printer PT88/PT89
B8576541-03
Interface 1
Parameter
11
12
13
14
15
Byte
65
68
77
80
89
to
to
to
to
to
67
76
79
88
91
Description
Example
c~t we
PT
PT88
ml
IAUPPT88
m
Descriptim
Example
c~t %=
interpreter name (*)
interpreter version
procedure nsme (*)
procedure version
end Mantifier ETX
(03H)
RK
Interface 2
Paremeter
16
17
18
19
20
Byte
92
95
104
107
116
to 94
to 103
to 106
to 11.5
to 118
119
BK512
ml
P3964R
ml
132
.-,.,,
Printer PT88/PT89
B8576541-03
A CP 525
Time
Slave:
The CPU can set the date and time on a CP 525 at any time. It
can, however, read the date and time of the CP 525 only if the
latter has been designated time master.
,,...
.......
B8576541-03
Printer PT88/PT89
Byte
Significance
1 = master
o = slave
1
2
~;.
,. .-..,.
/10 s 1/100 s
min
day
month
.: ., ,. .
!!2!+
8
9
.,;,,:
..(
,. .,,
i
~f.
...
,,,,
B8576541-03
Printer PT88/Pl89
The job number 218 is fixed on the CP 525 for the jobs read /
write date and tine.
:. . .
., , ,. . . . . , .., . ;.; ~.
..
SO!mmRlmT 2.1.8
Using this job, the CPU declares the CP as master or slave. At
the
time the CPU can also transfer the &te and time to the
same
CP.
Whether the CPU transfers the date snd time ** on the source
length specified (QIAE = length of the dam tobe transferred):
QIAE =
1-
QTAE==5um3s
The CP is declared as master/slave by means of the rester identif ier and the date and time are transferred.
B8576541-03
Printer PT88/PT89
Note:
The CP 525 can be declared as time rester on one or both interfaces. The date and time can only be read on the interface on
which the CP is declared as master.
If the CP is declared as xuster on an interface and then as slave
on the other interface, the CP becomes time slave on both interfaces. For vie, the following situation occurs: when the
date/time from the first interface is read, the error number IF
is entered in SYSTAT. When the second interface is read, the
handshah is not carried out, since the bit RECEIVE - job ready
in the ANZW (bit O) is not set. No error message is output.
,. . +... . .
By Uieans of this job the CPU can read the date and time from the
CP (if the CP has already been declared time master with SEND
DIRECT 218.
The destination length must be five words. Again the destination
area should be a data block.
Note: the data read tmly has meaning if the date and time have
been set at least once since the module was plugged in (with SEND
DIRECT 218; length: five words).
,.
Printer PT88/PT89
B8576541-03
. ..,
,.. ,.
-.:
, : .., ~
,. , ;,:%:;..;.:,,.,-..:?
,.
17
Error
Handling
{--%,
, .:,
B8576541-05
Printer PT88/PT89
,.,!
,,,.
.,i
B8576541-03
Rinter PT88/PT89
,.
,.
hinter PT88/PT89
B8576541-03
follows :
Source
1 to 6
---
B8576541-03
Rinter PT88/PT89
The error message area of the SYSTAT is a data area in &e dualport RAM, which can be read by the CPU using the special job
RECEIVE DIRECT 200. For each interface the error message area of
the SYSTAT covers three error message bytes and an additional
status byte. A detailed description can be found in Section 16
Special jobs carried out by the CPU.
AU errors recognised by the CP are entered in the error message
read the error message area in the SYSTAT during the coumissbn@ Phase. YOU can recognize the occurrence of errors by bit O in
the ANZW of the RECEIVE DIRECT 200 being set @ 1 by the CP.
These error numbers are then copied into the data block specified
as a parameter. If a prograamer is coxmected to the CPU of the
PC, you can display the errors directly on the monitor in the
operating mode STATUS variable or WXV1ROL variable.
To clear the error entries in the SYSTAT, call the special job
RESET DIRECT 200 (for more de-ils see Section 16).
. .,+
Printer FT88/PT89
B8576541-03
1 to 14
Source
15 to IF
20 to 2E
in the
dynamic parts
30 to 35
errors
40
50 to 54
BO to B8
error
cotocA
hardware
Doto FF
PG and CP
tie
mmbers
Printer FT88/FT89
B8576541-03
.,
..
No. for
,@--,.,
No. for
SYSTAT
Descripticm
~ assiggml?sm ~
-ted by the CPU of tw m, ami
Sigmlled by tile CP
IH
Om
---2H
- - - 02H
----
- - - -
3H
03H
---4H
---04H
---5H
---05H
Printer ~88/PT89
B8576541-03
correct.
-------- ----------- - - - - - - - - - - - - check parameter assigment m CPU and CP, if necessary set up
block.
- - - - - - - - ----------- --- ---------check parameter assignment on CPU and CP i f necessary check
data block/area.
-------- ----------- - - - -------..check parauleter assigment on CPU and CP - check hardware
(modules).
- - - - - - - - ----------- - - - - - - - - - - - - Check whether conditicm codeword is valid
(see documentation for appropriate PC and processor type).
.-.
...
145
Printer PT88/PT89
No. for
6H
No. for
SYSTAT
Description
06H
10H
---llH
---12H
---13H
----
14H
.p
...,
,. .
B8576541-03
Printer PT88/PT89
Remedy
.,
,. ....
.-.
{,<
? .:.....: . . .
......
....
147
,.,.,
;,
.,
Printer PT88/Fl89
No. for
No. for
SYSTAT
Description
-~ at start & job
,,.-,..
P=-*:
7H
15H
----
16H
----
17H
----
---IFH
----
,,--.,
B8576541-03
Printer PT88/PT89
Remedy
reslx15.ng the CP
CPU jobs are
SYNCBMN HDB clears
the SYSTAT entry!
- - - - - - - - - -
---------------------------------
-..
Printer ET.88/PT89
B8576541-03
No. for
No. for
SYSTAT
Descriptim
Jobcaumtbeexeaked
7H
20H
--- 21H
--- -
22H
--- 23H
---24H
.. . , ; .;,
q
,,
Printer PT88/PT89
B8576541-03
Remedy
151
, ,.
B8576541-03
No. for
7H
Rinter PT88/P3.89
No. for
SYSZ4T
27H
28H
--- 29H
---
Descriptim
--- 2BH
2CH
--- 2DH
---
152
f-r.
,.
B8576541-03
Rinter PT88/PT89
Remedy
, ..- t ,,..,:. . . ~,, . ., ,:;
or
- Switch selector to RSJN
Correct
--------------------------------
--------------------------------
Printer FlC88/PT89
B8576541-03
No. for
No. for
SYSTAT
,
7H
,-
Description
c)
.&-
$.
. .....
!$?!3
. .:. .
,. ,,
B8576541-03
Printer FT88/PT89
Remedy
- Transfer DB with correct length
or
- Correct DB address vith CCM 525
,:.
..,.
.,,
,,,,
7,
L-
B8576541-03
No. fox
Printer PT88/PT89
No. for
SYSTAT
9H
54H
Description
~ ~ ==we -:
f-
., . . .. .
. . . -,. ,
,.:,
.
B8576541-03
Printer PT88/PT89
Remedy
Correct:
printer switched on? cable plugged in?
PW ~ ~? M run out? printer Offlfi?
find UIt why SO many messages
reduce the number
wait and then send DB M RECORD again; further messages can only
be processed after this list has been printed out.
..
157
B8576541-03
No. for
Rinter PT88/FT89
No. for
SYSTAT
AH
30H
---34H
. . .. . .. . .,,
158
.)
B8576541-03
Rinter PT88/PT89
Remedy
Check the formt parameters for the dynamic fields of the PSL
with C(3M 525 and if necessary correct
Check the ccmtents of the DB on the CPU si& and corxect
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - check the formlt parameters for the dynamic fields of the *
with CX)M 525 and if necessary correct
Check the contents of the DB on the CPU side and correct
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The contents of the data IR3rd in the data block must not exceed
the specif%ed rsnge of values
--------- --- - - - - - - - - - - - - - - - - - - Match the DB addresses of the dynamic field to the length of
the data block
Match the length of the data block on the CPU
...
.. . . . . . . .
159
,.
,,:
Printer PT88/Pi89
No. for
No. for
SYSTAT
,
-.
Description
~..
Ill
Rzur
in
data
CP$nd
-----
PllJ8/mJ9:
I Control character BREAK cm the line
-
, ..,.,
.,..
,.
Printer PT88/PT89
Remedy
Causes: - cable defect
.,.
..
B8576541-03
Printer PT88/PT89
17.2
ANzw -
No. for
A---
Description
~ter ass- ~
of * x, ad
detectd by the cm
Siglmned by the CP
olH
----
02H
----
03H
----
04H
----
05H
----
06H
IH
----
2H
----
3H
---4H
---5H
---6H
$-+,3
:.
.,.
,{
.,;
!
B8576541-03
Printer PT88/PT89
Remedy
correct.
--------------------------------- Check parameter assigment on CPU and CP, if neoessary set up
block.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Check parameter ass @==t ~ cm ~ ~ ff nec==w **
data block/area.
--------------------------------- Check parameter assignment on CPU and CP - check hardware
(modules).
---------------------------------
...
163
,.
B8576541-03
No. for
PrinterPT88/PT89
No. for
Descriptim
~ detected by CP - data
~ CPU <> CR
.......
10H
--- llH
6H
--- 6H
--- 12H
--- 6H
--- -
--- 6H
13H
--- -
14H
--- 6H
15H
--- -
----
16H
7H
--- .
17H
--- 7H
--- -
--- 7H
--- IFH
--- -
164
,.-. . .
. - . . . . . . . . . . . . . . .+ .
,.#---
B8576541-03
Printer PT88/PT89
Remedy
Check
e.g.,
--Check
e.g.,
--Check
STEP 5 program,
CPU in stop state or SEND ALL job missing.
- - - - - - - - - ------- -------------STEP 5 program,
errors in handling block.
- - - - - - - - - - - - - - - - -------------STEP 5 program, e.g. , errors in handling block.
B8576541-03
No. for
Printer PT88/PT89
No. for
Description
Jobcanmtbeexemted
f,.. .4,.$...
20H
----
21H
----
22H
----
23H
----
24H
7H
---7H
---7H
---7H
----------------------d) FRAME:
---7H
,,,....
.
m-
..,,
,,
166
Printer PT88/ET89
Remedy
.
---------
---------
transfer to the
and start update
B8576541-03
Printer PT88/PT89
No. for
No. for
Description
27H
7H
28H
7H
---7H
----
29H
----
---7H
----
---7H
2BH
7H
2CH
----
----
2DH
----
----
168
...
.. W-.. . . . . . . ,., -
B8576541-03
Printer PT88/PT89
Remedy
-,
,,
....
--------------------------------
--------------------------------
..
.;,
..,
,.,,
Printer PT88/PT89
No. for
No.
for
Descriptim
.,
2EH
7H
c)
..--..,
B8576541-03
Remedy
- Transfer DB with correct length
or
- Correct DB address with COM 525
. ...
Printer PT88/PT89
B8576541-03
No. for
Printer PT88/PT89
No. for
Descripticm
ezursint?m ~Pf=-~*=L
ad -:
f-
. .
,,
30H
AH
---31.H
---AH
---32H
---AH
---33H
---AH
---34H
---AH
----
----
a)
wtong
or --------------------
or --------------------
, , . . .. .. . .
172
..............
..4!
B8576541-03
Printer PT88/PT89
Remedy
....
Check the formt ~ters for the dynamic fields of the PSL
with (XM 525 and if necessary correct.
Check the contents of the DB cm the CPU side and correct.
--------------------------------check the forlmt paramters for the dynamic fields of the frame
with tX2M 525 and if necessary correct.
Check the contents of the DB cm the CPU side and correct.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The contents of the data word in the data block must not be
outside the specified range of values.
------------ --------- ----------Match the DB address of the dyMIUiC field to the length of
CPU.
------------ - - - - - - - - - ------- ---Match the DB address of the dynamic field to the length of
173
. . .. . -., -,=.-....,.+,.
>.-... . . . . . .
. . . . .. . . . . . . . . . . . . . . . . . ..
B8576541-03
No. for
No.
Printer PT88/PT89
for
Dascripticm
AH
35H
40H
50H
--- 51H
--- -
---
--- -
174
#--
B8576541-03
Rinter PT88/PT89
Remedy
,-
Match up the message text on the LIP 525 with the xwssage record.
. ----------
A ---------------------
,.,.,s.
.. ,. .,
---------------------------------
B8576541-03
No.
fol
PrinterPT88/PT89
No. for
Description
52H
--- .
53H
--- -
--- 54H
--- .
9H
(-
~ ~ ===we -:
The messages in DB M RECORD transferred to
the CP 525 cannot be entered in the message
FIFO since this has not yet been emptied
by printing out the messages
(IMX. 128 entries possible!).
Causes:
- printer is not ready to receive
(the error number OE2H or OFFH has been
entered in SYSTAT)
- messages are arriving more quickly than
the printer can print them out
- a lcmg list which cannot be interrupted is
being printed out
n
. .:, .
B8576541-03
Printer PT88/Pl?89
Remedy
Correct message record or check whether transfer/receptim and
storing of date/time functions correctly.
---------------------------------
Correct:
- printer switched on? cable plugged in?
paper nm out? ink m out? printer offline?
- find out why so many messages are arriving and * action to
....
.. -.,
,,
B8576541-04
No. for
Printer PT88/FT89
No. on
PG
Description
=====w=-~~ ~f==
* CP m * m:
BOH
,f---
----
----
BIH
Zrr. 722
xansf er
zror
----
with NAK
-- - - - - - - - - - - - - - - - - - - - - c) The link termination with DIE ETX
acknowledged by the PG with DIE IWK
B2H
----
B3H
$$-%
,:,.,.:.~
~===w=~==i-a~
- * m:
kr, 722
malsfer
mm
Printer PT88/PT89
Remedy
. ,.., . . . ;.
-.
- Check cable
- COM 525 loa&d?
- Hardware error at PG or CP
---------------------------------
Repeat transfer
.,
---------------------------------
- Check cable
- COM 525 loa&d?
- Hardware error at PG or CP
B8576541-04
No. for
No. on
PG
Printer PT88/PT89
Description
,#--
B5H
IF.007
CP flmct
unknown
--- B8H
---ERR. 027
EPRmf
plugged
in
.
--- m. 721
z switch
set to
-----------------------
STOP
Printer PT88/PT89
Remedy
Plug in RAM.
Printer PT88/PT89
B8576541-04
No. for
No. for
Descrqxsion
Wr&are errors al * ~:
a) Error fomd in EPROM test
----
----
clH
- - - -
----
C2H
---C3H
----
----
----
----
---- -------------------
----
----
-----------------------
C4H*)
----
C5H
----
C6H*)
----
B8576541-04
..
Printer PT88/PT89
Remedy
Replace
---Replace
---Replace
module.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RAM submdule.
---------------------------------
-.
. .,
,., . . . .
.--...
Rinter PT88/PT89
No. for
No. for
Description
i) Only applies to CP 524:
interface module (identifier) unknown or
mdule not plugged in
Note: printer PT88/PT89 only in
conjunction with CP 525-2 ! !
----
----
----
W*)
*):
--------------- --------
C9H
----
qmhroms
ed; the data cannot be read by the handling block.
These error messages mst then be read directly from the dualport RAM (structure from address F660H onwards - see Section
16.3) .
,.. --
B8576541-04
Printer PT88/PT89
Remedy
Check whether correct module, if yesw: module defect
- Check whether module plugged in correctly
.
.-
B8576541-04
Printer PT88/PT89
No. for
No. for
- 1
----
Description
----
---- I -----------------------
----
E3H
----
----
---FM
, .,. .,,
B8576541-04
Printer PT88/PT89
Remedy
- - - - - - - - - - - - - - - - - - - - -
Compare data
-----
------
if necessary readjust.
B8576541-04
18
What
Printer PT88/PT89
Does
It Mean when?
printer?
Cause:
/7
Remedy: the CP 525 signals the error to the CPU. @ck under the
Cause:
B8576541-04
Printer PT88/PT89
lilhtaesit meiauwlKmthedateimdtk28reoatpat
,.-
Cause:
~fl
DR
the: IX n
DW n+l
SM
H
date: DW m
D
Y
Dw
S . se- / M = ~tes
H = hours
m+l
Y=
Yea
If the data
K%l no.
time: n
n+l
date: n+2
n+3
DL
ms
M
D
Y
Note that your STEP 5 user program enters the time in the
data word as shown beside *). Only then is the time
output correctly.
B8576541-04
Whatcke sit ~ T&al an amfantd
the as.tput of a Ii.at?
Case:
Printer PT88/PT89
,@.>
then line overflow must result. This is not recorded, so ;-.-
that the internal line count no longer agrees with the
actual number of lines printed out.
If the lines to be output are longer than the page width,
Cause:
is initiated
Inltislmt
arried
out?
Case:
Note:
.:.,.,,:J,,:,n
B8576541-04
Printer PT88/PT89
Cause:
,..
.,
.,~
,.
.!