6ES5998 1DB21band1
6ES5998 1DB21band1
51MATIC 55
COM 525
Programming Package for the Communications Processors
CP 524 and CP 525 (S5-DOS)
Manual
Volume 1/2
Volume 1
1
2
9
10
Volume 2
Warnhinweis
Aus dlesem AniaB sehen wir uns verpflichtet, unsere Kunden, die SIMATIC-
Produkte einsetzen, zu warnen, sogenannte SIMATIC-kompatible Baugrup-
pen fremder Hersteller als Ersatz- oder Zusatzbaugruppen in das
Automatisierungssystem SIMATle einzusetzen.
C79000-08563-(702-01 12/89 1
Es geht Dbar die tatsachlichen Moglichkeiten des Herstellers hinaus, aile diese
sogenannten SIMATIC-kompatiblen Baugruppen in ihrer Wirkung auf unser
SIMATIC-Produkt uberprOfen zu lassen. Treten Mangel bei der Verwendung von
sogenannten SIMATIC-kompatiblen Baugruppen in einem SIMATIC-Automatisie-
rungssystem auf, werden wir fOr solche Systeme jede Gewahrleistung ablehnen.
2 C79000·08563·(702·01 12/89
Warning
For this reason, we feel obliged to warn our customers who use SIMATIC
products not to Install so-called SIMATIC-compatible modules of other
manufacture In the form of replacement or add-on modules in SIMATIC
systems.
C79000·D8S63·C702· 0 7 11/89 3
It is beyond the manufacturer's capabilities to have all these so-called SIMATle-
compatible modules checked for their effect on our SIMATIC products. If the use of
so-called SIMATie-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-called SIMATIC-
compatible modules, Siemens are not liable since we took timely action in warning
users of the potential hazards involved in so-called SIMATrC-compatible modules. II
4 C79000-D8563-C702-07 12/89
Avertissement
Pour cette raison, nous nous voyons obliges d'attirer I'attention de nos
clients, utilisateurs de produits SIMATIC, sur les risques lies a "utilisation de
"modules compatibles SIMATIC" de constructeurs tiers a titre de modules de
remplacement ou de complement dans les prodults de notre systeme
d'automatisatlon SIMATIC.
Nos produits font I'objet d'une assurance qualite tras poussee. II nous est
impossible de savoir si les constructeurs tiers de "modules compatibles SIMATIC"
mettent en ceuvre un systeme qualite et, dans I'affirmative, si leurs dispositions
d'assurance qualite permettent d'obtenir Ie niveau de qualite requis. Les "modules
compatibles SIMATIC"ne sont pas commercialises avec notre consentement :
Siemens AG n'a em is aucune recommandation concernant I'utilisation de
"modules compatibles SIMATIC" de constructeurs tiers. La publicite des
constructeurs tiers de "modules compatibles SIMATle" laisse penser a tort que les
textes publicitaires dans les revues, les catalogues ou les expositions ont ete
convenus avec nous. L'utilisation conjointe de "modules compatibles SIMATIC" de
constructeurs tiers et de produits de notre systeme d'automatisation SIMATIC
constitue un cas d'utilisation de nos produits qui est contraire a nos
recommandations. Considerant la grande diversite d'emploi de notre systeme
d'automatisation SIMATIC ainsi que I'importance du parc mondial des produits
installes, il nous est impossible de donner une description concrete de I'analyse
des risques lies a I'emploi des "modules compatibles SIMATle".
09000-D8563-C702-01 12/89 5
Nous n'avons pas la possibilite materielle de proceder au contrale de I'interaction
de notre produit SIMATle avec les "modules compatibles SIMATIC" de
constructeurs tiers. Nous rejetons tout appal en garantie pour les vices survenant
dans un systeme d'automatisation SIMATle mettant aussi en oouvre des "modules
compatibles SIMATIC" de constructeurs tiers.
6 C79000-D8563·C702·01 12/89
Safety-Related Guidelines for the User
1 General
This manual provides the information required for the intended use of the
particular product. The documentation is written for technically qualified
personnel such as engineers, programmers or maintenance specialists who
have been specially trained and who have the specialized knowledge required
in the field of instrumentation and control.
A knowledge of the safety instructions and warnings contained in this manual
and their appropriate application are prerequisites for safe installation and
commissioning as well as safety in operation and maintenance of the product
described. Only qualified personnel as defined in section 2 have the
specialized knowledge that is necessary to correctly interpret the general
guidelines relating to the safety instructions and warnings and implement
them in each particular case.
This manual is an inherent part of the scope of supply even if, for logistic
reasons, it has to be ordered separately. For the sake of clarity, not all details
of all versions of the product are described in the documentation, nor can it
cover all conceivable cases regarding installation, operation and maintenance.
Should you require further information or face special problems that have not
been dealt with in sufficient detail in this documentation, please contact your
local Siemens office.
We would also point out that the contents of this product documentation shaH not become a part of
or modify any prior or existing agreement, commItment or legal relationship. The Purchase
Agreement contains the complete and exclusive obligations of Siemens. Any statements contained
In this documentation do not create new warranties or restrict the existing warranty.
2 Qualified Personnel
Persons who are not qualified should not be allowed to handle the
equipment/system. Non-compliance with the warnings contained in this
manual or appearing on the equipment itself can result in severe personal
injury or damage to property. Only qualified personnel should be allowed to
work on this equipment/system.
3 Danger Notices
The notices and guidelines that follow are intended to ensure personal safety,
as well as protecting the product and connected equipment against damage.
The safety notices and warnings for protection against loss of life (the users
or service personnel) or for protection against damage to property are
highlighted in this manual by the terms and pictograms defined here. The
terms used in this manual and marked on the equipment itself have the
following significance:
I Danger I I Warning I
indicates that death. severe indicates that death. severe
personal injury or substantial personal injury or substantial
property damage will result if property damage can result if
proper precautions are not taken. proper precautionsrae not taken.
I caution I Note
4 Proper Usage
• The equipment/system or the system components may only be used for
the applications described in the catalog or the technical description, and
only in combination with the equipment, components and devices of other
manufacturers as far as this is recommended or permitted by Siemens.
• The product described has been developed, manufactured. tested and
the documentation compiled in keeping with the relevant safety standards.
Consequently if the described handling instructions and safety guidelines
t
& Warning
• After opening the housing or the protective cover or after opening
the system cabinet. certain parts of this equipment/system will be
accessible. which could have a dangerously high voltage level.
• Only suitably qualified personnel should be allowed access to this
equipmenVsystem.
• These persons must be fully conversant with any potential sources
of danger and·maintenance.measures as set out in this manual.
• It is assumed that this product be transported, stored and installed
as intended. and maintained and operated with care to ensure that
the product functions correctly and safely.
A Warning
• Repatrs to an item of automation eqUipment may only be carried out by
Siemens service personnel or an authorized Siemens repair center. For
replacement purposes. use only parts or components that are contamed in the
spare parts list or listed in the Spare parts" section of this manuaJ.
II
Unauthorized opening of equipment and improper repairs can result in foss of life
or severe personal injury as well as substantiaJ property damage
• Before opening the equipment, always remove the power plug or open the
disconnecting switch.
• Only use the fuse types specified in the technical specifications or the
maintenance instructions of this manual.
• Do not·throw batteries into an open fire and do not carry out any sofdering work
on batteries (danger of explosion). Maximum ambient temperature 10Doe.
lithium batteries or batteries containing mercury should not be opened or
recharged. Make sure that the same type is used when replacing batteries.
• Batteries and accumulators must be disposed of as classified waste.
• The following points require attention when using monitors:
Improper handling, especially the readjustment of the high voltage or fitting of
another tube type can result in excessive X-ray radiation from the unit. The
license to operate such a modified unit automatically lapses and the unit must
not be operated at aU.
The information in this manual is checked regularly for updating and correctness and may be
modified without prior notice. The information contained in this manual is protected by copyright
Photocopying and translation into other languages is not permitted without express permission
from Siemens.
1 What Is ESC?
VSLI chips (MOS technology) are used in practically all SIMATle S5 and
TELEPERM M modules. These VLSI components are, by their nature, very
sensitive to overvoltages and thus to electrostatic discharge:
They are therefore defined as
"glectrostatically ~ensitive 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 already occur when a
component or a module is touched by a person who has not been
electrostatically discharged. Components which have been subjected to such
overvoltages cannot. in most cases. be immediately detected as faulty; the
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.
But just a fraction of this voltage can already damage or destroy an
electronic component.
() Siemens AG C79000·D8078-C339-01
ESO GUidelines
2 ~ Siemens AG C79000·08076·C339-01
ESO Guidelines
The diagram on the next page shows the required protective measures
against electrostatic discharge.
o Siemens AG C79OO(}D8078-C339-01 3
ESD GUidelines
f
.
-:b-
d
a Conductive flooring
b Anti-static table
c Anti-static shoes
d Anti-static coat
e Grounding Wrist strap
f Grounding connection of
f f
the cabinets
-d::- .
-d::-
Standing/sitting position
Please do not forget to state the title, order number and release
of your manual.
Please give each of the following questions your own personal mark within the range
from 1 (very good) to 5 (poor).
1. Do the contents meet your requirements? D
2. Is the information you need easy to find? D
3. Is the text easy to understand? D
4. Does the level of technical detail meet your requirements? D
5. Please rate the quality of the graphics/tables: D
Additional comments:
...... ".
.. ," .
078000-V8S76-C06&01 1
I\)
From:
Your Name:
SiemensAG Your Title:
AUTE 1163
Company Name: . . . . . . . . . . . . . . . . .
0·76181 Karlsruhe
Federal Republic of Germany Street:
City, Zip Code: .
Phone:
D Automotive D Pharmaceutical
DChemical D Plastic
D Electrical Machinery D Pulp and Paper
~m
DFood DTextiles
D Instrument and Control DTransportation
oNonelectrical Machinery D Petrochemical
i Other
Remarks Fonn
Your comments and recommendations will help us to improve the quality and useful-
ness of our publications. Please take the first available opportunity to fill out this ques-
tionnaire and return it to Siemens.
Please do not forget to state the title, order number and release
of your manual.
Please give each of the following questions your own personal mark within the range
from 1 (very good) to 5 (poor).
1. Do the contents meet your requirements? o
2. Is the information you need easy to find? D
3. Is the text easy to understand? D
4. Does the level of technical detail meet your requirements? D
5. Please rate the quality of the graphics/tables: D
Additional comments:
. . . . . . . . . .. "
C79000-V8576-C066-01 1
I\)
From:
Your Name:
SiemensAG Your Title:
AUT E 1163
Company Name: . . . . . . . . . . . . . . • . •
0-76181 Karlsruhe
Federal Republic of Germany Street:
City, Zip Code: . . . . . . . . . . . . . . .
Phone:
o Automotive o Pharmaceutical
o Chemical o Plastic
o Electrical Machinery o PUlp and Paper
o
o Food o Textiles
I o Instrument and Control
o Nonelectrical Machinery
o Transportation
o Petrochemical
i Other
SIEMENS
51MATIC 55
C79000-D8576-C499-03
D8576499-01
Contents Page
1 Things to Remember 3
:3 Abbreviations 9
4 Ordering Data 12
2
D8576499-01
1 Things to Remember
This manual is intended to help you use the CP 525-2 and CP 524
communications processors as follows:
•
- for "Event output and logging with the PT88jP.r89 printer"
CP 525-2
CP 524
The OP 524 can be used just as the CP 525 when you wish to
communicate with only me partner.
:3
D8576499-01
You should first develop your user program using a GP 525. You
can then connect the PG online and transfer your OP 525 user
program directly to a RAM submodule plugged into the CP 525. Then
you can carry out the start-up. Any corrections which may be
needed can then be carried out quickly. Once you have completed
these corrections, you can then program the EPROM for use with
the OP 524.
4
D8576499-02
This manual
Part 1
Section 1 'DJis sectial is DOt used
5
00576499-01
6
D8576499-0l
Part 2
Section 2
525 user program in which all the important func-
tions of the computer link are implemented. 'Ibis
section concerns programming the STEP 5 user pro-
gram for the CPU.
7
D8576499-01
8
D8576499-01
3 Abbreviations
A-NR. Job munber
ANZW Condition codeword
AS 5120 Interface module 5120
B Bell
c
BLGR.
CF
CL
CL
CML
Field length
Condensed print
Coordination flag
Chained log
Computer link
Current message log
•
COM 525 Programming package COM 525 for the
ccmmunications processors CP 525 and CP 524
CP CoDmunications processor
CPU Central processing unit
CR carriage return
DB Data block
DBNR Data block number
DL Left-hand data. byte in a data word
DR Right-band data byte in a data word
DW Data word
DX Expanded data block
E Expanded print
IB Function block
FD Disk drive
FIFO First in first out buffer
FW Flag word
FI Flag byte
B Heavy print
HOB (data) Handling block
IF Device interface
JB Jumper block
9
D8576499-01
OB Organization block
U Underlined
UPDATE SML Update sequential message log
10
D8576499-01
•
ZVZ Character timeout
11
00576499-03
4 Ordering Data
JIieDD:ty submodules for d1e CP 525-2 aDd CP 524:
C79000-B8576-C252
12
D8576499-03
•
85-1SSU 6ESS 846-xCAOl
13
D8576499-01
14
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
j
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
I
SIEMENS
Siemens Aktiengesellschaft The reproduction, transmission or use of this Order No.: C79000-B8S76eCS41
document or its contents is not permitted
Order from: Ger~itewerk Karlsruhe
without express written authority.
Offenders will be liable for damages. All Printed in the Federal Republic ot Germany
rights, including rights created by patent AG 0689 0.5 AS 198 En
grant or registration of a utility model or
deSign, are reserved.
© Siemens AG 1988
SIEMENS
SIMATIC S5
Instructions C79000-88576-C537-07
, Sbmdard cable CoImectors 35
ii
B8576537-04 Communications Processor CP 525-2
1 Technical Description
1.1 Application
The CQIW1Djcatiaas processor CP 525-2 can be used in the pro-
grammable controllers of ~e SIMATIC 5 U range (S5-115U, S5-135U,
85-150U and 85-155U). Bote dlat t:be CP 525-2 caDIIOt be used in
CmljaDctfJm widl die SS-13SD / S processor.
The data exchange between the CP 525-2 and the central processor
(CPU) of the programmable controller is restricted to a minimum.
Only the variable data (current process values) is exchanged
between the CPU and the CP 525-2. The OP 525-2 has its own memory
for invariable data, which you program using the progranming
package COM 525.
1
1S~~/b~"j7-04 Communications Processor CP 525-2
CP 525-2:
- listing process statuses and messages originating in the pro-
cess
- linking programmable controllers with each other or with compu-
ters
Programmer
e.g.PG635
[]] .J JI
PG675
PG68S
PG695
STEPS .. ,.,. ...'. Userprogram
,ll .
userprogram for CP 525-2
,.'
i 'o,
....
Programmablecontroller
e.g. SS·115U
S5·135U
S5·150U
S5·155U
2
B8576537-04 Communications Processor CP 525-2
. You also program your STEP 5 user program for the CPU on the PG
using the STEP 5 BASIC PACKAGE.
Note:
With the CP 524 and with special drivers you can cormect other
manufacturers' equipment to your programmable controller (e.g.
computers, printers or intelligent subsystems). For more
information about special drivers contact your nearest Siemens
•
branch or teclmical office.
3
DO;)/O::J.J/-U.j Communications Pr0cessor CP 525-2
Receptacle for
memory submodule:
RUN
STOP Mode selector
PGR
Device interface 1 ( IF 1 )
TIYorV.24
4
Conmnmications Pre,cessor CP 525-2
- RUN
- SIDP = PGR (no jobs will be processed)
The loop current (20 IDA) can be supplied by both the CP 525-2 and
from the partner device. Only the end which provides the current
is non-floating. 'Ibe CP supplies the current (20 mA) via jumpers
in the connector of the device interface. The 24 ·v required for
generating loop current is taken from the PC bus. With a closed
circuit, a current of 20 IDA must flow ( logical 1) if the line
current circuit is functioning correctly. When the current is
interrupted, logical 0 results.
5
B8576537-03 Communications Pr(cessor CP 525-2
When you write the user program with the COM 535 programming
package you decide the following:
For further details refer to the user's guide for the COM 525
progrannning package.
The data exchange between the CP 525-2 and the CPU is restricted
to a minimum. Only the variable data (current process values) is
exchanged between the CPU and the CPt The CP 525-2 has its own
user memory for invariable data, e. g., message texts.
Data is exchanged between the CPU and the CP 525-2 using a connnon
memory area: the dIJal-porI: BAlI.
6
B8576537-03 Communications Processor CP 525-2
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 data. This polling function is carried out by standard
function blocks ("handling blocks") in the cpu. These are the
same handling blocks that are used by other communications.
processors.
The actual exchange of d2.ta between the CPU and CP 525-2 is also
managed by handling blocks. For more details, refer to the de-
II scription "Using the handling blocks" in this manual .
85 bus
OP 525-2 ---------->
User
•
memory
Device
interface
Handling Dual- 1
blocks port
Data < S> < ~ RAM ~ >
(Standard
function Device
blocks) interface
2
7
B8576537-03 Communications Pr~cessor CP 525-2
Dec. Hex.
61952 F200 FY 0 - FY 31
F220 FY 32 - FY 63
F240 FY 64 - FY 95
8
B8576537-03 Communications Processor CP 525-2
The IPC flag area in the Cf 525-2 covers 256 !PC flag bytes
•
(2048 IPC flags).
With the computer link and RK 512 the IPC flags (coordination
flags) ~n be used to :inhibit aDd eDable 1:he data exchange bet-
ween 1:he CPU and CP. By inhibiting this exchange, you can prevent
data that has not yet been evaluated from being overwritten.
These IPC flags must be (lesignated as output flag bytes. For
further details see the user's guide for the computer link with
RK 512.
When you are using the p:.:inter PT88/PT89 J you do not need the IPC
flags.
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 digita~. inputs and
outputs) .
9
B8576537-04 Communications Processor OP 525-2
Note:
Each device interface of the CP 525-2 has its own page assigned
to it. This means that each CP 525-2 used in a programmable
controller bas two pages.
The page is the area within the dual-port RAM in which data is
exchanged between the OP 525-2 and the CPU. This data may, e.g.,
be numerical values, to be logged on the printer. In addition I
the programmable controller can also transfer system mes-
sages to the OP 525-2 via the page.
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
exchanged, each page can only be addressed by its iDI:erface
DlDber. This is between 0 and 255 and is set on the CP by means
of jumpers.
10
B8576537-03 Communications Processor CP 525-2
•
The interface number of IF 2 is automatically set with the next
higher number (for more details see 3.4.1 Module address/inter-
face number).
11
Communications Processor CP 525-2
12
B8576537-05 Communications Processor CP 525-2
16 Kwords
32 Kwords
64 Kwords When you are progranming this submodule
on the PG, you must use an adapter (MEP
adapter), since a different programming
voltage is required for EPROHs of the
type 27256.
:RAK su1wMJnles
16 Kwords
32 Kwords
64 lCwords In the CP 525-2, you may also use the
•
buffered 377 BAH submodule (64 Kwords).
The order numbers for these submodules can be found in the order-
ing data in this manual.
If you only require ODe interface you can use all the memory
submodules for the printer and the computer link.
13
88576537-07 Communications· Processor CP 525-2
Leap years and changes of year are automatically taken into ac-
count by the software of the OP. Even if the CP 525 is switched
off (for up to 1 year) J with data supported only by the battery
back-up, changes of year and leap years are taken into account
when it is switched on again.
As soon as the CP 525-2 module has been plugged into the pro-
granmable controller, the clock starts numing with the settings:
January 1st, 0.00 hours. The year is set at random.
14
B8576537-07 Communications ~essor CP 525-2 .
Operating altitude
Power supply
Current input 5 V
up to 3,500 m above sea level
Design
d~ensions (W x H x D) 20.32 mm x 160 mm x 233.4 mm
backplane connector ES 902 / row 2, 48-pin
(packaging system)
15
B8576537-04 Communications Processor CP 525-2
2 Installation
2.1 Slots in the Programmable Controller
S5-135O
S5-15OO
16
B8576537-06 Communications Processor CP 525-2
SS-155U
FJJ 1850
Do DOt z:emove or plug in the CP 525-2 when 'the polleE' is on! Dds
also applies when you are replaciDg t:he m 'L) snbnodu1..el
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 cormector, the cable shield must make large area
contact with ground. If there is a large difference in grOWld
potential between the CP 525-2 and the partner device, a poten-
tial equalizing cable should be included. The cable should be
kept away from thyristor drives and pow-er cables carrying more
than 500 V. Further information about installation can be fOWld
in the "Installation guidelines for SDfATIC compact devic~" (see
ordering data).
17
B8516537-03 Communications Processor CP 525-2
3 operation
RUN
STOP Mode selector
PGR
18
88576537-03 Communications Prccessor CP 525-2
•
of "PGR". The LEDs are lit.
19
B8576537-03 Communications Pro~essor CP 525-2
B
P
C
Memory submodule o
~
EPROM or RAM
~
b
R
1
JB 16
JB 17
Start address
RI area
JB 34 1611UlmmiUlAmi 8
IF 1 Test jJmpers 1 iQumouUm P
C
o
JB 23 N
Addressing N
mode E
JB51 C
T
IF2 V.24 control JB25 o
signals IPC flag area R
2
•
automatically assigned the next higher number - interface number
"1".
IFl IF2
Page 1 Page 2
Module
address ---:> Interface number Interface number
Rote: to ensure that the OPU addresses the CP correctly, you must
specify the same interface number (parameter SSNR) when assigning
parameters to the handling blocks as that set on the CP.
21
B8576537-03 Communications Prl~essor CP 525-2
16 15 14 13 12 11 10 9
Jumper Value
0000000 0
8-9 irrelevant 2°
0000000 0
7-10 2 21
12345 678
6-11 4 22
5-12 8 23
4-13 16 24
3-14 32 25
16 15 14 13 12 11 10 9
0000000 0
0000000
I I 0
12345 678
12 decimal = Ox20+0x21+1x22+1x23+0x24+0x25+0x26-t0x27
Jumpers 6-11 and 5-12 are inserted; the other jumpers remain
open.
22
B8576537-03 Communications Processor OP 525-2
•
controller (2048 !PC flags).
23
:88576537-03 Communications Processor CP 525-2
8 7 6 5 4 3 2 1
Jumper IPC flag byte
o 0 0 0 0 0 0 0
8- 9 0 31
o 0 0 0 0 0 0 0 7-10 32 63
6-11 64 95
9 10 11 12 13 14 15 16 5-12 96 127
4-13 128 159
3-14 160 191
2-15 192 223
1-16 224 255
24
B8576537-03 Communications Pr(~essor CP 525-2
•
64 .. 255 bytes bytes
64 64
IPC IPC
output input
flag flag
byte byte
--
This example specifies that the first CPU "coordinates" the data
exchange with the first CP 525-2 via one (or several) bits of the
IPC flag bytes 8 and 12. Therefore the area 0 to 31 is enabled on
the first CP 525-2. (An area of 32 contiguous IPC flags must
always be enabled or disabled). Jumper 8-9 is inserted on jumper
block 25. In DBl of the iirst CPU, you must enter bytes 8 and 12
as IPC output flag bytes.
In the same way the second CPU coordinates the data exchange with
the second CP 525-2 via IPC flags 32, 35, 61. On the second
CP 525-2 the area 32 to 63 must therefore be enabled (jumper 7-10
inserted). You must then enter the bytes 32, 35 and 61 as IPC
output flags in DBl of the second CPU.
Since the IPC flag areajx!sts only once in each PC, only the IPC
flags 64 to 255 can be used for other purposes. In this example
we selected the IPC flag 64 for CPU - CPU communication (IPC
output flag in DBl of the first CPU - IPC input flag in DBl of
the second CPU). The area which contains byte 64 must therefore
also be enabled in the coordinator.
25
B8576537-03 Communications Processor CP 525-2
Each device interface has both 20 rnA current loop signals and
V.24 signals. According to CCrTT~ control signals are required
for V.24. The evaluation of the control signals dE.pends on the
device procedure installed. The jumpers are set at the factory so
that the signals are not evaluated by the procedure software.
This setting means that all devices intended for connection to
the CP 525-2 can be opere-ted.
Pin
6 Data set ready DSR
5 Clear to send OTS
16 15 14 13 12 11 10 9
000 o 0 000
I I I
000 o
I I I
0 000
Jumper block ·,10. 51
1234567 8
26
B8576537-03 Communications Prv:essor CP 525-2
Device interface 1:
•
evaluation
5-12 inserted = the signal is evaluated directly
Device interface 2:
27
B8576537-03 Communications Pr(Jcessor CP 525-2
The following jumpers arE. set in the factory and liiUst not be
changed:
16 15 14 13 12 11 10 9
0000000 0
I I I I I I
0000000
I
0
Jumper block no. 17
12345 678
16 15 14 13 12 11 10 9
000 o 0 0 () 0
I I I
000 o 0 000
I I Jumper block no. 23
12345 678
16 15 14 13 12 11 10 9
0000000 0
I I I I I I I I
0000000 0
Jumper block no. 34
12345 6 7 8
28
88576537-03 Communications Processor CP 525-2
•
4. Connect the partner device (e.g. PT88/PT89) and the CP 525-2
(see Section 6).
29
.tStS~/b~~/-U::J Communications Processor CP 525-2
5 Pin Assignments
5.1 Backplane Connector 1
d b z
2 Ground +sv
4 U BAT
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
28 /DSI ADB 11 DB 7
30 BASP
32 Ground
30
Communications Processor CP 525-2
d b z
2 Ground +5V
•
8
10
12
14 /NAU
16 /BAU
18
20 /HOLDA /DHAFA
22 TXD /STOPPA
24 GEP
26 RXD
28
30 GROUND 24V
32 GrO\Dld + 24 V
31
Communications Processor CP 525-2
c b a
8 DB 2 DB 3 DB 4
9 DB 5 DB 6 DB 7
10 DB 0 DB 1 DB 2
11 DB 3 DB 4 DB 5
12 DB 6 DB 7 Kl
13 les lOS K2
14 les les K3
15 UCMOS PSW' K4
16 +sv Ground K5
32
B8576537-03 Communications Processor CP 525-2
1 - ground (Gex )
2 - transmitter TXD V24 IF!
3 - receiver RXD V24 IFl
5 - clear to send eTS V24 IF!
6 - data set ready DSR V24 IF1; receiver must be converted
from ers to DSR with jtunper.
7 - TTL 0 V
•
8 - not used
9 - not used
10 - transmitter (+) TTY IF
11 - not used
12 - current source (+) 20 mA
13 - receiver (+) TTY IF1
14 - receiver (-) TTY IFl
15 - not used
16 - current source u(+) 20 mA
17 - not used
18 - not used
19 - transmitter (-) TTY IFl
20 - not used
21 - current source (. ) 20 mA
22 - not used
23 - not used
24 - current source (-) 20 mA
25 - not used
33
B8576537-03 Communications Processor CP 525-2
1 - ground (Gex)
2 - transmitter TXD V24 IF2
3 - receiver RXD V24 IF2
5 - clear to send CTS V24 IF2
6 - data set ready DSR V24 IF2; receiver must be converted
from CTS to DSR with a jumper.
7 - TTLOV
8 - not used
9 - receiver (+) PG TTY
10 - transmitter (+) TTY IF2
11 - not used
12 - current source (+) 20 mA
13 - receiver (+) TTY IF2
14 - receiver (-) TTY IF2
15 - not used
16 - current source (+) 20 rnA
17 - not used
18 receiver (-) PG TTY
19 - transmitter (-) TTY IF2
20 - not used
21 - current source (-) 20 rnA
22 - not used
23 - transmitter (+) PG TTY
24 - current source (-) 20 IDA
25 - transmitter (-) PG TTY
34
B8576537-07 Communications Processor CP 525-2
-------,9
~
CP525
Receiver
.'\ +RxD
I; ~'-RXD
18 .
+20mA .'\
+TxD .
~ I
\ 10
•
I ~ ITransmitter V'
, 12
I
1 -12 V
I
I + 12V
1
I
231 +TxD -RxD i I 8 Receiver
~ Transmittelsl \ ! _TxD ·20mA ~ j 121
-12 V
-.!.L... Shield .•. 124,25
CasingGex I i - ' - - - - - - - - ..... l " l
_ _ _ _ _ _ _ ...1 K1 1
17
K2 I4
Transmission
l-
rate setting ~
35
B8576537-04 Communications Processor CP 525-2
CP525/524 CP525/524 -
r---~-"-"----------""------"
I
Transmitter ~
10
14
~ Transmitter! \
19' ,- TxD
I +RxD 13
Receiver -:?
l' ,." Shield \.•; I 1
Casing Gex
_..-..-_.. ...
L---'--..
..-... J
I
---------oo-------------..---r--l
l ,
Casing Gex
,;.. ..
CP525/524- PROMEAM
-------------------------, ,-----------------------.. _-~
.,
I
J i i+ 5V - < D -
I
I Transmitter ~
131 +8 1\ 7
Receiver I \
·RxD • SI \ 1
' - - - - - - + i - - + - - - - - - - + - . - 4 4 - - - - -12V
+TxD +E/
+5V
r ~ Transmitter,, II 1I JI
,I
19 1 J-TxO • E I ' :14
1\ i \ I.
iI \\ JI - \, :i :I Receiver .0
:/
\.J ,..J i
CasIng Gex r---t---.
. . -----------------------------.. --t--l
1I Shield
,
Casing ·1 2 V
-----------------..--....- ..! ~..__....__...... _oo _
36
Communications Prccessor CP 525-2
CP525/524 AS512
r--------------,
.\
r---------------,
114
13 '
,,
.\ +RxD -TxD
Receiver
!, -RxD
!Transmitter
2
¥
Ii i
+ 24V
I! i,
I r
II i;
•
I'
I J !
I!
I! !
I,
II
,
:
!
i
+ 24V
t 10 ' i +1xO
~ Transmitter I \
19 I \ I - TxD + RxD \! I 3
Casing Gel<
______________ J
1 I \!
L--t- 1--------------- l
Shield
-r--l
\ •. I
I
Casing
~23-·1
~11 ;
124 i Device
~ 12 i identifier
~~~=~----------
Note: to generate a current loop the AS 512 must be supplied with
24 V via the AMP connectors on the front panel.
37
Communications Prccessor CP 525-2
CP525/524 PROMEAR
r--------------.,
+ 24 V 16: 1\ +20mA
I
131 ii
Receiver
141
:! , I
\
38
Communications Processor CP 525-2
PT88/89
+20mA t
,...--------------,
121
+ 24V
,: \ 1
Receiver I! \
141 I '-RxO +TxO
. ,
J \
I
118
i
!, t \, I Transmitter V-
i i · I .
I +TxO +20mAf ! 110 + 24V
~ Transm.itter I i
191 i -TxO +RKO
Ii !I 9
•
I ! I f
~"
-L 1
7
i \LI
t I
Shield
I'n
\I 1
! I 17
.'1
Casing Gex ..r--1-· -:..------------- J-i--lCasing
______________J .t J
Note: The cable is designed for both TTY 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
type as in the printer.
39
B8576537-05 Communications Processor CP 525-2
CP525/524 ModemN10
----------------------.. -----~I r----..-----------------..------.,
I
I I
Receiver ! I
! Transmitter I
--rfJTl'--.__
~
3-t1~/'-.I\~RxD----_-TxD_~/-\~;
.: o. I \~ _3--.~
~
iI' i \i
Transmitter
~
~
2:i
III'
'li
I
I
TxD RxD!
i I!
Ii:
!~
i\,;~-···_-
Receiver
7 I I ; ~ : 7
• \ , ! 4
CP525/524 CP525/524
•• \ i \.
. I I ; \'
21
7t r I \ /1 7
-L .\.
• \
l
°I
Shield
\,n -L•
\.1 I
,
Casing Gex
_..__..__..
L----f---..-------------------------------..--t---l
J
I ' ..
I
Casing Gex
J
40
B8576537-03 Communications Processor CP 525-2
CP525/524 PROMEAR
r-------------l 1
r--------------,
I
Receiver I I Transmitter
3 1"
, 1 \ RxD TxD /\
". •
" 3. <J-
-cEJ 10--,.,
'
,;
II
\
"
·
,
,I
Iii.
.
I
Transmitter I i J i (I ReceIVer
~
-f>o
Casing Gex
. 2" \ ,}TxO
I \ J
7 I '..1 Shield
RxD\\
r-T-+-----------------l-t-l
~ L
\ 1
!f' 8
'.'
\..1 115
~..o-
,
_ •
41
88576537-07 Communications Processor CP 525-2
#'
18. ·RxD +TxD
\ Receiver
9' +RxD
:19
+24V
, 23,
Transmitter :
25
' +TID
. -TxD
330
+RltD '9
'20
, ,
" •
.4.
'I
Casing ~ ].Casing
42
SIEMENS
Siemens Aktiengesellschaft The reproduction, transmission or use of this Order No•. C79000·B8576-C537
document or Its contents is not permitted
wfthout express written authority. Order from: Geratewerk Karlsruhe
Offenders will be liable for damages. All Printed In the Federal RepUblic of Germany
rights. 'ncluding rights created by patent AG 0689 O.s AS 46 En
grant or registration ot a utility model or
design. are reserved.
© Siemens AG 1988
SIEMENS
81MATIC 85
Instructions C79000-B8576-C538-06
Contents Page
1 Tec1mlcal Description 1
1.1 Application 1
1.2 Mechanical Design 3
1.3 Serial Device Interface 4
1.3.1 V.24 Module 5
1.3.2 TrY Module 8
1.3.3 RS422-A/485 Module 10
1.4 Dual-port RAM: Interface to the CPU 13
1.5 Memory Submodules 19
1.6 Technical Data 20
•
2 liIstallation 22
3 Operation 25
5 PIn Assignments 41
i
6 St:andard Cable CcmJectors 44
11
B8576538/4 Communications Processor CP 524
1 Technical Description
1.1 Application
The CClJlJlmfcatioos processor CP 524 can be used in the program-
mable controllers of the SIMATIC 5 U range (85-115U, 85-135U,
S5-150U and 85 155U). Rote that it cannot: be used in conjunction
with 'the SS-135U / S processor.
•
- liDk your prograDIDable CODt:I:Oller to ot:her ptogrcmmable
CQIltrollers or c.omputers.
The data exchange between the· CP 524 and the central processor
(CPU) of the prog~anunable controller is restricted to a min~.
Only the variable data (current process values) are exchanged
between the CPU and the CP 524. The CP 524 has its own memory for
invariable data J which you program using the software package
COM 525.
1
B8576538/4 Communications Processor CP 524
Note:
With the CP 524 and with special drivers you can connect other
manufacturers' equipment to your programmable controller (e.g.
computers, printers or intelligent subsystems). For more
information about special drivers contact your nearest Siemens
branch or technical office.
2
B8576538/4 Communications Processor CP 524
Receptacle for
memorysubmodule
EPROM: 16, 32, or 64 *) Kwords
{i'm~mm~tm STOP
RUN
•
Modeseleetor
o 0 LED cflSplays
IF1 IF2
Deviceinterface
3
Communications Processor CP 524
TlY modu1.e
V.24 JIDdule
BS422-A/485 mocIu1e
4
B8576538/4 Communications Processor CP 524
•
PT 88/89 V.24 module
CP 524 RS422/A-485 module
When you write your OP 524 user program using the programming
package COM 525 on the progranuner, you set the transmission
parameters (transmission speed, frame format).
The V. 24 interface module not only has lines for transmitting and
receiving but also has a series of control and signal lines in
accordance with the CCITl' recamnendations V. 24/V.28. For the
computer link with RK S12 and the PT 88/89 printer these control
signals are, however, not required and do not need to be
connected. I f you want to prepare your own cable cormectors ~
remember that unused inputs may have to be cormected to open
circuit potential on other devices. For more :Information refer to
the appropriate manuals and the COITI' reconnnendations V. 24 or
V.28.
5
B8576538/4 Communications Processor OP 524
GND GND
RxD TxD
TxD RxD
Shield Shield
6
B8576538/4 Communications Processor CP 524
102 / GND 7
104 / RxD 3
106 / eTS 5
108.2/ DTR.
107 / DSR
111
125 / RI
>-- 20
:>--
6
23
22
•
109 / DOD 8
102 Shield 1
( < > Arrow shows direction of signal)
7
B8576538/4 Communications Processor CP 524
When you program your CP 524 user program using the progranuning
package COM 525, you specify the setting of the transmission
parameters (transmission rate frame format).
I
Device 1 Device 2
- +
TRANS-
RECEIVER
MrrrER
+ -
+ -
CURRENT
24 V GROUND (CHASSIS)
SOURCE
on active device
8
B8576538/4 Communications Processor CP 524
+
13
Receiver
~ 14
+
10
Transmitter
~ 19
Current source
Receiver
(20 mA)
~
+
16
21
•
Current source
Transmitter ~~ 12
24
(20 mA)
Ground
24 V 24 V +
intern extern 9
Ju3 321
I
Current generat10n
.
Shield 1
«> Arrows show direction of
signal flow)
9
B8576538/4 Conummications Processor OP 524
You set the parameters for the data transmission (data rate,
parity, stop bits) using the programming package COM 525 on the
PG. A maximum data rate of 9600 bps is possible with the TrY
module.
The BS422-A/485 module can also be used with the 1DggiDg printer
P'l88jPl89 , there are, hO"tfever, no standard cable cormectors
available.
Apart from the transmit and receive lines, the RS422-A/485 module
is equipped with a series of control and monitoring lines
according to the ccrrr recODII1endation X.24 and ISO 8481. For the
computer link and the logging printer PT88jPr89, these control
and monitoring signals are not required and do not need to be
connected.
10
B8576538/6 Communications Processor CP 524
])evice 1 )evice 2
GND GND
~
R(A) T(A)
•
~
R(B) .J'
~ T(B)
Shield Shield
J)ev!ce 1 ~evice 2
GND GND
Shield Shield
eau.t:l.an: Do not connect the shield with the GND. Otherwise the
electrical isolation is disabled.
11
B8576538/4 Conmnmications Processor CP 524
GND 8
R(A) ~->-- 4
R(B) ~~ 11 1)
T(A) :> 2
T(B) ~ 9
o(A) ~ 3
O(B) ~ 10
leA) Jt'
5
l(B) ~
"' 12
D(A) ~~ 7
B(B) ~~ 14 2)
SeA) Jt'
"' 6
S(B) Jt'
"" 13
XeS) Jt'
"" 15 3)
Shield 1
(< > signal direction)
12
B8576538/4 Communications Processor CP 524
The position and use of the jumpers on the RS422-A/485 module can
be fO\Dld in Section 3.4.
When progranming your CP 524 user program using the COM 525
programming package, you select the required transmission
parameters (transmission speed, character frame) .
Data is exchanged between the CPU and the OP 524 via a conmon
memory area: the daa1-port BAlI. The dual-port RAM is on the CP
•
524 and is similar to a mailbox. The CP 524 and CPU can leave
messages (data, requests etc.) for each other in this mailbox.
The CPU of the PC always acts as master for data exchange. The
CP 524 must "wait to be asked" by the CPU whether it wants to
transfer data. 'Ibis polling function is carried out by standard
function blocks ("bancIJ fog blocb") in the CPU. These are the
same handling blocks that are used by other communications
processors.
13
B8576S38/4 Communications Processor CP 524
The actual exchange of data between the CPU and CP 524 is also
managed by handling blocks. For more details, refer to the de-
scription "Using the handling blocks" in this manual.
85 bus User
memory
14
B8576538/4 Communications Processor CP 524
Dec. Hex.
61952 F200 FY 0 - FY 31
F220 FY 32 - FY 63
F240 FY 64 - FY 95
•
F2AO FY 160 FY 191
15
B8576538/4 Communications Processor CP 524
- IPC flags are used for the cyclic exchange of data between
epus in bytes.
- They can also be used for the data exchange between CPUs and
the CP 524. The IPC flag area in the dual-port RAM of the
CP 524 is responsible for this function.
The IPC flag area in the CP 524 covers 256 IPC flag bytes (2048
IPC flags).
With the computer link and RIC 512) the IPC flags (coordination
flags) can be used to iDbibit and enable the data exchange 00-
t:ween the CPO and CP. By inhibiting this exchange, you can
prevent data that has not yet been evaluated from being over-
written. These IPC flags must be designated as output flag bytes.
For further details, see the user's guide for the computer link
with RK 512.
The IPC flags are not used, i f 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) .
16
B8576538/4 Communications Processor CP 524
Note:
•
and one CP 524 are being used.
The device interface of the CP 524 has a page assigned to it. The
page 1s the area within the dual-port RAM in which the data are
exchanged between the CP 524 and cpu.
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 is
exchanged, each page can only be addressed by using its interface
1IUIIIber. This is ~etween 0 and 255 and is set on the CP by means
of jumpers.
The page has a 'Vector register allocated to it. The vector regis-
ters of all the CPs have the same address.
17
B8576538/4 Communications Processor CP 524
L.- ...... _
18
B8576538/4 Communications Processor CP 524
- the "actual" user program, i.e., the messages for the printer
and/or telegram parameters for the computer link.
•
ber of user data. It can occupy a maximum of 4 Kwords •
For the PT 88/PT 89, the required memory space depends on the
size of your user progam.
Only EP.ROH suhnodtJ1es can be used in the OP 524, since (in con-
trast to the CP 525) there is no interface to the programmer
required to load the software in the RAM.
EPBlII suboodules
16 Kwords
32 Kwords
64 Kwords When programming this submodule on the
PG you must use an adapter (MEP adapt-
er), since a different programning
voltage is required for EPROMs of the
type 27256.
19
B8576538/6 Connmmications Processor CP 524
Current input 24 V
TrY module 60 mA
20
B8576538/4 Communications Processor OF 524
Design
dimensions (W' x H x D) 20.32 mm x 160 mm x 233.4 mm
backplane connector ES 902 / row 2, 48-ptn
(packaging system)
21
B8576538/4 Communications Processor CP 524
2 Insta11ation
2.1 Slots in the Programmable Controller
85-1350
Slot number
85-15011
Slot number
22
B8576538/4 Communications Processor CP 524
S5-15SU
Slot number
The OP 524 can be plugged into the following expansion unit (fan
required):
EO'185O
•
Slot number
23
B8576538/4 Communications Processor CP 524
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 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.
24
B8576538/4 Communications Processor CP 524
3 Operation
3.1 Contro1s and Displays
CP524
1;!i;;;1iiil
o
IF1 IF2
0
:~p Modeselector
LEDdisplays
•
25
B8576538/4 Communications Processor CP 524
26
B8576538/4 Communications Processor CP 524
V.24 Module:
Jumpersettingsassupplied
FRONTCONNECTOR, 25 - PIN •
1 2 3
lir~';1i;ijHil~HI 0 Ju9
1~:~~nm:m~~~~~HI 0 Ju6
l~tH:;i~iw~:~m:1 0 JUS
li~mlwiiHil~~~i~l 0 JuS
o l:ii~m;m;m~Ji;il JU4
HmH;:mj;~tU 0 Ju2
l?tnig1n~:;q 0 Ju8
o 0 0 Ju1 kk:j:~:)t:~H Ju7
Backplane connector
27
B8576538/4 Communications Processor CP 524
nY-Module:
Jumpersettingsassupplied
FRONTCONNECTOR, 25 - PIN
WW:~j;i~~?g(1 0 Ju3
3 2 1
Ju Ju Ju
421
! ! iii
Backplaneconnector
28
B8S76538/6 Conmunications Processor CP 524 .
RS422-A/485·Module:
Jumper settings as supplied
X1114 32 1
Xi 1
o~
0
:
01
2
o 3
XXXX
5476
o 1rm·°1
0
00ml03
0
o
1
2
•
Backplane connector
29
B8S76538/4 Communications Processor CP 524
Oc=J Ju 10 (3,2,1) 16
JB52 IIIIIIII
1 B
- P
Memorysubmodule c
receptacle
o
N
N
JB54 E
C
1c
·JuS 2 [l T
31lJ o
1 0 R
\l,f.j Jug ~~
1
1
"'1fS'"" OCDCJOOClO
c:::z:J J B 53 OCDOOOClCl
Test jumpers ~ 16 B
t::::::3
~
- P
c:::::J
c:::::::J
i~ ~ Ju 5 (1,2,3) c
o c:;::::) Ju 1 (3,2,1)
o
N
~ [] Ju2 (1,2,3) N
E
C
T
o
IF l' Interface module receptacle
.·~I . [] t::::l
·0 [Z)
o l:ZJ
Ju 7 (1,2.3)
Ju 6 (3,2,1)
Ju 4 (1 ,2,3)
..- R
2
30
B8576538/4 Communications Processor CP 524
Bote: to ensure that the CPU addresses the CP correctly, you must
specify the same interface number (parameter SSNR) when assigning
parameters to the handling blocks that is set on the CP.
•
JmIper block 353:
16 15 14 13 12 11 10 9
Jumper Value
0000000 0
8-9 1 · 2°
0000000 0
7-10 2 21
1 2 345 678
6-11 4 22
5-12 8 23
4-13 16 24
3-14 32 25
31
B8576538/4 Communications Processor OF 524
16 15 14 13 12 11 10 9
o 0 0 0 0 0 0 0
0000000
I I 0
1 2 345 678
12 decimal == Ox20+0x21+lx22+1x23+0x24+0x25+0x26+0x27
Jumpers 6-11 and 5-12 are inserted, the other jumpers remain
open.
A total of 256 IPC flag bytes are available (2048 IPC flags).
32
B8576538/4 Communications Processor CP 524
87654 3 2 1
Jumper IPC flag byte
o 0 000 000
8- 9 0 31
0000000 0 7-10 32 63
6-11 64 95
9 10 11 12 13 14 15 16 5-12 96 127
4-13 128 159
3-14 160 191
2-15 192 223
1-16 224 255
33
B8576S38/4 Communications Processor CP 524
64 64
IPC IPC
output input
flag flag
byte byte
This example specifies that the first CPU "coordinates" the data
exchange with the first CP 524 via one (or several) bits of the
IPC flag bytes 8 and 12. Therefore the area 0 to 31 is enabled on
the first CP 524. (An area of 32 contiguous IPC flags must always
be enabled or disabled!). Jumper 8-9 is :Inserted on JB 52. In DBl
of the first. CPU, you must enter bytes 8 and 12 as IPC output
flag bytes.
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 therefore be enabled (jumper 7-10 inserted).
You must then enter bytes 32, 3S and 61 as IPC output flags in
DBi 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 camnunication (IPC output flag in DB1
of the first CPU - IPC input flag in DBl of the second CPU). '!he
area which contains byte 64 must therefore also be enabled in the
coordinator.
34
B8576538/4 Communications Processor CP 524
Jumpers Jal and .Ja2 determine whether the internal clock pulse of
the OP 524 is used as the transmit and receive clock pulse on the
CP 524 or whether the pulse is supplied by the line
1 2 3
Jul 0--0 0 Receive clock pulse internal
o 0--0 Receive clock pulse fran line
Ju4 0--0
o 0--0
0 Transmit clock pulse of CP 524
connected to line 113 (pin 24)
Transmit clock pulse not supplied by
CP 524
With jumpers Ja3 and JUS, the polarity of the transmitted and
•
received data can be reversed as follows:
123
Ju3 0--0 0 Transmitted data with normal polarity
o 0--0 Transmitted data negated
With jumper Ja6, all V.24 receivers can be connected so that all
the signals are in the positive voltage range as follOW's:
123
Ju6 0--0 0 All received signals must have the
V.24 signal level.
o 0--0 All received signals can be :In the
positive voltage range
35
B8576538/4 Communications Processor CP 524
123
Ju9 0--0 0 ers at open circuit potential
o 0--0 ers at pin 5
123
3ul 0--0 0 Transmitted data negated
o 0--0 Transmitted data with normal polarity
36
B8576538/4 Communications Processor CP 524
123
X3 0--0 0 Setting for full duplex mode. Data
can only be received on the two-wire
line R.
X3 0 0--0 Setting for half duplex mode. With
the signal JRTS, data can either be
transmitted or received on the two-
wire line R..
/RTS = 0 - -> transmit
jRTS = I --> receive
Using the Jt-per X4 you can apply either the signal jPS3 or the
internal transmit clock pulse (TxCint) to the two-wire line B
providing that the two-wire output B is set as an input by
jumpers X8 and X9.
123
J
•
X4 0--0 0 Signal /pS3 can be transmitted on the
two-wire line B.
X4 0 0--0 The internal transmit clock pulse
heint can be sent on the two-wire
line B.
With jaIIper n you can use a clock pulse transmitted on the two-
wire line S as the receive clock pulse.
37
B8S76S38/4 Communications Processor CP 524
With jallpers X6 aDd r1 you can select the transmit and receive
clock pulse.
12:3
X6 0--0 0 The internal transmit clock pulse
X7 0 0--0 (TxCint) is used as transmit and
receive clock pulse.
123
X4 0 0--0 The internal transmit clock pulse
:IS 0--0 0 (TxCint) is used as the transmit
X6 0 0 0 clock pulse. The internal clock
X7 0 0--0 pulse is simultaneously transmitted
on the two-wire line B.
38
B8576538/4 Communications Processor CP 524
1 2 3 4
X8 0--0 0--0 Two-wire line B is connected as
X9 0--0 0--0 an output. '!be line X(B) can be
used as an input. X(A) is
connected to frame.
•
With j..,ers no aDd nl you can suppress the control signal on
the two-wire l:lne R for recognizing the break status.
39
B8576538/4 Communications Processor CP 524
4. Plug the OP 524 mdule into one of the permitted slots in your
device (see 2.1). The power supply must be switched off.
40
B8576538/4 Communications Processor CP 524
5 Pin Assignments
Backplane connector 1 Backplane cmmector 2
d b z d b z
2 OV +sv 2 OV +5V
4 4
6 ADB12 ADB 0 CPlCL
-- 6
8 ADB 13 ADB 1 MEMR 8
10 ADB 14 ADB 2 MEKW 10
12 ADB 15 ADB 3 BDY 12
14 ADB 4 DB 0 14
16 ADB 5 DB 1 16
•
18 ADB 6 DB 2 18
20 ADB 7 DB 3 20
22 ADB 8 DB 4 22 STOPPA
24 ADB 9 DB 5 24
26 ADB 10 DB 6 26
28 ADB 11 DB 7 28
30 30 H 24 V M 24 V
32 OV 32 OV + 24 V
41
B8576538/4 Communications Processor CP 524
c b a
1 SADB 12 H +sv
2 SADB 0 SADB 1 SADB 2
3 SADD 3 SADB 4 SADB 5
4 SADB 6 SADB 7 SADD 8
5 SADB 9 SADB 10 SADB 11
6 SADB 13 SADB 14 OE
7 WRITE SDB 8 SDB 9
8 SDB 10 SDB 11 SDB 12
9 SDB 13 SDB 14 snB 15
10 SDB 0 SDB 1 SDS 2
11 SDB 3 SDB 4 sns 5
12 SDB 6 SDB 7 Kl
13 CS1 CS 3 K2
14 CS2 CS 4 K3
15 UmI>S +S V PSW K4
16 +sv H KS
42
B8576538/4 Communications Processor CP 524
c b a
1
2 H M M
3 +5V +SV + 5 V
4 SSK 1 PMl RxD
5 SSK 2 PS3 TxD
6 SSK 3 HUE eTS
7 RTS
8 DSR
9 DTH.
10 DCD
•
11 RI
12 '!'xC
13 '!'xC Int.
14 BxDt axe
15 H 24 V H 24 V axe Int.
16 + 24 V + 24 V + 24 V
43
B8576538/4 Communications Processor CP 524
For the most comnon connections between devices there are stand-
ard cable cOIU'lectors a~ilable (see ordering data).
CP525/624 CP525/524
--------1 \ .-------..---..--..---..-1
13 -TxD 19 I
~ Receiver I10Transmitter
.
~ I
14
21 I
!
12
+24V
I
I~ Transmitter
19' -TxD +RxO
-? i
13
Receiver
. f
44
B8576538/4 Communications Processor CP 524
CP525/524 PROMEAM
--_.. _-------_.. _-----------,
I
r-----......-------.. --------------.. .
I
,,,I i+ 5 V --0:>--
I Transmitter ~
131 7
,
~ Receiver I
141
-12V
1011 +TxD +E
~ Transmitter
19;
II I ,.-TxD
+sv
' I ;
•
I
I
I
• \
t I'· Ii
\ , I
Receiver ~
1I V \..i !
Casing Gex r---1--.. ------------------------·-·.. - t--l
Shield
Casing -1 2 V
---------------------------_...; .
!__ .... _-- ..---------------------
45
B8576538/4 Communications Processor CP 524
CP525/524 AS512
r----------------------------, ----------------------------1
13 1 i\ +RxD -TxD !\ 14
Receiver 1 j
1
i \
t I\ Transmitter ~
14 j \ -RxD +TxD ; \ 2
t
l +20mA! \ 5
I !
I
-20mA I1
.
!
17
i +20mAi +24V
Ii 18
10 I+TxD 15 l
~ Transmitter i Receiver-;:::'
19 t \ i -TxD +RxD \ 3
1 I \.1 Shield \/
Casing Gex
___________________________J t
d
.J:----f------------------------------------...---r-----l Casing
I
~ --I .
Iidentifier
Device '24
.12
~1a-
I : 25
1._---------------------------
46
B8576538/5 Communications Processor CP 524
CP525/524 PROMEAR
r-------------------------..-e' + 20mA
+ 24 V ~-+-."'+-\- - - - .
··I,,
13:• II
~ Receiver J
" 14: +TxD /\ 14
f \ Transmitter ~
'-20mA -TxD I 7
+ 24 v~-+----+---..
12i +20mA
10i
1: . ,I
• 1
•\
21: I ·20mA
Shield
,
'
-RxD \
\1 115
t__ .:~~~G~~__ L~J·--+----------------------------'---l~~~
J
I'.i 1
Receiver 0-
~
J
•
6.5 Connection CP 524/525 Modem N10 (V.24)
CP525/524 ModernN10
-----------------------, ,---------------------------.,
Receiver
I
i ·I Transmitter
3! ;'\ AxD · 0<}-
-eEJ • ! "
TxD /"\ I 3
, {~
; I
. I: 7
..L .\1 \if..L
Casing Gex L---t--..-------------------------------..
1I
'./ Shield· \../ : 1
--t----l
-------------------------~ RTS t 4
IcTS I t
5
J
47
B8576538/4 Communications Processor CP 524
CP525/~24 CP525!524
i-----------------------------] i-----------------------------
! Receiver I I Transmitter
j ----9::J 31 /\ AxD TxD / \ l--~_u"'~
i !i \ I \i~
i Transmitter i I \ f \' i Receiver
!i ~ 2~'t-1....1 ----'!f~"f:_XD_-----RxD-!~:---l1~l-3~-11Th.-
I
:
~
I
I,
7+' \\ i I i
\
"
:
1: 7
I
LJ \ I
CP525/524 PROMEAR
. .----------....-------........----..1 f--..-..-----..-..----..----------..,
I I
Receiver I
Transmitter
I
-<EJ1- -_ 3 ,
_3_0<]-
•
:
!
--.-!+i_,·\+--Fb<D
/
; \
\
l;_XD_-!-r--:,!,..4-1
i
c" \
I
4
\:
'
Transmitter II I i iI Receiver
~~_2-'11o-;\~:,--!1:_XD RxD_~\...--,l-4!~I-i8_----jr:o=h..-
~ I',; ~ \/1
Casing Gex
71 '." '.
Shield,1
-e----r---·------------------------------..--t----l 115
~ j L .. ,
48
B8576538/4 Communications Processor CP 524
CP 525/524 PT88/89
._-----_.... _--------------_ .. _--, r------------------------------
13: i\ +RxD +20mA 1\ :21
+24V
~ Receiver Ii;
14 i \ -RxD
1 +TxD
l\!
! . 118
,ii i i /.
II \ t ~ f Transmitter ~
r.! ,' t i'. ':
1011 I+TxD +20mA! 1110
+24V
~ Transmitter i II l t:
19: I-TxD +RxD Ii 9
i l l;
I II
I! Receiver -:?
-·---------------11
-0···.. ·0
Receiver
--<EJ
5' I
i
i CTS
tI ,i
3f t
Pi
11'
----._---._----.--.-_.--.--i
Bu&y; i 25
j!
,I
jRxD
i
i !
TxD
Il..
i: 2
Ii!~
Transmitter
~
~.-
•
Transmitter I\ I J I Receiver
~'"'
~
2 ', 1TxD
r '/
RxD ~ I J3
\,.'
. E}r-
7' · , I ; 7
I
....L
t\:
1 \1
\:.
\: '
• .l
1"" Shield ~ i 1
Casing Gex
_____________ ..
.-e----tJ -~-4 --------------------------:------4--1----l
: l
Casing
.. _
Note: The cable is designed for both TrY 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
type as in the printer.
49
B8576538/4 Communications Processor CP 524
CP524 CP524
I'\
1\
, T(A) R(A)
---------------------,
,,
,
T(B) R(B)
R(A) T(A)
R(B) T(B)
Receiver I: 1 ! Transmitter
i\ ; G
8, ~ :
G;
, : +8
Siemens Aktiengesellschaft The reprOduction, transmission or use of this Order No.: C79000·B857S-c538.()S
document or its contents is not permitted
without express written authority. Order from: Geratewerk Karlsruhe
Offenders will be liable for damages. All Printed in the Federal Republic of Germany
rights. inclUding rights cceated by patent
grant or registration of a utility model or AG 0689 0.5 AS 54 En
design, are reserved.
© Siemens AG 1988
SIEMENS
81MATIC 85
1 I'uDctions 1
i
5 Procedures 55
, IfIIltlprocessor OperatfDn 71
8 Error Dandling 94
ii
B8576539-04 Computer Link with RK 512
1 Functions
In automation engineering dam must often be exchanged
Rote that t:he CP 525 caDDOt be used with t:be SS-135O/8 processor•
1
B8576539-03 Computer Link with RK 512
CPU CP 525 PC 1
CPU OP 525 PC 2
2
B8576539-04 Computer Link with RK 512
PC 1 PC 2
STEP 5 CP 525 CP 525 STEP 5
user user user user
program program program program
Proce-
dure I) rl: e
-
~
V
~
V
85- 85-
Bus Inter- Inter- Bus Han-
Han-
cUing I<J > preter preter ~ > dling
blocks blocks
v~ a a ~
Data
Job
block
Job
block
V
Data
III
Data b;mdJ iug blocks (BDBs) in the STEP 5 user program on the CPU
transfer the data from the CPU to the CP 525 and vice-versa. HDBs
also initiate the jobs to be executed - a SEND job (send data) or
a FETCH job (fetch data). The lIDB is assigned a job nnmber under
which the corresponding job is stored in the job block on the CP
525. All the jobs together are known as the job block.
3
B8576539-03 Computer Link with RK 512
The data handling block in the CPU contains all tl1e specifi-
cations regarding the source or destination of the data in its
own PC.
To make use of the computer link, you require two programs for
each programmable controller as follows:
and
4
B8576539-03 Computer Link with RK 512
SERD job
PC 1 PC 2
U-I~
SEND Proce- Proce-
DIRECT dure > dure
n
I
IAT n
V
IE--> Inter-
fi
V
SEND Inter- RECEIVE
ALL > preter preter > ALL
fi
Data
source
fi
Job
block
U
Data
desti-
nation
•
n = job number
5
88576539-03 Computer Link with RK 512
The following parameters are assigned to the SEND job in the job
block on the OP 525 of PC 1:
6
88576539-03 Computer Link with RK 512
FETal job
- - - - - PC 1 - - - - - - - - - - PC 2 - - - - -
I>
_rIRE_T_~_~I~
Proce- = ( 1 ) Proce-
dure
<
I (2)=
I dure
Data
!\
I
I~ U fi
V
RECEIVE
IE
--~ Inter- Inter- SEND
ALL <ii=======lpreter preter <1 ALL
•
I
fi
Data Job Data
destin- block source
ation
n = job number
7
B8576539-03 Computer Link with RK 512
8
B8576539-03 Computer Link with RK 512
- the STEP 5 user progr:8Ik for the CPU (with handling blocks)
- the CP 525 user program. for the CP 525
The STEP 5 user program for the CPU contains the handling block
calls. More detailed information concerning the handling blocks
in conjunction with the computer link can be found in the descri-
ption "Using the handling blocks" in this manual.
In addition, Section 2.6 contains the job tables that list the
permissible combinations of parameters. Use these tables to check
whether the transfer you require can be implemented.
•
9
B8576539-03 Computer L~Jk with RK 512
PG
OOJI 525
!
assign parameters to the jobs
assign parameters to the interpreter and procedure
10
B8576539-03 Computer Link with RK 512
PG
STL
LAD
CSF
!
assign parameters to the handling blocks
III
11
B8576539-03 Computer L~nk with RK 512
- one area for the interpreter and procedures of the two device
interfaces
- one area for the "actual" user data and their manager
o Kwords
Interpreter and procedure
4 Kwords
8 Kwords
up to max.
64 Kwords
12
B8576539-06 Computer Link with RK 512
Using the software package COM 525 you must assign parameters to
a job block if your CP 525 is to transmit data to a partner, or
fetch data from a partner on its own iDitfatf:ve.
The jobs in the job block contain information about the data
destiDatial or dam som:ce in the paztDer. A maxiD11JD1 of 189 jobs
can be programned in an active CP 525.
(1) 7be job DDDber - must match the number specified in the IIDB
(SEND DIRECT or FETCH DIRECT). The job number can have values
between 1 and 189.
data blocks
system data
absolute addresses
extended data blocks
13
B8576539-06 Computer Link with RK 512
a FETCH job can fetch data from the following types of source:
data blocks
flag bytes
input bytes
output bytes
I/O bytes
timer locations
cOlUlter locations
system data
absolute addresses
extended data blocks
extended l/Os
In conjunction with the computer link, the term "IPC flag" can be
replaced by "coordination flag".
Using coordination flags you can enable or inhibit the data ex-
change between the CPU and OP.
14
Computer Li1k with RK 512
In the SEND or FETCH tel~gram the byte and bit number of the
coordination flag are transferred to the partner I which then
evaluates them. This prevents as yet unprocessed data from being
overwritten or read. The partner device 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 OP
so that it evaluates the received error number and repeats the
SEND or FETCH message later.
If the CP 525 sends a ~elegram that contains not only data but
also the byte and bit number of a coordination flag, the AS 5120
(as passive partner) sets the corresponding flag to "1" when this
message is received. The data is accepted or read.
If the OP 525 sends another telegram with the same byte and bit
number for a coordination flag to the AS 512C, the latter recog-
nizes that the flag is already set. The data transfer/reception
is disabled. The AS 5120 sends a reply telegram with an error
number to the active CP. In the active PC an error number is
III
indicated in the condition codeword. If the the HOB is called
again (SEND DIRECT or FETCH DIRECT) the telegram is sent again.
15
B8576539-03 Computer Link with RK 512
If the CP receives a telE-gram with the byte and bit number of the
coordination flag, it ch(;cks whether the coordination flag with
this number is set. If it is, the CP rejects the exchange of data
with the active OP by means of a reply telegram with an error
number. The data that has been sent is not tranferred to the CPU
or is ignored by the CPU. If the coordination flag has already
been reset When the telegram is received the data exchange takes
place.
With the last data transfer between the CPU and CP 525 I the byte
number of the coordination flag is indicated in the condition
codeword of the SEND ALL or RECEIVE ALL. (The number of data
transfers depends on the number of items of data transferred and
the field length for the data transfer - see parameter (field
. length BLGR for the 'SYNCHRON' lIDB). This byte number can be
evaluated by the STEP 5 program and the appropriate coordination
flag is then set.
16
B8576539-04 Computer Link with RK 512
Data rate
(*) 19200 bps are only allowed if you use the V. 24 interface with
the CP 525/CP 524 or the RS422-A/485 interface with the OP
&I
524. In this case you can only load and operate ODe interface
with the OF 525.
bigher priority
10ftl: priDrlt:y
17
B8576539-03 Computer L:·rJ~ with RK 512
Ot:her parameters
The following parameters are fixed for the 3964 arld 3964R
procedures:
To start a SEND job, you must call the SEND Dl:RlW': HDB in the
J
STEP 5 user program. For a FETCH job you call the PEraI DIRECT
HDB.
18
B8576539-06 Computer Link with RK 512
data blocks DB
flag bytes FY
input bytes IB
output bytes QB
I/O bytes PB
timer locations TB
counter locations CB
system data RS
absolute addresses AS
extended data blocks DX
extended l/Os OB
data blocks DB
system data RS
absolute addresses AS
extended data blocks DX
1) previously PB 2) previously OB
(6) Som:ce 1eagth (QLAE) with SEND DIRECT or
Oest. leagth (ZLAE) with FETCH DIRECT
19
Computer I ink with RK 512
(7) Other parameters are the condition codeword ANZV' and the
parameter assignment errCJr byte PAFE. These indicate whether a
data transfer was performed sucessfully or whether errors
occurred. For more details see the description "Using the han-
dling blocks" in this manual.
20
Bti~765~9-03 Computer link with RK 512
Ten data words from data block 20 (DB20) starting bt data word 10
(DWlO) are to be transferred from PC 1 to PC 2 anC: be entered in
data block 5 (DBS) starting at data word 1 (DWl.). 'Make sure that
PC 1 and PC 2 are each eCiuipped with a CP 525.
- the SBRD DIBECl lIDB, which triggers the job. It must have the
following parameters assigned:
•
assignment errors
- the SPBD AU. HOB that ~ransfers the data from the PC to the CP
must also be called. It requires the following parameters:
-------...----
SSNR o interface number is 0
A-NR o ALL function is selected
ANZW FWl6 condition codeword is FWl6
PAFE FYl9 FYl9 is selected for parameter
assignment errors
21
B8576539-03 Computer Link with RIC 512
- the interpreter RK 512 and the procedure (e.g., 3964). For the
procedure you must set the following:
22
B8576539-08 Computer Link with RK 512·
- the RKCKlVE AIL HDB t which transfers the data and enters the
following in the destination DB:
interface number is 0
SSNR. o job number is 0
A-NR o ALL function is selected
ANZW FW6 condition codeword is FW' 6
PAFE FY4 FY4 is selected for parameter
assignment errors
- the interpreter RK 512 and the procedure 3964 for this CPt Set
the following:
23
88576539-08 Computer Link with RK 512
- the call for the PE'l'CII DIRECT HDB to trigger the job:
interface number is 0
SSNR o job number is 0
A-NR o ALL function is selected
ANZW FW27 condition codeword in FW27
PAFE FY26 parameter assignment errors
in FY26
24
88576539-08 Computer Link with RK 512
interface number is 0
SSNR o job number is 0
A-NR o ALL function is selected
ANZW F\140 FW40 is selected as ANZW
PAFE FY39 FY39 selected for parameter
assignment errors
25
B8576539-06 Computer Link with RK 512
26
Computer I ink with RK 512
27
B8576S39-08 Campuber Link with RK 512
28
B8576539-03 Computer Link with RK 512
DB
DB
3-255
3-255
0-255
0-255
yes
yes
AT
AP
DB/DW
DB/DW
Words
Bytes
III
as -- 0-255 no AB Address Words
29
B8576539-06 Computer Link with RK 512
30
B8576539-06 Computer Link with RK 512
31
B8576539-06 Computer Link with RK 512
32
B8576539-06 Computer Link with RK 512
All data types can be specified as the source in the partner PC.
The destination in the HDB can only be a data b1Dclt or an
extended data block (exception RS/AS). The destination length
(ZIAE) can be specified only in words. If, for example, 5 input
bytes are to be fetched, "3" = three words = six bytes must be
specified in the IIDB. If 0 is specified there is no telegram
exchange.
ZTYP
DBNR
ZANF
= destination type
= data block number
= destination start address
III
ZIAE = destination length
33
B8576539-03 Computer Link with RK 512
34
B8576539-03 Computer Link with RK 512
Timer
I/O
--
--
0-255
0-254
no
no
ET
EP
Timer no.
I/O addr.
Words
Bytes
III
Sys. date -- 0-255 no EB Sys.addr. Words
35
B8576539-06 Computer Link with RK 512
36
B8576539-06 Computer Link with RK 512
Timer
I/O
--
--
0-255
0-254
no
no
ET
EP
Timer no.
I/O addr.
Words
Bytes
III
ext. I/O -- 0-254 no EQ I/O addr. Byte
37
B8576539-03 Computer Link with the RK 512
You set the dat:a mt:e. transwdssion fm::.at: and prfori:ty for the
procedure when progr8Jlllling the CP 525 user program with COM 525.
The permissible values can be found in Section 2.3.
38
B8576S39-03 Computer Link with the RK 512
After you switch on the power supply the two IEDs on the
front panel of the OP 525 light up. The CP 525 now checks the
following:
III
recognized the LEns remafn lit.
Following the start-up phase, the CP 525 expects the SI'R(HUII job
from the CPU.
39
B8576539-03 Computer Link with the RK 512
Jobs sent from the CPU (except SYNCHRON) before SYNCHRON has
run are handled as follows:
- they are rejected with "not ready" (error message number 8lB in
the PAFE byte of the corresponding job).
New PC jobs (except for SYNCHRON) are then blocked by the "not
ready" message (number 8lB in the PAFE byte of the corresponding
job).
40
B8576539-03 Computer Link with the RK 512
Note:
The RIC 512 interpreter processes jobs arriving from the CPU and
•
from the partner (if a SYNGHRON job was performed without
errors).
o SiOP or 1Ql
These settings are identical. They are used to stop the transmis-
sion of data on the serial transmission line. Any jobs arriving
are rejected with an error message.
41
B8576539-03 Computer Link with the RK 512
The interpreter once again begins processing jobs. The lED on the
front panel goes off (only i f the interpreter and procedure are
loaded). The CP 525 does ~ go through a cold restart when the
mode selector position is changed.
42
B8576539-03 Computer Link with the RK 512
Before the software of the CP 525 goes to the wait status, the
job currently being processed by the partner and CPU is completed
without an error message. Depending on the number of items of
data to be transmitted, it may therefore take some time before
the wait status is actually adopted.
During the wait status the CP 525 also rejects any jobs from its
own CPU (PC jobs), instead "overload" is indicated. This is
recognized by the error number 91H in the PAFE byte of the job
affected. In rare cases, a PC job might be completed (terminated
with error) before the PAFE error message (number 6H in the
condition codeword and IlH in SYSTAT). In this case the PC was
tmable to recognize the overload early enough.
Following the cold restart the LEDs on the front panel go off if
the transferred program is correct and complete. Following the
transfer, a SYNCHRON job is no longer required. III
43
B8576539-04 Computer Link with the RK 512
1. 'le1egraa level
2. P.I:ocecJar.'e 1.evel
3. IIard8aI:e level.
Data Data
7e1egaaa level
Interpreter Interpreter
Pmcedam level
Procedure Procedure
Bardllare level
V.24/TlY V.24/ffl
44
B8576539-03 Computer Link with the RK 512
III
45
88576539-06 Computer Link with RK 512
Byte
1 2 3 I 4 5 I 6 7
I 8 9
1 10
high low high low
OOR OOR
(FFH) cODlDatld dest·fsource number CPU no.fCF
46
B8576539-03 Computer Link with RK 512
III
tion about the processing of the job.
Byte
1 2 3 4
47
B8576S39-03 Computer Link with RK 512
48
B8576539-03 Computer Link with RK 512
~-- STx:
--DLE
<:-- 1st byte
02H
lOB
OOH
within 5 sec
* - - start character
*--> pas. acknowl.
III
reply <:-- 2nd byte OOH
telegram <:-- 3rd byte OOH
<:-- 4th byte OOH error mJDlber
<:-- DLE 10K * - - end identifier
<:-- ETX 03H *-- " "
--DLE 10K *--> pas. acknowl.
The characters marked *are added to the data field with the
telegram header during the transfer by the 3964 procedure.
49
B8576539-03 Computer Link with RK 512
The telegram exchange for a SEND telegram without errors and with
a length less than 129 bytes is completed (the fourth byte in the
reply telegram. does not contain an error number).
50
B8576539-03 Computer Link with RK 512
51
B8576539-03 Computer Link with RK 512
52
B8576539-03 Computer Link with RK 512
data
<:--
~--
5th byte
6th byte
"
"
129th data byte
130th data byte
" "
III
" "
" " "
<:-- Xth byte nth data byte
<:-- DIE lOB * - - end identifier
<:-- E'lX 03H *-- " "
- - DIE lOB *--> pos. acknowl.
53
B8576539-03 Computer Link with RK 512
- CP 525 (1) must DOt: send information data, when CP 525 (2) is
sending information data.
S4
B8576539-03 Computer Link with the RK 512
5 Procedures
The procedure 3964 controls the flow of data between your pro-
gr8DlD8ble controller and the partner, e.g., a central process
com-puter, another OP 525 or an AS 512C. In the CP 525, the
interpreter transfers the data to be sent into output: buffers for
the procedure. The procedure sends this data along with the
transmission protocol 3964 to the partner; if necessary repeats
the transmission, and signals non-recoverable errors to the in-
terpreter.
Data from the partner are stored in fDpat buffers. If the data is
received without errors, it is transferred to the interpreter for
further processing.
ss
B8576539-04 Computer Link with the RK 512
SA = start bit
1* == information bit no.
PA = parity bit
SO == stop bit
The control characters for the 3964 procedure are taken from the
DIN standard 66003 for the 7-bit code. However, the character
length used is I-bit (bit 7 = 0). There is no code prescribed for
the ·information characters (code transparency).
You can set the following procedure parameters when writing the
CP 525 user program with COM 525:
o Data 'l3t:e
19200 bps *
9600 bps
4800 bps
2400 bps
1200 bps
600 bps
300 bps
150 bps
110 bps
(*) 19200 bps are only allowed i f you use the V. 24 interface with
the CP 525/CP 524 or the BS422-A/485 interface with the CP 524.
In this case you can only load and operate cue interface with the
CP 525 since the maximum sum of the data rates is also 19200 bps.
56
B8576539-03 Computer Link with the RK 512
o PrlDrity
higher priority
. lower priority
Each DLE character found in the buffer is sent as two DIE charac-
ters (DIE doubling), i.e., the data (lOB) is sent twice.
57
88576539-03 Computer Link with the RK 512
After sending the contents of the buffer, the procedure adds the
cbaracters DLE and ETX as end identifier and waits for an acknow-
ledgement. If the partner sends the character DIE within the time
allCMed (QVZ), the data field was received without errors. If the
partner replies with NAK, any other character (except DIE) ~ a
corrupted character or i f there is a timeout the procedure
I I
If, while data is being transmitted, the partner sends the char-
acter NAK, 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 establishment STX.
CP 525 Partner
procedure 3964 (e.g. AS 512 C)
STX -------i>
<:------- DLE
1st character ------->
------->
-------~
------->
nth character -------~
DLE -------~
ETX ~------~
<:------- DLE
58
B8576539-03 Computer Link with the RK 512
After each character received, the procedure waits for the next
character to arrive within the character delay time. If there is
a character timeout, the NAK character is sent to the partner and
the error signalled to the interpreter.
59
B8576539-03 Computer Link with the RK 512
OP 525 Partner
procedure 3964 (e.g. AS 512 C)
<;------- STX
DLE ;>
~ 1st character
<:-------
~------
~~------
~-------nth character
<: DIE
<: ETX
DIE ;>
60
B8576539-03 Computer Link with the RK 512
You set the "priority" parameter when writing the CP 525 user
program with COM 525 in the ASSIGN fROG. PARA. mask. Remember
that one device must be assigned higher, and one lower priority.
Cf 525 Partner
procedure 3964 (e.g. AS 512 C)
lower priority higher priority
SiX - - - - - - - : >
<: S'lX
DIE ;>
<: 1st character
<:-------
<:-------
< : - - - - - - - nth character
<: DIB
<: ETX
DLE :>
SiX -------;>
<: DLE
III
5.1.5 PmcecJare Ea:LOI:S
61
B8576539-03 Computer Link with the RK 512
The interpreter enters the error mnnber received from the proce-
dure in the error message area of the SYSTAT. The significance of
the individual error numbers can be fOlDld in the error tables in
Section 8. If the error occurs during transmission for a PC job,
the job status also has an error entry.
Note:
62
B8576539-03 Computer Link with RK 512
The procedure 3964R. controls the flow of data between your pro-
grammable controller and the partner, e. g., a central process
com-puter t another OP 525, or an AS 5120. In the Of 525, the
interpreter transfers the data to be sent into ootput 1Jaf:fers for
the procedure. The procedure sends this data along with the
transmission protocol 3964R to the partner; i f necessary repeats
the transmission, and signals non-recoverable errors to the in-
terpreter.
SA == start bit
1* == information bit no.
PA == parity bit
SO == stop bit
63
B8576539-04 Computer Link with RK 512
The control characters for the 3964R procedure are taken from the
DIN standard 66003 for the 7-bit code. However, the character
length used is a-bit (bit 7 == 0). At the end of each data field a
block check character (BeC) is added for data protection. The
block check character Bee is the even longitudinal parity of the
information bits of all data bytes of a field that bas been sent
or received. The characters begin with the first byte of informa-
tion 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 transparency).
Data rate
19200 bps *
9600 bps
4800 bps
2400 bps
1200 bps
600 bps
300 bps
150 bps
110 bps
(*) 19200 bps are only allowed i f you use the V.24 interface with
the CP 52S/CP 524 or the RS422-A/485 interface with the CP 524.
In this case you can only load and operate cme interface with the
OP 525 ince the maximum sum of the data rates is also 19200 bps.
64
B8576539-03 Computer Link with RK 512
Priority
higher priority
lower priority
Each DLE character found in the buffer. is sent as two DIE charac-
ters (DIE doublfng)~ i.e., the data (lOR) is sent twice.
6S
B8576539-03 Computer Link with RK 512
After sending the contents of the buffer, the procedure adds the
characters DLE ETX and BeC as end identifier and waits for an
aclalowledgement. If the partner sends the character DIE within
the time allowed (QVZ), the data field was received without
errors. If the partner replies with NAK, any other character
(except DIE), a corrupted character, or i f there is a timeout)
the procedure begins the link establishment 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 inter-
preter and sends NAK to the partner.
If, while data is being transmitted, the partner sends the char-
acter NAK, 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 establishment STX.
CP 525 Partner
procedure 3964R (e.g. AS 512 C)
STX -------:>
<:------- DLE
1st character -------~
-------:>
-------:>
-------:>
nth character -------:>
DLE -------~
E'a -------;>
BeC -------:>
<:------- DLE
66
B8576539-03 Computer Link with RK 512
After each Character received, the procedure waits for the next
character to arrive within the Character delay time. If there is
a character timeout, the NAK Character is sent to the partner and
the error signalled to the interpreter.
67
B8576539-03 Computer Link with RK 512
CP 525 Partner
procedure 3964R (e.g. AS 5120)
~------- stX
DIE ~
~ 1st character
~------
<;-------
<;-------
<;------- nth character
<; DIB
~ ETX
~ BCC
DLE :>
The priority parameter is set when you are writing the CP 525
user program with COM 525 in the ASSIGN PROC. PARA. mask.
Remember that one device must be assigned higher, and one lower.
priority.
68
B8576539-03 Computer Link with RK 512
CP 525 Partner
procedure 3964R (e.g. AS 5120)
lower priority higher priority
STX - - - - - - - : >
<: STX
DLE :>
<: 1st character
<:-------
<:-------
<:------- nth character
<: DIE
<: ETX
<: BCe
DIE ;>
STX -------~
<: DIE
69
B8576539-03 Computer Ltnk with RK 512
The interpreter enters the error number received from the proce-
dure in the error message area of the SYSTAT. The significance of
the individual error munbers can be fOlD'ld in the error tables in
Section 8. If the error took place during transmission for a PC
job) the job status also has an error entry.
Note:
70
B8576539-03 Computer Link with RK ~12
6 HU1tiprocessor Operation
Compared with single processor operation, multiprocessor oper-
ation requires even more that the programming of the individual
CPOs (STEP 5 user programs) and of the CP 525 (CP 525 user
programs) is carefully matched.
The more complex the application, the greater the care that must
be taken to ensure the numbers of the individual CPUs are cor-
rectly specified in the CP 525 user program.
IIIIPOIlTAR'lI
If jobs with the same job number are programed on lOOre than one
CPU th~ you should design the STEP 5 user programs so that at any 7
one tiDie only ODe CPU can start one of these jobs. All other OPUs
must wait until this job is signalled as "completed" (with or
without errors).
71
B8576539-03 Computer Link with RK 512
The READjWRITE function (Rft1 function) with which you are famil-
iar as a user of the handling blocks must DOt be used in cormec-
tion with the CP 525. This is true for the following reasons:
The pseudo Rftl function means that you can act as follows:
All the parameters for the source and destination are stored in a
data block (DB) or extended data block (DX).
The job numbers 190 to 199 are reserved for the PSEUDO READ/WRITE
function.
72
B8576539-03 Computer Link with RK 512
A SEND job with the pseudo RJW ftmction is started by one of the
following HDBs:
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 AU. IIDB to request the specified data block (or
extended data block) with the assigned parameters and checks the
source and destination parameters specified in it. If these are
within the permitted limits J the CP 525 requests the first source
data by means of a second SEND AU. lIDB and then processes the
SEND job as usual.
III
73
88576539-03 CaDputer Link with BK S12
*) DT = DATA TRANSMISSION
74
B8576539-03 Computer Link with RK 512
A FETCH job with the PSEUDO R,IW function is started by one of the
following HDBs:
As with the SEND job, the CPU fetches the specified data block
using SEND ALL and evaluates the source/destination parameters.
Then the FETCH telegram is sent to the partner. Once the data is
received fran the partner t the RECEIVE ALL HOB enters it in the
specified destination.
75
18576539-03 CcxDputer Link with BIt S12
PROGRAMMABLECONTROLLER 1 PROGRAMMABLECONTROLLER 2
- ----1
Rprocessor ~ Central processor I
CPU CP525 CP525 CPU
.
FETCH
i
i
~
PROCE- PROCE- .
(iobno.
190-199)
DURE DT CURE
.
4 ~ ~
T
R
I
Q
!
6
E
A
DT DT
SEND :
ALL 1-....,
(jabtnO)
1
, ,,
RECEIVE !: -:- INTER- INTER- SEND
ALL L-..+ PRETER PRETER ALL
(jOb no. 0) -:-DT DT (jOb no. 0)
JOT tOT
Data Data
desl , source
!
rig. 2 JUW):faIIct1cD
76
B8576539-03 Computer L±nk with RK 512
The following pages show the structure of the data block with the
source/destination parameters (parameter data block). The form
and order are those you see on the PG. '1b.e letters x and y are
variables. You must replace them with values.
The addresses of the data are relative to the start address QANF I
which is specified in the HDB.
III
77
B8576539-06 Computer Link with RK 512
1.) St:rUct:ure of t:he pI~t:er dam block for SERB DIBEC!' 190 m
SERB DIBEC'l 199
QANF +
0: KS= xx : source type (in own PC)
value range: = DB,DX,CB,TB,RS,AS,FY,QB
IB,PB,OB
DDt: XX,RW,NN
1: KY= 0, y; ;source data block number
value range:y= 3 to 255 for source type
DB/DX irrelevant for other
source types
2: KF= x; ;source start address
value range: x= dependent on source type
and PC type (see job table
in Section 2.6)
3: KF= x; ; source length
value range: x== dependent on source type
and PC type (see job table
Section 2.6)
4: KS= xx ;dest. type (for partner)
value range:xx=DB,RS,AS,DX
dependent on source type
(see job tables in Section
2.6)
5: ICY== 0, y; ; dest. data block number
value range:y= 3 to 255 for dest. type DB
or DX irrelevant for other
dest.types
6: KF= x; ;dest". start address
value range:x= dependent on dest. type and
PC type (see job tables in
Section 2.6)
7: KF== x; ; (dest. length) irrelevantll
value range: x= any
78
B8576539-06 Computer Link with RK 512
2.) Structure of the po:amet:er data block for FEral DIBECr 190 to
FEral DIBECr 199
ZANF +
0: KS== xx: ; source type (in partner)
value range: = DB,DX,CB, TB,RS,AS,FY,QB
IB,PB,OB
110I:: XX,RW,NN
1: ICY= 0, y; ; source data bl. no. for source type DB, DX
value range:y= 3 to 255 for source type
DB/DX irrelevant for other
source types
2: KF= x; ;source start address
value range:x== dependent on source type
and PC type (see job table
in Section 2.6)
3: KF== x; ; (source length) irrelevant!!
value range:x= any
6: KF= x;
value range:y= 3 to 255 for dest. type DB
or DX irrelevant for other
dest. types
;dest. start address
III
value range:x= dependent on dest. type and
PC type (see job tables in
Section 2.6)
7: KF== x; ; dest. ·length
value range::x== dependent on dest. type
and PC type (see job table
Section 2.6)
8: KY== x, y; ;coord. flags (dependent on dest. type)
value range:x== 0 to 255: byte number
y== 0 to 7: bit number
no coord. flags: x==255, y=25S III
9: KF= x; ; CPU no. for partner
value range: 1= 1 to 4 or
x= 0 for PC's with only one CPU
79
B8576539-01 Computer Link with RK 512
For SEND DIRECT 190 to 199 the data source is in your own PC. You
must specify the source length in the parameter data block (enter
this in bytes i fthe QTYP is a byte area). The speci£ication of
the dest. length (ZIAE) is unnecessary. All specifications of the
data destination refer to the partner.
With FETCH DIRECT 190 to 199 the data destination is in your own
PC. Therefore the specification of the length ZIAE in the
parameter data block is vital. Any specification of the parameter
QIAE is not evaluated. All the parameters involving the data
source refer to the partner.
The jobs SEND DIRECT 190 to 199 and FETCH 190 to 199 are called
in the STEP 5 program just as "normal" jobs with "JU". In the
specifications in the block : QTYP/ZTYP I DB no., QANF/ZANF,
QIAE/ZLAE, you name your data block with the RW parameters. The
specification of QIAE/ZIAE is unnecessary since the CP 525 always
reads 10 data words (with SEND ALL).
80
B8576539-01 Computer Link with RK 512
The error message area of the SYSTAT is a data area in the dual-
port RAM of the CP 525. After the CP 525 recognizes an error, it
enters the corresponding error number in the error message area
of the SYSTAT. You decide how the CPU is to react in your STEP 5
user program on the CPU.
The CPU reads the en:or ~sage area of the SYSTAT for the speci-
fied CP interface by means of the job
The area in the CPU (destination area) to which the error message
area of the SYSTAT is to be transferred, is fixed when you assign
parameters to RECEIVE DIRECT 200. These parameters should be a
data block. The destination length must be at least two words.
81
B8576539-01 Computer Link with RK 512
If error numbers are entered in the error message area they are
located (after they have been read by RECEIVE DIRECT 200) in the
selected area in the CPU (e.g., in the data block).
Bit
7 654 3 2 1 0
Byte 0 (DLO)
82
B8576539-03 Computer Link with RK 512
bit 0
(R)
bit 7,
i f the interpreter and procedure are
loaded and have been started.
83
B8576539-03 Computer Link with RK 512
..
:0 F 1.0 to initiate the reading out from 8YSTAT
:ON F 1.0 result of logic operation must be "1"
:JU FB121
NAME: RECEIVE data transfer only in error entry
SSNR: KYO,O interface number 0
A-NR: KYO,200 fixed job number for reading SYSTAT
ANZW: FWlO
ZTYP: KSDB
DBNR: KYO ,10 dest. for error numbers is DBlO
ZANF: KF+1 from data word 1
ZIAE: KF+2 2 data words
PAFE: FY5
:0 DB10
:AN D 1.11 test bit 3 of group byte
:JC =MOOl jump if no error entered
·.
·.
·.
:JU FB124 ; an error was entered, i. e., the SYSTAT
NAME: RESET ; register on the CP 525 should be reset
SSNR: KYO,O with RESET DIRECT 200 (see following
A-NR.: KYO ,200 pages)
PAFE: FY6
MOOl: •
:etc.
:BE
84
B8576539-03 Computer Link with RK 512
The CPU resets the error message area of the SYSTAT (based on
interface numbers) with the job
All the entries are then cleared except the BREAK bit (B).
85
B8576539-03 Computer Link with RK 512
Bit
7
I 6
I 5 I 4
I 3
I 2 1 o
Byte 0 irrelevant RUN STOP
1 irrelevant
2 "sign of life"
3 irrelevant PGR
4 E2 I 02 I B2 1R2 I E1 I 01 I Bl R1
11
12 reserved
13
14
15
86
B8576539-03 Computer Link with RK 512
- Bytes 4 to 10: cover the error message area for both interfaces
(see Section 7.2 - Reading the error message area of the
SYSTAT) •
- module
- memory submodule
- interface assignment
- issue/version of the loaded software etc.
The CPU can read the SYSID of the CP 525 by means of the job
If the field length is less than 128 bytes the message "completed
with errors" and the error number 7 are entered in the status
byte and the number lE in the error message area of the SYSTAT.
The 8Y8m area is not then transferred.
Note: the sysm can also be read directly from the dual-port BAH,
i . e., without handling blocks (from address F680H onwards). For
more information refer to the manual for your PC.
87
B8576539-03 Computer Link with RK 512
1 10 to 18 Module identifier:
CP 525-2 / CP 524
4 42 to 50 Generated on:
EPROH: date of EPROH- programming
RAM: replaced by space (20H)
88
B8576539-03 Computer Link with RK 512
Interface 1
Interface 2
nn
* ==
= version nwnber
name of interpreter and procedure correspond to the
designations in the COM library
89
B8576539-08 Computer Link with RK 512
Time DlSter: the master provides the system time; i.e., the mas-
ter must make this available at any time.
'The CPU can set the date and time on a CP 525 at any time. It
can, however, only read the date and time of a CP 525 that is
designated as time master.
Rote:
The CP 524 does not have a hardware clock.
When using the CP 524, the software clock is not updated or
buffered i f the PLC is setto STOP or the mains voltage is
switched off. Thus, the CP 524 clock must be updated when the CPU
is restarted (cold restart).
90
B8576539-03 Computer Link with RK 512
Byte Significance
2 1 1
/10 s 1100 s
3 s
4 min
5 h
6 day
7 month
8 year
9 0
91
B8576539-03 Computer Link with RK 512
The job number 218 is fixed on the CP 525 for the jobs "read /
write date and time".
Whether the CPU transfers the date and time depends on the source
length specified (QLAE = length of the data to be transferred).
QUE =1 1IOI:d
QUE == 5 wonts
Also remember that the date and time are only adopted by the CP
during the handshake (synchronization via inputs or after reading
a different clock).
Note: the source area from which the data is transferred to the
CP should be a data block.
92
B8576539-03 Computer Link with RK 512
Note:
By means 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.
93
B8576539-03 Computer Ltnk with RK 512
8 Error HancUing
If the CP detects the errors, they are signalled 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 more
details see Section 7).
1. DIe error ,.• .ers in the PAlE byte of the 1aancJJ ing block (llDB)
94
B8576539-03 Computer Ltnk with RK 512
If you receive a PAFE error number I this means that the data
exchange between the CPU and CP either was not started or was
aborted after several \DlSUCcessful attempts.
In the following exceptional cases the error nmnbers 91H and C1H
can mean 'that a serious error has occurred:
•
terminated with error".
S:lnce only 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 numbers the ANZW is suitable
for evaluation by the STEP 5 user program.
95
B8576539-03 Computer Link with RK 512
- the CONTROL HDB in the STEP 5 program must be called with the
corresponding job number in the cycle (OB1)
- the DIRECT job (SEND DIRECT) must be called with the CODJDand JU
and RLO=O.
96
B8576539-03 Computer Link with RK 512
The error message area of the SYSTAT is a data area in the dual-
port BAH; the CPU reads this area using the special job RECEIVE
DIRECT 200. For each interface the error message area of the
SYSTAT :Includes three error message bytes and an additional
status byte. A detailed description can be fotmd in Section 7
"Special jobs carried out by the CPU".
•
exchange that can be corrected by repetitions.
To clear the error entries in the SYSTAT, call the special job
RESET DIRECT 200 (for more details see Section 7).
97
B8576539-03 Computer Link with RK 512
98
B8576539-03 Computer Link w~th RK 512
Rote:
Note that error numbers in ANZW and REPrEL are entered only if
the job is running at the time when the error occurs. For
example:
Case 1: an :Interference pulse is generated on the transmission
line during a break in transmission; the procedure recog-
nizes a corrupted character. It therefore generates the
error code FEll which is entered in SYSTAT. The ANZW is
not changed since the error did not occur during the
actual transmission.
99
B8576539-03 Computer Link with RK 512
100
B8576539-03 Computer Link with RK ~12
Remedy
101
B8576539-03 Computer Link with RK 512
----
1lH
-----------------------
b) AU. job without request or direct
job despite overload
----
12H
----~------------------
c) Wrong sequence for handshake by
CPU
----
13H
-----------------------
d) Unknown job type or illegal job
nuinber for direct job
---- -~~-~~--~----~~~---~-~~
148 e) Illegal aclmowledgement from CPU
during handshake
102
B8576539-03 Computer Link with RK 512
Remedy
Check whether RECEIVE .AIJ, or SEND .AIJ, are called in your STEP 5
program; evaluate the PAlE in the handling block.
103
B8576539-03 Computer Link with RK 512
----
1711
----~-~-~--~-~-~-~~----
c) Area is masked by STEP 5 program
(bit 7 in ANZW = 1)
----
lEU
----~------------------
d) Field length for' "read SYSIDtt
(RECEIVE DIRECT 223) too small
----
1FH
----~------------------
e) "Read date/time" (RECEIVE
DIRECT 218) illegal, OP is set
as time slave
104
B8576539-03 Computer Link with RK 512
Remedy
-~----------~-~--~~-----~--~-----
For SYNCHRON the field length should be greater than or equal to
128 bytes or do without "Read 8YSm" (data is nevertheless
available in the dual-port RAM).
lOS
B8576539-03 computer Link with RK 512
----
24H
----~------------------
e) CPU number speci£ied too high
in pseudo R/W parameters
----
25H
----~------------------
f) Transmission length > 64 Kbytes
too long for CP 525
----
26H
----~------------------
g) Length of telegram header too
great or length too great for
type specified (in own PC)
106
B8576539-03 Computer Link with RK 512
Remedy
Create parameters for this job with COM 52S or select other job
number.
Find the permissible data types and their combinations :In the
job tables (Section 2.6).
Coordination flags are not permissible for all data types (see
Section 2.6). Check whether the bit number (0 to 7) has been
&I
specified correctly when using the pseudo RJW function.
Find the permissible lengths :In the job tables (Section 2.6)
that can be specified in the lIDB or for the pseudo R/W
parameters. If necessary split the job into several jobs with
smaller lengths.
107
B8576539-03 Computer Link with RK 512
......... ~-
_........ - ~-~~~-~~~~~-----~~
_.... -- ~~~--~--~---~-~--~
No. from c) Memory access error at partner
REPTEL (memory not present)
32H OCH with OP 525 as partner:
- wrong area for condition code-
word or
- data area does not exist
(except DB/DX) or
- data area too small (except
DBfDX)
~-----.
~~--~~~~~---~-~-~
108
B8576539-03 Computer Link with RK 512
Remedy
- Check whether the partner can transfer the required data type.
- Check partner's hardware configuration. .
- Switch mode selector at partner PC to RUN.
Check whether the required data area exists on the partner and 7
whether it is long enough, or check the COM 525 job block or the
pseudo R/W parameters. Check the length specified in the IIDB.
109
B8576539-03 Computer Ltnk with RK 512
No for No . for .
No from
ANZW SYSTAT REPTEL Description
110
B8576539-03 Computer Link with RK 512
Remedy
Check whether the required data block exists on the partner and"
whether it is long enough; or check the job block (OP 525 user
program); or check the pseudo R/W parameters (STEP 5 user
program~. Check the length specified in the IIDB.
•
line.
ill
B8576539-03 Computer Link with RK 512
.
No for No for .
No from
ABZV' SYSTAT REPTEL Description
----
36H
----
34H
-~~~--~--~---~--~~~
-_3AH.... - illegal"
---- -------------------
118 e) Unknown error number received in
reply telegram
112
B8576539-03 Computer Link with RK 512
Remedy
113
B8576539-03 Computer Link with RK 512
114
B8576539-03 Computer Link with RK 512
Remedy
115
B8576539-03 Computer Link with RK 512
No for .
No for .
No from
ANZV SYSTAT REPTEL Description
116
B8576539-03 Computer Link with RK 512
Remedy
117
B8576539-03 Computer Link with RK 512
118
B8576539-03 Computer Link with RK 512
Remedy
119
B8576539-03 Computer Link with RK 512
120
B8576539-03 Computer Link with RK 512
Remedy
121
B8576539-03 Computer Link with RK 512
122
B8576539-03 Computer Link with RK 512
Remedy
III
123
B8576539-03 Computer Link with RK 512
124
B8576539-03 Computer Link with RK 512
Remedy
125
B8576539-03 Computer Link with RK 512
No . for No for . .
No for
SYSTA.T ANZW REP'I'EL Description
126
B8576539-03 Computer Link with RK 5~2
Remedy
Check whether RECEIVE ALL or SEND AU. are called in your STEP 5
program; evaluate the PAFE in the handling block
127
B8576539-03 Computer Link with RK 512
128
B8576539-03 Computer Link with RK 512
Remedy
Create parameters for this job with COM 525 or select other job
nwnber.
Coordination flags are not permissible for all data types (see
III
Section 2.6). Check whether the bit number (0 to 7) has been
specified correctly when the pseudo R/W function is used.
Find the permissible lengths :In the job tables (Section 2.6) to
be specified in the IIDB or for the pseudo R/W parameters. If
necessary split the job into several jobs with smaller lengths.
129
B8576539-03 Computer Link with RK 512
No . for .
No for No . in
SJSTAT ANZW REPTEL Description
130
B8576539-03 Computer Link with RK 512
Remedy
131
B8576539-03 Computer Link with RK 512
132
B8576539-03 Computer Link with RK 512
Remedy
133
B8576539-03 Computer Link with RK 512
·134
B8576539-03 Computer Link with RK 512
Remedy
Check whether the required data area exists on the partner and
whether it is long enough: or check the job block (OP 525 user
program); or the pseudo RJW parameters (STEP 5 user program).
Check th~ length specified in the IIDB.
Check whether the required data block exists on the partner and
whether it is long enough; or check the job block (OP 525 user
program); or the pseudo R/W parameters (STEP S user program).
Check the length specified :In the lIDS.
135
B8576539-03 Computer Link with RK 512
136
B8576539-03 Computer Link w~th RK 512
Remedy
137
B8576539-06 Computer Link with RK 512
138
B8576539-03 Computer Link with RK 512
Remedy
For more information on command telegrams, see Section 4 in this
user' s guide.
•
Verify :Incorrect reaction of partner if necessary with an inter-
face test device ('FOXPG') tapped :Into the transmission line.
139
B8576539-03 Computer Link with RK 512
----
498
---- -----------------------
Error
OCH lOth command byte:
j) in
CPU no. too high
(permitted values O,1,2,3,4,F)
140
B8576539-03 Computer Link with RK 512
Remedy
141
B8576539-03 Computer Link with RK 512
----
SOH
---- -----------------------
c) Error sending the (follow-on)
reply telegram, a corresponding
procedure error number was
entered in SYSTAT iDmediately
before (error numbers EO to ES,
F8 to FF)
---- -~~- --------~--~------~~~~-
518 36H d) - synchron error by partner, new
(follow-on) command telegram
arrived, although previous
(follow-on) reply telegram bad
not been sent by CP 525
. or
- a normal COIIJDand telegram was
received, although a follow-on
command tele~ was expected
or
- a follow-on command tele~
arrived, although a command
telegram was expected
142
B8576539-03 Computer Link with RK 512
Remedy
143
B8S76539-03 Computer Link with RK 512
No for .
No for .
No for
S1ST.Ar ANZW REPTEL Description
144
B8576539-03 Computer Link with RK 512
Remedy
When starting up for the first time, make sure that the coordina-
tion flags are distributed on the individual processors, CPs,
IPs and the coordinator, the jumper settings are correct and the
coord:lnation flags used in the start-up O's (OB20, OB21 , 0822)
are reset (see also instructions CP S24/CP 525).
145
B8576539-03 Computer Ltnk with RK 512
146
B8S76539-03 Computer Link with RIC 512
Remedy
- Check cable
- Load COM 525
- Hardware error at PG or CP
- Check cable
- Load COM 525
- Hardware error at PO or CP
147
B8576539-03 Computer Link with RK 512
-- .... -- _.... --
full
148
B8576539-03 Computer Link w~th RIC 512
Remedy
149
B8576539-03 Computer Link with RK 512
150
B8576539-03 Computer Link with RK 512
Remedy
Replace CPt
•
With submodules which are programmed for the OP 525-2 and used
in the CP 524, this error number appears i f interface 1 is not
programmed.
151
B8576539-03 Computer Link with RK 512
152
B8576539-03 Computer Ltnk with RK 512
Remedy
- Check whether correct module, i f "yes": module defect
- Check whether module plugged in correctly
153
B8576539-03 Computer Link with RK 512
154
B8576539-03 Computer L±nk with RK 512
Remedy
Check p~ocedure/interpreter on the CP 525 and if necessary
replace.
Note:
when coupled to an AS 5120 module the AS 512C module sometimes
requests a repetition owing to overload at high data rates.
•
interfa~e test device ('FOXPG') tapped into the transmission
line.
iSS
B8576539-03 Computer Link with RK 512
156
B8576539-03 Computer Ltnk with RK 512
Remedy
157
B8576539-07
158
B8576539-07
Remedy
159
B8576539-03 Computer Link with RK 512
FFH FH BREAK
The communication cable (receiver cable) to
the partner has a break.
This error number will be repeated until
the fault is cleared.
160
B8576539-03 Computer Link with RK 512
Remedy
Modify the partner since RK 512 does not recognise the data
control character ETD.
161
B8576539-03 Computer Link with RK 512
162
B8576539-03 Computer Link with RK 5~2
Remedy
163
B8576539-03 Computer Link with RK 512
164
88576539-03 Computer Link with RK 512
Remedy
165
B8576539-03 Computer Link with RK 512
166
B8576539-03 Computer Link with RK 512
Remedy
167
B8576539-03 Computer Link with RK 512
168
B8576539-03 Computer Link with RK 512
Remedy
169
B8576539-06 Computer Link with RK 512
170
B8576539-03 Computer Link with RK 512
Remedy
System command is only meaningful for AS 5120
•
reaction of the partner i f necessary with an :Interface test
device ('FOXPG') tapped into the transmission line.
171
B8576539-03 Computer Link with RK 512
172
B8576539-03 Computer Link with RK 512
Remedy
When starting up for the first time, make sure that the coordina-
tion flags are distributed on the individual processors, CPs, IPs
and the coordinator; that the jumper settings are correct; and
that the coordination flags used in the start-up OBs (OB20, OB21,
OB22) are reset (see also instructions CP 524/CP 525).
III
Find the permissible lengths in the job tables (Section 2.6).
~~~-~-----~~--~---~----~---~---~-
173
B8576539-03 Computer Link with RK 512
No for .
No for
IlKP'.lZL SYSTAT Description
174
B8576539-03 Computer Link w~th RK 512
Remedy
175
B8576539-06 Computer Link with RK 512
The results of these time measurements for a SEND DIRECT job are
examples of the processing times for DIRECT jobs.
Two SS 135Us, each with a CP 922 and a CP 525 were used for the
time measurement.
The interpreter RIC 512 and procedure 3964 (low priority) are
loaded in the CP 525 of PC 1 on IF 1.
The interpreter RIC 512 and procedure 3964 (high priority) are
loaded in the passive CP 525 of PC 2 on IF 2.
176
88576539-08 Computer Link with RK 512
S Telegram Data DE D D
T header LT L L
X 10 bytes (~ 128 bytes) EX E E
D D S rep. DE
L LT tel. LT
E EX 4 bytes EX
177
B8576539-04 Computer Link with RK 512
The time measurements are carried out with different baud rates
and with different amounts of useful data.
bps 19200 9600 4800 2400 1200 600 300 150 110
data
1 DW 42ms 57ms 87ms 148ms 258ms 49 Oms 960ms 1.92s 2.638
2DW 44ms 6Oms 9lms 158ms 277ms 527ms 1.04s 2.08s 2.848
4nW 46ms 64ms lOOms l75ms 313ms 60Oms 1.19s 2.37s 3.238
5DW 48ms 67ms lO6ms 183ms 323ms 637ms 1.268 2.528 3.448
8nW 5 Oms 73ms 118ms 212mB 387ms 75Oms 1.488 2.968 4.048
lODY S810S 83ms 133ms 236ms 429ms 830ms 1.638 3.258 4.438
16DW 66ms 97ms 163ms 295ms 548ms 1.078 2.118 4.208 5.748
20DW 7Sms -109mB 184ms 332ms 617ms 1.208 2.36s 4.72s 6.448
32DW 93ms 143ms 244ms 447ms 840ms 1.64s 3.24s 6.48s 8.839
SODW 132ms 200ms 343ms 628ms 1.18s 2.328 4.59s 9.12s 12.4s
64DY 152mB 238ms 412ms 760ms 1.45s 2.838 5.61s 11.2s 15.2s
80DW 196ms 310ms 54lms 1.01s 1.93s 3.768 7.46s 14.98 20.3s
lOODW 22 Oms356ms 634ms 1.198 2.27s 4.498 8.928 17.88 24.3s
128DW 2S2ms 42Oms 76 Oms 1.458 2.808 5.53s 11.0s 21.98 29.9s
192DW 353ms 60lms 1.11s 2.138 4.1Ss 8.228 16.4s 32.7s 44.5s
The times for the 39641. pmceduEe are approximately as those for
processing a DIRECT job.
We have checked the contents. of this manual 'or The repr()(.hJClion, Ironsmisslon or use 0' this rlocu-
agreement with the hardware and software dAscribed. ment or its contents is not permitted wilhout e)(press
Since deviations connol be precluded entirely, we can- written authority.
not guarontee full agreement. However. thA data in this Olfellders will be liable for damages. ,A.II rights, in-
mDnual are reviewed regulnrly and ;my necAssary cor- cluding rights created by patent grnnt or reglslrellion
rections Included In subsequent editions. Suggestions 01 a utilily model or design. ,He reserved.
for improvement fire welcomed.
TflchnlcDI data subject to chnnge. Copyright ~ Siemens AG 1989 All Rights Reserved
SIMATIC S5
CP 525: Event Output and Listing
with the PT88/PT89 Printer
1 Overview 1
•
3.6 Limit Values for the CHI.. 38
9 New Page 60
12 Setting up 66
12.1 Requirements 66
12.2 Settings on the CP 525 67
12.2.1 Jumper Settings on the CP 525 67
12.2.2 Assigning Parameters to the Procedure 67
12.2.3 Parameter Assignment for the Interpreter 68
12.3 Settings on the Pr88jPT89 Printer 69
12.3.1 Coding Switch on the Central Controller 69
12.3.2 Interface Adapter SAP-S1 (V.24/V.28) 72
12.3.3 Interface Adapter SAP-S2 ('r1'Y/20 mA) 74
12.3.4 Interface Adapter SAP-S3 ('r1'Y/20 mA; V.24) 76
12.4 Start-up Phase of the OP 525 78
•
12.4.1 Starting Up after Switching On the Power 78
12.4.2 SYNCHRON Job from the CPU 78
12.4.3 Switch Settings RUN/STOP/PGR 80
12.4.4 Transferring from the Fa 81
13 lAUFPT88 Procedure 83
15 .1 lDadable Software 96
15.1.1 Memory Requirements of the lDadable Software 96
15.2 User Programs for Specific Tasks 97
15.2.1 Directory ~emory Management) 97
15.2.1.1 Subdirectory of the Messages 98
15.2.1.2 Directory of PC Jobs and Frames 99
15. 2 . 2 Element Types and Elements 103
15.2.2.1 Messages 106
15.2.2.2 Frames (Headers, Trailers) 108
15.2.2.3 PC Jobs 115
1 OVerview
With the component "event output and listing with the PT88/PT89
printer" the OP 525 can supervise or moltor your process/a part
of the pr:ocess/yotJr plant.
When the CML is called, the OP 525 has all the disturbances and
events currently "active" on the CPU printed out. CML therefore
records the overall status of events and disturbances in the
process at a defined time (start time of the CML). •
1
B8576S41-03 Printer PT88/PT89
The dynamic data fOtmd in the SML is not included in the CML. The
dynamic data includes the following:
- time
- status
- parameter (process value)
When the PSL is called, the OP 525 fetches the current process
data from the CPU and compiles a list by adding these data to
static texts stored in the CF user memory. This list is then
output on the printer.
When the CPU starts a chained list, several PSLs (max~ e~t)
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 image of the whole system can be obtained.
2
B8576541-03 Printer PT88/PT89
-,
• Update sequential. message list (for detailed description see
Section 7)
The dynamic values :In the header and trailer of a current SML are
updated at any time you select (e.g. change of shift).
Individual messages in the SHL or CML and any line of a PSL can
be assigned to a message group (maximum 16 groups). These groups
can be released or inhibited by the CPU with the job "update
group inhibit bits". RoDe 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).
•
3
B8576541-03 Printer PT88fP1'89
You can have a form feed carried out on the printer (printer
header is then on the next page).
When printing out on the PT88jPT89 you can have the page number
reset to 1.
With the exception of the list frame, all the functions mentioned
previously can be started by the CPU of the PC (i. e. by your STEP
5 program). This is achieved by calling the handling block SF.RD
DDlEC'l' with a job number.
4
88576541-03 Printer PT88/PI'89·
+---------~---------------------------------------+
! Seq u e n t i a 1 m e S 5 age 1 i s t
+---~---------------------------------------------+
Date: 12.08.86
Time: 08:08:00 'am
12.08.,86 08:08:00 ani Ten,pet"'ature too higl·... GOING
08=08:00 am
12.08 .. 86 l-1otol" is OFF GOING
08:09:00 at"
12.0B .. 86 Load = lQ2 /t kg GOII'JG
08::09=00 ant
12" 08 .. 1gb BeJ.t t10. +5 de'Fect GO 11\18
. 12.08.86 08:1"0:00 am ! ! Oveln f~ot\f I I COMING
12.08.86 08: 1.0:00 am Pl"oc:ess stable! AC.~NOt.JL
•
5
B8S76S41-03 Printer PTBS/PrB9
The disturbances that are listed can come from the follow-ing:
Your STEP 5 program on the CPU of the CP must collect and prepare
the data and pass them on to the CP 525. There is an interface
between tile CPU aDd CP 525 for this purpose (see Section 2.2).
Your STEP 5 program on the CPU must make the process data availa-
ble to the CP 525. Before the CPU transfers the process data to
the CP, the data· is placed into message records on the cpu. The
individual message records are entered in" a data block mown as
DB II BKaHm (for the structure of the DB M RECORD see Section
2.2).
6
B8576541-04 Printer PT88/PT89
•
- determine and enter the message number from the status changes
to DB H OLDNEW (see 3.2)
- enter the message status (e~ge evaluation!)
- enter the data/time
7
B8576541-03 Printer PT88jPT89
- purge the DB H RECORD, i. e., make space for new entries (body
length = 0; pointer = 1st message record).
8
B8576541-03 Printer PT88/PT89
The interface between the CPU and the Of 525 is the data block
DB H RECORD.
0 0 header
1
2 1 body
· .
· .
·
510 255
511
Byte
1
DB addr.
DL 0
DR 0
Content
33H
length (HEX)
CoDDllent
9
88576541-03 Printer PT88/PT89
10
B8576541-03 Printer PT88/PT89.
llessage record
1. parameter type
2. message status
3 • message type
4. message D\DJ1ber
5. time
6. date
7. parameter (optional)
0 DL 0 parameter type
1 DR 0 message status
2 DL 1 message t:ype. message J!I1IDber
3 DR 1 message mwber
4 DL 2 10 ms -
5 DR 2 s I tiDe
6 DL 3 min
7 DR 3 h -
8 DL 4 day -
DR
I
•
9 4 month dat:e
10 DL 5 year -
11 DR 5 reserved
12 DL 6 -
13
14
lS
DR
DL
DR
6
7
7 - I parameter
11
B8576541-03 Printer PT88jPTS9
0 binary
1 character
2 byte
3 16-bit BCD number
4 32-bit BCD number
5 16-bit fixed point number
6 32-bit fixed point number
7 32-bit floating point number
8 timer
9 counter
FF no parameter included
12
B8576541-03 Printer PTS8/PT89
Significance
~if :'l~rl 4
I I I I
3 2 1 0
•
0 0 0 0 0 0 0 0 end of disturbance (going)
0 0 0 0 0 0 0 1 disturbance (coming)
0 0 0 0 0 0 1 0 aclmowledged
0 0 0 0 0 0 1 1 not allowed
13
B8576541-03 Printer :PT88jP.r89
~if :;~rl
Significance
4 3 I2 I 1 I 0
DEC
0 0 0 0 0 disturbance message
0 0 0 1 see 1 -
0 0 1 0 message 2
. number reserved
for
extensions
1 1 1 1 15 -
14
B8576541-03 Printer PT88jPr89
B~e 2 B~e 3
DL 1 DR 1
Bit number
F E D C B A 9 8 7 6 5 4 3 2 1 0
Limits
•
per CP 525 interface max~ possible: 1000 messages
per CPU of the PC max~ possible: 2000 messages
15
B8576541-04 Printer PT88jPT89
You can have the time at which the disturbance occurs or at which
the status of the disturbance changes entered in the message
record. You can, for example, read the date and time from the CP
525 or fran the CP 526.
When you program the SML (with COM 525) you determine at which
point and in which order the date and/or time is entered in the
message text. This applies to all messages in the sequential
message list (r), i. e. you cannot specify the date/time for each
individual message. This process ensures a uniform. clear l.a,out
for all SMLs.
23.05.87
14.15 / 16s 700ms
4 DL 2 10 ms - 70H
6
7
5 DR
DL
DR
2
3
3
s
min
h - I time
16H
15H
14H
8 DL 4 day - 23H
9
10
DR 4
DL 5
month
year - I date 05H
87H
16
B8576541-04 Printer PT88/Pl'89·
Note that you must set the clock of the OP 525 using the CPU
clock. You can set the date and time on the CPU using COM 526 for
example.
You can reserve space for «me current parameter in each dis-
turbance message to obtain detailed information about the distur-
bance. The current parameter 1s acquired at the time when the
disturbance occurs.
Example:
15 = puamet:er
17
88576541-04 Printer PT88/PT89
DL 6 DR 6 DL 7 DR 7
Byte 12 Byte 13 Byte 14 Byte 15
Type Meaning FEDC BA98 7654 3210 FEDO BA98 7654 3210
18
B8576541-04 Printer PT88/PT89
xx r= not used
2.2.2 Hample of t:he St:ruebD:e of a DB • RDDlD
Explanation of DB M RECORD
III
0
DO Sfgnific:auce
33
OE =14D
: identifier for DB K RECORD
. body length in words, DW 1 to DW 14
•
1m8 message record of the first message
19
88576541-04 Printer PT88/PT89
3 60 = time : 10 milliseconds
56 == time : seconds
4 37 = time : minutes
15 = time : hours
5 22 = date . day
05 = date : month
6 87 == date : year
00 == reserved
11 60 = time : 10 milliseconds
56 = time : seconds
12 37 = time : minutes
15 = time : hours
13 22 = date : day
05 == date : month
14 87 = date . year
00 :::: reserved
20
B8576541-04 Printer PT88/PI'89
•
21
B8576541-04 Printer PT88/PT89
The PTBB and Fl89 can output messages at the following speeds:
m ms
22
B8576541-04 Printer PT88/Pl'89
23
B8576541-04 Printer PT88jPT89
From the message records provided for the OP 525 by the CPU, the
OP 525 selects those that have message texts programmed for them.
These are then buffered in the FIFO and printed out on the
printer.
CPU CP525
DB M RECORD DB M SEND
1 1
7 .--__7 -t max. 42 max. 1000
max. 42 235 message
mes - <\ t-....1~3~LL--.l-"1 235 message
sage 13 records texts
records 9 9
6 5
max. 128
mes-
sage
Waste records
bin
24
B8576541-04 Printer PTBS/PT89
- the dynamic data from the message record is added into the
preprogranmed static message texts at the positions specified.
This dynamic data includes the status, date. time and the
parameter
- the control data for the printer attributes (compressed print,
expanded print, bold print, underlined, acoustic signal) is
added (see Section 2.3.4).
Date
Time
Parameter
•
Interpreter PT 88/ PT 89
message
PT88
PT89
Fig. 4
25
B8576S41-0S Printer PT88jPT89
Rote: i f the CP recognizes that the message record and the static
message text do not match (e. g., the message record does not
contain a parameter although a dynamic field is programmed for
one in the static message text) then instead of the dynamic
field, the OP causes filling characters to be printed out.
Although the FIFO has the capacity for 128 messages, it can
become full. Space for new entries can only be created if
messages are printed out. The FIFO can overflow because of the
following:
- The printer
is switched offline,
has run out of paper,
has run out of ink
DB M SENDs are accepted again only when the FIFO bas space for a
complete DB M SEND.
26
B8576541-03 Printer PT88jPT89
• The CPU ignores the error message and sends further DB M SENDs
to the OP 525. ·
• The CPU evaluates the error message, buffers the DB M SEND that
was terminated with an error and sends it to the OP 525 again
until the CP completes the job without error.
.,
Reaction of the CP: the DB M SEND that caused the overflow 1s
entered after the error is corrected and is then printed out.
When programming with COM 525, you can assign individual print
attributes to the static parts and dynamic parts of each message.
The following attributes are available:
•
C = compressed print
E = expanded print
B = bold face
U = tmderlined
A= acoustic signal of the PT88jPT89
27
B8576541-03 Printer PT88jPT89
C E B U A
Trailer =a :frame printed at the end of every page and at the end
of the SML
You can use the same or a different frame for the header and
trailer. You can select the frame when you program the SML. All
the frames must be prograumed \Dlder the list type "frame".
28
B8576541-03 Printer PT88/PT89
Header Frame
Trailer Frame
New page
Header Frame
Trailer Frame
When the single' messages that make up the SML are output, the
CP 525 CO\D1ts the lines. It then recognizes that the end of a
page is close and outputs the trailer (if this is programmed).
•
For more details on frames see Section 6.
29
B8576541-03 Printer PT88/PT89
You decide whether or not the CMLs and PSLs are to be interrupted
by SMLs:
* *
NO NO
NO
NO
30
B8S76541-03 Printer PT88jPT89
parameters date
time
status
one parameter
(process value) per
•
line
31
B8576541-03 Printer PT88/PT89
+-------------~-----------------------------------+
! Current me$5~ge 1ist !
Date: 08.12.86
Time: 13:14:31 am
32
B8576S41-03 Printer PT88/PT89
The data exchange between the CPU and CP 525 takes place us~~
the following handling blocks:
The interface between the CPU and the CP 525 is the data block
DB 'II 0UIIPJr. A bit in DB M OLDNW 1s assigned to every distur-
bance to be signalled as follows:
•
- bit set - status "caning"
- bit cleared - status "going"
33
BB576S41-03 Printer PTBB/PT89
St:ruetm:e of DB • OLDRlDl
DB H OLDNEW is divided into the areas om and RRIl. The NEW area.
contains the current status of disturbances; the OLD area con-
tains the status as it was in the previous processing cycle on
the CPU.
DW DL DR
0
IIIIIII IIIIIII DW 0.0 = 0: field 0
field 1
= NEW
= OlD
1 = 1: field 0 = OLD
field 1 == NEW
2
DR 1 = write pointer
3 DR 2 = read pointer
Field 0
127
128
.
. Field 1
252
253
25 4
34
B8S76541-03 Printer PT88/PI'89
After each processing cycle the areas NEW/OLD are swapped over
when DW 0.0 is complemented as follows:
011
c e n- 3 n- 2 n- 1 n n+1 n+2 n+3
])V 0.0 0 1 0 1 0 1 0
Relative Bi t numb er
DV number 15 14 13 12 11 10 2 1 0
Field 0/1
o 16 15 14 13 12 11 . 3 2 1
1 32 31 30 29 28 27 19 18 17
2 48 47 46 45 44 43 35 34 33
. . · . . . · ·
. . · . · ·
123
124
1984 1983
· . .
2000 1999 1998 1997 1996 1995
. . · . ·
1987 1986 1985
•
is relative to the start of the field. For field 0 the distance
to the DB start is 3 data words; for field 1 it is 128 data
words.
35
B8576541-03 Printer PT88/PT89
36
B8576541-03 Printer PT88jPr89
Trailer == a frame printed out at the end of every page and at the
end of the CML.
The header and trailer are both optional. You can use the saJ.tJe
frame or a different one for the header and traUer.
The CP 525 lists the individual messages of the CHI. and CO\Dlts
the lines. Before the end of a page is reached, the CP recognises
this condition and outputs the trailer. Then a fom feed is
triggered and the header (if programmed) is printed out at the
beginning of the next page. Following this, the output of the
stogle messages is contfnued.
•
For further information on frames see Section 6.
37
B8576541-03 Printer PTBS/PT89
no
---> means: e.g. CHI, has DO priority over SML
= CHI, cannot interrupt SHL
38
B8576541-03 Printer PT8S/Fl89
The CP 525 can output data and statuses from the process (e.g.
temperatures, pressures, counts) in process status lists on the
prfnter. A PSL consists of a sequence of a max~ 99 list 1fDes,
which together provide an image of the process at a defined time.
+-----~~------~-~------------------------~--------+
! P~Dcess status 1ist no. 1 end
+--~--------~--~----------------------------------+
Fig. 8 Example: process status list
A PSL consists of static and dynamic parts. The static parts are
determined when you program the PSL with COM 525. The dynamic
values must be acquired by the STEP 5 program on the CPU, col-
lected in a data block and transferred to the OP 525 when the CP
requests the data. There is an interface between the CPU and
Of 525 for this purpose.
•
39
B8576541-03 Printer PT88jPT89
The CPU must acquire all the dynamic parts of the PSL and store
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 completely 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:
The interface between the CPU and Cf 525 is the data block
assigned for this purpose. 'Ibis can be different from PSL to PSt.
The number of the data block is fixed when you pro-gram the PSL
in the CP 525 user program. This DB must also be de-fined in the
STEP 5 user program.
40
B8576541-03 Printer PT88/PT89"
You select print attributes when you program the PSL with COM
525. The print attributes of the static parts are reset for each
list line. They apply to all static texts in this list 1fDe.
41
B8576541-03 Printer PT88jPT89
42
88576541-03 Printer P1'8S/P1'89
43
B8576541-03 Printer PT8S/PT89
*
max. no. of PSL's per CP 525 interface. theoretical) 199
44
B8576541-03 Printer PT88/PI'89
If you require more than 99 lines, you should program and start a
cha:lDed list:.
+~-~-~-~~----~-~--------------------------~~--~-~-+
! Process status 1ist no. 1
! Date: 12.09.86 Time I 01:29:12 pm
+-------------------------------------------------+
Tempera 'l:u t"e i t1 tank : "-520 Grd/C
Temperature of oLlter tatlK v~aJ.J. +70 l31"d/C
Leve1 i tl tar1k "-12 m
Disc.1arge t"ate 30 J\g/h
Deviation froJ1\ setpOitlt -2 k
+-------------------------------------------------+
! Process status 1ist ne. 1 end
+-------~-------~---------------------------------+
+-------------------------------------------------+
! Process status 1ist.no. 2
+-------------------------------------------------+
TJ'I"Cl.rgJ1DU t
va~"'/e 1
va].'v'e :2
valve 3
of -distriblJtOt' rlst\..,ork
129 J./tt,in
20 1./m j.t1
15 J./r" i tl
•
+-------------------------------------------------+
! Process status 1ist 2 end ~o. !
+----------------------------------------~--------+
Fig. 9 Example: chained lists
45
B8576541-03 Printer PT88/Pl'89
- print out the status of the whole plant since all the PSL's of
the different parts of the plant are output automatically
- structure a process status list with mm:e than 99 lines, by
spreading the list over several PSLs.
are fixed when you program the PSL. When progranming the chained
list, simply specify the names of the individual PSLs that are to
be chained.
Then the CP 525 requests the data block from the CPU for the
first PSL to be chained. The CPU then sends all the DBs for the
individual PSLs to the OP 525 in succession as they are
requested.
46
88576541-03 Printer PT88/PI'89
The data exchange between the CPU and CP 525 takes place using
the following handling blocks:
The interface between the CPU and CP 525 is formed by the data
blocks you assign when programming the individual PSLs. This can
be the same for all PSLs or differ from PSL to PSL.
•
processes, in succession, all the PSLs specified in the OL.
47
B8576541-03 Printer PT88/PT89
Example:
PSt 1 PSLS
Trailer Frame 4
PSL2
Header Frame 5
PSL3 PSL6
Trailer Frame 6
PSL4
Trailer Frame 2
48
B8576541-03 Printer Fr8S/PI'89
•
49
B8576541-03 Printer PT88/PT89
When programming a frame with COM 525, you select a data block
that is to contain the current dynamic values of the frame.
50
88576541-03 Printer PT88jPT89
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: SERD. AU.
The interface between the CPU and CP 525 is the assigned data
block and can be different from frame to frame. You decide the
n\Dl1ber of this DB in the CP 525 user program. You must also
define this DB in the STEP 5 user program.
51
B8576541-03 Printer PT88/PT89
•
The DDs transferred from the CPU with SEND ALL (only data words
o to 127) are buffered on the GP 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).
new page
list line
list line n lines
new page
52
BB576541-03 Printer PT88/PI'89
53
B8576S41-03 Printer PTBS/PT89
..._---------------------------------------------------+
Sequ~ntia1 m~ssage ~ist for~ 02.13.87 at: O~:29 pm!
., I
54
88576541-03 Printer PT88/PT89 .
If the SHL is started for the first time, the CP 525 requests
these data blocks from the GPU and stores their contents. This
guarantees that within one SML the dynamic values of the header
and trailer are not changed. This also means that the data blocks
need not be requested from the CPU for each SML job. This reduces
the load on the CPU and OP.
Update SHL:
If you wish to change the dynamic values for the list header and
trailer while an SML is running, you can have new cIyoam.f.c values
sent from the CPU to the CP in DBs. You use the job 1JPD&D mIL
that is triggered by the CPU when the CPU calls the handling .,
block SEND DIRECT with a job nwnber.
The data exchange between the CPU and the CP 525 1s carried out
by means of handling blocks as follows:
SF.RD AU..
•
More information on handling blocks can be found in the descrip-
tion "Using the handling blocks" in this manual and \U1der /1/ in
the list of relevant documentation.
5S
B8576541-03 Printer PreS/PT89
- the previous messages of the SML are completed with the trailer
which still contains the "old" dynamic values
- new messages are output with the header which already contains
the "new" dynamic values. If you programmed it ~ a form feed for
the beginning of the list is performed.
56
88576541-03 Printer P'I'88/PT89
- be started up
- have maintenance work carried out J or
- be switched off
With the GIB' s you can control the output of list lines.
The group inhibit bits (GIB) can be set or reset by the CPU at
any time. The upc1ate group :fDhibi~ bit:s job is available for this
•
purpose.
57
B8576541-03 Printer PT88/P'1'89
The data exchange between the CPU and the ~p 525 is carried out
by means of handling blocks:
58
B8576541-03 Printer PT88jPr89
The interface between the CPU and OP 525 is the defined data word
in the declared data block. This contains the group inhibit bits
for the 16 groups of messages. '!be following applies:
DL n 15 14 13 12 11 10 9 8
group no. 15 14 . 9 8
DW n
DR n 7 654 3 2 1 0
group no. 7 6 . 1 0
DY == data word
DL == left data byte of DW
DR == right data byte of DW
n = number of the data word
•
This sends the DB with a SEND AIL to the OP. '.l11e OP 525 stores
the data word and interprets the contents immediately as group
inhibit bits for the 16 groups.
59
B8576541-03 Printer PT8StprS9
9 New Page
The OP 525 automatically initiates a fODl feed when the pro-
grammed page length is reached.
Your STEP 5 user program can also output a form feed at aD.J ~iAe.
Using a SEND DIRECT job with a job number, the CPU starts the
"new page" job on the CP 525.
- when all the jobs in the queue of the OP 525 are processed
- when all the texts previously transferred to the PT88/PT89 and
buffered in its input buffer are printed out
- when the printer head is not already at the start of a page,
i.e. the form feed bas just been performed.
Your STEP 5 user program can reset the page cOWlter on the OP 525
to one at aD.J t:ime. By means of a SEND DIRECT job) the CPU starts
the job "reset page number" on the CP. A form feed is automati-
cally carried out at the same time.
60
B8576541-03 Printer P'l88/Pl'89 .
11 Print Attributes
Each list line (of an SML, CML or PSL) can be printed out indi-
vidually. You can select from among the following print attrib-
utes when programming the lists with COM 52S:
B == Bold face
U ==Underlined
- ODly for a particular field (within the line) for all c!yDaDW:
•
parts
(if you selected these attributes when programming the dynamic
parts)
c E B u A
61
B8576541-03 Printer PT8S/.PT89
You can combine the print attributes as you wish. The text is
then output according to the print attributes assigned to it.
If dynamic parts with their own attributes are printed out within
a static text t the attributes of the static text are used again
after the dynamic part has been printed out.
62
B8576S41-03 Printer P'l'8BjPr89
Unless you select the print attribute "E") the text is printed
•
out in normal character width. A character is then represented by
a 5 * 9 dot character matrix.
If you select the print attribute "E", the text is printed with
double character width. Each dot in the character matrix is
represented by two dots side by side. A character is then repre-
*
sented by a 2 * 5 9 dot character matrix.
63
B8576541-03 Printer PT88jPT89
64
B8576541-03 Printer P'I88/PT89
Bold----------------012-ABC-abc-?-~-~-&--(-)---
COlpressed------ -----------~12-ABC-abc-?-!-X-&--(-)---------------------
ynQ~r:J:itl§g========Q1.:.~={:!~~=sQf;=l:;l=~=~==l=.L=====
Compressed/expanded---012-ABC-abc-?-!-~-&
Cgmpressed/undeClined-------------------D12-ABC-abc-?-1-X-~--(-)
12345678901234567890123456789012345678901 Ncrma1
.I .I
12345&7890123456189012345678901234567890123456789012345678901234567890 Compressed
~ I ! !
12:345.6/.890:1.:2::345
•
.I ., .I .J
123456789012345678901 Compressed/expanded
Fig. 11 Example: different combinations of print attributes
65
88576541-03 Printer PT88/PT89
12 Setting Up
12 • 1 Requirements
York through the folloWing check list to see whether your system
is complete and capable of operation.
Bardnre
- Programmable controller x PC manual
:wadable softval:e
- Programming software COM 525 x User's guide
Procedure (pa~. assignedl) COM 525 and example
Interpreter (param. assigned!) of application
PT88jPT89 (in this
manual)
- Programming software STEP 5 x Literature on pro-
gramming with STEP 5
66
B8576541-03 Printer :PT88/PT89
The data rate and data format are set using the COM 525 pro-
gramming package. These specifications must agree with the corre-
sponding settings on the PT88/PT89 printer .
- data rate: 110, 200, 300, 600, 1200, 2400, 4800, 9600 bps
•
- number of stop bits: 2, 1.5, 1
More information can be found in Section 13 "Procedure IAUFPT88".
67
B8576541-03 Printer PT88jPT89
format (time)
The character set applies only to the printer and has no effect
on the representation on the PG monitor. On the PG you can switch
over to 'the Genm1 character set by pressing LOCK + SHIFr simul-
taneously.
More information can be fOWld in the user's guide for the pro-
gramming package COM 525 in this manual.
68
B8576541-03 Printer PT88/PT89
The settings required for the PT88/Pr89 are made at the coding
switch on the printer (see description of PT8S/Fl89).
1~.IlrIC:::J11
It--------------tl~
Using the coding switch on the' central controller you can select
certain standard ftmctions. '111e settings of the coding switch are
read by the printer controller after the power has been switched
on. Changing the switch setting while the printer is switched on
•
has no effect.
69
B8576541-03 Printer PT88/Fl89
1 2 3 4 5 6 7 8 9 10
ON switch position ON
= contact
BBBBBBBBBB
closed
OFF switch position OFF
;::: contact opened
I
device PT88/PT89
no parity evaluation
LF==LF
CR=CR.
70
B8576541-03 Printer PT88/P1'89
s ,t. <:1_
Slritch :faD.ctfons 1 2 3 4 5 6 7 8 9 10
switches 1 to 3 no significance -
character set determined by COM 525 xx x 2
"interpreter parameters"
3) means: with PT89: switch must be ON, if you use paper with
80 characters per line
•
71
B8576541-03 Printer PT88/PT89
522767- B1 - A100
X1 0 o
~S2
OS1
32 ...... -... _~--.-_ ......
Pin1
72
B8S76541-03 Printer PT88/Fl'89.
data trans-
mission rate
bps 110 OFF OFF OFF
600 ON ON OFF
2400 ON OFF ON
4800 OFF ON ON
9600 ON ON ON
*)
operation with X-ON/
X-OFF protocol
l:lne
103, 104, 108.2 J
OFF OFF ON OFF ON OFF ON OFF OFF
73
B8576541-03 Printer PT88/Pl'89
Jl
C!J P,n'
74
B8576541-03 Printer PT88jPT89
Switch 81 Switch 82
Operating
mode 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
data
trans-
mission
rate bps
110 OFF OFF OFF
.,
200 ON OFF OFF
300 OW ON OFF
600 ON ON OFF
2400 ON OFF ON
4800 OFF ON ON
9600 ON ON ON *)
75
B8576541..03 Printer PT88jPT89
522767 - 83 - A100
o o
(I]S3
[]S2
L!JS1 Pin1[]'S4
Interface Position
RS-232-C (V.24/V.28) 1
TTY 2
76
B8576S41-03 Printer PT88/PT89 .
data transmission
rate bps
600 ON ON OFF
2400 ON OFF ON
4800 OFF ON ON
9600 ON ON ON
*
operation with X-ONI ON OFF OFF ON OFF
X-OFF protocol
•
*) presetting for the LAUFPT88 procedure in COM 525
82 83
77
B8576541-03 Printer PT88/PT89
After you have switched on the power the two ums on the front
panel of the CP 525 light up. The CP 525 then checks whether
Following the start-up phase the CP 525 expects the SIRC2IBOR job
from the CPU.
The SYNCHRON IIDB is necessary for processing the jobs, SEND and
RECEIVE (to ensure that the field length for data transfer CPU
- --> OP 525 is agreed). The SYNCHRON IIDB is usually called up in
the STEP 5 user program in the organization blocks OB 20, OB 21,
OB 22.
78
88576541-03 Printer PT88/PT89
- jobs (except SYNCHRON) could arrive from the CPU before the
SYNCHRON has run: these are rejected with "not ready" (error
number SlK :In the PAFE byte of the corresponding job).
If the SYNCHRON is run through with errors I all the PC jobs which
were set to ttnuming" during the restart phase are also termin-
ated with the error number 7H. (16H 1s once again entered in
SYSTAT).
Following this, new PC jobs (except SYNCHRON) are blocked with
•
the message "not ready" (no. 818 in the PAFE byte of the corre-
sponding job).
79
B8S76541-03 Printer PT8S/PT89
• BIJR
The PT88 interpreter processes jobs arriving from the CPU (condi-
tion: a SYNCHRON job has nm through without errors).
The LEOs of the loaded :Interfaces are no longer lit on the front
panel of the CP 525.
• S'l'OP or rca
These switch settings are identical. Jobs arriving will be
rejected with an error message as follows:
The interpreter once again starts to process jobs. The lED on the
front panel goes off (if the interpreter and procedure are
loaded). Changing the selector setting does not trigger a cold
restart on the CP 525.
80
B8576541-03 Printer PT8S/PT89
12.4.4 TnmsferrfDg:frallt:he PC
Before the OP 525 software goes into the wait status (indicated
by the lighting up of the LEns on the front panel), the job
currently being processed is completed without an error message.
Depending on the number of pieces of data to be output, this may
•
take some time.
81
B8576541-03 Printer PT8SjPrS9
Following the cold restart, the LEOs on the front panel go off if
the program transferred is correct and complete. A SYNCHRON job.
is no longer required after the transfer.
82
B8576541-03 Printer PT88/PT89
13 LAUFPT88 Procedure
- procedure data
- transmitting with the LAUFPT88 procedure
- receiving with the LAUFPT88 procedure
The LAUFPT88 procedure controls the data flow between your OP 525
and the PT88/P1'89 printer. Within the CP S2S, the interpreter
transfers the data to be transmitted to the procedure into output
buffers. The procedure then has the data output on the printer.
•
The LAUFPT88 procedure is an asynchronous bit serial transmission
procedure. The transmit and receive data rates (baud rates) op.
the OP 525 and on the connected printer must be the same (i.e.,
there are no timing lines between the two devices).
To check that the transfer takes place without errors, the infor-
mation bits are "encapsulated" by further bits.
83
B8576541-03 Printer PT88/PT89
SA = start bit
1* = information bit no.
PA = parity bit
SO = stop bit
1 stop bit
1.5 stop bits
2 stop bits
- Data mt:e
9600bps
4800bps
2400bps
1200bps
600bps
300bps
200bps
110 bps
84
B8576541-03 Printer PT88jPT89
-Parity
Refer to the instructions for the CP 525 in this manual and the
user's guide for the Pr88/PT89 printer.
•
nXOFF" means: printer not ready to receive
"XON" means: printer ready to receive
85
B8576541-03 Printer PT88/PT89
- idle state
- transmit mode
- no more paper
- no more ink
- printer is switched offline
86
88576541-03 Printer PT88/PI'89
Only the control characters XON and XOFF are received' and pro-
cessed by the procedure. Other characters result in error mes-
sages being sent to the interpreter (check the condition codeword
or error message area of· the SYSTAT). A break on the line is also
signalled as an error. Following these error messages, all the
jobs signalled to the procedure are aborted and the procedure
goes over to the wait state.
1 character ---------------------------->
2 character
.. ---------------------------->
k character ---------------------------->
(k+l) character
<---------------------------- XOFF
---------------------------->
(k+2) character ---------------------------->
<---------------------------- XON
(k+3) character ---------------------------->
(k+4) character ---------------------------->
m character ---------------------------->
1 character ---------------------------->
2 character ---------------------------->
k character ---------------------------->
<---------------------------- character
BREAK/wrong
(k+l) character -~-------------------------->
(k+2) character ---------------------------->
no further characters are transmitted
87
88576541-03 Printer PT88/PT89
14 MUltiprocessor Operation
Compared with single processor operation, multiprocessor oper-
ation requires even more that the programming of the indiviqual
CPUs and of the OP 525 be carefully matched.
The more complex the application, the greater the care that must
be taken to ensure that the CPU munbers and data block numbers
for the dynamic values of lists and frames in the CP 525 are
correctly specified.
If jobs with the same job n\Dllber are programmed on more than one
CPU (e.g. SHLs), the STEP 5 user programs must be designed so
that at anyone time only one CPU can start one of these jobs.
All other epus must wait tmtil this job is signalled as "com-
pleted" with or without errors. Only then can this job be started
by another CPU.
88
B8576S41-03 Printer PT88/Pl89 .
The jobs (SML, CHI., PSL, new page, etc.) can be divided into the
following two groups:
The common factor among these jobs is that each job has a fixed
name and can therefore be programmed only once on a CP 525 :Inter-
face.
•
SML and CKL differ from other jobs in that data must be trans-
ferred from the CPU to the CP 525 before it is executed ..
When using the jobs "new page, reset page number and update SML"
remember that the same job rmmber is used for the same job on
each CPU.
89
B8576S41-03 Printer PT88jPT89
With the SML and CML jobs, remember that you must use the same
job munber for the same job on each CPU.
Once the CPU has triggered a job, it makes a data block available
to the OP 525 that contains the dynamic values for the message.
With an SML, this is the DB K RECORD. With CHL, it is the DB H
OlDNEW', which images the disturbances in the plant. The CPU
informs the OP 525 by means of the SML or CKL job that the data
block can be fetched.
If the CP 525 receives this job, it determines which CPU sent the
job and requests the data block from this CPU. As soon as it
receives the data block, the OP has the corresponding message
texts output on the PT88jPT89.
Any em can have the messages ouI:p1t via any CP 525 i£ it has
message tens p~i1IIIDecl OIl the CP 525.
Note:
- On one CP 525, one message number is assigned to coe message
text. This is output regardless of which CPU initiated the job.
- When progr81DlD1ng the messages with COM 525, do not specify' a
CPU number.
- Make sure that the message numbers are distributed efficiently
on the individual CPOs.
90
B8576541-03 Printer PT88/PT89
- Select a CPU on which the messages from all the CPUs in the PC
can be collected.
- Have all the messages prepared on this CPU and passed on to the
OP 525.
This process avoids having the same message number assigned on
more than one CPU.
- program the CPs so that you store only one message text for
each message number OIl only ODe CP 525 (although all the
message numbers appear on all the CPs)
- implement your STEP 5 user program on the CPU so that the data
blocks (DB H RECORD or DB H OLDNEW) are sent to all OP 525s.
S:lnce the Of 525 ignores all messages for which it does not have
a message text programmed the required message text is output
I
If you want to output the same message texts via several OP 52Ss,
you must allocate the same message text to the same message
n\Dllbers •
91
B8576541-03 Printer PT88/PT89
- frame
When programming the OP 525 with COM 525 you determine for this
group of jobs
(for the output of the dynamic values or for updating the group
inhibit bits).
As soon as any CPU has sent a job to the OP 525) the OP 525
requests the pmgraIIIDec1 data block from the Cpu) which has been
specified for this job :In the OP 525 user program. The specified
CPU does not need to be the one which initiated the job.
92
B8S76541-03 Printer PT88/P1'89
Loadable software and user programs for specific tasks are stored
on the plug-in memory submodule (RAM or EPROM). The amunt of
memory space required depends on the particular component and the
extent of your user programs.
The information can only take the form of guidelines with which
you can estimate the memory space you require. The figures ought
to help you determine the minimum capacity your memory submodule
needs to handle your requirements. The figures quoted in the
following pages are arranged so that the memory requirements
calculated tend towards the maximum requirement .
Using the COM 525 information function you can obtain detailed
information about programs which have already been generated (see
user's guide "Programming package COM 525" in this manual) or
using special PROM 525 functions (see user's guide "PROM 525"). •
93
B8576541-03 Printer PT88jP'r89
Loadable software:
Requirements for IF 1
**
Requirements for IF 2
94
B8576S41-03 Printer PT88/PT89
see 15.2.1
see 15.2.1.1
see 15.2.1.2
see 15.2.2.2
see 15.2.2.3
space required for frames
9S
B8576541-03 Printer PT88/PI'89
The loadable software both for the computer link and for the
printer PT88/PI'89 includes the following:
96
88576541-03 Printer PT88/F1'89.·
This 1s determined when you program your CP 525 user program with
the COM 525 programming package. After programming, you can use
the PO to load the user program into the memory submodule of .the
CP 525 (RAN or !PROMO.
- messages
- :&ames
- PC jobs
•
quickly, they are stored "systematically" with their name, ad-
dress, length, type etc. All these specifications are contained
in an "address book" called directory from now on. The directory
also occupies space in the memory submodule as follows:
- basic requirement
- subdirectory for messages
- subdirectory of the PC jobs and frames
97
B8576541-03 Printer PT88jPT89
subdirectory of messages:
98
B8576541-03 Printer PT88jPT89
totalled up therefore:
o if no message is programmed
S i f one single message is programmed
5000 i f 1000 messages are programmed (max.)
Note:
99
B8576541-03 Printer PT88/PT89
100
B8576541-03 Printer Fl88/PT89
Elample:
Different
Number Element types element types
22 elements 2 types
and:
•
1370 basic requirements for the directory of this
interface
subdirectory of messages:
101
B8576541-03 Printer PT88/PT89
The user memory of the OP 525 is divided into memory pages, each
with 8 Kbytes. The directory of the user program is established
on one memory page and the elements are continuously written to
the other memory pages.
The printer on one interface can use only memory pages on which
the printer of the other interface has not yet written data. For
example, i f printer 1 has used 1 Kbyte of a memory page, printer
2 cannot use the 7 Kbytes remaining on this page; i . e ., these 7
Kbytes remain unused.
102
B8576541-03 Printer PT88/PT89
- messages
- PC jobs (PSL, SML, update GIB ••• )
- ftames
The element types are further divided into single elements. The
structure of the individual elements is simUar. 'Ibey always "
include the following:
103
B8576541-03 Printer PT88/PT89
Element header
This header contains all the central data and commands for the
element as follows:
- control information
- name of the list header and/or list trailer
- CPU no., DB no. (source address for the dynamic data)
- etc.
The memory required for the element header varies depending on
the element type.
eclimaDds
Examples:
Parameters
104
B8576541-03 Printer PT88/PT89
The more dynamic data you bring into a text, the more often you
change the print attributes; the more elements (PSLs, frames,
messages) you program, the more memory space will be required.
The following sections shOW' you how much space the various e~~
ments require and how much space the corresponding directory
takes up. The information must be considered as a guideline so
that you can estfate the total memory space required. The guide-
lines help you to decide whether the memory submodule installed
1s suffic1ent for your requirements. The calculated requirements
always tend towards maximum values. Exact formulae are extremely
complex and impossible to use because of the large number of
combinations that can be programned.
105
B8576541-03 Printer PT88JPT89
15.2.2.1 Jlessages
106
B8576541-03 Printer PT88/PT89
Eamlple
The string of numbers does not form part of the example I the
dynamic parts are printed in bold face.
o 1 2 3 4 5 6
12345678901234567890123456789012345678901234567890123456789012345
Memory required
(in bytes)
3200
For
107
88576541-03 Printer PT88)PT89
108
B8576541-03 Printer PT88/Fl89
Note:
To save space the static texts are automatically compressed by
COM 525; i.e.I more than three identical successive characters
occupy only three bytes of memory'
109
B8576541-03 Printer PT88/PT89
17 basic requirement
13 date
13 time
18 process variable
process status variable:
6 + nl nl ::: no. of char. in text for process status 1
6 + n2 n2 = no. of char. in text for process status 2
Note:
110
88576541-03 Printer PT88/PT89·
Emmple
o 1 2 3 4 5
123456789012345678901234567890123456789012345678901234567
Line 1
Line 2
+-------------------------------------------------------+
r CoaveJOr belt 03 ,
Line 3 I Shift: HI Shift eug:lneer: IIIIHHIIHHIIIJH I
Line 4 I "Dam": #IJIJIHIIII "Time": #IJIJIHIIII ,
Line 5 +---------------------------------------------------~---I
The space required for this frame is the total of the following:
111
B8576541..03 Printer PT88/PT89
Line 1:
+-------------------------------------------------------+
Memory required For
(in bytes)
5 basic requirement
5 static text
1 byte for u+It (start of line)
1 byte for U+" (end of line)
3 bytes for It_" (compressed)
o line 1 contains no dynamic parts
Line 2:
I CouveJOz belt 03
5 basic requirement
23 static text
18 bytes for "! conveyor belt 03"
1 byte for" !" (at end of line)
3 bytes for spaces (compressed)
o line 2 contains no dynamic parts
112
88576541-03 Printer PT88jPT89
Line 3:
S basic requirement
33 static text
11 bytes for "I Shift: "
18 bytes for" Shift engineer: "
1 byte for "I" (at the end)
3 bytes for spaces (compressed)
36 for the two dynamic field
18 bytes for field 1 (process variable BYTE)
18 bytes for field 2 (process variable CHAR)
Line 4:
24
5 basic requirement
static text
10 bytes for "I "date": "
10 bytes for" "time":"
1 byte for"'" (at end of line)
3 bytes for spaces (compressed)
•
26 for the two dynamic fields
13 bytes for field 1 (DATE fram DB)
13 bytes for field 2 (TIME from DB)
113
B8576541-03 Printer PT88/PT89
Line 5:
+-------------------------------------------------------+
Memory required For
(in bytes)
5 basic requirement
5 static text
1 byte for U+" (at start of line)
1 byte for U+" (at end of line)
3 bytes for U_1f (compressed)
o l:1ne 1 contains no dynamic parts
114
B8S76541-03 Printer PT88/PT89
15.2.2.3 PC Jobs
PC jobs are started by the CPU using their job numbers. The
following are PC jobs:
The memory space required for the sequential message list (SML)
1s obtained by the following:
•
7 column no. attributes and no. of characters
I
115
B8576541-03 Printer PT88f1!r89
Note:
116
B8576S41-03 Printer PT88/Pl89
17 basic requirement
13 date or time
18 process variable
process status variable:
6 + nl nl == no. of chars. in text for process status 1
6 + n2 n2 = no. of chars. in text for process status 2
Note:
117
B8576541-03 Printer PT88/PT89
Eample
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.
118
B8576541-03 Printer PT88/PT89
o 1 2 3 4 5
123456789012345678901234567890123456789012345678901234567
+-------------------------------------------------------+
1 CtuveJOr belt 03 1
I Shift: III Shift engineer: IIfJIJIHJIIIJIJ I
I "Date": IIJHIIH "Time" : fIJIJIJIHJIJI I
~------------------------------------------------------I
The space required for this PSL is the total of the following:
119
B8576541-03 Printer PT88jPT89
The memory requirements for the chained list are obtained from
the following:
120
B8576541-03 Printer PT88/PT89
The memory requirements for the current message list are obtained
from the following:
5. 1JPDl'.m SIlL
The memory requirement for the job "UPDATE SML" is the following:
12 total requirement
24 total requirement
7. NPJl PAGE
12 total requirement
12 total requirement
122
B8576541-03 Printer PT88/PT89
Empty page
123
B8576541-03 Printer PT88/PT89
The error message area of the SYSTAT is a data area in the dual-
port RAM of the CP 525. After the CP 525 recognizes an error it I
The CPU reads the error message area of the SYSTAT for the speci-
fied OP interface by means of the job
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. 'l1le dest:fnation length must be
at least two words.
RECEIVE DIRECT 200 is executed only when an error number has been
entered in the error message area of the SYSTAT since only then
I
is the bit "RECEIVE - job ready" set in the ANZW (bit 0).
124
B8576541-03 Printer PT88/PT89
If error numbers are entered :In the error message area they are
located (after they have been read by RECEIVE DIRECT 200) in the
selected area in the CPU (e.g. in the data block).
Bit
7 6 5 4 3 2 1 0
Byte o (DLO) - I I I I
E 0 B R
125
B8576541-03 Printer PT88/PT89
126
B8576541-03 Printer PT88/PT89
:JU FB121
NAME: RECEIVE data transfer only in error entry
SSNR: KYO,O interface number 0
A-NR.: KYO,200 fixed job number for reading SYSTAT
ANZW: FWlO
ZTYP: KSDB
DBNR: KYO,lO dest. for error numbers is DB10
ZANF: KF+l from data word 1
ZlAE: KF+2 2 data words
PAFE: FY5
:0 DB10
:AN D 1.11 test bit 3 of group byte
:JC =MOOl jump if no error entered
·.
· error evaluation
•
A-NR: KYO ,200 pages)
PAFE: FY6
M001: •
:etc.
:BE
127
B8576541-03 Printer PTBS/Fl89
All the entries are then cleared with the exception of the BREAK
bit (8).
The area read then contains the error messages for both inter-
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.
128
B8576541-03 Printer PT88/PT89
Bit
7
I 6
I 5
I 4
I 3
I 2 1 o
Byte 0 irrelevant RUN STOP
1 irrelevant
2 sign of life
3 irrelevant PGR
4 E2 I 02 I B2 IR2 I El I 01 I 81 Rl
11
12
13
14
15
reserved
129
B8576541-03 Printer PT88/PT89
- the module
- the memory submodule
- the interface assignment etc.
If the field length is less than 128 bytes the message "completed
with errors" and the error number 7 is entered in the status byte
and the number lE in the error message area of the SYSTAT. The
SYSID area is not then transferred.
Note: the sysm can also be read directly from the dual-port RAM;
i.e., without handling blocks (from address F680H). For more in-
formation refer to the manual for your PC.
130
B8576541-03 Printer PT88/Pl'89
1 10 to 18 Module identifier:
CP 525-2 / OP 524
3 22 to 41 Plant des~tion:
EPROM: designation of programmed
•
plant
RAM: replaced by space (20H)
4 42 to 50 Generated on:
EPROM: date of EPROM programming
RAM: replaced by space (20H)
131
B8576541..03 Printer PT8S/PT89
Interface 1
Parameter Byte Description Example
11 65 to 67 component type PT
12 68 to 76 interpreter name (*) PT88
13 77 to 79 interpreter version nn
14 80 to 88 procedure name (*) IAUFPr88
15 89 to 91 procedure version nn
Interface 2
Parameter Byte Description Example
16 92 to 94 component type RK
17 95 to 103 interpreter name (*) RK512
18 104 to 106 interpreter version rm
19 107 to 115 procedure name (*) P3964R
20 116 to 118 procedure version 1m
119 end identifier ETX
(03H)
132
B8576S41-03 Printer PT88/PT89
Time BlISter: the master provides the system time; i. e., it must
be able to make this available at any time.
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 OP 525 only if the
latter has been designated time master.
133
B8576541-03 Printer PT88/PT89
Byte Significance
1 0
2 1 1
/10 s 1100 s
3 s
4 min
5 h
6 day
7 month
8 year
9 0
134
B8576541-03 Printer PT88/Pl'89 0
The job number 218 is fixed on the OF 525 for the jobs "read /
write date and time".
Whether the CPU transfers the date and time depends on the source
length specified (QLAE = length of the data to be transferred):
QIAE == 5 -.mts
•
The CP is declared as master/slave by means of the master identi..
fier and the date and time are transferred.
You should also take into accotmt that the date and time are
adopted by the OP only during the handshake (synchronization via
inputs or after reading a different clock).
Note: the source area from which the data are transferred to the
CP should be a data block.
135
B8576541-03 Printer PTBS/PT89
Note:
By means of this job the CPU can read the date and time from the
OP (if the CP has already been declared time master with SEND
DIRECT 218.
Note: the data read only 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).
136
B8576541-03 Printer PT88/PI'89
Empty page
137
B8576541-03 Printer PT88/PT89
17 Error Handling
Errors occurring while the CP 525 is operating with the PTBSI
PT89 can have different causes as follows:
no more paper
no more ink
printer offline
printer switched off
cable disconnected
cable defect
wrong cable
138
B8576541-0S Printer PT88jPT89
1. DIe error mmber in the PAlE byte of die band] lug block (BOB)
•
the data exchange between the CPU and the OP either is not
started or was aborted.
139
B8576541-03 Printer PT88jPT89
Since only four bits are available for the error munbers in ANZW,
one error number normally indicates one of several error states.
Because of the limited number of error munbers·, the ANZW is
suitable for evaluation by the STEP 5 user program.
140
88576541-03 Printer PT88jPT89
,
The errors are distinguished by the various sources of error as
follows:
•
following pages.
141
B8576541-03 Printer PT88/PT89
The error message area of the SYSTAT is a data area in the dual-
port RAM, which can be read by the CPU using the special job
RECEIVE DIREOT 200. For each interface the error message area of
the SYS~T covers three error message bytes and an additional
status byte. A detailed description can be fOtmd in Section 16
"Special jobs carried out by the CPU".
To clear the error entries in the SYSTAT, call the special job
RESET DIRECT 200 (for more details see Section 16).
142
B8576541-03 Printer PT88jPT89
143
B8576541-03 Printer PT88/PT89
144
88576541-03 Printer Pr88fPT89
Remedy
145
B8576541-03 Printer PT88/PT89
----
llH
--~ -------------------
b) ALL job without request or direct
job despite overload
----
12H
--~ -------------------
c) Wrong sequence for handshake by
PC
----
13H
--~ -------------------
d) Illegal job type or illegal job
number (>223) for direct job
----
14H
--~ -------------------
e) Illegal acknowledgement fran CPU
during handshake
146
B8576541-03 Printer PT88/PT89
Remedy
147
B8S76S41-03 Printer PT88jPT89
----
17K
--~ -------------------
c) Area is masked by STEP 5 program
(bit 7 im ANZW = 1)
----
1EH
--~ -------------------
d) Field length for "read SYSID"
(RECEIVE DIRECT 223) too small
----
1FH
--~ -------------------
e) "Read date/time" (RECEIVE
DIRECT 218) illegal, CP is set
as time slave
148
B8576541-03 Printer PT88/PT89
Remedy
149
B8576541-03 Printer PT88jPT89
23H d) FRAME:
No frame (list header/trailer) has been
prograumed on the CP.
---- - ~--------------------
24H e) The job "update SML" cannot be executed,
because no SML has, as yet, been
triggered on the CP 525.
150
B8576541-03 Printer P1'88/P'l89
Remedy
•
151
B8576541-03 Printer PT88jPT89
152
B8576541-03 Printer PT88jPT89
Remedy
- Do not send any new PC jobs
or
- Switch selector to RUN
•
Check structure of DB H-RECORD and correct.
153
B8576541-03 Printer PT88jPT89
154
B8576541-03 Printer PT88jPT89
Remedy
155
88576541-03 Printer PT88jPT89
Causes:
- printer is not ready to receive
(the error rmmber OE2H or OFFH has been
entered in SYSTAT)
- messages are arriving more quickly than
the printer can print them out
- a long list which cannot be interrupted is
being printed out
156
88576541-03 Printer PT88jP189
Remedy
Correct:
- printer switched on? cable plugged in?
paper run out? ink run out? printer offline?
- find out why so many messages are arriving and take action to
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 Printer PT88jPr89
----
3lH
-b) Wrong output format
~--------------------
in FRAME
----
32H
-c) Value
oc--------------------
for variable type "process status"
outside range of values ( O<=VAI1JE<F: 7)
(data source: data block from the CPU)
----
338
-d) PSL: the
~--------------------
DB address of an output field
is outside the area of the data which
were transferred by the cpu. The DB
address indicates invalid data
---- - ~--------------------
34H e) Frame: the DB address of an output field
is outside the area of the data Which
were transferred by the CPU. The DB
address indicates invalid data
158
B8576541-03 Printer Fl88/Fl89
Remedy
- Check the format parameters for the dynamic fields of the PSL
with COM 525 and i f necessary correct
- Check the contents of the DB on the CPU side and correct
- Check the format parameters for the dynamic fields of the frame
with COM 525 and if necessary correct
- Check the contents of the DB on the CPU side and correct
The contents of the data word in the data block must not exceed
the specified range of values
•
- Hatch the DB address of the dynamic field to the length of
the data block
- Match the length of the data block on the CPU
159
B8576541-03 Printer PT8SjPTS9
160
88576541-03 Printer PT88fPT89
Remedy
161
B8576541-03 Printer PT88/PT89
02H 2H I
---~----~-~~~---~~-~-~~--~--
162
B857654l-03 Printer PT8S/Fl89
Remedy
163
B8576541-03 Printer PT88/Pr89
----
118
----
7H
--~ -------------------
c) Area is masked by STEP 5 program
(bit 7 im ANZW = 1)
----
lEU
----
7H
--~ -------------------
d) Field length for "read SYSID"
(RECEIVE DIRECT 223) too small
----
1FH
----
7H
--~ -------------------
e) "Read date/time" (RECEIVE
DIRECT 218) illegal, OP is set
as time slave
164
B8576541-03 Printer PT88/P1'89
Remedy
•
from the PO you should make sure that no more CPU jobs are
running before writing to an interface. The SYNCHRON HDB clears
the job statuses in the dual-port-RAM but not the SYSTAT entry.
165
B8576S41-03 Printer PT88/fT89
238 7H d) FRAME:
NO frame (list heade~/trailer) has been
programmed on the CP
----
24H
----
7H
-e) The job "update SML" cannot
~--------------------
be executed,
because no SML has, as yet, been
triggered on the CP 525
166
88576541-03 Printer PT88)PT89
Remedy
167
B8576541-03 Printer PT88/P'1'89
168
88576541-03 Printer PT88/Pl'89
Remedy
- Do not send any new PC jobs
or
- Switch selector to "RUN"
•
Check structure of DB H RECORD and correct.
169
B8576541-03 Printer PT88/PT89
170
B8576541-03 Printer PT88/P1'89
Remedy
171
B8576541-03 Printer PT88/PT89
----
3lH
----
All
- ~--------------------
b) Wrong output format in FRAME
----
32H
----
All
-c) Value
oc--------------------
for variable type "process status"
outside range of values ( o<=VAI1JE<= 7)
(data source: data block from the CPU)
---- ---- - ~--------------------
33H All d) PSL: the DB address of an output field
is outside the area of the data which
were transferred by the CPu. The DB
address indicates invalid data
----
34H
----
All
-
e)
~--------------------
Frame: the DB address of an output field
is outside the area of the data which
were transferred by the CPU. The DB
address indicates invalid data
172
B8576541-03 Printer PT88/Pr89 ..
Remedy
- Check the format parameters for the dynamic fields of the PSL
with COM 525 and if necessary correct.
- Check the contents of the DB on the CPU side and correct.
- Check the format parameters for the dynamic fields of the frame
with COM 525 and i f necessary correct.
- Check the contents of the DB on the CPU side and correct .
The contents of the data word in the data block must not be
outside the specified range of values.
173
B8576541-03 Printer PT88/PT89
174
88576541-03 Printer PT88/PT89
Remedy
Match up the message text on the CP S25 with the message record.
175
B8576541-03 Printer PT88jPr89
Causes:
- printer is not ready to receive
(the error munber OE2H or OFFH has been
entered in SYSTAT)
- messages are arriving more quickly than
the printer can print them out
176
88576541-03 Printer PT88/PI'89
Remedy
Correct:
- printer switched on? cable plugged in?
paper run out? ink run out? printer offline?
- find out why so many messages are arriving and take action to
reduce the number
•
- wait and then send DB M RECORD again; further messages can
only be processed after this log has been printed out.
177
B8576541-04 Printer PT88fPI'89
178
B8576541-04 Printer PT88/PT89
Remedy
- Check cable
- COM 525 loaded?
- Hardware error at PG or CP
- Check cable
- COM 525 loaded?
- Hardware error at PG or OP
179
88576541-04 Printer PT88/PT89
180
B8576541-04 Printer PT88/PJ:89
Remedy
181
B8576541-04 Printer PT88jPT89
182
B8576541-04 Printer PT88jPT89
Remedy
Replace module.
Replace module.
183
B8576541-04 Printer PT88/PT89
184
88576541-04 Printer PT88/PT89
Remedy
•
185
BS576S41-04 Printer PT88/PT89
E2H b) Timeout:
printer has not reacted for more than
one minute
186
88576541-04 Printer PT88jPT89
Remedy
Compare data rate settings on printer and procedure (COM 525) and
•
if necessary readjust.
187
88576541-04 Printer PT88jPT89
Vhat does it mean when fill jug characters are output by the
prfnt:er7
cause: the data in the data block of the CPU could not be
converted.
Remedy: the CP 525 signals the error to the CPU. Check under the
corresponding error nwnber for the ANZW and for SYSTAT
(Section 17 "Error handling").
What does it mean when t:he PC writes t:o the CP 525 (ttansfer.
delete) but; the operatiDn is DOt carried oat?
188
BS576541-04 Printer PT88/PT89
What does it JDeaD when die date and time aze Oid:pd: :Incorrectly?
cause: If a data block has been specified as the source for date
and time, the data must be entered in the specified data
word in the following order:
DL DR
time: DWn S M S z= seconds / M == minutes
DW n+l H H == hours
Note: If the data is read with the RECEIVE DIRECT 218 job,
it is entered in the data block as shown below:
DV no. DL DR
time: n ms S
n+l H H
date: n+2 D M
n+3 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.
189
88576541-04 Printer PT88/PT89
What does it mean whea an UIN8Ilted fOJ:lll feed takes place during
t:he ClUI:pE of a list?
cause: If the lines to be output are longer than the page width,
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.
What does it mean wheD fDdividual. lines are DOt printed out?
190
18576541-04 Printer F1'88jPT89
1Ibat does it mean 1Jben l: ffnd that t:he pEOgLaaa saaetJmes fits the
BAH aDd .-et:iJDes does DOt. When I am t:raDs£erriDg die CP 525
user pmgna :fI:aa the PG t=o the CP?
cause: You may have transferred the whole program at one time;
and then another time transferred the parts of the
program separat:ely. When the. parts of the program are
transferred to the OP in a different order. the memory
manager may itself require more space, leaving less space
for the program.
191