SINEC L1 Local Area Network, CP 530 Manual
SINEC L1 Local Area Network, CP 530 Manual
-
Local Area Network SINEC LI
Programming
Instructions
Operating Instructions
COM 530 on the PG 675
GWA
/ Operating Instructions
‘, Instructions 4NEB811 0545-02
COM 530 on the PG 615
Programming GWA
Instructions 4NEB811 0546-02
Operating GWA
Operating Instructions
Instructions 4NEB811 0520-02
COM 530 with S5-DOS
Operating GWA
Instructions 4NEB811 0521-02
Operating GWA
Instructions 4NEB 8110730-02
i,_
SIEMENS AKTIENGESELLSCHAFT
I
SIEMENS
SIMATIC S5
SINEC LI Local Area Network
Instructions Order No.: GWA4 NEB 811 0545-02d
1.1 Application
The interconnection of programmable controllers for the pur- The BT777 bus terminal constitutes the link between the indivi-
pose of implementing distributed and hierarchical automation dual nodes and the bus.
structures and the resultant enhancement of communications —
between the individual PCs is gaining in significance. Two
SIMATIC S5 local area networks are available for this pur-
pose:
D
● Bus (4-core, shielded) I PG
— In the case of the S5-1OOU, S5-1OI U and S5-I15U program- Fig. 1-2 Principle of operation as maater processor
mable controllers, the connection is made via the existing
programmer interface.
N. B.: The 100 CPU cannot act as a slave with the S5-IOOU
Pc.
— If the programmer interface is to be kept in the case of a
slave S5-I15U, a CP 530 can also be plugged into the slot to
assume the slave interfacing function. The S5-135U and S5- flo51cr
150U PCs always communicate with the SINEC L1 bus via
a CP 530 communications processor.
1-1
1. LJesctvptlon
----
l—
1-2
I 1. Description
1.2.3 Structure
The bus interface drives the SINEC LI bus in keeping with the
I User-
submodule
I
parameters entered by the user in the user submodule. The —
CPU of the master PC can place data on the SINEC LI bus via
the dual-port RAM and fetch data from the bus. The dual-port
RAM is, as it were, a communications window between the re-
levant CPU and the CP 530. The operator can enter parame- E~p}H
ters via the programmer port and observe, control or test the u
bus.
Bus
interface
n
1-3
1. Description -
The following three types of memory submodules are availa- The CP 530 can be programmed with two lists (analogous to
ble for storing the user program in the CP 530: the programming of a SIMATIC S5 CPU):
The RAM submodule, on the other hand, is mainly used for These lists are generated by the PG 675/PG 615 programmers
checking out the user program during system start-up. It with the support of the COM 530 software package and can
should only be used as a permanent program memory if the be written into an EPROM, EEPROM or, if there is no memory
battery in the PC power supply is replaced at intervals of one submodule plugged in, direct into the internal RAM of the CP
to two years. 530. The programmers are connected to the CP 530 by means
of a cable with 15-way connector (as for the S5-l15U/S5-
Caution: 101 u).
— The RAM loses its data if the CP 530 is taken out of the cen-
tral controller.
— In order to guarantee a safe initial start of the CP 530, the
RAM or EEPROM submodule should first be erased.
~
module Can only be programmed with
2Kbytes 6ES5375-OLC II programmers using S5-DOS or with c?
L
510
1
a,
4Kbytes 6ES5375-0LC21 COM530/615 . slave
c!
.“
8Kbytes 6ES5375-0LC31 [W 530 ——.————.
16K bytes
RAMsubmodul
8Kbytes
16 Kbytes
32 Kbytes
6ES5375-0LC41
6ES5375-OLD1l
6ES5375-0LD21
6ES5375-0LD31
,,,),~
,0 ,,,
*
,+,..:... 3
R“
0
P.,,. ,,’
/’
~6
1-4
I 1. Description
a
Fig. 1-10 BT 777 bus terminal
Master/
I This power supply is not necessary for normal
a~t31ications. I .
~m
Slave
. ,:.
~–––
I
———— ————
4! 1
1-5
‘1. uescrlpuon -
1.3.3 Connections
The BT 777 has terminals for bus cables with up to four cores.
The core pairs for sending and receiving are connected up as
shown opposite (see also cover of bus terminal):
The receiver core pair of the left-hand adjacent node are con-
nected to terminals 1A/2A, while the sending core pair to the
left-hand adjacent node leave at terminal 3A/4A.
The BT777 bus terminal contains a relay with four normally clo-
sed contacts. If the connector on a slave or master is with-
drawn or if the power supply is disconnected, these contacts
bridge the electronics of the bus terminal so that bus traffic
for the other nodes remains unaffected (the bus terminal is a
passive device).
—
exceeded, an extra power supply is necessary (see Section
1.3.4).
-s 2“5‘m/4km 1
The connecting cable to the PC/CP can be extended to 25 m
(165 ft). If the necessary cross-sectional area (1.3 mm’ or
16 AWG) is not available for the supply cables, an external
power supply must be provided (C= 5V, D = OV). Fig. 1-15 Bridging a noda that has failed
1-6
I 1. Description
Remedy:
— Connect external 5Vpower supply to C.
Connect M (OV reference) potential to D.
— Do not open jumper Q8 in the bus terminal.
— Monitor the voltage of the non-Siemens node with a relay;
connect the NC contact via the two terminals at the top 777 GL
(Iabelled x and yin the case of bus terminal BT 777-~xxxx).
Terminal y carries ground potential (like terminal D). The bus G
terminal cable can be unplugged if x and y are shorted. This O-
is done by:
@
* disconnecting the power supply of the non- Siemens
node (k closed)
* or operating a manual switch (h closed)
1-7
1. Description m
IIsolation if powered
a) via the PC/CP
Input/Output * 5V Veff = 500V
input/Power supply + 5V Veff = 500V
Power supply/Output — —
Ib) externally
Input/Output * 5V Veff = 500 v
input/Power supply PC/CP Veff = 500V1) Veff = 500 Vl)
Power supply PC/C P/Output Veff = 500V1) Veff = 500 Vl)
a) SIMATIC cable for distances of up to 1 km (0.6 miles) Orders for all cable types to be placed with:
Cable type: AZ1/514 G 5x0.14 mm2 (64912014) ZN-Werkstatt Furth (FSZ Ftirth);
Design: 5 core dia. 0.42 mm/O.14 mmz shielded specify lengths in meters
Outer diameter 5 mm
— Order No.: 6ES5707-IAAO0 Use of customer-specific cables.
Other cables with similar ratings can also be used for SINEC
b) Indoor-type cable for 2.5/4 km (1.5/2.5 miles) (twisted L1. The following technical specifications can be used as an
pairs) aid to selection:
Cable type: 2YSTCY 2x2x0 .6411.5 – Loop impedance < 110 Q/km
Design: 2x 2 core, dia. 0.64 mm/O.32 mm2, (22 AWG) = 50 nF/km
– Capacitance per unit length
shielded
Outer diameter 7.9 mm Where cables of other manufacture are chosen, however, no
Order No.: 6ES5707-2AAO0 functional guarantee can be given for the maximum segment
length (cable distortion).
c) Buried cable for 2.5/4 km (1.5/2.5 miles) (twisted pairs)
Cable type: 2YSTC 2Y 2x2x0 .64/l.5
Design: 2x2 core, dia. 0.64 mm/O.32 mm’, (22 AWG)
shielded
Outer diameter 9.4 mm
Order No.: 6ES5707-3AAO0
Note:
Increase core cross-sectional area to that required for SIGUT (screw-type) terminals (see 1.5.3).
1-8
1. Description
1.5.1 Environmental Conditions 1.5.3 Technical Specifications of the BT777 Bus Terminal
Mechanical Data
Block-type Compact 1.5.4 SINEC L1 Bus Data
modules version
PCB format 160x260 mm 160x233.4 mm ● Baud rate 9600 bitsls
(6,2in.x10.2in.) (6.2in.x9.2in.)
Frontplate width 43 mm(l.7in.) 20,3 mm(O.8in.) ● Bus cycle time, e. g. for 30 nodes:
Casing 203.2x302.6mm — – 2 bytes of nettdata 0.75s
(approx.8in.xll.9 in.) –64 bytes of nett data 5.2s
Weight — —
– General: Tu = (20+ L~ 1,8 + L, 1,8 + t~) n [ins]
Backplane connector l x 2x
Tu= Bus cycle time for n nodes
(ES 902, range 2, 48-way)
with identical message length (m)
Front connector 2x 2x master — slaves
(Cannon socket connector, 15-way) with identical message length (s)
1 1 slaves — master
RUN/STOP mode selector
L~= Number of bytes, master
LED displays 4 4 L, = Number of bytes, slave
RN (RUN) tQ 20 ms, for cross communications only
=
Note
The S5-I15U power supply modules can serve only one com-
pact module (adapter casing):
Power supply module —
6ES5951-7LB12(3A) -
6ES5951-7LB21 (7A) 1 x 530 compact
6ES5951-7LDI 1 (15A) 1 x 530 compact
1-9
I 2. Installation
Block-type CP 530:
186, S
}
Fig. 2-1 Block-type CP 530
CP 530 compact:
b-
173
2-1
-
2.installation
The BT 777 bus terminal with its terminals on both sides to the
SINEC LI bus and the connecting cable to the serial interface
on the relevant node should be kept separate from all input
and output cables.
A clearance of at least 10 cm (4 in.) should be observed bet-
ween the SINEC LI bus cable and adjacent power cables.
2-2
3. System Start-up and Troubleshooting
3.1 Self-Test
.—
RUN STOP MF BF Cause Remedy
3-1
a. ays~em alarwup ana Irourxesnooung -
● CP 530 as master
– Polling list required
– Interrupt list required where applicable
– No SINEC slave no.
CP 530 as slave
– No polling list permitted
– No interrupt list
– Slave no. on SINEC LI required
The polling list contains the sequence in which the slave PCs
connected to the bus are polled from the master and is used
at the same time for checking the number of nodes participa-
ting in the bus: if a referenced node does not reply, the red
“Bus fault (BF)” LED on the frontplate of the master indicates
—. a bus fault.
The user can change the sequence of the bus cycle as a func-
tion of process events by entering an interrupt list. In the event
of an interrupt the normal polling is halted and the interrupt list
is accessed. The slave PC triggering the interrupt is then loca-
ted and serviced. The bus cycle is then resumed at the point of
interruption. This list describes
3-2
I s. ayslem alarl-up ana Iroumesnooung
The CP 530 and all events on the bus can be observed and
controlled by means of the “COM 530” program package.
7
Moster
The status of a maximum of two slave mailboxes can be se-
I I
I-311ig
lected from the programmer “TEST” function. In the case
of the PG 615 programmer, only one mailbox can be selec-
ted. The next send/receive mailbox on the CP 530 to be
sent to the relevant slave or the one last received by the slave 2
slave is displayed on the programmer.
The operator can force a send mailbox for one slave cycle slave 3
with the aid of the “STATUS” function: the STATUS display
is frozen and all data can be modified. The send mailbox is Moster
E,m
brought into the bus cycle once by selecting a programmer
softkey. By setting a “Programmer priority” identifier, the
operator can disable the CPU-CP 530 bus interface so that
the CPU of the master PC can no longer “get in his way”
when he is forcing a send mailbox for one slave cycle.
3-3
3. System Start-up and Troubleshooting _
P
FOX-PG
o
Bus
5 I o ve
n
\ Interface adapter
for FOX- ?!i
S [ ave S I ave
k m
s OL1 e
Fig. 3-3 Using the PG 675 programmer for observing the SINEC L1 network at message level
Ordering data:
Adapter 6ES5321-OAA11 (ZN Werkstatt Furth)
Diskette 6ES5875-OCA11 (GWK, Diskette for the PG 675 programmer)
3-4
I 4. Appendix
x4
x5
—------x 1
x3
x4
— x 2
x5
4.1.1 Backplane Connectors Xl and X2
d b z d b z d b z
4-1
4. Appendix -
—
4.1.3 Serial Interfaces X4 and X5
12 M (internal OVreferenceOrgrOund)
I 14 I +5.2V I
I 15 I M (internalOVreferenceOrgrOund) I
4-2
I 4. A p p e n d i x
4.2 Adress Assignment on the S5 Bus
4.3 Constraints
r-–l ~;
Page CPU CP530
4K
addressing
I
1 to 254 61 Kto 62 K 1 Kto 254 K
61 K
62 K =<
Page addressing
4-3
4. Appendix -
Mounting plate for bus terminal 3TX6501 Lightning protection cable 6ES5707-4AAO0
Fuse for bus terminal TR5 F0,5A 2 x 2 x0.32 mmz (22 AWG) + 16 mm 2
4-4
I
SIEMENS
SIMATIC S5
SINEC LI Local Area Network
Programming Instructions Order No.: GWA 4 NEB 811 0546-02d
—
Contents Page Page
—
I
1. Principle of Operation
S5 1 15U
r
SINEC LI is a local area network that enables SIMATIC S5
programmable controllers of the U range to communicate Master PC
with each other (Fig. 1 -1). It operates on the master-slave
principle. Ps CPU CP
A single programmable controller 530
-the Master PC -
coordinates and monitors the entire data traffic in the SINEC T
I
LI network, as well as the routing through and monitoring of .
programming functions via the bus (Section 1.4). The other I
programmable controllers participating in the network are I
automatically BT 777 bus terminal
- the Slave PCs -. S5 101U
The master PC must have a CP 530 communications processor, Slave PC
which assumes the master function and controls the entire
flow of information.
S043e
I
Fig. 1-1 A typical SINEC L1 configuration
1-1
1. Principle of Operation
The CP 530 of the master is not allocated an explicit node number, but the logical number “O” or the number “32” as destination
address for sending from the slave to the master.
All slaves must have a slave number through which they can be referenced.
This number must lie between 1 and 30. The slave number cannot be assigned more than once in the network. Slave numbers
allocated more than once or outside the permissible range of 1 to 30 result in network errors.
In the case of a slave with CP 530, the slave number is entered with the COM 530 program package via a programmer and stored
on a memory submodule of the relevant CP 530 (cf. Section 2.2.1).
In the case of slaves without CP 530, the slave number is defined in a function block via the relevant CPU (for S5-101 U cf. Section
2.4.1 and for S5-115U Section 2.5.2.2).
The network can be compared to a post office that receives parcels and distributes them further to the various households. The CP
530 master is the post office, which is supplied with large numbers of parcels for the various households by a mail van (the
master CPU), which, in turn collects parcels that have been delivered from the households to the post office.
.—
Master PC
I I
I i
1-2
1. Principle of Operation
In order to exchange data between a master and a slave in the SINEC Ll”network, a connection first has to be established in order
to ensure that the data arrives at the correct partner.
The establishment of a SINEC L1 connection is always introduced by a “Break” (zero signal), which simultaneously clears an ex-
isting connection. After “Break”, the master sends the number of the desired slave PC and expects an acknowledgement with its
own slave number as a reply from the referenced slave.
This connection is thus now established and has exclusive use of the bus. If the slave sends data back to the master, the latter also
acknowledges.
A new connection can only be established again after a “Break” signal.
The driver of the mail van ensures that the parcels are delivered correctly by only delivering them if the recipient is at home.
P!a. .,.:.:::::::Q:::5’
(Flag
......... . :
byte) ~ :: Protocol f r a m e w o r k !;
.............................. .
::
: :
Status byte :;
: : ::
:
: ; Length ::
Length ::
: i Block check :;
De$t)nalton : characler 1 ::
. ;
So”rce ::
: ; ::
; : ::
. ::
. : :.
Dala ::
::
: : ::
Data ::
: ;
::
: : ::
1: : :E y ::
::
FIag, .rda,e : : ::
: ; Block check :;
: { character2 ;:
5056, : : . . . . . . . . . . . . . . . .
1-3
-
1. Principle of Operation
Coordination of bus traffic with the user programs of the master and slave PCs differs depending on whether the PC participates
in bus traffic direct via the programmer port or via a CP.
PCs that are connected direct use coordination bytes exclusively, while PCs connected via the CP 530 employ data handling
blocks.
1-4
I
1. Principle of Operation
S 046e
1.1.4.1 Connecting the Slave PCs via the Programmer Port 81t 7 B,t O
The coordination bytes provide the user program with a CBR c—————— ERROR Recewe er?or in last
powerful tool for interchanging data via the bus and partici- transfer with master
pating in the bus control. SLAVEFAlL Atleast one slave onthe
The coordination bytes are defined as a flag byte or left-hand bus has fatted
data byte when initializing an S5-CPU participating direct in 8US RUN BUS is In RuN state
bus traffic: “Receive” coordination byte = CBR, “Send” reserved
coordination byte = CBS.
INTERRuPT Th,s message comes w!th
Interrupt
RECV-PRM Operating system may accept data from
BUS In the rece!ve maolbox
❑ ‘itfr0mthesend,”gnr3de
B!? 7 BIt O
CBS
1 I I
L-
I__&
tienderrof!nlas~
transfer w!th master
reserved
❑ B forrecelver
it
Data Exchange
o After the send mailbox has been filled with the data to be sent, the “Permission to send” coordination bit (CBS, 7) is set via the
user program and invokes the operating system to send the data. The operating system does not reset this bit until it has sent
the data and received the appropriate acknowledgement, and new data can then be sent.
0 The user program invokes the operating system to receive data from the bus and enter it in the receive mailbox by setting the
“Permission ~o receive” coordination b~t (CBR, 7). When the data has arrived, the operating system resets the “Permissi~n to --
receive” bit and the user program can accept the data.
When sending and receiving data, the error bit “O” can be evaluated in order to decide whether, for instance, a transmitted message
containing errors is to be repeated.
The sending of data via the CP 530 as master or slave is analogous: A data or flag area in the PC is defined as the send mailbox by
initializing the SEND block and transferred to the CP 530. The data packet that has been received is transferred to the PC by the
RECEIVE call and the packet specified in the initialization parameters written into the data or flag area. The “Condition code word”
of the data handling blocks also has coordination bits; these are described in the Appendix.
1-5
m
1. Principle of Operation
Bus Control
The user programs of all slaves can trace and influence the sequences on the bus via coordination flags. When the “Permission to
receive” bit (CBR, 7) is reset (i. e.: = data arrived), the operating system copies a number of bits from the bus status byte into the
SBR; these bits can be evaluated by the user program:
o Interrupt (CBR, 4)
The data just received is express data (see Section 1.3)
O (CBR, 3) is reserved
In addition, the operating system of the slave sets the “Error” bit (CBR, O) to indicate whether the last data transfer took place
without error.
The coordination information of the bits in CBR 1/2/3/4 is also transferred from the bus to the user program of the PC via the
RECEIVE data handling block; bits 6 and 7 are sent in addition to the user program of a master PC (CP 530 = master): the sender is
in the STOP or RUN mode.
When the “Permission to send” bit (SBS, 7) has been set, the user program can also send bit messages to the bus master or to the
receiver:
o Interrupt (CBS, 4)
This data is to reach the receiver as express data (see Section 1.3)
O (CBS, 3) is reserved
O Error (CBS, O)
—
During the last data transmission, an error has occurred from the point of view of this slave
The coordination information of bit CBS 4 is also transmitted from the user program to the bus via the SEND data handling block;
in addition, bits 6 and 7 are sent to the bus controller from the user program of a master PC (CP 530 as master): the addressee is to
enter the STOP or RUN mode.
RUN and STOP are only possible with slave PCs connected direct via the PG (programmer) interface.
r
~} D a t a
The user specifies the number of bytes to be sent (from the
send mailbox) with the parameter QLAE from the SEND data Data byte61 D a t a byte62
handling block. Data byte63 Data byte64
The value of QLAE is obtained as follows:
QLAE = length + 2 bytes header
where length = the number of bytes of net data. Receive mailbox
The user defines the number of bytes of data received by the I SBR Length
parameter ZLAE in the RECEIVE data handling block. ~1 Header
Source Not used ~J
The value of ZLAE is as follows:
ZLAE = length + 4 bytes header Data byte 1 Data byte 2
where length = the number of bytes of net data.
Data
.— ‘Caution: The header of the send request must always be re-
set (OOOOH). Exception: Direct slaves communicating via the Data byte 61 Data byte 62
CPU should be switched to STOP or RUN (cf. description of
SBS). Data byte 63 Data byte 64
1-6
1. Principle of Operation
Coordination information:
.
PC with CP 530 as master Bit 7 Bit O
pendix). reserved
Caution:
Even if only the S6S (status byte, send) is sent, at least two by- Bit 7 Bit O
tes must be transferred to the CP 530 by the send request
(data handling blocks) (e.g. to switch directly connected
SBS I I I
CPUS to the STOP mode). These are the SBR (status byte, reserved
receive) and a meaningless slack byte (see table on p. 1 -6).
reserved
reserved
reserved
L
PC STOP
Slave PC is to enter the RUN state*
1-7
m
1. Principle of Operation
Coordination information:
Led
BUS-RLJN B u s IS n R U N state
an Interrupt
Blt 7 B1t o
“ ST
II
INTERRUPT Slave
Reserved
requests BUS
Interrupt
1-8
I
1. Principle of Operation
The user defines the bus cycle by specifying the number and sequence of the slaves in the list, i. e. the order in which the slaves are
referenced by the master. The polling list contains a maximum of 64 slave numbers, which need not all be reserved; the bus cycle
terminates with the last slave number entered and begins again from the beginning.
At the post office, there is a timetable tellingthe driver of the van the Order in Which the households are to be visited during a shift. –
Normally, all are visited once; however, it may also happen, for example, that a small business concern (with the slave number “3”)
has to receive a better service.
1-9
1. Principle of Operation
-1
ing of one entry in the polling list; i. e. establishing a connec- Master Slave
tion with this slave and exchanging status information and
data. Since SINEC LI operates cyclically and completely
asynchronously with the user program of the master and slave
PCs, it may happen under certain circumstances that there is
no data on the bus. On the other hand, data packets can also
be sent in response to an input status (i. e. process-con-
trolled). In this case, only the status bytes are sent. Data
o 1 No data
BUS state
*
traffic takes place between the slave and master if the user Slave state
program enters bus address “O” (direct) or “32” (request +
number for SEND block) as the data destination (bus master).
I Data
>
Slave state
< With acknowledgement
Slave state
4
Data I
acknowledgement
*
I Data
>
Q) The mail van runs to and from the post office without par-
cels.
@ The van brings a parcel to the recipient, but does not take
a parcel back to the post office. acknowledgement
@ The van sets off for the receiver without parcels and brings *
a full parcel back to the post office.
@ The van delivers a parcel to the recipient and takes one Fig. 1-9 Schematic of master — slave traffic
back with it to the post office.
1-1o
1. Principle of Operation
Elm
ber between 1 and 30 in the send mailbox, the bus auto-
matically carries out slave-to-slave data traffic when the num- Master
ber in the polling list arrives at this slave in the course of the
bus cycle. Slave-to-slave traffic is carried out without direct
participation of the master.
(Polling list) (Destination of
The latter only performs monitoring functions.
i nterslave
traffic)
1 1 !
I I
I
1 BUS state I 1
1 * ! 1
1 I 1
I + I
Slave state I I
I
t I I
I I t
1 I I
t I I
t 1 1
t 1 1
I
1
1
1
- 1
I
I I I
1 1 acknowledgement 1
I I I
I 1 1
1 1 I
1 1 t
I 1
0
1
1-11
m
1. Principle of Operation
+ d
R
LLJ E@
4
1- 1
2153 2
3 3m
4 4
.— S 049e
I 1
Fig. 1-11 Slave-to-slave traffic in the post office model
1.2.4 Broadcasting
Each bus participant (master or slave PC) can send a message “to all” (broadcast) by using slave no. 31. In the case of the
master, this message either consists only of the status byte (including STOP/RUN request to the PC) or of a status byte and
data.
The slave can only broadcast if there is data to broadcast. Broadcasts are not acknowledged.
In the post office analogy, this is the equivalent of the post office or individual customers sending a circular to all other house-
holds including the post office.
1-12
1. Principle of Operation
Slave 5 050e
1.3.3Time Conditions in Connection with Interrupts addressing
1 2 3 4
Interrupts are requested by the slave operating system during I I I *
the addressing phase, i.e. interrupts are possible at each
I + + +
transition from the current slave to the next slave in the polling
list, but not during ongoing slave data traffic.
(Fig. 1-12) 0000 I *
I
o 400 ms Tme
00000
0 500 ms Time
Slave
addressing
1-13
m
1. Principle of Operation
It is not only possible to exchange data with other nodes on the SINEC L1 LAN, but also to download programming functions in the
other nodes.
.
Fig. 1 -15a gives a concise overview of the various configurations– ranging from the source programmer or PG/536 to the end node.
These configurations can only be implemented with S5-DOS pro.grammers. The PG 615 programmer is capable of handling the PG
- CP 530- END configuration only.
Conditions:
When implementing programmer functions, the CP 530 master on which they are to be executed must be in the STOP mode.
Addressing:
a) CP 530 master without polling list (gateway); only programmer functions can be downloaded.
b) CP 53o master with polling list (L1 bus master); In the RUN mode, normal LI data traffic is carried out; In the STOP mode, pro:
grammer functions can be-implemented.
SINECH1
I I
I
nPG/536
‘Ux +
m
535
n
.ux4)~ .ux4)~1)Mux4z’1)Mux4)+
-. END
n
END
2)
1) This CP 530 need not have a polling list (GATEWAY); the CP 530 is always in the STOP mode.
2) In the case of the S5-150 U and S5-135 U (single-processor mode), an MUX must be connected.
3) With this CP 530 master, the programmer bus address must be defined in line 7 of the SYSID.
4) MUX possible, but not mandatory.
Fig. l-15a Configurations for implementing programming functions on the CP 530
Caution: All nodes connected to the programmer bus must have programmer bus capability.
1-14
I
1. Principle of Operation
CONFIGURATION No. 1 Programmer and Data Bus via One Bus Cable
J- L
r CP
530
:Pu
@
b)
CP
530
CPU
@
b)
CP
530
L_--: -
PG
L1 L1 L1
PG685 ~ —
.
—
1!“ L
Fig. 1 -15b Programmer/data bus via one bus cable
b) CPUS (e.g. 941/942) programmed as PROGR. BUS SLAVES, e. g. @ / @ /@ (see Programming Example for programming of the
CPUS as PROGR. BUS SLAVES).
Function: In normal LAN operation (L1 data bus), only slaves 1 and 2 are serviced by the MASTER. In programmer bus operation
(master CP at STOP), programmer functions can be implemented on CPUS (SLAVES 3 to 5) after making the necessary
bus selection in the menue.
1-15
-
1. Principle of Operation
CONFIGURATION No. 2 Programmer and Data Bus via Two Separate Bus Cables
—.
MASTER
CPU CP
11 CP CPU CP
1
CPU CP
1
b) 530 530 b) 530 b) 530
@ @ @
‘PG
L1 L1 L1 L1
PG 685 ~ —
LI Data Bus
r1
~ ~ ~ -
Fig. 1 -15c Programmer/Data bus via two separate bus cables
Caution: When programming the CP with the ON-LINE function (RAM/EEPROM), the CP must perform a defined start before
carrying out any programmer functions. This is done either by putting the mode selector “- RUN - STOP” or
automatically on each power recovery.
b) CPUS (e.g. 941/942) programmed as PROGR. BUS SLAVES, e.g.@)/@/@ (see Programming Example for programming the
CPUS as PROGR. BUS SLAVES).
1-16
I
1. Principle of Operation
CONFIGURATION No. 3 Programmer and Data Bus via Two Separate Cables with the 943 CPU
MASTER
I
CPU as data and
PG-BUS-MASTER a) progr. bus Slave 1(2)
1 i
CPU CP CP CPU CPU
943 530 530 943 943
941 b) b)
942 _PG
b) Ss Ss
51 L1 L1 2 1 2 1
PG 685
L1 Data Bus
HI
u u u
1
Fig. l-15d Programmer/Data bus via two separate bus cables with the 943 CPU
Caution:When programming the CP with the ON-LINE function (RAM/EEPROM), the CP must perform a defined start before
carrying out any programmer functions. This is done either by putting the mode selector “- RUN - STOP” or
automatically on each power recovery.
b) The 943 CPU is assigned a SINEC LI DATA SLAVE address and programmer bus address with the aid of the “L1-PG/DA” FB (see
Programming Example).
Advantage: During normal data bus operation, programmer functions can be implemented on the CPU after making the
necessary bus selection in the menue. —
1-17
-
1. Principle of Operation
CONFIGURATION No. 4 Programmer and Data Bus with the S5-150U and S5-135U.
I Gateway
I Gateway
I Gateway
— — -i- L 1+ -L
T
150U 5 EP P K R R CP CP R CP
1
CPU
1
530 30 o Proz Proz. 530 530 Proz 530
0
J-Ii11
PG R PG
L1 L1 L1
—
~“,:+
,-II
tt -t L “ _ “ I
I . . . .
Ivlu,x
lti”v’~tiu’’’’uc’’u’!l –
PG685~
I
u u
x I
1~
I
L1 Data Bus I ‘L
The S5-150 U and S5-135 U programmable controllers can only be connected to the LI Progr. Bus via a CP 530 in conjunction with
an MUX (single-processor mode).
Since the CP 530 used fulfills the functions of a gateway, make sure that the bus cable is plugged into the programmer connector
of the CP 530.
1-18
I
1. Principle of Operation
Programming Example
Programming an S5-I15U CPU to be connected to the SINEC L1 local area network as a programmer bus node only
FBI
Segment 1
Name : PG-ADR
ID : PGAD I / Q / D / B I T / C : D KM/KH/KY/KS/KF/KT/KC/KG: K Y
:L RS 57 Load SD 57
OB21 IOB22 Call FBs to specify progr. bus address in the initial start OBS
IU FB1
NAME : PG-ADR
PGAD : KY 1,0 Progr. bus address= 1
1-19
1. Principle of Operation
Examole for FB 255: S~ecifvinq Programmer bus and data slave addresses for S5-115 U CPUS on which data and
. programmer functions are to-be~osskle (called in OBS 21/22).
1-20
1. Principle of Operation
1.5.1 General
By using the RECEIVE 200 data handling block to read the
SYSAT area, errors detected by the operating system of the m-
CP 530 can be passed to the S5 user program.
d SINEC Ll
a 1-----1
E Nr nn
E Nr nn
E Nr nn
d-l
) PG
—
RUN STOP
0
message has two bytes – the error number and the supple- MOOE MODE
mentary error code; both are binary values.
If an error occurs, a call to RECEIVE 200 will cause the “Hand-
1
shake meaningful” bit to be set.
After reacting to the new error, a call to RESET 200 may be
used to cancel the error (or errors) in the SYSTAT area. 2 READY BYTE
The RECEIVE 221 can be called at any time and the “Hand-
shake meaningful” bit is always set. PG
3 PRIO
4 unassigned
5 Error No. 1
7 Error No. 2
9 Error No. 3
1-21
I m
1. Principle of Operation
The error numbers may be broadly grouped in four classes, and most are accompanied by a supplementary error code to further
define the problem (see the table “Error List”).
.
a) Description of a group error number in more detail, e. g. the result of the self-test produces class 1 errors and these can only be
eliminated b exchanging or repairing the module.
Example: 10,7
b: Hardware error 7
1. Error Classes:
In addition to the errors described below, there are also a number of non-recoverable errors, which cannot be reported via SYSTAT
— since those parts of the system necessary to report the error, for instance, are faulted or missing.
Error Class
.- 1 2 3
Byte O
., I 1 1 (
RECEIVE 201 can be used to obtain a read-out ot all slaves
that are recorded in the polling list but have not responded to
the last call of the CP 530 master (“Slave failed”).
This list is updated on every cycle as follows:
— “1” for slave has failed
– “O” for slave is OK
The data transmitted is four bytes long.
RECEIVE 201 is possible on the master CP only.
k
Slave 1 Slave7
1-22
I
1. Principle of Operation
1-23
-
2. Programming
2.1 Overview
L!,,,
tions module(s) (SYSID) , %11!. 911,,
:1., er,. p, l,,,
m
the standard LAD/CSF/STL package and the programs and
{ PWame,,, a,,,y, nen,
parameters can be stored on a data diskette. When pro- :Slaveo.. o”b.s
add, e,, of
.6 !Olu .Coord, na,,on{lq,
gramming the CP 530 off-line with the PG 675 programmer, a ,“
.Sendma,lbo,
.R, ce,vema,, box
program name must be entered; the parameter set for a CP is .
I 1
stored under this name on diskette and can be read back in -,..
.:: ,,
I
when required. L–––––+ H ‘=
d
I
Both programmers can be used off-line and on-line. s5-
Pmm,,,ra,,ig.,”e”,
Siav, no. on b”,
C P U : addr,,, o f
.Coord, na,, on flay
— Off-line: After they have been generated (e.g. on diskette), ,.~
.Sendm, !lbo,
.R, ce, ”ema,, box
I
programs/ parameters are transferred to memory submod- II
f ::?. ,,
ules, which are plugged into the receptacles on the corre- s.,,.
I ?
R
..,..* ,
1- ————-+ “-’
sponding modules. A memory space of 1 K bytes (max.) is D
a“
3) Programming the CPU of a slave PC with the CP 530 as slave (S5-115U/S5-135 U/S5-150U)
These four cases will be described below by way of example of a simple interconnected system.
2-1
I
2. Programming
Since the SYSID area has system-wide validity, not all the pa-
rameters are relevant for the CP 530. Input
An overview of the parameters is given in the table below.
@) Mandatory parameter for SINEC L1 m
n Optional parameter v
SYSID
m
Fig. 2-2 Entry sequence on the programmer
-.
a) b) c) d)
max.
Field Definition Examples Formats length
1 Module identifier CP-530 ace. to. MLFB 8
(ordering code)
2 Firmware version identifier v-1 .2 free 8
3 Plant designation Shop I PLNT4-AG7 free 19
4 Generation date 1—10/83 free 8
2) The user can enter the firmware status applying when his program was generated. When reading on-line, the version identifier
is read out of the CP firmware.
@ O The CP 530 maybe a participant in a common programmer bus (PG bus); the number under which it can be referenced with
programming functions via the programmer interface is between 1 and 30. “Blank” is entered if the programmer is
connected directly to the CP 530.
2-2
m
2. Programming
@ Page frame No.: The dual-port RAM of the CP 530 has a width of 1 K bytes; its location in the address area of the CPU is defined
by entering the page frame number.
Area 1-255 e. g.:
Page frame No. Base adress Addr. range
1 IK 400 H - 7FF H
2 2K 800 H - BFF H
3 3K COO H - FFF H
13 The cold restart characteristics define the behaviour of the CP 530 on recovery of the power supply:
O If “Y” is entered, the CP performs a cold restart and assumes bus operations (e. g. if there is no connection to the master
Pc)
O If “N” is entered, the CP waits for a “SYNCHRON” command of the master PC before starting.
18 The baud rate for SINEC LI specifies the transmission speed on the bus; in this case, all slaves must be connected via the
CP 530 communications processor and the same baud rate set (not yet effective; only 9600 baud possible at present).
Exam~le:
Small’ parts are manufactured in a number of sections in a
factory shop. On 30 April 1985, initializing parameters are SYSID: 1 CP530
defined for the CP 530 bus master of plant section 1, The CP 2 .....,
is plugged into the rack of an S5-115U and is addressed there 3 Small parts plant 1
with the Page No. 1. The CP is to start simultaneously with the 430.04.85
CPU.
12 : 1
13 : N
—
m Input
mPolling list
2-3
I
2. Programming
m
v
Input
Of the five slaves in the polling list, slaves 3 and 4 are allowed
to send interrupt messages.
If both wish to send at the same time, slave 4 is to have priority.
3
Interrupt list
Interrupt list
The interrupt list may contain slaves that are not in the polling => 4 — 3 =>
list,
Interrupt list
=>3— 6=>
2-4
m
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
130 Slave 30
100 Interrupt data
200 Error list from
SYSTAT
201 List of failed slave:
221 SYSTATCP
223 SYS ID CP
142 Control byte,
bus master
.— 143 Polling list
—144 Interrupt list
erases I 200 RESET Error list in SYSTAT
erases 0 RESET All requests on the
CP (resetting of
the CP)
Fig. 2-3 CPU as master
2-5
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
With requests 1 to 30 (51 -80) data is transferred to the CP 530 CPU Request Request Type of request
which the latter passes on to the slaves: .
number identifier
The SYSID, polling list and interrupt list can be transferred to 30 Slave30
the CP with requests 222,43 and 44. 31 to all nodes
32 to master
Caution: 51 Interrupt to slave 1
The CP must be in the “STOP” mode for these requests.
The request RECEIVE 200 may be used to read the error list
from the SYSTAT area, and request RESET 200 maybe used to
reset the current errors.
In the master, the list of failed slaves can be read with request
number 201.
2-6
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
If input 14.0 changes its status from O to 1, a data word (net data) is to be sent from DB 11 (data = DW2) to slave 23.
2-7
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
2-8
m
2. Programming
2.3 initializing and Programming the S5-CPU with the CP 530 as Master or Slave
2.3.2.3 Complete Example with the 150U as Master and the 135U/AG I15U as Slave
Segment 1 Segment 1
0000 OB for power recovery 0000 OB for cold restart
0002 0 0 0 2
0004 A F255.7 ldentifierfor FBl 11 0004 ; A N F225,7 Identifier for FBI 11
0006 R F255.7 Call from OB22 0006 :s F225.7 Call from OB21
0008 0008 :
OOOA OOOA : IU FB111 Call function block FBI 11
Oooc : OOOCNAME : START
OOOE : IU FB111 Call function block FBI 11 OOOE
0010 NAME : START 0010 : BE
0012
0014 : BE
2-9
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1 Segment 1
Name: S Master Name: Receive
2-1o
m
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1
0000
0001 : A N F255.7 ldentifierfor FBl 11
0002 :s F255.7 Call from OB20
0003
0004
0005 : IU FBI 11 Call function block FBl 11
0006 NAME : START
0007
0008 : BE
Segment 1
0000 :
0 0 0 1
0002 ; A N F255.7 ldentifierfor FBl 11
0003 :s F255.7 Call from OB21
0004
0005
0006 : IU FBI 11 Call function block FBl 11
0007 NAME : START
0008
0009 Delete the condition codewords
OOOA of the send and receive requests
OOOB :L KBO
Oooc :T FWIO
OOOD :T FW14
OOOE :T FW20
OOOF :T FW24
0010
0011 : BE
Segment 1
— 0000
0001 :A F255.7 ldentifierfor FBl 11
0002 :R F255.7 Call from OB22
0003
0004
0005 :JU FBIII Call function block FBl 11
0006 NAME : START
0007
0008 Delete the condition codewords
0009 of the send and receive requests
OOOA :L KBO
OOOB :T FWIO
Oooc :T FW14
OOOD :T FW20
OOOE :T FW24
OOOF :
0010 : BE
2-11
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1 Segment 1
Name: Initial Start 0000
0001 :
0005 : 0002
0006 : 0003 A F99.7
0007 : 0004 : I C FB126 Remove from queue (function blockFB126)
0008 :A F255,7 Entry identifier 0005 NAME : ACTIVE
0009 : IC =MOOI lum~ if from OB200r OB21 0006 SSDB : DB1O
OOOA 0007
OOOB :L KH3000 Time loop only executed after 0008 :
OOODMO03 : L KF+l power recovery 0009
OOOF : -F (approx. 5secs) OOOA : A N F99.O Send request initiation in clock
0010 :L KF+O Time taken for CP hardware OOOB :L KTIOO.O pulse example via flag 99.0
0012 ; !=F to execute initial start program OOOD : SE T1
0013 : IC =MO02 OOOE :A T1
0014 : TAK OOOF := F99.O
0015 : IU =MO03 0010
0016 MO02 : 0011 :
0017 0012
–
0 0 1 8 MOOI ; 0013 : IU FB32 Sendtomaster(function b l o c k FB32)
0019 0014 NAME : S-MASTER
OOIA : IU FE1125 Call function block FB125 0015
OOIB NAME : SYNCHRON 0016 :A F99.7
OOICSSDB : DBIO Queues DB (DB 10) 0017 :IC FB126 Remove from queue (function blockFB126)
OOIDSSNR : KYO,l Interface number 1 0018 NAME : ACTIVE
001 E ANZW : KYO,1O Condition codeword FW 10 0019 SSDB : DB1O
OOIF PAFE : FO.5 Initializing error BIT F 0,5 OOIA
0020 OOIB :
0021 :A FO.5 Oolc : IU FB101 Data receive (function block FBIOl)
0022 :R F99.7 001 DNAME : RECEIVE
0023” : IC =END lump if PAFEerrorreported when OOIE :
0024 calling the FB Synchron 001 F
0025 0020 : A N F99.O Change send data
0026 : Interlock flag 0021 : BEC
0027 is reset 0022 :C DB32
0028 0023 :L DL2
0029 0024 :L KBI
O 0 2 A Start 0025 : +F
O 0 2 B L O O P ;IU FB126 Remove Synchron from queue 0026 :T DL2
O02CNAME : ACTIVE 0027 : BE
O02DSSDB : DB1O
O02E A F 10.6
O02F : IC = LOOP lump till FB Synchron executed
0030
0031 :
0032 :
0033 :L KH0400 Wait time till CP completes
0035 MO05 : L KF+l initial start
0037 : -F
0038 :L KF+O
O03A ; !=F
O03B : IC =MO04
O03C : TAK
O03D : IU =MO05
O03E MO04 :
O03F
0040 : FB Synchron executed without
0041 : AN F 10.4 error?
0042 :AN F1O.5
0043 :s F99.7 Userinterlockflag
0044 :
0045
0046
0047 END : BE
2-12
-
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
2-13
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Seament 1 Segment 1
0060 OB for initial start 0000 Generate send criteria
0001 0001 (Example: send in clocked mode)
0002 : A N F255.7 ldentifierfor FBlll 0002
0003 :s F255.7 Call from OB20 0003 : AN F99.O
0004 0004 :L KT050.O
0005 0006 : SR T1
0006 : IU FBIII Function block FB1ll 0007 A TI
0007 : START 0008 :s F99.O Set flag for send initiation
0008 : BE 0009 := F99. I
OOOA :A F99.O
OOOB :L KT050.O
OB21 SPRM-B 150U Pc OOOD : SR T2
OOOE A T2
Segment 1 OOOF :R F99.O
0000 OBfor manual warm restart 0010
0001 0011 FB Cycflag call for
–
0002 : A N F255.7 ldentifierfor FB 0012 distributing the data handling block
0003 :s F255.7 Call from OB21 0013 calls (time base)
0004 0014 (not required if calls are
0005 0015 distributed in the existing
0006 : IU FBIII Function block FB1lI 0016 user program)
0007 NAME : START 0017 : JU FBIOO Function block FBIOO
0008 : BE 0018 NAME : CYKFLAGS
0019
OOIA
OB22 SPRM-B 150U Pc OOIB ;A F 112.2
Oolc :IC FB1l Send to slave 1
Segment 1 001 DNAME : S-SLAVE I
0000 OBforwarm restart after power recovery OOIE
0001 OOIF :A F 112,4
0002 A F255.7 FB identifier 0020 :Ic F B 1 2 Send to slave2
0003 R F255.7 Call from OB22 0021 NAME : S-SLAVE2
0004 0022
0005 0023 :A F 112,6
0006 :JU FB” 11 Function block FB 11 0024 :Ic F B 2 1 Receive from slave 1
0007 NAME : ANLAUF 0025 NAME : R-SLAVE I
0008 0026
0 0 0 9 0027 A F 111.0
OOOA ; BE 0028 :Ic F B 2 2 Receive from slave2
0029 NAME : R-SLAVE2
O02A
O02B :
O02C
O02D : AN F99.1 Program section for changing
O02E : BEC send data
O02F :C DBI 1
0030 :L DL2 For slave 1
0031 :L KF+I
0033 : +F
0034 :T DL2
0035 :C DB12
0036 :T DL2 For slave 2
0037 : BE
2-14
m
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
2-15
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1 Segment 1
Name: S Slave 1 Name: S Slave 2
2-16
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1 Segment 1
Name: E Slave 1 Name: E Slave 2
2-17
I
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Segment 1
Name: Cyc flags
2-18
-
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
Remedy:
Repeat the request in OB2 or initiate an additional CON-
TROL/RECEIVE 100 in the cyclic user program.
2-19
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
The bus will stop at the end of the current bus cycle, i. e. at the end of the polling list.
The RUN mode can be reached again by setting bit 1 (“BUS RUN”).
The bus cycle starts with the first slave in the polling list.
Like data, the polling and interrupt lists are transmitted with
SEND/RECEIVE. After lists are written to the CP, the bus per-
I 1st slave No.
I
forms a RESTART, i. e. all send and receive mailboxes are
2nd slave No.
erased, or requests (including those from the programmer)
are cancelled and the bus cycle is restarted at the beginning
of the polling list.
The interrupt and polling lists have the same format; the inter- ~
rupt list has a maximum length of 30 bytes, while the polling
list has a length of 64 bytes.
Last slave No.
Note:
Make sure the CP is in the STOP mode before writing any lists.
FF(H)
2-20
m
2. Programming
2.3 Initializing and Programming the S5-CPU with the CP 530 as Master or Slave
‘CR’ O = Optional
M = Mandatory
Parameter 1 ‘CR’ o
Parameter 2 ‘CR’ 0
7
.— Parameter 3 ‘CR’ 0 I
Parameter 4 ‘CR’ o I
Parameter 7 ‘CR’
Parameter 12 ‘CR’ M I
Parameter 13 ‘CR’ o I
—.
—
— The SYSID DB must be generated in ‘KH’ format. The terminating
EL Parameter 18 ‘CR’ 7
o parameter ‘CR’ cannot be represented in ‘KS’ format.
2-21
2. Programming
The coordination bytes for receiving (CBR) and sending Send ma i 1 box
(CBS) are permanently defined in flag bytes FY 61 for receive Ow 80 Length of data packet Destination of data
and FY 62 for send. DW 81 1st data item 2nd data item
DW 112 63rd data item 64th data item
Send and receive buffer for the S5-101 U
The S5-101 U can receive and send a maximum of 64 data bytes in a block. A fixed area is reserved in data block 1 of the PC for the
SINEC LI receive and send mailboxes.
AF61.I A slave has failed A slave receives data only if it has been sent from the master.
IC = MO02
AF61.7 Permission to receive= 1 data invalid Data receive
IC = MOOI = O data valid AF61.7 Permission to receive= 1: Data invalid
IC = M 001 = O: Data valid
L DL41 Store data from flag byte 36 onwards L DR40 Source = master?
TFY36 L KF +0
L DR41 ><F
TFY37 IC = M 002
L DL42
TFY38 L DL41 Ist item of data received in FY36
L DR42 (flag byte)
TFY39 TFY36
L DR41 2nd item of data received in FY37
AN F61.7
TFY37
S F61.7 Receive mailbox has been
L DR42 3rd item of data received in FY38
evaluated and slave may
TFY38
MOOI : : accept new data.
L DR42 Qth item of data received in FY39
TFY39
A slave receives four items of data and prepares itself for
receiving new data M 002: AN F61.7
S F61.7 Receive mailbox evaluated and
Data receive slave can accept data
AF61.7 Permission to receive= 1: Received M 001:
IC = M 001 data invalid
L DL41 Store Ist item of data received in FY36
(flag byte)
TFY36
L DR41 Store 2nd item of data received in FY37
TFY37
L DL42 Store 3rd item of data received in FY38
TFY38
L DR42 Store 4th item of data received in FY39
TFY39
AN F61.7
S F61.7 Receive mailbox has been evaluated
and slave may accept new data
M 001:
2-22
m
2. Programming
2.4.2.2 Sending Interrupt: A slave sends an express message once onlv to the
— maste; PC:
A slave sends two items of data to the master.
AN F62.7
S F62.7 Transfer contents of send mailbox
Interslave traffic: A slave sends two items of data to slave 3 S F62.4 to bus with interrupt request
M 001:
A F62.7 If permission to send = 1, new
IC = M 001 data may no Iongerbewritten
into the send mailbox.
A slave is only to send new data if the last transmission was
L KF=3 Destination = slave 3 free of error (CBR, bit no. O = F 62.0); otherwise the send re-
TDR80 quest is repeated.
L KF = 2 Length = 2 bytes
. TDL80 The user can define the number of repetitions by inserting a
counting loop at the position marked@
L FW50 Transfer 2 bytes to the send mailbox
TDW81
AN F62.7
S F62.7 Transfer contents of send mailbox to
MOOI : bus AF62.7 If permission to send = 1,
IC = MOOI no new data maybe written into
the send mailbox
@ AF62.O If previous error:
Broadcasting: A slave sends two items of data to all nodes IC = M 002 Repeat message
— participating in the bus
LK KF+O Destination = master
Caution: TDR80
L KF+2 Length = 2 bytes
This data is not acknowledged by any of the receiving nodes! TDL 80
AN F62.7
S F62. 7 If permission to send = 1, M O 0 2 : S F62.7 Transfer contents of the
IC = M 001 new data may no longer be written send mailbox to bus
into the send mailbox MOO1:
L KF+31
TDR80 Destination = “to all”
L KF+2 Length = 2 bytes
TDL80
MOOI :
2-23
I
2. Programming
The receive mailbox (parameter 13) is similar to the send mailbox; both mailboxes maybe located in different areas and in different
DBs.
The table below contains an overview of the SYSID data possible in the S5-115 CPU. Since the SYSID function is not yet supported
by programmers on CPUS, parameters cannot be assigned with SYSID as described below, but via OB22 using STEP 5 statements.
This is described in Section 2.5.2.
General parameters
@Address of thesendmailbox:
This mailbox may be located in the data or flag area (“D” or “F”). If located in the “D” area, a valid “DB” number must be specified as
well as the word address in this DB at which the send mailbox begins; if in the “F” area, a valid word address is necessary in the flag
area.
@)Addressof thereceivernsilbox
As for the send mailbox;
the send and receive mailboxes may be located in the same area or data block or independently of each other in different areas or
different DBs.
2-24
m
2. Programming
The operating system of the 941 CPU supports operation of the SINEC LI master (CP 530) by means of data handling blocks which
are available as integral function blocks from software release Z08 onwards.
With each data transmission on the Ll, control and status information is also sent. This information is made available to the STEP 5
user program via a coordination byte. The actual data in receive and send mailboxes which the user can access with load and trans-
fer operations.
Slave number:
The slave number is used to assign the number by which it can be addressed on the L1 bus. It must lie in the range 1–30 inclusive.
These bytes represent the interface between the user program and the operating system. They are set as follows by the operating
system on warm restart following power recovery.
2-25
I
2. Programming
2 7 20
I I I rrrrl I
ERROR Receive error in last data
L
~ROR Senderroroccurred
SLAVE-FAIL A slave on the bus has failed during last transfer
[ &rved
BUS-RUN The bus is in the RUN state reserved
s
RECV-PRM The user gives permission for the operating SEND-PRM User releases data in send-mailbox for
system to write into the receive mailbox transmission
The coordination bytes are managed by the operating system and may not be used for any other purpose.
E
Byte 3 1st data byte Byte 4 I 2 n d d a t a b y t e
Byte 5 3rd data bvte Byte 6 4th data byte
Net
data
2-26
2. Programming
When using the S5-I15U CPU type 941/942/943, it is possible to program the location of the coordination bytes and of the send and
receive mailboxes. The SINEC LI parameter block is in the system data area SD from word 57 onwards.
The locations of the coordination bytes are defined in each case by three data locations
They can be defined either as a flag byte or in the left-hand byte (DL) of the data word.
Coordination byte in data block:
Coordination byte in flag area:
The coordination bytes are in the left-hand byte (DL) of the data word.
Mailbox overflow
If more data is received than will fit within the mailbox, the mailbox overflows and the data is lost. No error message results.
The end of the receive mailbox is determined as follows: for the flag area this is flag byte 255 and for the data area the last data
word. In 256 word long data blocks it is data word 255.
2-27
I
2. Programming
FB 255 SPRM-A
Segment 1
NAME : L1-PG/DA
.- .- ,- ,- .- - ./. . . . ,,,. , ,,, - ,,/- ,,.? ,,, ,. ,,/- ,.. ,
ID ‘: --
I-WDA IIQIUIW I IG : U KMIKHIKYIKSIKtf K I IKLIKti : KY
ID : TCBR IIQIDIBITIC : D KMIKHIKYIKSIKFIKTIKCIKG : KS
ID : NCBR l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KY
ID : TCBS l/Q/D/B/T/C : D KM/KH/KYIKS/KFIKTIKCIKG : K S
ID : NCBS llQ/D/B/T/C : D KM/KH/KY/KS/KFIKT/KCIKG : K Y
ID : TSM IIQIDIBITIC : D KM/KH/KY/KS/KF/KTIKCIKG : KS
ID : NSM l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KCIKG : KY
ID : TRM l/Q/D/B/T/C : D KMIKHIKYIKSIKFIKTIKCIKG : K S
ID : NRM l/Q/DIB/T/C : D KM/KH/KYIKSIKFIKTIKC/KG : KY
2-28
m
2. Programming
Segment 1
OB22 SPRM-A LNG = 14 ABS NAME :SINEC LI
Page 1
Segment 1 OOOA :A DB 100 Data-DB
0000 Oooc :
0002 OOOE :0 F 1,0 Disable receive flag
0004 : I15U CPU as slave 0010 :0 F61,7 Receive CBRdata flag
0006 0012 : IC =IUMI lump if no data received
0008 : IU FB113 Function block FBI13 0014 :
OOOA NAME : SINEC LI 0016 : AN F 1,0 Disable setting of receive flag
Oooc : 0018 :s F 1,0
OOOE OOIA
0010 : BE Oolc :L DW40 Relocate length/source to
OOIE :T DW80 length/destination
0020 :L DW41 Relocate data
FB 113 SPRM-A 0022 :T DW81
0024 :
. Segment 1 0026 : AN F61,7 Message from user progr. ==> BESY
Name: SINEC-LI 0028 :s F61,7 Receive mailbox free
O02A :
OOOA Call function block FB255for O02CIUMI :
Oooc : direct ccmnection of an s5-115u O02E ; AN F 1,0 End if no data received
OOOE : 941/942 CPU as slave to the 0030 : BEB
0010 : SINEC LI network bus 0032
0012 : JU FB255 Function block FB255 0034 :0 F 1,1 Disable send flag
0014 NAME : L1-PG/DA 0036 :0 F62,7 Send CBS flag
0016 PGDA : KYO,I Slave No.: 1 0038 : IC =IUM2 lump if no receive mailbox free
0018 TCBR : KSFY Type of CBR is “FB” (flag byte) O03A
OOIA NCBR : KY61,0 CBRisflag byte61 O03C : AN F 1,1 Set flag for “Send disable”
OOICTCBS : KSFY Type of CBR is “FB” (flag byte) O03E :s F 1,1
001 E NCBS : KY62,0 CBRisflag byte62 0040 :
0020 TSM : KSDB Type of send mailbox “DB” 0042 : AN F62,7 Send message from user
0022 NSM : KY1OO,8O Send mailbox in DBIOOfrom DW80up 0044 :s F62,7 progr. ==> BESY
0024 TRM : KSDB Type of receive mailbox in “DB” 0046 :R F 1,2 Reset aux, edge flag
0026 NRM : KYIO0,40 Receive mailbox in DBIOOfrom DW40 up 0048 IUM2 :
0028 O04A : Edge evaluation for Send
O02A : BE O04C completed
O04E : AN F62,7 CBS Send flag
Caution: 0050 : AN F 1,2 Aux. edge flag
A CPU acting as slave returns data to the Sender. The 0052 : = F 1,3 “Send completed” edge flag
returning of data is monitored by evaluating Send Error Bit 0054 ;A F 1,3
CBS bit O and, if necessary, repeated. 0056 :s F 1,2
0058 :
O05A :A F 1,3 “Send completed” edge
O05C : AN F62,0 “Send error” CBS flag
O05E :R F 1,0 Receive enable
0060 :R F 1,1 Send enable
0062 :A FI03 “Send ready” edge
0064 :A F62,0 “Send error” CBS flag
0066 :R F 1,1 Send enable for repeat
0068
O06A : BE
2-29
2. Programming
Parameter Assignment with the CPU 102 Programming Example with the CPU 102
The control program has to handle the following tasks: .
Declarations:
● Coordination byte, receive (CBR)- flag byte FY 100 . The Send and Receive mailboxes must be enabled, and the
● Coordination byte, send (CBS) - flag byte FY 101 data in these mailboxes processed.
● Send mailbox -
d a t a b l o c k DB2 f r o m ● The coordination bytes must be managed (e. g, send job,
DWO error evalution)
● Receive mailbox (RM) -
d a t a b l o c k DB3 f r o m Example:
DWO Data traffic with the Master as Slave 1
● Flag bytes FY64 to 77 are used as buffers. Declarations:
● Slave 1 receives 3 bytes from Master O.
● The information is stored in the PIQ (QBO, QBI, QB2).
● Slave 1 sends 3 bytes (IBO, IBI, IB2) to the Master.
● Parameter assignments is implemented in FBI, as shown in
Fig. 11.6
Programming the individual blocks:
OB22 SPRM-A
SEGMENT1
FB1O SPRM-A IU F1 OB22executesonce following power-up,
It calls FBI, which assigns the slave parameters,
NAME: PARA 102 BE
L KF 1 - Loadslave No. OB1 SPRM-A
T FY 65 andstorein flag byte65
SEGMENT I
L KH 4DO0 - Load “Flag” data identifier
IU FB2 OB1 executes cyclically, It calls FB2, which services
T FW 66 and store in flag byte66
the Send and Receive mailboxes,
L KY 100.0 - Load flag byte lOOand BE
T FW 67 store in flag byte67
- Load ’’Flag’’ identifierand FB2 SPRM-A
L KH 4DO0
T FW 69 store in flag byte 69 SEGMENT1
L KY 101.0 - Load flag byte 101 andstore NAME: PROG 102
T FW 70 in flag byte 70 c DB3 Receive mailbox (DB3)
L KH 4400 - Load “Dataword” identifier A FIO0,7 Check whether access to Receive mailbox isallowed,
T FW 72 and store in flag byte72 CBR/bit 7 = O: access allowed
CBR/bit 7 = 1: access prohibited
L KY 2,0 - Load DBNo. “2’’and DBNo. “3”
IC = MOO1 Skip Receive box evaluation if access prohibited
T Fw 73 in flag bytes 73abd 74
L DRO Check whether number of source (MasterO)
L KH 4400 - Load “dataword” identifierand L KF+ O is in byte 2 of the Receive mailbox
T FW 75 store in flag byte 75 ><F
L KY 3.0 - Store DBNo, ”3” and DWNo. ”0” IC = MO02 Skipevaluationof Receive mailbox
T FW 76 in flag bytes 76 and 77 if source No, = O
- Transferflagarea FY64to DLI
77tothesystem data area \ ABO
L KH EE4D - Load upper source address L DRI Transfer Receive mailbox to
L KH EA7F - Load upper destination address T QBI the PIQ
T NB 14 - Transferdata frameof 14 Bytes L DL2
Reset all buffers. QB2
L KH 0000 - Load hexadecimal number ’’OOOO” M2: ~N FIOO,I Set CBR/bit 7to ”1”, i.e. permit PCaccess
T FW 64 - Setallbits of FY64t077to “O” Program access isnot permitted again
T FW 66 s FIOO.7 until the PC has reset this bit.
T FW 68 Ml: A F1OI.7 Check whether access is permitted to Send
mailbox,
T FW 70
CBS/bit 7 = O: access permitted
T FW 72
CBS/bit 7 =1: access prohibited
T FW 74
IC = MO03 Skip evaluation of Send mailbox
T FW 76 if access prohibited
CBRdefault setting: c DB2 Call Send mailbox (DB2)
Data can be received from the bus, KF+ 3 Specify length of data packet
L KH 0080 - Load binary number lOOOOOOO : DLO in byte 1 of Send mailbox
T FY 100 - Set bit7to “l” and bits6.. .Oto “O” KF+ O Load destination No, O(Master)
CBS default setting: \ DRO in byte 2 of Send mailbox
Program hasaccesstothe Send mailbox L IB3
T DL1 Load input bytes3, 4and 5 in
L KH 0000 - Load binary numberOOOOOOOO L IB4 Send mailbox
T FY 101 - Set bits7. .. Oto ”O” T DRI
BE Block end L IB5
T DL2
AN FIOI.7 Set CBS/bit 7, i, e, PC may access —
s F1OI.7 Send mailbox
M3: NOP O
:BE
2-30
-
2. Programming
A plant for manufacturing small parts from bar stock consists of three substations (S5-101 U slaves)
—.
Station 1 supplies station 2 with raw material from the bar magazine.
Station 2 machines the raw material and passes the finished part on to station 3.
Station 3 checks whether the manufacturing tolerances have been adhered to.
A master station supplies the slaves with data and also receives data from the slaves.
Monitoring station
m
Master
CPU :{0
115 M
Bar stock
uTest
S5 -101 u
slave 3
magazine
-
1 -
The master tells slave 3 which dimensions of the finished part are to be tested and which manufacturing tolerances can be
accepted. The three-byte long block of data is stored by the slave in flag bytes FY 36 to FY 38.
For statistical purposes, slave 3 informs the master which manufacturing tolerances have occurred. The two-byte long data word
is stored in FW 50. Data is to be transferred to the master only once at the end of each test operation. For this purpose, flag F 32.0
is set by the control program at the end of the test operation.
Name: EXAMPLE 1
0006 :s F63.O
0008 :L KF+3
OOOA A I 0.0 Control program forslave3
Oooc :
OOOE
0010
2-31
2. Programming
0012 := Q 1.0
0014
0016 :
0018 : RECEIVE DATA
OOIA
Oolc A F61.7 Permission to receive= 1: data received
001 E : IC = MOOI not valid; slave is receiving data
0020 :
0022 Evaluate receive mailbox:
0024 :L DR40 Source
0026 :L KF+O Accept only data from O (master)
O02A : ><F
O02C : IC = FO04
O02E
0030 :L DL41 Store Ist item of data received in FY36
0032 :T FY36 (flag byte FY36)
0034 :L DR41 Store 2nd item of data received in FY37
0036 :T FY37 (flag byte FY37)
0038 :L DL42 Store 3rd item of data received in FY38
O03A :T FY38 (flag byte FY38)
O03C
O03E MO04 : A N F61.7 Permission to receive= 1: data received
0040 :s F61.7 have been evaluated and slave may accept
0042 new data
0044
0046 :
0048 SEND DATA
O04A
O04C MOOI : A F62.7 Permission to send= 1: slave sends
O04E : I C = MO02 but send mailbox may not be changed
0050
0052 Edit send mailbox:
0054 : ~peration not compw
0056 :L KF+O Length: O
O05A :T DL80
O05C :L KF+O Destination slave: O (master)
0060 :T DR80
0062 : A N F32.O F 32.0= 1: Test operation completed
0064 : IC = MO03
0066 ~peration comp~
0068 :L KF+2 Length: 2
O06C :T DL80
O06E
0070 :L FW50 FW50: Manufacturing tolerances
0072 :T DW81 (Ist and2nd items of data sent)
0074 A F32.O Reset “Test operation completed”
0076 :R F32.O identifier
0078
O 0 7 A MO03 ; AN F62.7 Permission to send= 1: send mailbox
O07C :s F62,7 ready to send
O07E MO02 : NOP O
0080
0082 : BE
a) The master informs slave 1 of the magazine compartment in which it will find the raw material for the next processing batch. Slave
1 stores this information in flag byte FY 35.
Slave 1 tells the master how many bars of raw material have been removed from the particular magazine compartment. For this
purpose, the current status of counter CO is transferred.
b) Slave 1 accepts the data byte sent by slave 2 and maps bit 1 to flag F 34.0 of its flag area (F 34.0 = 1: supply new bar of raw ma-
terial).
2-32
-
2. Programming
Name: Example 1
.—
0006 :s F63.O
0008 :L KF+I
OOOA :A I 0.0 Control program for slave 1
Oooc
OOOE : :
0010
0012 := Qo.o
0014
0016 :
0018 RECEIVE DATA
OOIA
Oolc ;A F61,7 Permission to receive= 1: data received
OOIE : IC = MOOI invalid; slave receiving data
0020
0022 :L DR40 Source
0024 :L KF+O Source: master?
0028 : ><F
O02A : IC = MO02
O02C Evaluate receive mailbox from master
O02E
0030 :L DL41 Store number of magazine compartment in FY35 (flag byte FY35)
0032 :T FY35 (Ist item of data received)
0034 :
0036 :IU = MO03 Permission to receive= 1: receive mailbox has
0038 been evaluated; slave may accept new data
O03A M 002 : L DR40 Source
O03C :L KF+2 Source: slave 2?
0040 : ><F
0042 : IC = MO03
0044 Evaluate receive mailbox of slave2
— 0046
0048 :L DL41 Map bit Oto F34.O
O04A :L FY34 (lst item of data received: OOOOOOOX)
O04C : Ow
O04E :T FB34 (flag byte FY34)
0050
0 0 5 2 MO03 : A N F61.7 Permission to receive= 1: receive mailbox
0054 :s F61.7 has been evaluated; slave may accept new data
0056
0058 :
O05A
O05C SEND DATA
O05E
0 0 6 0 MOO1 : A F62.7 Permission to send= 1: slave sending data;
0062 : IC = MO04 send mailbox may not be changed
0064
0066
0068 Edit send mailbox
O06A :L KF+2 Length: 2 (counter contents take up 2 bytes)
O06E :T DL80
0070 :L KF+O Destination slave: O (master)
0074 :T DR80
0076
0078 :L C O Number of bars removed
O07A :T DW81 (lst and 2nd items of data sent)
O07C
O 0 7 E MO02 : A N F62.7 Permission to send= 1: send mailbox
0080 :s F62.7
0 0 8 2
0 0 8 4 MO04 ; NOP O
0086
. 0088 : BE
2-33
I
2. Programming
a) The master sends slave 2 a three-byte long identifier telling it in coded form how the raw material is to be machined. Slave 2
stores this information in flag bytes FY 38 to FY 40.
Slave 2 tells the master which machining step the control system is at that moment. This information is contained in flag byte
FY 10.
b) The control program of slave 2 sets flag F 34.0 when slave 1 is to supply a new bar of raw material. Slave 2 informs slave 1 of the
status of this flag. Slave 1 then transfers the status of this flag. Slave 1 then transfers the status of the flag to F 34.0 of its flag
area.
NAME: EXAMPLE 1
0006 :s F63.O
0008 :L KF+2
OOOA A I 0.0 Control program for slave 2
Oooc :
OOOE
0010
0012 := Q i.o
0014
0016
0018 : RECEIVE DATA
OOIA
Oolc A F61.7 Permission to receive= 1: data received
001 E :IC= MOOI invalid; slave receiving data
0020
0022 Evaluate receive mailbox:
0024 :L DR40 Source
0026 :L KF+O Accept only data from source O (master)
O02A : ><F
O02C : IC= MO04
O02E Data for parts machining
0030 :L DL41 Store Ist item of data received in flag byte FY38
0032 :T FY38
0034 :L DR41 Store 2nd item of data received in flag byte FY39
0036 :T FY39
0038 :L DL42 Store 3rd item of data received in flag byte FY40
O03A :T FY40
O03C
O03E MO04 ; A N F61.7 Permission to receive= 1: receive mailbox
0040 :s F61.7 has been evaluated; slave may accept new data
0042
0044
0046 :
0048 SEND DATA
O04A
O04C MOOI ~ A F62.7 Permission to send= 1: slave is sending data;
O04E :IC= MO02 send mailbox may not be changed
0050
0052 :A F60.O F60.O = 1: supply send mailbox of slave 1
0054 A F34.O with new raw material
0056 :IC = MO03
0058
O05A : Edit send mailbox for master
O05C
O05E :L KF+l Length: 1
0062 :T DL80
0064 :L KF+O Destination slave: O (master)
0068 :T DR80
O06A :L FY 10 FY 10 (flag byte 10): active machining step
O06C :T DL81 (Ist item of data sent)
O06E
0070 : A N F62.7 Permission to send= 1: send mailbox ready
0072 :s F62,7 to send
2-34
2. Programming
2-35
I
3. A p p e n d i x
3.1 Matrix of the Data Handling Block Numbers in the Various PCs
The “Data handling blocks” program package contains the following function blocks (FBs):
I) In the case of the s5-I15u, these function blocks are contained in the operating system of the CPU.
2) The data handling blocks of the S processor differ from the others with respect to queue processing (see ACTIVE and UP ACTIV
function blocks).
3-1
m
3. Appendix
FY 244 “SEND”
—.
FY244 SPRM-A LNG = 35 SYM
Page 1
Segment 1
NAME : SEND
ID : SSNR l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KY
ID : A-NR l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KY
ID : ANZW l/Q/D/B/T/C : I BIIBYIWID : W
ID : QTYP l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KS
ID : DBNR l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KY
ID : QANF l/Q/D/B/T/C : D KM/KH/KY/KS/KF/KT/KC/KG : KF
ID : QLAE l/Q/D/B/T/C : D KMIKH/KY/KS/KF/KT/KC/KG : KF
ID : PAFE l/Q/D/B/T/C : Q B1/BY/W/D : BY
O03A : BE
Description:
The SEND block is used for initiating a “Send data” request to the CP 530.
Description of parameters:
ANZW: Address of the condition code double word (address ANZW and ANZW + 1) in which processing of the initiated request is
flagged to the user.
— QTYP: Type of data source from which the data are to be transferred to the CP.
FY244
..-----------------
-- ! SEND !
0,1 -- ! SSNR PAFE ! - - F Y 9 9
0,3 -- ! A-NR !
DW 100 -- ! ANZW !
DB -- ! QTYP !
02 00 -- ! DBNR !
+1 -- ! QANF !
+64 - - ! QLAE !
-------------------
3-2
I
3. A p p e n d i x
FY 245 “RECEIVE”
O03A :BE
Description:
The RECEIVE block is used for examining whether there is a request on the CP 530.
Description of parameters:
ANZW: Address of condition code double word in which processing of the request is flagged to the user.
ZTYP: Type of data destination in which the data of the CP are to be entered
FY245
------------------
! RECEIVE !
0,1 -- ! SSNR PAFE ! -- FY 100
0,2 -- ! A-NR !
DW 101 -- ! ANZW !
DB -- ! ZTYP !
02 01 -- ! DBNR !
+1 -- ! ZANF !
+64 -- ! ZLAE !
------------------
3-3
m
3. Appendix
FY 247 “CONTROL”
0022 : BE
Description:
— Updating of the condition code word if the associated request was initiated in an interrupt branch (SEND)
No acknowledgements take place between the CONTROL block and the interface module; the control block only transfers the con-
dition codes from the “Request status” to the initialized condition code word. The block does not depend on the RLO (result of the
logic operation) and must be linked into the cyclic part of the STEP 5 program section by the user.
Description of parameters:
ANZW: Condition code word in which the result of the scan is flagged to the user
FY247
----------------
! CONTROL !
0,1 -- ! SSNR PAFE ! -- FY 101
0,3 -- ! A-NR !
Dw 210 -- ! ANZW !
----------------
FY 248 “RESET”
001 c : BE
— Description:
The “RESET” function block knows the following operating mode in conjunction with the CP 530:
— RESET all; resets all requests of this logical interface to which parameters have been assigned
3-4
I
3. A p p e n d i x
Description of parameters:
H 248
----------- ------
! RESET !
0,1 -- ! SSNR PAFE ! -- FY 102
0,0 -- ! A-NR !
--- - ----- - - ---- .-
FY 249“SYNCHRON”
Oolc : BE
Description:
The block synchronizes the PC with the CP 530 on restart of the PC. At the same time, the transfer area of the interface is erased
and initialized and the packet size between the CP 530 and the PC defined.
Description of parameters:
Block sizes:
FY 249
---------------
! SYNCHRON !
0,1 -- ! SSNR PAFE ! -- FY 103
0,0 -- ! BLGR !
---------------
3-5
m
3. Appendix
3-6
3. A p p e n d i x
3.4 Length Word
3.5 PAFE: Condition Code for Parameter Assignment Error
The condition code word is followed immediately, i. e. in the next memory address location, by the length word, in which the number
of request data items exchanged between the PC and CP are stored.
—
Writing: By SEND and RECEIVE during data interchange.
The length word is calculated from
the packet management + “reserved” pointer
Reset: By overwriting or with each new SEND, RECEIVE or FETCH request.
Evaluation: By the user
— If the “Request completed without error” or “Data transfer/acceptance completed” bit is set, the length word con-
tains the current source and/or destination length.
– If the “Request completed with error” bit is set, the length word contains the number of data items transferred up
to the point of error.
The “BYTE” specified here (output, input, flag) is set if the block detects a parameter assignment error, e. g. interface (module)
does not exist or illegal parameter asignment of QTYP/ZTYP; QANF/ZANF; QLAE/ZLAE.
In addfition, t$e familiar functions of tte keys On the PG 675 programmer, such
as acknowledgement / r@ /, Abort, /
.
❑
/, etc. have been retained.
I
2 Definitions
Output fields in the interactive forms are marked XXXXX. In these fields COM 530
shows cur~ent statuses or data entered with the previous operations.
@l!Lf~elds in the interactive forms are marked ##### and appear on the screen
of the PG675 in inverse video. Entries can be made in these fields
by means of the alphanumeric keyboard and, in some cases, with
the function keys (HELP function).
Error messages of COM 530 always appear in t+e last line on the screen before
the menu.
Bus parameters:
— All parameters necessary to operate the LAN and generated by the
user with the aid of the COM 530 software (polling list, interrupt
list, SYSIll identifiers, see SINEC L1 Operating and Programming
Instructions).
The bus parameters are qenerated when programming (see Section 3.3) and stored
by means”of function keys.
Where they are stored depends on the COM 530 mode set, i.e. ONLINE or OFFLINE.
In ONLINE mode, the user data are stored directly in the CP 530 co~unications
processor, and, in OFFLINE mode, on, for example, distette in drive FD1 or in
an EPROM or EEPROM submodule.
When chanqinq over to programming bus parameters these are read from the communica-
.— tions pro~es;or or minidiskette - that is, if user data are already stored there
and displayed on the respective forms where they can be modified and re-stored.
Program name: A user-selectable name for identifying all user data assigned
to a CP 530 interface and stored on diskette.
2 - 1
The significance of
— the cursor
— control
. keys
— .and .function.—
keys
In most of the interactive forms used, the significance of the control key functions
is as follows:
?1
Iv : The cursor is positioned to the first entry fie’ c1 in the line above
(below ).
==> <== : The cursor is positioned t~ the previous (next) entry field.
b) Function
— .——-—. keys
The COM 530 software package gene~ally permits parallel input 5oth by means of
softkeys and function keys. The op~y-at~r tberefore d~?s not have to relearn program-
mer operations.
In most of tie interactive forms used the significance of the keys is as follows:
. -J:
Ii 9elet~on of a charact.sr at t$e cursor position
#’ This key always has t+e same. meaning as ‘unction key F8 EXIT
(parallel key) .
This results in ‘the next-highest level in the form hierarchy being entered
without the input data in the current screen form being evaluated.
o1 : This key means “Store” if softkey F6 STORE has been def ned in the form.
These are also parallel keys and have the same function
HELP : The HELP key has the same function as ‘unction key F7 - HELP if it fias
been defined in the form.
2 - 2
3 Operator input and operation of the
COM 530
3.1 COM 530 basic form
After the COM 530 has been cal led (diskette in drive FD@, and after the PG 675
programmer has been switched on), the following form appears:
3- 1
3.1.1 Disk formatting form
3 -2
3.2 CONFIGURATION form
Either the CONFIGURATION (ONLINE) or CONFIGURATION (OFFLINE) form appears, depending
on which mode is active.
!E.!LQ’
Menu lb):
The next two fields show the version and symbolic designation of the CP 530 (only
if the PG675 is connected directly or indirectly to the CP 530, i.e. in ONLINE
mode).
3 - 3
Assignment of t~e function keys:
Menu la):
Note:
—- A user diskette must be in drive F13 1, even in ONLINE mode.
Menu
.— lb:
3 -4
(2) OFFLINE programming:
PROGRAM NAME:
In OFFLINE mode, the user must enter a name here which he can use to iden-
tify new or already existing bus parameters (lists and SYSID). This speci-
fies the file name under which the user data is read from, or written
onto, the diskette.
The HELP function can be used to enter all program names on the diskette.
3 - 5
Assignment of the function keys:
Menu
— . .2a):
.
F 1, F 2, F 3: see Menu la.
With the aid of the HELP function, the names of all programs (i.e. bus
parameters) on the user diskette can be entered in the “PROGRAM NAME”
field.
Menu 2b):
—.—
Fl: Selects the “Information” mode
The HELP function can be used to enter the names of programs (i.e. bus
parameters) on the user diskette in the “PROGRAM NAME” field.
Error 2a: fllAARNING N. EpROM driver on the system diskette. NO EPROM Ca.llS!! !“
Remedy: Load the original COM 530 system diskette into drive FD17 and
restart program.
Error 46: “Incomplete entry”
The following applies to the header in this and all subsequent forms:
.—
The node numbers and identifiers are taken from the SYSID area of the CP 530 communic-
ations processor in ONLINE mode. If OFFLINE mode has been selected, this data
is taken from the SYSID identifiers stored on the user diskette. If the SYSID
identifiers stored on the user diskette under the program names specified in OFFLINE
programming are not (yet) available, the fields in the header remain vacant.
The “Program name” field is only displayed when programming OFFLINE. It then
contains the name specified in the CONFIGURATION (ONLINE) form.
Assignment of the function keys: Softkeys-— F2 and F3 only appear if the CP 530
is master in the SINEC L1 network.
3 -7
3.3.1 Programming the system parameters (SYSID-lNP form)
The SYSID data area is a memory area in the CP 530 used for identification purposes.
Description
—- of the SYSID INP form:
——-———
When the CP 530 is started, tbe operating system transfers the “submodule iden-
tifier, “Version identifier”, and “Firmware version identifier” parameters to
the SYSID area reserved in the RAM. Then it transfers the other parameters to
the SYSID area from the memory submodule connected (EPROM/EEPROM).
In ONLINE progrannning, the SYSID identifiers of the CP 530 appear in this form
and can be modified by overwriting them.
(2) OFFLINE programming:
——
The form also appears completed on the screen in OFFLINE programming if a SYSID
file exists on the floppy disk under the program name specified (see CONFIGURATION
form).
CItherwise t h e e n t r y f i e l d s a r e v a c a n t o r d e f a u l t e d w i t h p o s s i b l e a l t e r n a t i v e s .
The contents of the SYSID (except for the first three parameters) can be generated
OFFLINE on the programmer and transferred to an EPROM/EEPROM. This means that
the EPROMs/EEPROMs can be identified at any time and can program the CP 530 on
start-up.
The generation date of the user software can be s~ec fied in a free’y
selectable format (e.g.: “=’ ‘“ ‘E’”
SLAVE-NO. AT PG/SINEC Ll:
The alternatives YES (Y) and NO (N) can be entered using the HELP function.
Default: “Y”
MASTER/SLAVE IDENTIFIER:
Default: “M”
TRANSMISSION SPEED:
F8: Return to the INPUT form without storing the SYSID identifiers.
3 - 9
3.3.2 Generation of a polling list (POLL-lNp)
For minimal operation of the SINEC Ll, only the polling list is required. This
list c o n t a i n s 6 4 l o c a t i o n s f o r e n t e r i n g slave numbers; the s e q u e n c e thus laid
down defines the order in which the slaves are to be addressed in LAN operation.
The simplest case is the natural sequence; if all 64 places are used and certain
slaves are specified several times, a certain priority can be achieved.
>imple case:
+ ---+---+---+---+---- ----+---+
!1!2!3!4! . . . . . . !n!
+---+---+---+---+---’- -----+ --- +
Assigni~g p r i o r i t y to s.-—
lave 3:
+---+---+.--+---+---+---+---+---+---- ----+---+---+
!1!2!3!4!5 !6!7!3! ,.. . . . !3!n!
+ --- +---+---+---+---+---+---+---+---- ---- + --- +---+
POLL-INP
— .. form:
The entry field between the arrows symbolizes the first location in the polling
list. The number of the first node in the list can be entered here. The first
double arrow signifies the beginning of the list, the final double arrow the end
of the list.
3 - 10
The F 1, F 2 and F 6 function keys have no significance at this time as tfie list
does not contain any nodes yet.
After a node number (e.g. 10) has been input in the entry field, the form changes
as follows:
— It can be seen that, after a node has been entered in the list, a new entry field
is offered for entering a further node and thus building up the list.
The slave numbers (1. to 30) are keyed into the entry fields in the sequence in
which they are to be addressed. The same slave can appear several times, thus
receiving higher priority than other slaves.
After a certain number of slave numbers have been entered (e.g. 20) the form looks
like this:
3 - 11
The S1 ave numbers can be changed once the respective field has been selected using
the c u r s o r c o n t r o l k e y s .
Fl: Operation of this key deletes t$e slave entry in the field on which the
cursor is prese~tly positioned (Current entry field). ,411 slaves f o l l o w i n g
this entry field are then automatically moved one place backwards. If
the last field is deleted, the cursor automatically jumps to the first
field.
F2: Operation of this key releases tfie current field, i.e. all slave num5ers
following this are moved one position to the right.
The key has no effect if the cursor is in the last (free) entry field
or if 64 entries have already been made.
F6: Storing the polling list in the CP 530 (oNLINE mode) or- on mini-diskette
(OFFLINE mode) and return to t?e INPUT form.
F8: Return to the IYPUT form without storing the polling list.
The polling list must not have blank fields. The cursor is in the first
blank field that has been found.
Remedy: - Delete the field or
enter slave number in the respective field.
3 - 12
3.3.3 Generation of an interrupt list (lNTERRUPT-lNP form)
The interrupt list is only required if slaves can interrupt bus traffic with an
interrupt request. The bus master then searches for the cause of interrupt in
the sequence specified in the interrupt list.
Generation and display of the interrupt list is the same as for the polling list.
The following form therefore appears when an interrupt list is generated for the
first time:
Further operations and functions of the softkeys can he seen from the description
of polling list generation (Section 3.3.2).
The numbers of the slaves (1 to 30) must be keyed into the entry fields in their
order of priority in the event of a bus interrupt. The slave entered in the first
field has the highest priority, the second the second-highest priority, etc.
Each slave may only appear once in an interrupt list. The cursor is
in the field in which the slave number appears for the second time.
Remedy: - Delete the respective field or
- Enter another slave number in the respective field.
3 - 13
3.4 Output (display of the user data)
DISPLAY form
SOURCE :
The source can be specified here wit?out changing the mode. An EPROM (EEPROM)
can also be specified as source!
possi~ilities: +-----------+-------------------+
! Plode ! Source !
+ - - - - - - - - - - +- - - - - - - - - - - - - - - - - - - +
! OFFLINE ! FD, EPROM !
! ONLINE ! FD, CP 530, EPROM!
+ ----------- ------
+ --,---------- ----- +
These alternatives can be entered with the HELP function.
Default:
— . . ONLINE mode . . . . CP 530
OFFLINE mode . . . FD
PROGRAM NAME:
If a floppy disk (FD) is specified as source, a program name must. be entered under
which the user data has been stored on the diskette.
The HELP function can be used to review all program names stored on the user
diskette.
Assignment of the function keys: (Softkeys F 2 and F 3 only appear if the CP530
i s mas@r!)
3 - 14
Possible error messages:
+ -------------------------------- +
! Mode ! Source !
+ ----------- --------------------- +
! OFFLINE ~ FD, EPROM !
! ONLINE ! FD, CP530, EPROM !
+ ---------- -t --------------------- i-
Error 31: “No polling list!”
Error 32: “No interrupt list!”
Error 33: “No SYSID identifier!”
One of these three error messages appears if the respective data type
does not exist in the CP 530, the EPROM or in the programs specified
on the user diskette.
The significance of the data in the output fields can be seen from the SYSID-DISP
form.
In output field 5 (ONLINE or OFFLINE) EPROM is specified as source if an EPROM
is used.
EXIT i
Assignment of the function keys: (Softkey F1 does not appear if display is from
an EPROM!)
3 - 16
3 . 4 . 3 INTERRUPT-DISP f o r m
The interrupt list stored is displayed as for input mode (see Section 3.3.3),
with the following differences:
— - There are no entry fields:
- There is no vacant field at the end of the list.
Assignment of the function keys: (Softkey F 1 does not appear if display is from
an EPROM!
Fl: This key permits entries to be made in the interrupt list (see Section
3.3.3) for modifications etc.
3 - 17
3.5 PRINT form
SOURCE :
Here it is possible to specify the source without changing the mode. An EPROM
can also be given as source!
Possibilities: + -------------------------------- +
! Mode ! source !
+ --------------------------------- +
! OFFLINE ! FD, EPROM !
! ONLINE ! Fll, CP530, EPROM !
+ ----------- + --------------------- +
These alternatives can be entered using t?e HELP function.
Default: ONLINE mode . . . . . . . CP530
OFFLINE mode . . . . . . FD
PROGRAM NAME:
F2: Printing all user data from the CP 530 (in ONLINE mode) or the bus parameters
stored on the diskette under the program name specified (in OFFLINE mode).
The printed pages have header and footnote lines (user texts in accordance
with F 1) and are numbered. When finished, the program returns to the
CONFIGURATION form.
—
F 8: Return to the CONFIGURATION form.
3 - 18
Possible error messages:
+ ---------------------------------- +
! Mode ! Source !
+ ------------- + -------------------- +
! OFFLINE ! FD, EPROM !
! ONLINE ! FD, CP 530, EPROM !
+ ------------- + -------------------- +
NUMBER OF LINES PER PAGE: Specification of number of lines per page for the PG
printer connected.
m: 40 ““” 65
DATE: The actual date can be entered here in any format.
The other entry fields can be filled with user text as required.
In this case, the output fields only indicate that dynamic texts appear in the
printout here.
(lSYSID1, ‘Polling list’, page number etc.)
3 - 19
Assignment of the function keys:
F 6: Operation of this function key causes the parameters generated for printout
to be stored on the user diskette. They are not assigned to any program
name.
The next time parameters are assigned to the printer, this form already
has these parameters as defaults.
3 - 20
3.6 TRANSFER form
. TRANSFER FROM/TO:
In these two fields, the source and destination of the transfer are to be specified.
(This is also possible using the HELP key).
Possibilities:
+ -------------------------------------------------------------- +
! Mode ! Source ! Destination !
+ ---------- --------------------------- + ----------------------- +
! OFFLINE ; FD, EPROM ! FD, EPROM !
! ONLINE ! FD, CP530, EPROM ! FD, CP530, EPROM !
+ ---------- + --------------------------- + ----------------------- +
In these three fields, the entries “y” for yes or “N” for no can be selected.
If the CP 530 is configured as a slave, only “N” is possible for both lists (as
a CP 530 slave has neither a polling nor an interrupt list).
If the EPROM is specified as destination, all user data are automatically trans-
ferred.
Default: “Y”
3 - 21
—
PROGRAM NAME:
F l : Initiation of transfer.
In the message line the messages ‘Act Ve!, “Completed” or error messages
appear.
F7: HELP function (paging through the alternatives) in the first five fields.
In addition, the names of all programs on the user diskette can be reviewed
in the “PROGRAM NAME” field.
—
F8: Return to the CONFIGURATION form.
3 - 22
Possible error messages:
+ permissible illegal
3 - 23
I
F5: The message line is deleted and t?e following menu appears on the screen: —
3 - 24
3.7.2 STAT/FORCE form
SLAVE No:
MAILBOX:
Fl: The input data are transferred and the CP test function activated. The
mailboxes specified are read (selects STATUS form).
3 - 25
Possible error messages:
In these last two error messages tfie number of the respective slaves
is entered in the output fields.
3 - 26
If the CP 530 is configured as a slave, only its send and receive mailbox can
be monitored and the STAT/FORCE form appears as follows:
SLAVE No.:
The extension of the node number from the header is written into these output
fields.
—
!E!W: 1 ““” 3°
Assignment of the function keys:
3 - 27
3.7.3 STATUS form
—
If the CP 530 is configured as a slave, the “FORCE LEFT” and “FORCE RIGHT”
functions cannot be implemented.
3 - 28
Significance of the output fields:
SLAVE: In the case of a receive mailbox, tfie number of the slave selected is
entered. In the case of a send mailbox, 00 is entered as identifier for
the master.
MAILBOX: The data selected are taken from the previous form.
SB: The status byte of the respective slave is displayed in binary code.
It can be examined in more detail with function key 4 (nagni$ier function).
SLAVE CYCLE: The reaction time of a slave until its mailbox is received (in milli-
seconds).
The part of the form between header and menu shows t$e contents of the mai150xes
in the usual S 5 form divided into left and right mailboxes. The contents are
constantly updated.
The contents of the longer mailboxes can be paged up and down with the “Page”
.—
function keys.
3 - 29
—
Assignment of the f~mction keys:
F 1: Forcing the left mailbox. Both mailboxes are fixed, i .e. t4e display
is frozen (not lupdated). The contents of the left mailbox can be modi-
fied.
s~le~ts the FORCE form.
F 2: Forcing t+e right mai150x. Both rnail’mxes are fixed, i.e. the display
is frozen (not updated). The contents of ~~? right mailbox can be modified.
Selects the FORCE f~rm.
F 3: Both mal150xes are fixed. The cursor is in the first format Field of
t?e left mailbox. Now t$e formats for the display can be modified (for
bg~h ma7150xes). The menu la~elling f~r F 3 is changed to “FIXING OFF”.
In acldi:ion, softke.v F 4 enables tfie cursor to he positioned in the desired
mai150x (see menu, next page).
F 4: T~~s function enahles t!le S1 ave status byte, which appears as a binary
~attern
‘. at the top right of each mailbox display, to be more closely exam-
1 ned. Howeve~, the status byte cannot be morliried.
Causes the STATUS BYTE form to appear. (Section 3.7.5).
F 6: T4e f~laimats for t?e respecti ve mai150x are stored on the user diskette.
The display is frozen d~ring the storage procedure. For each slave only
one list of formats can be stored for t~le send mailbox and for the receive
ma i 1 box.
3 - 30
I(PV”
!
----------------------------------------
+-
If the mailbox is paged upwards but tfie first line has already been
— displayed.
If the mailbox is paged downwards and the last line has already been
displayed.
If the interface module brings a left mailbox wit~ length zero, this
—. message is displayed.
If the interface module brings a right mailbox wit? the length zero,
this error message is displayed.
If the F6 function key, the Enter key or the F5 function key or hardcopy
key are actuated, this message appears.
—.
3 - 31
3.7.4 FORCE form
A s s i g n m e n t of the f u n c t i o n keys:
F 4: This function permits the status byte of the S1 ave which appears as a
bi nary pattern at the top right o+ eac$ ma i 1 box Id ispl ay and can be more
closely examined and modified.
Causes t h e S T A T U S B Y T E f o r m to appear.
F 8: Return t o t h e S T A T / F O R C E f o r m w i t h o u t f o r c i n g b e i n g e x e c u t e d .
3 - 32
Possible error messages:
The cursor is in the last line and an attempt has been made to erase
or insert in the mailbox.
The formats can be changed in the mailboxes. This error occurs if formats
other than KH, KF, KS, KT, KC, KM, KY or KG are entered.
If the cursor is in the first field, i.e. where the editor is expecting
an initial word address, it is not permitted to actuate a function key.
If the CP 530 supplies a left mailbox wit+ the length zero, this message
is displayed.
3 - 33
Error 2D: “Right mailbox empty!”
If the interface module supplies a right mai150x witti the length zero,
this error message is displayed.
If the F6 function key, the transmit tey or ttle F5 function key or hard-
copy key are actuated, th!s nessage appears.
3 - 34
3.7.5 STATUS BYTE form
The status byte is displayed for both slaves. By changing the bit statuses (in
the entry fields), the status bytes are transmitted to the slaves. This, however,
is only possible when changing from the FORCE form and actuating the F6 key.
F6: Transmitting the status bytes as displayed on the form to the slaves.
Return to the FORCE form.
F8: Return to the FORCE form wit?out changing the status bytes.
.—
3 - 35
Example
— —of .STATUS FORCING:
Actuating F1 caluses the STATUS form to appear. The interface module then supplies,
for example, tbe right ma~l~ox first, displays it on t$e screen and then dis~lays
the left mailbox.
Function key 3 is depressed w!IfllIs the interface module accesses the data of the
slave.
STATUS *
+a-----------------------------------------------------------------------------+
! F~ ! F2 ! F3 ! F4 ! F5 j F6 ! F~ ! F fj ] :
! ! FORCE ! FIXING ! FORMAT ! PRINT ! STORE ! !
! ! RIGHT ! OFF ! LEFT ! MAILBOX ! FORMATS ! ! EXIT !
+ -----------------------------.--.-.----*-..*z.-..-+*.-+-..+.---*+-+--.+.+.-"=+“i- —
3 - 36
The cursor is now positioned in the left mailbox. The formats can now he changed
in the mailboxes. The following formats are permissible: KH, KF, KS, KM, KT,
KC, KG, and KY.
A “?” appears for characters which cannot be converted to the format specified.
The next function selected is “FORCE RIGHT”. The following appears on the screen:
FORCING *
—.—
+ -------------------.`..--+------------------------------------------------------
! F~ ! F~ ! F3 ~ F4 ! F~ ! Ffj ! F7 ! ~~;
! EXECUTE !A30RT ! CHANGE ! STATUS ! PRINT ! STORE ! !
! FORCING ! FORCING ! TARGET ! B~T~ ! MAILBOX ! FORMATS ! ! EXIT i
+ -----------.----------------------------------------------.=------------------- +
-.
The contents of the right mailbox can now be edited. Using the F4 key, the status
byte can be examined more closely and edited. Each bit has a certain function
and can be set or reset.
3 - 37
3.7.6 BUS TEST function
The BUS TEST function of the COM 530 enables minibus traffic to be executed step
by step, i.+wre5y the data exchanged between CP 530 and the nodes can be observed
in the form of mai150xes and, in certain cases, modified. Idhen the bus test is
called, the SINEC 1 cycle is stopped at the end of the polling list.
(lperati)r procedure depends on whetber or not interrupts triggered by slaves occur
during bus processing.
A) Int h e first paw~, the operator can examine an~ a ? so mod ify the send ma i 1 box
of ~fie CP 530 to the curr?n t sl ave (t?e S1 ave currently being processed). This
First part is conpl eted by actuating the F I “ SEND MA IL80X” softkey.
Soft ‘key FI !Ias the 1 abe 1 “SEND MAII..8OX” once more, i . e. t$e first part is
active again ( see ‘!. ~. ).
3 - 38
2. If-.-..-—-
an interrupt occurs
In this case, after the first part has ken executed, an operator input must now
be made:
The send mailbox from the interrupting slave to another node appears
In tfie 5!JS TEST forms, send ma i 1 bo x~s ,OF the C’? 530 appe at- on the 1 ef t of tfie
screen. Only these ma: 15oxes can be modified. On the right $a IC ~f the screen,
the ma i 1 box wh i CA js sent back to the C? 530 by the res pe: ti V? s 1 ave ( c1 i rect traffic )
appears
or
the ma i 1 59x ,dh 1 ch !s sent ‘rem t!le current s 1 ave to another fiode (cross tra f-f i c).
app~ars.
as t-e SINEC-LI tr-affi c is ex~c{lte.d step by step in the B!JS TEST, the occurrence
of fre quenh interrupts CN1 d pwvent novmal processing of the po 11 i rig 1 i 5%. For
th is reason, a soft key function permits interrupts t!~ be en ah 1 ed or d i sab 1 ed.
3 - 39
The forms for the t w o parts o f t h e operation f o r m a s t . er-sl ave and S1 ave-sl ave
traffic follow:
[US T E S T ——-.—
form 1 - 3
The left half of the screen shows the send mailbox of the CP 530 which is to be
sent to the current slave.
Modifications can be made with the usual S5 operator input procedures.
Assignments of the function keys:
Fl: Sending the send mai150x to the current slave. Causes the BUS TEST 2
form to appear for the second step.
F3: This key makes it possible to come to the “DESTINATION” field in the form
header and change the destination for the send mailbox.
F8: Return to the TEST form. The SINEC L1 cycle continues running. —
3 - 40
BUS
—- TEST 2 form
.—
The send mailbox from the previous form remains displayed. It can no longer be
edited, however. The receive mailbox for the current slave appears on the right
of the screen. The formats can be modified here.
.— Fl: Polling the next slave. Return to the BUS TEST 1 form.
For all other function key assignments, see BUS TEST S form.
On the right of the screen, the mailbox from the slave to the master appears or
the mailbox of the slave to another slave appears (slave-slave traffic).
.—
3 - 41
BUS TEST ———
3 form
.- --,--
F $3;
EX
,--
The left half of the screen displays the send mailbox from the CP530 to the slave
sending the interrupt.
On the right, the send mai150x from the current slave to the master or another
slave appears. Editing is not possible in either mailbox, but the formats can
5e changed. Whether or not slave-slave traffic is taking place is indicated in
the header.
F2: This key must be actuated to position the cursor for changing the formats
in the required mailbox. The inscription is alternately FORMATS RIGHT
and FORMATS LEFT.
For further function key functions, see the BUS TEST 1 form.
3 - 42
Possible error messages:
The cursor is in the last line and an attempt has 5een made to insert
or erase in the mailbox.
In connection with conversions from all formats to the formats KT, KC,
KS or KG.
If the mail~ox is paged upwards but the first line is already displayed.
Error 18: “End - no further!”
If the mailbox is paged downwards and the last line is already displayed.
— Error 19: “Do not press function key!”
If the cursor is in the first field, i.e. where the editor is expecting
an initial word address, it is not permitted to press a function key.
3 - 43
—-
Example of-BUS TEST
c) Interrupt
3 - 44
If case a) occurs, the form has the following appearance:
—.
3 - 45
—
If case b) occurs, the form appears as follows:
In both cases, function key F 1 “NEXT STEP” can be used to display t?e send mailbox
Of the master to the next slave in the polling list. !-lowever, only the formats
can be changed here.
3 - 46
Case c) Interrupt
An interrupt has occurred, i.e. the send mailbox of the master to the slave sending
the interrupt and the mailbox of the slave sending the interrupt to the master
or to another slave (slave-slave traffic) are displayed.
N~&: 8/00 CP53CI .Xxxxxxxxfxxxxxx?wxxxxxxxxxxx ONLINE
SEND C!%wto slave 7 sttl:CllfJooC@)REc from sl~v~ 7
Length: 5 Nave Cyc~@: 20ms! Length: 2
31JS T E S T
* :NTERRU~TCYCL E *
+-------------+--------.---------..---------------+-------------.+.-.---.------+
,f. ::p,l ‘! F2 !HF3 ! F4 ! F5 ! F6 ! F7 ! Fg !
:? ”’’NE’XT .! FWWT$ !DW4BLE ! STATUS ! PRINT ! STORE ! !
“’j,’,:.’ s’~~p .! RIGHT. !IWIYRRUPTi BYTE ! MAILBOX ! FORMATS 1 ! “EXIT ;
.+&”.-..--.**.-..*.*------------*++-+-----_----..+.-.-----_---e-.+-+----_-----a-.+---
”:.”’ +
3 - 47
3.7.7 CYCLE TIME form
ACTUAL : In this field the current bus cycle time is displayed. It is updated
approximately every half second.
F2: The interface module receives the command to delete the bus cycle times.
3 - 48
3.8 INFO form
SOURCE:
Here it is possible to specify the source without changing the mode. An EPROM can
also be given as source!
Possibilities: +--------------------------------------+
! Mode ! Source !
+ ----------- + -------------------------- +
! OFFLINE ! FD, EPROM !
! ONLINE ! FD, CP530, EPROM !
+ ----------- + -------------------------- +
PROGRAM NAME:
If a diskette (FD) is specified as source, the program name under which the user
data are stored on the diskette must be entered here.
All program names on the user diskette can be entered with the aid of the HELP
function.
3 - 49
Assignment of the function keys:
Fl: Information is given on whether a SYSID identifier and/or polling list
and/or interrupt list is available either in the CP 530 or in the EPROM
or on the user diskette under the program name specified.
Selects the INFO 1 form.
F2: All program names on the user diskette are listed. Selects the INFO 2
form to appear.
(Only possible for ‘FD’ source!)
F 7: HELP function for entering the source and available program names.
+ ------------ + ---------------------------- +
! Mode ! Source !
+ ------------ + -------------------------- +
! OFFLINE ! FD, EPROM !
! ONLINE ! FD, CP 530, EPROM !
+ ------------ + -------------------------- +
3 - 50
AVAILABLE or NOT AVAILABLE appear in the output fields.
—.
3 - 51
3.9 DELETE form
In “Delete” m o d e , user data stored in the CP 530 or on diskette under a certain
program name can be deleted.
SOURCE:
Default:
—. ONLINE mode . . . . . . CP 530
OFFLINE mode . . . . . FD
PROGRAM NAME:
3 - 52
All program names on the user diskette can be entered with the a d of the HELP
function.
F7: HELP function for entering the source and the program names on the floppy
diskette.
+ ------------ + ----------------- +
! Mode ! Source !
+ ------------ + ----------------- +
! OFFLINE ! FD, !
! ONLINE ! FD, CP 530 !
+ ------------ + ----------------- +
One of these three error messages appears if the respective data type
is not available on the CP 530 or on the user diskette under the program
name specified.
CP STATUS:
!iere the current status of the CP530 is displayed: The possibilities are ‘STOP’
or ‘RUN’.
The ‘STOP’ or ‘RUN’ states can be forced with function keys F 1 or F 2.
PG PRIORITY:
The PG priority field also shows the current CP status (possibilities: YES and
NO).
These settings can be changed with the F 3 and F 5 function keys.
ERRORS:
The error messages collected in the CP 530 are displayed in the ERROR fields and
updated approximately every half second.
After function keys F 1 to F 4 have been actuated, the “CAUTION: DANGER(IUS STATE
- Operate keys again” message is output and only the relevant function keys appear
in the menu.
3- 54
Assignment of the function keys:
F 1: The CP 530 is brought to the STOP state at the end of the current cycle
through the polling list. As a dangerous system status can occur, the
user is prompted to acknowledge with the following menu:
F2: The operating mode is not changed as ttie CP 530 is already in the
RUN state. The “CP IN RUN STATE” message appears.
Only
a) Positive acknowledgement with F 1 or
b) Negative acknowledgement with F 8 are meaningful.
Fl: The operating mode is not changed as the CP 530 is already in the
STOP state. The “CP in STOP STATE” message appears.
Only
a) positive acknowledgement with F 2 or
b) negative acknowledgement with F8 are meaningful.
3 - 55
F 3: The CP 530 is brought to the “PGc heck YES’’ mode. As a dangerous system
status can occur, the operator is prompted to acknowledge with the following
—
menu:
F 4: The mode is not changed as the CP 530 is already in the “PG check
NO” mode. The “PG PRIORITY OFF” message appears.
Only
a) Positive acknowledgement with F 3 or
b) Negative acknowledgement with F 8 are meaningful.
F4: The CP 530 is brought to the “PG check NO” mode. As a dangerous system
status can occur, the operator is prompted to acknowledge with the following
menu:
F8: Negative acknowledgement means tfiat the operating mode is not changed.
Return to main menu.
F7: The HELP function causes a description of the operating modes which
can be set with F 1 to F 4 to be displayed on the screen. T h i s
description can be exited with function key F 8 (EXIT).
F8: R e t u r n t o t h e C O N F I G U R A T I O N f o r m .
3 - 56
3.10.2 Error Messages from the CP 530
In the field for these messages in the mode form, messages will appear when problems
occur with data transfer from the CP 530 to the network or the S5 CPU.
The error number may be broadly classified in 4 classes, and most errors come
with an extension number to further define the problem (see the table “Error List”).
The extension may he used as follows.
a) Description of a group error number in more detail, e.g. t$e result of the
self test produces class 1 errors and these can only be cured by exchanging the
module. Example: 10,7 is hardware error 7.
b) Description relating to a job number containing an error
e.g. 54,177: job 177 not defined
I S5-CPU
4 SINECL1
aL
SYSTAT
ENr
ENr
ENr
nn
nn
nn
PG
3 - 57
Error classes
There are also other errors but these are not shown in this way since the failure
relates to those parts of the system necessary to transmit the error number.
Error class
————
! Class ! Error ! General ! ODerator ! Level of !
! ! No. ———
! Description I ai-m-rl—— —–...--. ! service
. !
———
!1 ‘! 10-29 ! Possible hardware ! HW.-Test / ! 1. Operator ?
I ! ! fault ! exchange ! 2. Service
“——-
!2 ! 30-49 ! Operational ! Switches, ! Operator —j
! ! ! errors ! Sub Module, !’ !
! ! ! ! Sequence: ! !
! ! ! ! Check / ! !
! ! ! by ~G
! program error ! Commissioning !
! ! ! ! necessary ! Enqineer !
! ! ! 1 -
! S5-SW ch~n~ ---—_—>,--— 1
-— -——
!—q—! 70-90 ! Status messages ! Record ‘“- ! Operator ‘?
! ! ! ! !
—-- — — — . — .
3 - 58
Error list SYSTAT
! Class ! Error ! Description !
! ! No. ! Ext. ! I
——.—.——----
! 1 ! 10 ! xx ! Error 10: Hardware error No. XX !
! ! 11 ! xx ! Error 11: Internal error message No. XX
!2 ! 30 !0 ! Error 30 : ~aitinq for syNcHRoN ---+
! ! 31 ! o ! Error 31: Wrong ~P module I
! ! 32 !0 ! Error 32: PG Function operative ~
! ! 33 !0 ! Error 33: PC is in stop: no slave send is possible !
! ! 34 !0 ! Error 34: CP is not in the STOP mode !
! 35 ! o ! Error 35: The CP ma not RUN: switch is set.—— to STOP -—-.*LI
;3 ! 50 !0 ! Error 50: Err=u=+ absent) SYSID !
! ! 51 !0 ! Error 51: Erronious (absent) Poll list ~
! ! 52 ! O ! Error 52: Erronious (absent) Alarm list !
! ! 53 ! xxx ! Error 53: Job XXX not defined !
! ! 54 ! xxx ! Error 54: Job description XXX not recognized
-.J ..—-.. !
! ! 55 xxx ! Error 55: Job No. XXX only for reveive
.— ! ! 56 xxx Error 56: Job No. XXX onl~ for send
! ! 57 xxx Error 57: Job No. XXX only compatible with the master
! ! 58 xxx Error 58: Job No. XXX only compatible with the slave
! ! 59 xxx Error 59: Job too long
! ! 60 xxx Error 60: Slave XXX not in polling list
! ! 61 xxx Error 61: The job number XXX uses an undefined list
! ! 62 ! xxx ! Error 62: Job number XXX SBR not allowed .——— !
—— ---—--
!4 ! 70 ! o ! Err& 70: Bus error !
! ! 71 ! xxx ! Error 71: Connection to slave has an interference !
! ! 72 ! xxx ! Error 72: The wrong slave (No.XXX) has replied !
! ! 73 ! xxx ! Error 73: Slave No. XXX has failed !
— -. ———
3 - 59
I
4. APPENDIX
4.1 COM 530 Error List with hints on how to proceed
The following message texts appear in the message line; the numbers are internal
references only and should not appear.
Error 01: Illegal input
The COM 530 executes validity checks for the data entered: The cursor
blinks in the field in which an illecial entry has been made.
In the field only certain limit va~ues are-permissible
- In the field only certain alternatives are permissible
- For further details, see Operating Manual.
Error 02: !l!~cjal key!
The key which has just been actuated is illegal in the field in which
the cursor is blinking. The following are possible:
- Only digits and letters
- Only letters
- Only digits
- Only special characters
- Only digits and ‘+’ and ‘-’
- Only digits and ‘+’ and ‘-’ and ‘=’
- Only hexadecimal characters
- Only digits between O and 3
- Only digits O and 1
are permissible.
Error OB: Inhibited key!
Error OD: Pr9gramm~r memory overflow!
Action: The programmer must be switched off wit$ the power switch
and switched on again and the COM 53”0 must be reloaded. If
this error occurs frequently, the manufacturer must be contacted.
4 -1
Error 1A: Repetition factor too high!
When a mailbox is edited, a repetition factor can be specified. If
the entire length of the mailbox taking the repetition factor into account,
is greater than 32 words, the editor outputs this error message.
Error 21: Source = Destination?
In “Transmit” mode, source and destination devices must not be identical.
Possibilities:
+ ------------ + ----------- + ------------ + ------------ +
!Destination ! DISKETTE ! CP 530 ! EPROM !
+ ------------ + ! ! !
! Source ! ! ! !
+ ------------ + ----------- + ------------ + ------------ +
! ! ! ! !
! DISKETTE ! - ! + ! + !
! ! ! ! !
! CP530! + ! - ! + !
! ! ! ! !
! EPROM ! + ! + ! !
+ ------------ + ----------- + ------------ + ------------ +
+ permissible
illeqal
DISKETTE User diskette in drive 1
CP 530 SINEC L1. communications processor
EPROM Plug-in EPROM/EEPROM submodule
Error 23: Transmission error
This error message indicates an error in all transmission types:
TRANSMIT PG675 ==> CP 530
- No transmission cable plugged in
- Transmission cable incorrectly plugged in
- Wrong transmission cable
- An EPROM submodule is inserted in the CP 526, all accesses
for writing or deletion are possible
- CP 530 not in operation
- Transmission time exceeded
PG675 ==> FD
Please contact manufacturer
- Hardware fault
- COM 530 system error
Error 24: Read SYSID identifier
Error 25: SYSID, polling and interrupt lists non-existent!
In “Print all” mode, no data can be listed as no user data are stored i n
the CP 530 memory (ONLINE mode) or
- on the diskette under the program name specified (OFFLINE mode)
Error 26: No blank fields permitted!
Blank fields are not permitted in polling lists or interrupt lists.
The cursor is in the first vacant field found.
Action: - Delete the respective field or
- Enter a slave number in the respective field.
Error 27: No double slave number in interrupt list!
Each slave may only appear once in an interrupt list.
4 - 2
E r r o r 28: N o E P R O M / E E P R O M submodule pluqqed in!
A n E P R O M / E E P R O M submodule m u s t b e p l u g g e d into t h e r e c e p t a c l e f o r i t
o n t h e prograrmner.
S e e SINEC L 1 Operating I n s t r u c t i o n s .
E r r o r 2 9 : N o p r o g r a m n a m e s f o r E P R O M a n d CP 5 3 0 !
“Info” mode:
Where EPROM or CP 530 is specified as source, no information can be
given for “All programs” (= all program names on diskette), as only
one user program can be stored in the CP 530 or EPROM.
~rce = CP 530 or EPROM:
Only “Individual program” mode is possible in which information is given
on whether the SYSID identifier and/or polling list and/or interrupt
list exist or not.
Error 2A: bJARNING: No EPROM driver on the system diskette. No EPROM calls!!!
The COM 530 draws the user’s attention to the fact that there is no
EPROM driver on the system diskette being used.
WARNING: An attempt to program data into an EPROM or to read data from
an EPROM causes a program crash. The “INTERRUPT TRAP HALTII
message appears in the form.
Action: Put original COM 530 system into
drive O and start program
once more.
Evror 2C: Left mailbox empty!
If the interface supplies a mailbox (left) wit? length 0, this error
message appears.
Error 2 D : R i g h t mailbox em@y!
I f t h e interface s u p p l i e s a mailbox (right) wi~fi length O , this error
message appears.
31: Polling list does not exist!
Error
Error 32: Interrupt list does not exist!
Error 33: SYSID identifier does not exist!
These three error messages appear in
- output
- Delete
- Transmit
modes if the respective data type does not exist in the CP 530 or in
the EPROM or on the user diskette under the program name specified.
Error 35: Illegal return message from PC!
Error 36: PC-Usart error!
Error 37: CP does not report!
Error 38: Usart error on programmer side!
Error 3A: Interface not ready!
Error 3B: Abort by CP!
Error 3C: List non-existent!
Error 3D: Diskette directory full!
The diskette directory of the user diskette is full. A new file cannot
be initialized.
Action: Use new diskette
Delete files not required
Error 3E: User diskette full!
The space available on the diskette being used is insufficient for storir
the file.
Action: Use another diskette
Delete files not required
Error 41: EPROM not erased!
The EPROM must be completely erased before it is progranmnmed.
4 - 3
Error 42: VPP error!
The supply voltage level (for the EPROM) is not within the permissible
range. This suggests a hardware fault on the EPROM or at the PG 675
interface.
Action: Service or repair
Error 43: Comparison error!
After bus parameters have been programed into an EPROM from diskette
or the CP 530, the contents of the EPROM are compared with the data
on the diskette or CP 530. If the data are not identical, this error
message is output.
Action: Erase EPROM and reprogram
Error 45: Address out of range!
Error 46: Incomplete input!
In the
- output
- transmit
- print
info
- delete
modes, a program name must be given for the source diskette (the cursor
is in the PROGRAM NAME field).
Error 47: Slave failed!
Error 48: hlrong mode!
Error 49: Slave not in polling list!
Error 4A: Slave already receiving data!
Error 54: EPROM/EEPROM submodule type illegal!
The wrong EPROM/EEPROM submodule is being used:
See SINEC L1 Operating Instructions
— Error 56: Mode change CP in STOP
Error 57: Faulty slave cycle
Error 58: Slave xx failed!
Error 59: Slave xx not on bus!
In both of these error messages, the number of the respective slave
is entered in the output fields.
Error 60: Only hexadecimal characters permitted!
Error 61: -32.768 fixed-point +32.767!
— Error 62: FORMAT: aaa, bbb ; aaa, bbb . . . only Up t. 255!
Error 63: ASCII characters only!
Error 64: FORMAT: aaa, b ; b . . . 0 to 3!
Error 65: Wrong counter word!
Error 66: Only keys O and 1 permissible!
Error 67: FLOATING-POINT SYNTAX: +1234567-89
Error 70: Incorrect CP module!
Error 71: Error when progranrning the EEPROM on the CP.
Error 72: It is not possible to set the CP to Run since the Stop/Run switch is
at Stop.
Error 73: CP 530 is a slave.
Error 75: Slave failure
Error 77: PG data has been overwritten.
Error 78: Slave not in polling list.
4 -4
COM 530 Error list
The following error messages do not appear in the error message line as usual
but in the body of the form. These are all fatal error messages which means you
are now at the Operating System Level.
!3110S error on x:
If this error message appears, a write access was not made on the diskette The
diskette is write-protected or initialized for read-only access. In the second
case, the diskette can be initialized for read/write access by reloading COM.
A sector of the d skette cannot be accessed. This means that data mght
be lost.
By actuating the return key “ <--” the error can be ignored.
4.2 References
/1/ S5DOS Description
for PG675 (Herr Trapp/E814)
4 - 5
SIEMENS
The SINEC L1 Local Area Network permits communications between up to 31 SIMATIC S5 programmable controllers of the U range
in master/slave mode.
The COM 530 software package described here for the PG 615 programmer is used for the following: to assign parameters to the
SINEC LI communications processor, for SINEC LI mode selection, for controlling data traffic (including diagnostics) and for the
documentation and archiving of bus (network) parameters on EPROM/EEPROM submodules and on the printer.
Procedures for programming and assigning parameters are described in the “Programming instructions” for SINEC L1. All operator
inputs are interactively via screen forms (entry fields) and function keys. The meaning of the function keys is shown either on the last
display line or in the texts assigned to the numbers.
—-
1-1
2. Definitions
COM 530 error messages are shown in the second last display line.
Bus parameters: All parameters necessary to operate the LAN are generated by the user with the aid of the COM 530 software
(SYSID identifiers, polling list, interrupt list, see SINEC LI Operating and Programming Instructions).
The cursor is positioned to the first entry field in the line above (below). The next (previous) part of the
interactive screen form appears in the last (first) entry field. If the form contains further parts, this is shown by
arrows pointing up and down on the form. If the form has no entry fields, it is only used for consultation.
The cursor is positioned to the next (previous) character within an entry field so that a character may be
changed without changing the whole field.
BRK This key allows progression movement up to the next form in the hierarchy without evaluating the data in the
current form.
—
ENTER This key means ,, Store”.
0...9
without Shift key : Entry of numbers O to 9 or selection of functions
0...5
with Shift key : Entry of hexadecimal numbers A to F.
2-1
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
3.1 Power up
PG 615 —
COM 530V1.O
FUNCTION TEST
This indicates that internal tests are taking place. After a few
RUNNING!
seconds, the Defaults form appears and the cursor blinks at
the ON-LINE position.
3-1
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
In ON-LINE mode, the output fields in the top line show a two-
digit mode number which has been entered in the Bus Select
. form. The master has the number xx/0, and a number greater
than O applies for a slave. I *DEFAULTS
ON-LINE : ++=#+#=#
Xx/xx
YES is the default for the first entry field and NO for the BUS SELECT : +#++#+1
remaining entry fields.
If YES is entered in the entry field of the BUS SELECT line, it is possible to page further in the BUS SELECT menu. This is indicated
by an arrow pointing downwards in the last column of the second-last line. The BUS SELECTform appears if the ~ key is pressed
while the cursor is in the bottom-most entry field.
3-2
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
3-3
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
————
1 2 3 4
3-4
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
Pressing the ENTER key after power-up brings the user to the
I NIT STATE form.
*INITIAL STATE Xxlxx .
The form consists of two parts which can be accessed with
the ~ O cursor keys. 1 INPUT
2 OUTPUT
3
The function keys and their meaning: 4 TRANSFER
w
ENTER : The Enter key effects a return to the start of INIT *SELECT FUNCTION
STATE form.
————
1 : Change to INPUT form. 1 2 3 4
————
1 2 3 4
3-5
-
3. Operator Input and Operation of the COM 530 on the P G 6 1 5 P r o g r a m m e r
INPUT form:
The node numbers are taken from the Defaults form, and are
used for addressing on the LAN in connection with “ON- *SELECT FUNCTION
LINE” functions. I
The contents of the SYSID data (Slave No. = O — “Master”, ————
Slave No. = 1 . . . 30— “ Slave”) controls the following forms 1 2 3 4
for INPUT/OUTPUT:
MASTER : Polling list and interrupt list maybe selected.
SLAVE : Error message of polling list or interrupt list is
selected.
In the OFF-LINE mode, these identifiers originate from the SYSID stored in the programmer. If these are not available or if
“MASTER” is entered in the SYSID, a polling list or an interrupt list can be selected.
If the polling list and interrupt list have been assigned parameters, the programmer may only accept a SYSID for “Master”.
*INPUT XX Xxhx
If there is already a SYSID, a polling list or an interrupt list in the CP 530 or in the programmer, this will be indicated on input and can
be changed.
3-6
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
The SYSID data area is a memory area in the CP 530 used for
general identification purposes.
O SU-ID
Xxlxx
: Xxxx ++++++
— to give a clear description of the classification of an intelli- +l+k++?+++
gent 1/0 module (e. g. CP 530) in a programmable control- 1 MO-ID : xx xxx
ler. 2VERS. : v x.x
— to transfer parameters to an intelligent 1/0 module which v
will lead to definite performance characteristics. HELP
— to provide information about the firmware and software re-
1
leases of the module. —.—
1 2 3 4
SYSID identifiers appear in these forms when parameters are
assigned ON-LINE. They can be overwritten.
The form sections are also filled in during OFF-LINE program-
ming should SYSID identifiers have already been generated
by entering them in the programmer, or transferred to pro-
grammer. Otherwise, the entry fields are empty.
If no texts are displayed over digits 1-4 in the bottom line of *SELECT SYSID
the display, keys 1“-F have their n~rmal meaning. The numbers
1 -F can be written into the entry fields. ———
In some of the entry fields, the text assigned to keys 1-4 ap- 1 2 3 4
pears above the digits in the display. If one of the keys is
pressed, the text assigned to it is written into the entry field.
3-7
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer -
Simple case:
I *INP, XX PO-LI Xxlxx
1 2 3 4
I II n 01 :+=+
The following form appears for entering a new polling list: —..
1 2 3 4
——.—
1 2 3 4
DEL : This key deletes the contents of the field in which the cursor is located. The subsequent slave numbers are then moved
one location left.
INS : This key moves all slave numbers one location on. A new slave number can then be entered in the vacant location.
ENTER : This kevcauses the ~ollin~ list to be stored in the communications Processor orthe wogrammerand then effects a return
to the ‘; INPUT” form. -
BRK : Return to the “INPUT” form without storage of data (the data are simply lost).
An interrupt list is generated in the same way as the polling list. *INP. XX PO-LI Xxfxx
The following form appears for entering a new interrupt list:
01 :#=#
Further inputs and the meaning of the function keys are the
same as when generating the polling list, (subsection 3.4.2).
In the input fields the slave numbers (1 –30) should be entered *SELECT INTR. LIST
according to their priority in case of a bus interrupt.
——.—
N. B.: Each slave number may only be entered once 1 2 3 4
3-8
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
3 : Output of user data from the EPROM/EEPROM submodule. If there are already data in the programmer which are to be over-
written, the question “Overwrite?” must be acknowledged with the ENTER key.
1 SYSID
2 POLLING LIST
3 INTERRUPT LIST
The letters CP, PG or SM appear in the first output field of the *SELECT LIST
top line, depending on which of the first three functions keys
(1 -3) was pressed in the “DISPLAY” form.
————
The function keys and their meaning: 1 2 3 4
1 SYSID
Xxlxx
3-9
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer -
———
1 2 3 4
—.—
1 2 3 4
The text above digit 1 INP in the display does not appear when
*SELECT SYSID
output from a memory submodule. It is therefore not possible
to change to input.
—— ——
1 2 3 4
The following form appears on pressing key 2 in the DISPLAY *DISP. XX PO-LI Xxlxx
xx form:
01 : xx xx xx xx xx xx
The polling list is displayed as generated 07 : xx xx xx xx xx xx
13 : xx xx xx xx xx xx
The function keys and their meaning: 19 : xx xx xx xx xx xx
v
1 : This key branches direct to the input of the interrupt INPT
list, if the keylock switch is in position II (Subs. 3.4.2).
——. .
BRK : Return to DISPLAY xx form. 1 2 3 4
The text above digit 1 INP in the display does not appear if data is being output from a memory submodule. It is therefore not possi-
ble to branch the input.
3-1o
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
On pressing key 3 in the DISPLAY xx form, the following form *DISP. XX IN-LI Xxlxx —
appears:
01 : xx xx xx xx xx xx
The interrupt list is displayed as generated. 07 : xx xx xx xx xx xx
13 : xx xx xx xx xx xx
The function keys and their meaning: 19 : xx
1 : This key branches direct to the input of the interrupt list, INPT
if the keylock switch is in position II (Subs. 3.4.2).
— — .
BRK : Return to DISPLAY xx form 1 2 3 4
The text above digit 1 INP in the display does not appear if data is being output from a memory submodule. It is therefore not possi-
ble to change to input.
With this function, all user-generated data can be output via *OUTPUT PRINT. Xxlxx
the printer from the CP, the PG or the EPROM/EEPROM sub-
module. By pressing key 4 in the DISPLAY form, the following 1 PRINT-PARAMETER
form appears: 2 PG — PRINTER
3 CP — PRINTER
4 SUBMODUL — PRINTER
The function keys and their meaning:
*SELECT FUNCTION
1 : Change to setting of print paramters (PRINT-PAR form)
— . ——
2 : Change to printing of user data generated in the pro- 1 2 3 4
grammer (PRINT START form)
3 : Change to printing of user data generated in the CP 530 (PRINT START form)
4 : Change to printing of user data from the EPROM/EEPROM submodule (PRINT START form)
3-11
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer -
—
The PG 615 transmits CR and LF as control characters for the printer. Before starting to print, the paper must be set to the top of the
form.
*START PRINT?
The function keys and their meaning:
— — — —
ENTER : The printout is started. All user data of the device
specified are printed out, followed by return to the 1 2 3 4
DISPLAY FORM.
3-12
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
3-13
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
*TRANSFER Xxlxx
++ A
5 : 6ES5375-0LA15
6 : 6ES5375-0LA21
7 : 6ES5 375-0LA31
8 : 6ES5375-0LA41
w
*SELECT ORDER. CODE
————
1 2 3 4
*TRANSFER xx/xx
## A
9 : 6ES5375-OLC1l
10 : 6ES5375-0LC21
11 : 6ES5375-0LC31
12 : 6ES5375-0LC41
v
*SELECT ORDER. CODE
I I
————
1 2 3 4
*TRANSFER Xxlxx
++!= A
13 : 6ES5376-OAA1l
14 : 6ES5376-0AA21
3-14
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
1 SYSID
Xxlxx
I —
In this form only those lists are offered which are in the source.
3-15
3. Operator Input and CJperatlOn Ot the CWM 53U on the W ti15 Programmer -
With this function, user data generated in the CP 530, the pro-
grammer or in the EEPROM submodule can be deleted. It is
possible to delete the polling list, the interrupt list and the
SYSID individually.
After pressing key 5 in the I NIT STATE form, the DELETE form
appears:
*DELETE
1 LISTS IN PG
Xxfxx
I
2 LISTS IN CP
3 LISTS IN EEPROM
The function keys and their meaning:
1
2
: Deletion of user data in the programmer.
: Deletion of user data in the CP 530.
*SELECT FUNCTION
I
3 : Deletion of user data in the EEPROM submodule ————
1 2 3 4
Keys 1 to 3 effect change to the DELETE xx form
.
3.8.1 DELETE xx Form
This form always only displays the lists stored in the respec-
tive devices (e. g. CP 530). *DELETE IN XX Xxlxx
In the first output field of the top line the text PG, CP or SM 1 SYSID
appears, depending on which key was pressed in the DELETE 2 POLLING LIST
form. 3 INTERRUPT LIST
4 ALL
The function keys and their meaning:
*SELECT LIST
— 1: Deletion of the SYSID
2 : Deletion of the Dolling list
————
3 : Deletion of the ~nterr~pt list
: Deletion of all user data 1 2 3 4
4
N. B.: On deletion of all user data, only the first 2Kbytes of the EEPROM submodule are deleted even if the submodule has a
memory capacity of more than 2Kbytes. The erasing process can last up to a minute.
In the first output field of the top Iinethetext PG, CPor SM ap-
pears, depending on which key was pressed in the previous *DELETE IN XX Xxlxx
form. The designations of the user data to be deleted appear
in the output fields of lines 3 to 5. Xxxxxxxxxxx
Xxxxxxxxxxx
The function keys and their meaning: Xxxxxxxxxxx
3-16
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
————
1 2 3 4
CAUTION! PLANT!
STOP
————
1 2 3 4
CAUTION! PLANT!
YES
——.—
1 2 3 4
The message “CAUTION! PLANT!” appears. The relevant function key must then be pressed again.
1 : The CP 530 is set to the Stop status. STOP appears in *CP MODE Xxlxx
A
the “CP status” field.
2 : The CP 530 is set to the Run status. RUN appears in the ERRORS:
“CP status” field. Xxxxxxxxxxxxxxxxxxxx
3,4 : With these keys the CP 530 can be set to “PG PRIORITY Xxxxxxxxxxxxxxxxxxxx
YES” mode or “PG PRIORITY NO” mode. Xxxxxxxxxxxxxxxxxxxx
BRK : Return to INIT STATE form
DEL
In the “Error” field the number of errors accumulated in the
CP 530 is displayed. The plaintexts of the errors can be paged ————
using the cursor control keys V ‘(l The following form type 1 2 3 4
appears:
The plaintext of the error appears in the output fields, (see Subs. 4.2) The displayed error can be acknowledged with function key 1.
3-17
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer -
By pressing key 7 in the I NIT STATE form the following form ap-
pears:
*INFO Xxlxx
————
1 2 3 4
3-18
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
1 RECEIVE MAILBOX
Xxlxx
I
2 SEND MAILBOX
2 : Display of the status of the send mailbox
R or S appears in the first output field of the top line, depend- *STATIFRCE X++++ Xxlxx
ing on whether a receive mailbox or a send mailbox was se-
lected in the STAT/FRCE form. The cursor is positioned to the
entry field in the top line. A slave number (1 to 30) must be
entered.
3-19
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
— The data in the output fields of the top line are accepted by the *STATUS xxx Xxlxx
STAT/FRCE form. *
SB=XX S=XX D=xx L=XX
In addition, the following are displayed: xx : Xxxx Xxxx
Xxxx
xx : Xxxx Xxxx
Xxxx
SB : Slave status byte in hexadecimal form. For the contents xx : Xxxx Xxxx
Xxxx
of the status byte see Subs. 3.11.2.4 T= XXXX Ms v
S : Source of dis~laved data (O = CP 530) FRCE DW STBY PRNT
D : Destination o’f displayed data (O = CP530)
L : Length of the mailbox in bytes
T : Time in milliseconds between referencing a slave and 1 2 3 4
receiving its mailbox contents.
If the status is running an asterisk blinks in the second display line. If the asterisk is no longer blinking, there is no longer any data
traffic between the CP 530 and the programmer. The part of the form between the top line and the menu displays the mailbox con-
tents in hexadecimal form. Words are separted by blanks. The contents are updated continuously. The cursor control keys v o
can be used to page through longer mailboxes.
1 Forcing the mailbox. The mailbox contents are fixed, i. e. the display is no longer updated (the asterisk in the display line
no longer blinks). The contents of the mailbox can be changed.
Change to the FORCE form
N. B.: The text FRCE above digit 1 on the display only appears in the send mailbox when the keylock switch is at “II”.
2 The cursor jumps to the data word number in the first line of the mailbox display. The menu line is deleted and a data word
number can be entered, If the ENTER key is pressed, the data word number is accepted and the mailbox display rolls to
the corresponding data word. With the BRK key, the previous status can be displayed again.
3 : With this function, the slave status byte, which is displayed hexadecimally in every mailbox, can be more closely examined.
— Change to the STATUS BYTE form.
4 Printout of mailbox contents on the printer. The display is frozen during printing.
The cursor jumps to the left-hand data word in the first line of
the mailbox. Any data can then be selected using the cursor
control keys and changes can thus be made in the mailbox
I *FORCE XXX Xxlxx
contents.
ENTER : The first time this key is pressed, “CAUTION! PLANT!” appears. The second time it is pressed, forcing is executed, i. e.
the modified send mailbox is sent to the destination node. Data traffic between the CP 530 and the programmer conti-
nues in the STATUS function.
3-20
I 3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
—.—— —.——
1 2 3 4 1 2 3 4
————— ———.
1 2 3 4 1 2 3 4
The display of the status byte is updated continuously. A change in the slave status is therefore immediately displayed.
The status byte can now be changed for the specified slave.
*FORCE xxx Xxlxx
By changing the bit statuses (in the entry fields) and entering *
with the ENTER key, the status byte is accepted by the send
STOP PC : Xxxx
mailbox and the FORCE form is selected.
RUN PC : Xxxx
SEND ENABLE SL : Xxxx
The function keys and their meaning:
INTERRUPT : Xxxx
1 : YES is entered in the entry field at the cursor v
position YES NO PRNT
2 : NO is entered in the entry field at the cursor
position ————
BRK Return to the STATUS BYTE form 1 2 3 4
E N T E R ~ Enter the status byte in the send mailbox and
branch to FORCE of the send mailbox.
*CONTROL xxx Xxlxx
Note: If contradictory statuses are entered in the status * A
byte, e. g. PG Bit : Xxxx
STOP PC : YES and BUS RUNNING : Xxxx
RUNPC : YES ONE SL FAILED : Xxxx
then the message: ILLEGAL INPUT appears. The sta- DP WITH ERROR : Xxxx
tus byte can be accepted only when the contradictory
inputs have been corrected. YES NO PRNT
————
1 2 3 4
3-21
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
The BUS TEST function of the CP 530 enables SINEC LI to be tested step by step, while the data exchanged between the CP 530
and the nodes can be examined at the same time in the form of “mailboxes” and can also be changed. On changing to the BUS
TEST, the bus is stopped before the start of a new bus cycle (the CP 530 goes from RUN to STOP).
In the first substep the operator can examine and also change the send mailbox of the CP 530 at the first slave of the polling list.
This substep is terminated by pressing the ENTER key and causes the mailbox contents to be sent.
The receive or cross communications mailbox of the referenced slave. The mailbox can be paged through with the cursor control
keys ~ O but it cannot be changed.
In the second substep, the next step is initiated with key 1 (CONT). The SINEC LI LAN is released until the next slave is polled (the
green LED on the CP 530 flashes momentarily).
—
As a result of this, the following is displayed:
The send mailbox of the CP 530 for the next slave in the polling list. The user is back at the start of the first substep for the second
slave in the polling list. When the polling list has been processed, the cycle starts again. If the bus test is interrupted, the CP 530
remains in the Stop status and can be switched back into RUN with the programmer or the mode selector.
In this case, an operator input step is inserted after the first substep:
The send mailbox of the CP 530 at the slave responsible for the interrupt is displayed. The mailbox can be paged through with the
— cursor control keys, but the contents cannot be changed. Function key 1 calls up the display of the receive or cross communications
mailbox of the slave responsible for the interrupt. Function key ENTER leads to the second substep in the processing of the polling
list slave, If there is another interrupt, the relevant node must wait until at least one normal step has been executed in the polling list.
In the BUS TEST forms only those send mailboxes of the CP 530 which are at the current slave in the polling list can be changed.
Since data traffic on the SINEC LI LAN takes place step by step during the bus test, a build up of interrupts can hinder normal pro-
cessing of the polling list (this can be avoided by disabling the interrupt from the programmer).
CAUTION:
Xxlxx
I
SEND MAl LBOX form. DANGEROUS
The TEST form appears again when the BRK key is pressed. PLANT CONDITION
POSSIBLE !
I *BUS TEST?
I
————
1 2 3 4
3-22
3. Operator Input and Operation of the COM 539 on the PG 615 Programmer
3-23
-
3. Operator Input and Operation of the COM 530 on the PG 615 Programmer
.— This form appears after the first substep on the recurrence of *BUS TEST xxx Xxrxx
an interrupt. * *INTERRUPT
SB=XX S=XX D=xx L=xx
The function keys and their meaning: 00 : Xxxx Xxxx Xxxx
03 : Xxxx Xxxx Xxxx
1 : Change to the receive mailbox display or the cross 06 : Xxxx Xxxx Xxxx
communications mailbox display of the slave T= XXXX Ms v
responsible for the interrupt. CONT DW STBY PRNT
—
The current cycle time is displayed (CURRENT). The values
MINIMUM and MAXIMUM indicate the extreme values of
cycle time like non-return pointers.
I *BUS CYCLE TIME
CURRENT T=xxxx M S
Xxlxx
I
MINIMUM T=xxxx M S
The function keys and their meaning: M A X I M U M T ’ XXXX M S
=
3-24
I
4. COM 530 Error Messages
NO SUBMODULE There is no user submodule plugged into the programmer. Plug submodule in.
PLUGGED IN
NO LIST AVAILABLE There is no list available in the ~rogrammer, the CP 530 or the submodule.
=
LIST FULL The polling list already contains 64slave numbers ortheinterrupt list already 30.
LIST NOT AVAILABLE The desired list is not in the CP 530, the rxoarammer or the user submodule. If necessarv, enter list.
I LISTALREADYAVAILABLE The list is alreadv available in the user submodule. Delete list if necessary. I
LIST NO DELETED List in user submodule not deleted. Delete list if necessary.
ON-LINE ONLY The desired function is only permissible ON-LINE. If necessary, set programmer to ON-LINE status.
PERMISSIBLE
ONLY IN POSITION II Kevlock switch in ~osition 1, and all input functions are therefore disabled. Set switch to position Il.
ONLY PERMISSIBLE IN This function is only allowed if the CP 530 has been initialized as a master. If necessary, initialize the CP
CASE OF MASTER as a master.
EEPROM ONLY There is an EPROM submodule plugged in and its data is supposed to be erased. If necessary,
PERMISSIBLE plug an EEPROM submodule in since an EPROM can only be erased with UVlight.
INTERFACE NOT READY The CP 530isin a mode which does not allow this function, or there is an EPROM submodule plugged
into the CP 530 and an attempt is being made to transfer a list to the CP 530. Change mode or remove
EPROM.
—
SLAVE FAILURE Slave does not report to CP 530. Check slave.
SLAVE NUMBER A slave number appears more than once in the interrupt list. Delete the relevant slave number until it
ASSIGNED MORE THAN occurs once in the interrupt list.
ONCE
SLAVE NOT IN POLLING The send or receive mailbox of the slave cannot be observed in Status mode because the slave is not
LIST in the ~ollina list. If necessarv. enter slave in ~ollin~ list.
SLAVE ALREADY FORCED The slave is already being forced by the CPU, and therefore cannot be forced by the programmer.
Otherwise, programmer priority must be set.
INVALID LIST There is an invalid list in the user submodule. Delete list and re-enter it.
ILLEGAL INPUT This input exceeds its permitted parameter limit. Observe the parameter limits.
ILLEGAL KEY I This key is not permissible in this function. Use permitted keys only.
RECEIVE ERROR,
PROGRAMMER
Programmer has received character it cannot interpret. Repeat function.
I
RECEIVE ERROR, The CP 530 has received a character it cannot interpret. Repeat function.
COMMUNICATIONS
PROCESSOR —.
I
PRINTER NOT READY Printer not connected or not switched on.
DELETE LISTS A master is to be re-initialized as a slave by the SYSID and the CP already contains the polling list
and/or interru~t list. I
4-1
4. C O M 530 E r r o r M e s s a g e s -
Error classes:
Error classes
1+
1 10–29 Hardware configuration Check hardware, and replace or repair it 1. Operator
of module suspect 2. Service engineer
4-2
4. COM 530 Error Messages
.—
1. Introduction
The SINEC LI Local Area Network permits communication between up to 31 SIMATIC S5 programmable controllers of the U range
in master/slave mode.
The COM 530 software package for all programmers on which S5-DOS can execute (PG 635, PG 675, PG 685, PG 695) is used to
assign parameters to the SINEC LI CP 530 communications processor (generation of SYSID as well as polling list and interrupt
list), to select the LAN operating mode, to control data traffic and to document and archive the bus parameters on mini diskettes.
All operator inputs are made via interactive screen forms (entry fields) and function keys (or softkeys).
The significance of the function keys can be seen in the menu displayed in the bottom three lines of the screen
In addition, the familiar functions of the keys on the PG 675 programmer, such as acknowledgement ( d), Abort ( ~), etc. have
been retained.
The S5-DOS version of the COM 530 is available in two diskette sizes.
1-1
m
2. Definitions
Output fields in the interactive forms are marked XXXXX . In these fields COM 530 shows current statuses or data entered with the
previous operations.
Entry fields in the interactive forms are marked +++*+=+ and. appear on the programmer screen in inverse video. Entries can be
made in these fields by means of the alphanumeric keyboard and, in some cases, with the function keys (HELP func-
tion).
Error messages of COM 530 always appear in the last line on the screen before the menu
Bus parameter: All parameters necessary to operate the LAN and generated by the user with the aid of the COM 530 software
(polling list, interrupt list, SYSID identifiers, see SINEC LI Operating and Programming Instructions).
The bus parameters are generated when programming (see Section 3.3) and stored by means of function keys.
Where they are stored depends on the COM 530 mode set, i. e. ONLINE or OFFLINE.
—
In ONLINE mode, the user data are stored directly in the CP 530 communications processor. In OFFLINE mode, this is done on a
minidiskette, on a hard disk or on an EPROM/EEPROM submodule.
When changing over to programming bus parameters these are read from the CP 530 communications processor or minidiskette
or hard disk – that is, if user data are already stored there – and displayed on the respective forms where they can be modified and
re-stored.
Program name:A user-selectable name for identifying all user data assigned to a CP 530 interface and stored on diskette
--> <-- The cursor is positioned to the previous (next) character within an entry field.
If the left (or right) field limit is exceed, the cursor moves to the previous (next) field.
b) Function Keys
The COM 530 software package generally permits parallel input both by means of softkeys and functions keys. The operator there-
fore does not have to relearn programmer operations.
In most of the interactive forms used the significance of the keys is as follows:
+ This key always has the same meaning as function key F8 EXIT (parallel key).
This results in the next-highest level in the form hierarchy being entered without the input data in the current screen
form being evaluated.
This key means ,, Store” if softkey F6 STORE has been defined in the form.
@ These are also parallel keys and have the same function.
HELP The HELP key has the same function as function keyF7– HELP if it has been defined in the form.
2-1
m
After COM 530 has been called, the following form appears:
—
OPERATING STATE: USER I
— F2 F3 F4 F5 F6 F7 F8
F1
Function keys:
3-1
I
3. Operator Input and Operation of COM 530
Either the CONFIGURATION (ONLINE) or CONFIGURATION (OFFLINE) form appears, depending on whether COM 530 is beina
used on-line of off-line. —
(1) ONLINE programming:
I CON F I G U RAT I O N
‘<==’Fl’ ’w===@<====m’m
c1PRINTER I
SINEC L1
The softkey menu for the CONFIGURATION (ONLINE) form is in two parts:
Menu 1 a):
[ FI F2 F3 F4 F5 F6 F7 F8
TESTAND
INPUT DISPLAY PRINT TRANSFER START-UP PAGE EXIT
Menu 1 b):
F1 F2 F3 F4 F5 F6 F7 F8
The “Nodes” field in the header display a two-part node number, which is read out of the SYSI D area of the CP 530.
For the master the second part is /00; for a slave it is a number greater than O (1-30).
The next two fields show the version number and symbolic designation of the CP 530 (only if the programmer is connected directly
or indirectly to the CP 530, i, e. in ONLINE mode).
The identifier of the programmer on which COM 530 is currently running is displayed in the programmer symbol.
3-2
3. Operator Input and Operation of the COM 530
Function keys:
Menu 1 a)
F 6: Selects Menu 1 b
Menu lb)
F 6: Selects menu la
3-3
I
3. Operator Input and Operation of the COM 530
,
Node: xx/xx CP530 xxxxxxxx/xxxxxxxxxxxxxxxxxxx OFFLINE
C O N F I G U RAT 10 N
~l<..>F[;:~l---->
——.——————.———
T
=q<===>m
m SINECL1
The softkey menu for the CO NFIGURATl ON (OFFLINE) form is also in two parts:
Menu 2 a):
FI F2 F3 F4 F5
Menu 2 b):
FI F2 F3 F4 F5 F6 F7 F8
PROGRAM NAME:
In OFFLINE mode, the user must enter a name here which he can use to identify new or already existing bus parameters (lists and
SYSID). This specifies the file name under which the user data are read from, or written onto, the diskette. In addition, the drive con-
taining the diskette or hard disk should also be specified.
The HELP function can be used to enter all program names on the diskette.
For the meaning of the output fields, see the CONFIGURATION (ONLINE) form. The “Version no. ” and “Symbolic designation”
fields of the CP 530 are blank in OFFLINE mode.
The identifier of the programmer which is currently running COM 530 (e. g. PG 685) is displayed in the programmer symbol
3-4
m
Function keys:
—.
Menu 2a)
F 6: Selects menu 2 b
F 7: HELP function
With the aid of the HELP function, the names of all programs (i.e. bus parameters) on the user diskette can be entered
in the “PROGRAM NAME” field.
.—
Menu 2 b)
F 6: Selects menu 2 a
—
F 7: HELP function
The HELP function can be used to enter the names of programs (i. e. bus parameters) on the selected drive in the
“PROGRAM NAME” field.
Error 2A: ,, WARNING No EPROM driver on the system diskette. No EPROM calls!!!”
-— The attempt to program data direct into an EPROM/EEPROM or to read data out of an EPROM/EEPROM causes the
program to crash ==> The “IN TERRUPTTRAP HALT” message appears.
Remedy: Load the original S5-DOS system diskette and restart program.
A freely selectable program name and the drive identifier must be specified in OFFLINE mode.
3-5
3. Operator Input and Operation of the COM 530
INPUT form .
I I N PUT
IA-k.!&
F3 F4 F5 F6 F7 F8
INTERR.
LIST EXIT
The following applies o the header in this and all subsequent forms:
The node numbers and identifiers are taken from the SYSID area of the CP 530 communications processor in ONLINE mode. If
OFFLINE mode has been selected, these data are taken from the SYSID identifiers stored on the user diskette. If the SYSID
identifiers stored on the user diskette under the program names specified in OFFLINE programming are not (yet) available, the
fields in the header remain vacant.
The “Program name” field is only displayed when programming OFFLINE. It then contains the name specified in the CONFIGURA-
TION (ONLINE) form.
Assignment of the function keys: Softkeys F2 and F3 only appear if the CP 530 is master in the SINEC LI network.
3-6
-
3. Operator Input and Operation of the COM 530
The SYSID data area is a memory area in the CP 530 used for identification purposes.
– To uniquely describe the role of an intelligent module (e. g. CP 530) in a programmable controller svstem
– To transfer parameters to an intelligent module, causing ~ertain reactions, -
– To give information on the firmware and software status of the module.
SYSI D CP530
FI F2 F3 F4 F5 I F6 I F7 I F8
When the CP 530 is started, the operating system transfers the “Submodule identifier”, “ Module identifier”, and “Firmware version
identifier” parameters to the SYS I D area reserved in the RAM. Then it transfers the other ~arameters to the SYSl D area from the
.
memory su”bmodule connected (EPROM/EEPROM).
In ONLINE programming, the SYSID identifiers of the CP 530 appear in this form and can be modified by overwriting them. In order
to do so, the CP 530 must be set to STOP (Section 3,10.1).
The form also appears completed on the screen in OFFLINE programming if a SYSID file exists on the diskette under the program
name specified (see CONFIGURATION form).
Otherwise the entry fields are vacant or defaulted with possible alternatives.
The contents of the SYSID (except for the first three parameters) can be generated OFFLINE on the programmer and transferred
to an EPROM/EEPROM. This means that the EPROM s/EEPROMs can be identified at any time and can program the CP 530 on start-
up.
3-7
I
3. Operator Input and Operation of the COM 530
PLANT DESIGNATION:
Name freely selectable with up to 19 alphanumeric characters e.g.: “SHEDI PLA4 PC7°
The generation date of the user software can be specified in a freely selectable format (e. g.: “31. 01. 85”)
SLAVE-NO. ON PG/SINEC L1 :
The page frame number defines the position of the dual-port RAM in the address area.
Range: 1...254
The alternatives YES (Y) and NO (N) can be entered using the HELP function. In the SYSID area, YES is stored asAand NO as blank.
Default: “N”
TRANSMISSION SPEED:
Function keys:
F7: Help functions by paging possible alternatives (only in the “Master/Slave identifier”, “Adressing mode” and “Auto-
matic cold restart” fields.) Depressing the HELP function key causes a description to be displayed in the other Entry
fields. This can be exited with F 8 (Exit), returning to this form.
F8: Return to the INPUT form without storing the SYSID identifiers.
3-8
m
3. Operator Input and Operation of the COM 530
For minimal operation of the SINEC Ll, only the polling list is required. This list contains 64 locations for entering slave numbers; the
sequence thus laid down defines the order in which the slaves are to be addressed in LAN operation. The simplest case is the natural
sequence; if all 64 places are used and certain slaves are specified several times, a certain priority can be achieved.
Simple case:
1 2 3 4
m n
1 2 3 4 5 3 6 7 3
~~~Œ x
—
POLL-INP form:
When entering a polling list for the first time, the following form appears:
POLLING LIST
=> #+ ==>
F1 F2 F3 F4 F5 F6 F7 FE
The entry field between the arrows symbolizes the first location in the polling list. The number of the first node in the list can be
entered here. The first double arrow signifies the beginning of the list, the final double arrow the end of the list.
The Fl, F2 and F6 function keys have no significance at this time as the list does not contain any nodes yet.
3-9
I
3. Operator Input and Operation of the COM 530
After a node number (e. g. 10) has been typed into the entry field, the form changes as follows:
POLLING LIST
FI F2 F3 F4 F5 F6 F7 F8
It can be seen that, after a node has been entered in the list, a new entry field is offered for entering a further node and thus building
up the list.
The slave numbers (1 to 30) are keyed into the entry fields in the sequence in which they are to be addressed. The same slave can
appear several times, thus receiving higher priority than other slaves.
After a certain number of slave numbers have been entered (e. g. 20) the form looks like this:
POLLING LIST
FI F2 F3 F4 F5 F6 F7 F8
The slave numbers can be changed once the respective field has been selected using the cursor control keys.
Fl: Operation of this key deletes the slave entry in the field on which the cursor is presently positioned (current entry
field). All slaves following this entry field are than automatically moved one place forward. If the last field is deleted,
the cursor automatically jumps to the first field.
F 2: Operation of this key releases the current field, i. e. all slave numbers following this are moved one position to the
right.
The key has no effect if the cursor is in the last (free) entry field or if 64 entries have already been made.
3-1o
m
F 6: Storing the polling list in the CP 530 (ONLINE mode) or on the user diskette or hard disk (OFFLINE mode) and return
to the INPUT form.
— The interrupt list is only required if slaves can interrupt bus traffic with an interrupt request. The bus master then searches for the
cause of interrupt in the sequence specified in the interrupt list.
Generation and display of the interrupt list is the same as for the polling list.
The following form therefore appears when an interrupt list is generated for the first time:
I NTE RRU PT L I ST
==> 10 ––> ##
FI F2 F3 F4 F5 F6 F7 F8
hurther operations and functions of the softkeys can be seen from the despriction of polling list generation (Section 3.3.2).
The numbers of the slaves (1 to 30) must be keyed into the entry fields in their order of priority in the event of a bus interrupt, The
slave entered in the first field has the highest priority, the second the second-highest priority, etc.
3-11
I
3. Operator Input and Operation of the COM 530
DISPLAY form
D I S P LAY
Source: #*+###+##+
FI F2 F3 F4 F5 F6 F7 F8
POLLING INTERRUPT
SYSID LIST LIST HELP EXIT
SOURCE:
The source can be specified here without changing the mode. An EPROM (EEPROM)
can also be specified as source!
Possibilities:
Mode Source
PROGRAM NAME:
If a diskette (FD) is specified as source, a program name must be entered under which the user data have been stored on the dis-
kette.
The HELP function can be used to enter all program names stored on the user diskette.
3-12
m
Mode Source
One of these three error messages appears if the respective data type does not exist in the CP 530, the EPROM or in the
programs specified on the user diskette.
.
Error 46: “Incomplete input”
A program nam”e must be specified if the diskette (FD) is the source.
SYSI D CP 530
—
Submodule identifier: Xxxxxxxxxxxx
Module identifier: Xxxxxxxx
Firmware version identifier: Xxxxxxxx
Plant designation: Xxxxxxxxxxxxxxxxxxx
User software generation date: Xxxxxxxx
Slave No. on PG/SINEC Ll: xx / xx Master/Slave
Page frame No.: xxx
Automatic cold restart: x (Y= Yes, N = No)
Transmission speed: 9600baud
FI F2 F3 F4 F5 F6 F7 F8
INPUT EXIT
The significance of the data in the output fields can be seen from the SYSID-DISP form.
In output field 5 (ONLINE or OFFLINE) EPROM is specified as source if an EPROM is used.
Fl: This key initiates display of the form for SYSID identifier input (see Section 3.3.1)
3-13
3. Operator Input and Operation of the COM 530
POLLING LIST
FI F2 F3 F4 F5 F6 F7 F8
INPUT EXIT
The polling list stored is displayed as generated (see Section 3.3.2) with the following differences:
Assignment of the function keys: (Softkeys does not appear if display is from an EPROM or EEPROM!)
Fl: This key permits entries to be made in the polling list (see Section 3.3.2) for modification, etc.
3-14
-
3. Operator Input and Operation of the COM 530
INTERRUPT LIST
FI F2 F3 F4 F5 F6 F? F8
INPUT EXIT
In output field 5 of the header (ONLINE or OFFLINE) “EPROM” appears as source if an EPROM is used!
The interrupt list stored is displayed as generated (see Section 3.3.3), with the following differences:
—
— There are no entry fields.
— There is no vacant field at the end of the list.
Assignment of the function keys: (Softkey F 1 does not appear if display is from an EPROM or EEPROM!)
Fl: This key permits entries to be made in the interrupt list (see Section 3.3.3) for modifications etc.
3-15
1
3. Operator Input and Operation of the COM 530
Source: #4F*#+?+#+*#
F1 F2 F3 F4 F5 F6 F7 F8
PRINTER TOTAL
PARAMETERS PRINTOUT HELP EXIT
SOURCE:
Here it is possible to specify the source without changing the mode. An EPROM can also be given as source!
Possibilities:
Mode Source
PROGRAM NAME:
If a diskette (FD) is specified as source, a programm name must be entered here under which the bus parameters have been stored
on diskette. The HELP function can be used to review all program names from the user diskette.
3-16
m
3. Operator Input and Operation of the COM 530
Function keys:
Fl: Causes transfer to the PRINTPAR form for assignment of parameters to the PG printer output.
(PRINT-PAR)
F1 F2 F3 F4 F5 F6 F7 F8
Fl: Print parameters are read from the user diskette before printer.
Printing of all user data from the CP 530 (in ONLINE mode) or user data from the EPROM or the user data in the user drive under the
program name specified (in OFFLINE mode). The printed pages are provided with headers and footers (user texts as in F 1) and
numbered.
Mode Source
3-17
I
3. Operator Input and Operation of the COM 530
Header:
#+F#+HF+HHHHH+HH#+ Xxxxxxxxxxxxxxxx
Footer:
F1 F2 F3 F4 F5 F6 F7 F8
STORE EXIT
The print parameters can only be stored once on diskette or hard disk. They then apply for all records.
NUMBER OF LINES PER PAGE: Specification of number of lines per page for the programmer printer connected.
Range: 40...65
The other entry fields can be filled with user text as required.
In this case, the output fields only indicate that dynamic texts appear in the printout here.
(’SYSID’, ‘Polling list’, ‘Page number’ etc.)
The entries in the ONLINE and OFFLINE printouts refer to the state of COM 530 when storing the print parameters.
Function keys:
F 6: Operation of this function key causes the parameters generated for printout to be stored on the user diskette. They
are not assigned to any program name.
The next time parameters are assigned to the printer, this form already has these parameters as defaults.
3-18
-
I Transfer from
TRANSFER
+#41+k#*+##+to #++#4+#+Wk+k
SYSID:
Polling list
Interruptkk
Entryfields intheTRANSFERfrom:
TRANSFERFROM/TO:
In these two fields, the source and destination of the transfer are to be specified
(This is also possible using the HELP key).
—
Possibilities:
PROGRAM NAME:
If the diskette is specified as either destination or source, a program name must be entered under which the user data is stored on
the diskette or are to be stored on it.
The HELP key can be used to review all program names on the user diskette.
Function keys:
Fl: The entry fields are converted into output fields. The data involved in each case also appear under the source and
destination identifiers.
F 7: HELP function (paging through the alternatives) in the first five fields. In addition, the names of all programs on the
user diskette can be reviewed in the “PROGRAM NAME” field.
3-19
3. Operator Input and Operation of the COM 530
TRANSFER
ONLYWITH DISKETTE:
PROGRAM NAMES: Xxxxxxxx Xxxxxxxx
FI F2 F3 F4 F5 F6 F7 F8
“RANSFERI EXIT
Function keys:
3-20
m
ET=
33
CP530 (E) EPROM
I FLOPPY
I + + +
I CP530 I + — +
I (E) EPROM I + + —
+ permissible – illegal
.
Error 54: Illegal EPROM submodule type
.-.
3-21
I
3. Operator Input and Operation of the COM 530
F1 F2 F3 F4 F5 F6 F7 F8
READ
FORMATS HELP EXIT
Note: The data diskette is required for storing or reading mailbox data (KH, KF etc)
Function keys:
After entering a drive which contains a diskette or a hard disk (possible with the F7 HELP key), the formats (KH, KC, ...) are stored,
F2 F3 F4 F5 F6 F7 F8
SiiT/ BUS CYCLE
FORCE BUSTEST TIME EXIT
F 2: Selects bus test. The bus is stopped and further processing can then take place step by step in accordance with the
polling list, (BUS TEST form)
Note: In the following screen forms and their descriptions, the send and receive mailbox for a slave is always the same as
the send and receive mailbox for the master CPS.
3-22
m
3. Operator Input and Operation of the COM 530
Specify the number of the slaves you wish to monitor on the left and right
half of the screen.
-. FI F2 F3 F4 F5 F6 F7 F8
SLAVE No. :
Range: 1...30
MAl LBOX:
Specifies which of the mailboxes (send or receive mailbox) is to be updated in the left or right half of the screen.
SEND can be specified for the send mailbox or REC for the receive mailbox of the slave.
Function keys:
F 1: The input data are transferred and the CP test function activated. The mailboxes specified are read
(selects STATUS form).
3-23
I
3. Operator Input and Operation of the COM 530
In these last two error messages the number of the respective slaves is entered in the output fields.
If the CP 530 is configured as a slave, only its send and receive mailboxes can be monitored and the STAT/FORCE form appears as
follows:
FI F2 F3 F4 F5 F6 F7 F8
Output fields:
SLAVE No.:
Range: 1...30
Function keys:
Same assignment as for the master
3-24
m
* STATUS *
3-25
3. Operator Input and Operation of the COM 530
Output fields:
—
SLAVE: In the case of a receive mailbox, the number of the slave selected is entered. In the case of a send mailbox, 00 is
entered as identifier for the master.
MAl LBOX: The data selected are taken from the previous form.
SB: The status byte of the respective slave is displayed in binary code. It can be examined in more detail with function
key 4 (magnifier function).
SLAVE CYCLE: The response time of a slave until its mailbox is received (in milliseconds).
Destination: In the case of a receive mailbox, 00 is entered for the master in this field; in a send mailbox, this number is identi-
cal with that of the slave selected.
*: The appearance or disappearance of an asterisk in this field whenever a mailbox arrives indicates data traffic
between the PG 675 and the CP 530.
The blinking frequency of the asterisk thus permits a rough estimate of the bus cycle time.
The part of the form between header and menu shows the contents of the mailboxes in the usual S 5 form divided into left and right
mailboxes. The contents are constantly updated.
N. B.: When displaying a mailbox with a odd byte length, the irrelevant positions are omitted.
Example Mailbox with (byte) length of 9:
o: KH = AAAA
1: KF = +00255
2: KY = 010,011
3: KT = 100.3
4: KH = FF
With the KH, KY, KC and KM formats, the last 2, 3, 1 or 9 positions are omitted. With the other formats, the data
field is deleted.
Function keys F 1 to F 3 can be used to modify display formats or enter new contents in the send mailboxes.
Function keys:
Fl: Forcing the left mailbox. Both mailboxes are fixed, i. e. the display is frozen (not updated). The contents of the left
mailbox can be modified.
Selects the FORCE form.
F 2: Forcing the right mailbox. Both mailboxes are fixed, i. e. the display is frozen (not updated). The contents of the right
mailbox can be modified.
Selects the FORCE form.
F 3: Both mailboxes are fixed. The cursor is in the first format field of the left mailbox. Now the formats for the display can
be modified (for both mailboxes).
The menu Iabelling for F 3 is changed to “FIXING OFF”. In addition, softkey F 4 enables the cursor to be positioned
in the desired mailbox (see menu, next page).
Actuating F 3 once more causes a return to updating of the mailbox contents in the new formats. The form appears
as shown in the diagram above.
3-26
-
F 4: This function enables the slave status byte, which appears as a binary pattern at the top right of each mailbox display,
to be more closely examined. However, the status byte cannot be modified.
Causes the STATUS BYTE form to appear. (Section 3.7.5).
F 5: Listing of the contents of both mailboxes on the printer connected to the programmer. The display is frozen during
printing.
F 6: The formats for the respective mailbox are stored in the user diskette. The display is frozen during the storage proce-
dure. For each slave only one list of formats can be stored for the send mailbox and for the receive mailbox.
FI F2 F3 F4 F5 F6 F7 F8
FORCE FORCE FIXING FORMAT PRINT STORE
LEFT RIGHT OFF RIGHT MAIL80X FORMATS EXIT
—
F 4 is Iabelled “right” or “left”, depending on whether the cursor is in the left or right mailbox.
.—
3-27
I
3. Operator Input and Operation of the COM 530
F1 F2 F3 F4 F5 F6 F7 F8
EXECUTE
FORCING
ABORT
FORCING
CHANGE
DESTINAT.
STATUS
BYTE
PRINT
MAlLBOX
STORE
FORMATS I EXIT
Output fields:
See STATUS form, Section 3.7.3
Function keys:
F 1: Forcing is executed, i. e. the modified send mailbox is sent to the destination node and the bus cycle continues. A
return is made to the STATUS form and any newly entered formats taken over.
F 3: The cursor jumps to the “Destination: xx” field which now becomes an entry field and permits a new destination slave
to be entered.
Range: 1...30
F 4: This function permits the status byte of the slave which appears as a binary pattern at the top right of each mailbox
display and can be more closely examined and modified.
Causes the STATUS BYTE form to appear.
F 5: Printout of the contents of both mailboxes on the printer connected to the programmer.
F 6: The formats for the respective mailbox are stored on the user diskette.
3-28
m
3. Operator Input and Operation Bof the COM 530
3-29
I
3. Operator Input and Operation of the COM 530
I PCinSTOPstatus: +
STATUS BYTE
! PCinSTOPstatus +
PCinRUNstatus : + ! PCinRUNstatus #
Destination slave: # ! Destination slave +
Interrupt # I Interrupt #
Programmerbit : + ! Programmer bit +
Busin RUNstatus: + ! Bus in RUN status #
Slave failed : + ! Slave failed #
I
FI F2 F3 F4 F5 F6 F7 F8
TRANSFER
STAT.BYTE EXIT
Output fields:
Entry fields:
The status byte is displayed for both slaves. By changing the bit statuses (in the entry fields), the status bytes are transmitted to the
slaves. This, however, is only possible when changing from the FORCE form and actuating the F 6 key.
Function keys:
F6: Transmitting the status bytes as displayed on the form to the slaves.
Return to the FORCE form.
F8: Return to the FORCE form without changing the status bytes.
3-30
m
Specify the number of the slaves you wish to observe on the left and right
halves of the screen,
F1 F2 F3 F4 F5 F6 F7 F8
STATUS
o: KH = ABCD O: KT= 735.2
1: KM= 0100110001110000 ! 1: KY= 234,189
2: KH = 12CF ! 2: KS= “;
3: 5 KH = 3E6A ! 3: KM= 1011100010101001
8: KG= +1423148-05 ! 3: KF= -21555
9:11 KS= ~Q \ 5:
20: KM= 1110000111010110 f
21: KC= 391 !
22: KM= 0101101001011010 !
23: KY= 24, 1 !
24: !
F1 F2 F3 F4 F5 F6 F7 F8
FORCE FIXING FORMAT PRINT STORE
RIGHT OFF LEFT MAILBOX FORMATS EXIT
3-31
I
3. Operator Input and Operation of the COM 530
,-
The cursor is ~ositioned in the left mailbox. The formats can now be chanaed in the mailboxes. The followina formats are Per-
missible: KH, KF, KS, KM, KT, KC, KG and KY. —
A “?” appears for characters which cannot be converted to the format specified.
FORCING
O: KH = ABCD ! O : KT= 7:5,2
1: KM = 0100110001110000 ! 1: KY= 234,189
2: KH = 12CF ! 2: KS= “;
3: KH = 3E6A ! 3: KM= 1011100010101001
4: KH = 3E6A ! 4: KF= -21555
5: KH = 3E6A ! 5:
6: KH = 3E6A
7: KH = 3E6A
8: KG = +1423148-05
9: KS = $Q
10: KS = ‘$C1
11: KS = $Q I
F1 F2 F5 F7 F8
EXECUTE ABORT CH[:GE ST;;US PRINT S;~RE
FORCING FORCING DESTINAT. BYTE MAILBOX FORMATS EXIT
The contents of the right mailbox can now be edited. Using the F 4 key, the status byte can be examined more closely and edited.
Each bit has a certain function and can be set or reset.
3-32
3. Operator Input and Operation of the COM 530
The BUS TEST function of the COM 530 enables bus traffic to be executed step by step, whereby the data exchanged between
CP 530 and the nodes can be observed in the form of mailboxes and, in certain cases, modified. When the bus test is called, the
SINEC LI cycle is stopped at the end of the polling list.
Operator procedure depends on whether or not interrupts triggered by slaves occur during bus processing.
A) In the first part, the operator can examine and also modify the send mailbox of the CP 530 to the current slave (the slave cur-
rently being processed). This first part is completed by actuating the F 1 “SEND MAl LBOX” softkey.
B) The second part, which is also initiated by softkey F 1 (now “NEXT STEP”), enables the minibus to poll the next slave in the pol-
ling list.
2. If an interrupt occurs
In this case, after the first part has been executed, an operator input must now be made:
B) After this intermediate step, the previous procedure is followed as under I.B. as long as no further interrupt occurs.
If a further interrupt occurs, the screen reaction is as in 2.A.
In the BUS TEST forms, send mailboxes of the CP 530 appear on the left half of the screen. Only these mailboxes can be modified.
On the right half of the screen, the mailbox which is sent back to the CP 530 by the respective slave (direct traffic) appears
or
the mailbox which is sent from the current slave to another node (cross traffic) appears.
As the SINEC-LI traffic is executed step by step in the BUS TEST, the occurence of frequent interrupts could prevent normal pro-
cessing of the polling list. For this reason, a softkey function permits interrupts to be enabled or disabled.
3-33
I
3. Operator Input and Operation of theCOM 530
The forms for the two parts of the operation for master-slave and slave-slave traffic follow:
—
BUS TEST
Consec. xxxx,xxxx,xxxx, !
N F I
U o !
m r f
b m f
e a f
rt !
!
I
!
!
FI F2 F3 F4 F5
SEND DISABLE STATUS PRINT
MAlLBOX INTERRUPT BYTE MAlLBOX
The left half of the screen shows the send mailbox of the CP 530 which is to be sent to the current slave.
Modifications can be made with the usual S5 operator input procedures.
Fl: Sending the send mailbox to the current slave. Causes the BUS TEST 2 form to appear for the second step.
F 3: The inscription of the key is alternately “DISABLE INTERRUPT” or “ENABLE INTERRUPT”. This key makes it possible
to service the slaves in accordance with the polling list even if an interrupt occurs.
3-34
3. Operator Input and Operation of the COM 530
B U ST E S T
F1 F2 F3 F4 F5 F6 F7 F8
NEXT DISABLE STATUS PRINT STORE
STEP INTERRUPT BYTE MAlLBOX FORMATS EXIT
The send mailbox from the previous form remains displayed. It can no longer be edited, however. The receive mailbox for the current
slave appears on the right of the screen. The formats can be modified here.
Fl: Polling the next slave. Return to the BUS TEST 1 form.
For all other function key assignments, see BUS TEST 1 form.
On the right of the screen, the mailbox from the slave to the master appears or the mailbox of the slave to another slave appears
(slave-slave traffic).
3-35
3. Operator Input and Operation of the COM 530
1
Node: Xxlxx CP530 xxxxxxxx/xxxxxxxxxxxxxxxxxxx ONLINE
SEND CP530to Slavexx SB: XXXXXXXX !REC from slavexx
Length: xx bytes Slave Cycle : xxxms !Length: xx bytes
BUS TEST
INTERRUPT CYCLE
N F !N F
U o !U o
m r !m r
b m !b m
e a !e a
r t !r t
FI F2 F8
NEXT FORMATS
STEP RIGHT EXIT
The left half of the screen displays the send mailbox from the CP 530 to the slave sending the interrupt. On the right, the send
mailbox from the current slave to the master or another slave appears.
Editing is not possible in either mailbox, but the formats can be changed.
Whether or not slave-slave traffic is taking place is indicated in the header.
Function keys:
Fl: Bus traffic continues. If no further interrupt occurs, the BUS TEST 2 form appears once more. The original send mail-
box for the slave whose turn it should have been is displayed on the left and on the right the respective receive mail-
box appears.
If a further interrupt occurs, however, the BUS TEST 3 form reappears with the mailboxes to and/or from the slave
sending the interrupt.
F 2: This key must be actuated to position the cursor for changing the formats in the required mailbox. The inscription is ..
alternately “FORMATS RIGHT” and “FORMATS LEFT”.
3-36
m
3. Operator Input and Operation of the COM 530
The bus test function has been selected. The mailbox of the master to the slave, e. g. slave 5, is displayed.
BU ST EST
o: KH = ABCD !
1: KM = 1011001110001111 !
2: KH = 2345 !
3: KH = 2345 I
4: KH = 2345 !
5: KH = 2345 !
6: KH = 2345 !
7: KH = 9876 !
8: KG = +1423148-05 ;
9: KF = +32767 !
10: KY = 17,30 !
11: KC = 789 I
F1 F2 F3 F4 F5 F6 F7 F8
SEND DISABLE STATUS PRINT STORE
MAILBOX INTERRUPT BYTE MAILBOX FORMATS EXIT
3-37
3. Operator Input and Operation of the COM 530
The mailbox can be edited. If function kev F 1 is actuated, the mailbox is sent to the slave and the receive mailbox is read.
Three different cases can now occur:
c) Interrupt
BUS TEST
O: KH= ABCD ! 0: KT= 735.2
1: KM= 1011001110001111 ! 1: KY= 234,189
2: KH= 2345 ! 2: KS= “;
3: KH= 2345 ! 3:
4: KH = 2345 !
5: KH= 2345 !
6: KH= 2345 [
7: KH= 9876 I
8: KG= +1423148-05
9: KF = +32767
10: KY= 17,30
11: KC= 789
FI F2 F3 F4 F5 F7 F8
NEXT DISABLE STATUS PRINT S;;RE
STEP INTERRUPT BYTE MAlLBOX FORMATS EXIT
3-38
m
3. Operator Input and Operation of the COM 530
BUS TEST
O: KH= ABCD I O: KT= 735.2
1: KM= 1011001110001111 ! 1:
2: KH= 2345 !
3: KH= 2345 !
4: KH= 2345 !
5: KH= 2345 I
6: KH = 2345
7: KH= 9 8 7 6
8: KG= +1423148-05
9: KF = +32767 I
10: KY= 17,30
11: KC= 789
. FI F2 F3 F5 F7 F8
NEXT DISABLE STi%S PRINT S;~RE
STEP INTERRUPT BYTE MAILBOX FORMATS EXIT
In both cases, function key F 1 “NEXT STEP” can be used to display the send mailbox of the master to the next slave in the polling
list. However, only the formats can be changed here.
3-39
I
3. Operator Input and Operation of the COM 530
Case c) Interrupt
—
An interrupt has occurred, i. e. the send mailbox of the masterto the slave sending the interrupt and the mailbox of theslavesending
the interrupt to the master or to another slave (slave-slave traffic) are displayed.
BU ST EST
* I NTERU P T C Y C L E *
F1 F2 F3 F4 F5 F6 F7 F8
NEXT DISABLE STATUS PRINT STORE
STEP INTERRUPT BYTE MAILBOX FORMATS EXIT
3-40
m
3. Operator Input and Operation of the COM 530
Actual : xxxx ms
Minimum : xxxx ms
Maximum : xxxx ms
-. FI F2 F3 F4 F5 F6 F7 F8
DELETE EXIT
Output fields:
ACTUAL: In this field the current bus cycle time is displayed. It is updated approximately every half second.
Function keys:
F2: The interface module receives the command to delete the bus cycle times.
3-41
3. Operator Input and Operation of the COM 530
INFO
SOURCE : +##x##+#
FI F2 F3 F4 F5 F6 F7 F8
INDIV. ALL
‘ROGRAM PROGRAMS HELP EXIT
SOURCE:
Here it is possible to specify the source without changing the mode. An EPROM can also be given as source!
Possibilities:
I Mode I Source I
I OFFLINE
ONLINE I FD*, EPROM, EEPROM
FD*, CP530, EPROM, EEPROM I * Depending on drives defined,
e. g. A, B, C,
PROGRAM NAME:
If a drive (FD) is specified as source, the program name under which the user data are stored on the minidiskette or hard disk must
be entered here. All program names on the disketteldisk can be entered with the aid of the HELP function.
3-42
3. Operator Input and Operation of the COM 530
Function keys:
Fl: Information is given on whether a SYSID identifier and/or polling list and/or interrupt list is available either in the
memory submodule of the CP 530 or in the memory submodule of the CPU or whether these have been stored on
the user diskette under the program name specified. Selects the INFO 1 form.
F 2: All program names on the user diskette are listed. Selects the INFO 2 form to appear.
(Only possible for “FD” source!)
F 7: HELP function for entering the source and available program names.
Mode Source
— INFO 1 Form
INFO
SYSID: Xxxxxxxxxxxxxx
POLLING LIST: XXXXXXXXXXXXXX
INTERRUPT LIST: XXXXXXXXXXXXXX
F1 F2 F3 F4 F5 F6
3-43
3. Operator Input and Operation of the COM 530
INFO 2 Form
—
INFO
Available programs:
r F3 F4 F5
EXIT
Function keys:
3-44
m
3. Operator Input and Operation of the COM 530
In “Delete” mode, user data stored in the CP 530 or on diskette, hard disk or EEPROM under a certain program name can be dele-
ted.
DELETE
SOURCE ++#4F$#4!+k
F1 F2 F3 F4 F5 F6 F7 F8
POLLING INTERRUPT TOTAL
SYSID LIST LIST DELETION HELP EXIT
SOURCE:
Possibilities:
Mode Source
OFFLINE FD
ONLINE FD, CP530
PROGRAM NAME:
If diskette (FD) is specified as source, a program name under which the bus parameters are stored on the minidiskette or hard disk
must be entered here.
All program names on the user diskette can be entered with the aid of the HELP function.
3-45
I
3. Operator Input and Operation of the COM 530
Function keys:
FI F2 F3 F4 F5 F6 F7 F8
YES NO EXIT
The deletion is indicated by the “Active!” and “SYSIS deleted!” or “Polling list deleted!” or “Interrupt list deleted!”
messages.
F 7: HELP function for entering the source and the program names on the floppy diskette
w
Source must be specified. The following are possible:
3-46
m
PG priority ON means that the programmer connected directly or indirectly to the PG (programmer) interface has absolute priority.
After selecting the form, the status information is constantly requested by the CP in the “Status” function and updated in the dis-
MODES
.— CPmode: Xxxx
PGpriority: Xxxx
Errors: 1 Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2 Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
3 Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
F1 F2 F3 F4 F5 F6 F7 F8
CP PGPRIOR- PGPRIOR- ERROR
S%P RUN ITYYES ITYNO ACK HELP EXIT
CP MODE:
Here the current mode of the CP 530 is displayed: The possibilities are “STOP” or “RUN”. The “STOP” or “RUN” modes can be
forced with function keys F 1 or F 2.
PG PRIORITY:
The “PG PRIORITY” field also shows the current CP mode (possibilities: YES and NO).
These settings can be changed with the F 3 and F 5 function keys.
ERRORS:
The error messages collected in the CP 530 are displayed in the “ERROR” fields and updated approximately every half second.
After function key F 1 to F 4 have been actuated, the “CAUTION: DANGEROUS STATE – Operate keys again” message is output
and only the relevant function keys appear in the menu.
3-47
3. Operator Input and Operation of the COM 530
Function keys:
Fl: The CP 530 is brought to the STOP mode at the end of the current cycle through the polling list.
As a dangerous system status can occur, the user is prompted to acknowledge with the following menu:
FI F2 F3 F4 F5 F6 F7 F8
CP CP
STOP RUN EXIT
F 2: The operating mode is not changed as the CP 530 is already in the RUN mode. The “CP IN RUN MODE” mes-
sage appears.
Only
a) Positive acknowledgement with F 1 or
b) Negative acknowledgement with F 8 are meaningful.
F 8: Negative acknowledgement means that the operating mode is not changed. Return to main menu. —
F2: The CP 530 is brought to the RUN mode. As a dangerous system status can occur, the operator is promted to ack-
nowledge with the following menu:
F1 F2 F3 F4 F5 F6 F7 F8
CP CP
STOP RUN EXIT
Fl: The operating mode is not changed as the CP 530 is already in the STOP mode. The “CP IN STOP MODE”
message appears.
Only
a) positive acknowledgement with F 2 or
b) negative acknowledgement with F 8 are meaningful.
F 8: A negative acknowledgement means that the operating mode is not executed. Return to main menu.
3-48
m
3. Operator Input and Operation of the COM 530
FI F2 F3 F4 F5 F6 F7 F8
PGPRIORITY PGPRIORITY
YES NO EXIT
F 3: After this positive acknowledgement the CP 530 is brought to the “PG check YES” mode.
This is indicated as follows:
— The “Executed!” message is displayed
— “YES” appears in the “PG PRIORITY” field
F4: The mode is not changed as the CP 530 is already in the “PG check NO” mode. The “PG PRIORITY OFF” mes-
sage appears.
Only
a) Positive acknowledgement with F 3 or
b) Negative acknowledgement with F 8 are meaningful.
F8: Negative acknowledgement means that the operating mode is not changed. Return to main menu.
— F4: The CP 530 is brought to the “PG check NO” mode. As a dangerous system status can occur, the operator is promp-
ted to acknowledge with the following menu:
F1 F2 F3 F4 F5 F6 F7 F8
PGPRIORIN PGPRIORITY
YES NO EXIT
F 3: The operating mode is not changed as the CP 530 is already in the “PG check YES” mode. The “ PG PRIORITY
ON” message appears.
Only
a) Positive acknowledgement with F 4
—. b) Negative acknowledgement with F 8 are meaningful.
F4: After this positive acknowledgement, the CP 530 is brought to the “PG check NO” mode.
This is indicated as follwos:
— The “Executed!” message is displayed
— “NO” appears in the “PG PRIORITY” field.
F8: Negative acknowledgement means that the operating mode is not changed. Return to main menu.
F 7: The HELP function causes a description of the operating modes which can be set with F 1 to F 4 to be displayed on
the screen. This description can be exited with function key F 8 (EXIT).
3-49
I
3. Operator Input and Operation of the COM 530
‘No” nn
The error number permits a breakdown of the errors into clas- Error Classes:
ses; the appended text provides more detailed information on
Advantages of error classes
the particular error or fault (see table of Error Classes). — more efficient error messaaes
— the user can define a gene~al reaction to a failure class.
a) Description of a group error number in more detail, e. g.
the result of the self text produces class 1 errors and these There are also other errors but these are not shown in this way
can only be reported to the works if the module is replaced since the failure relates to those parts of the system neces-
or repaired. Example: Error 7: “Hardware error 7“. sary to transmit the error number.
F
I General
T
c) Description of a slave in connection with which the error
Class Error Operator Level of
occurred, No. Description reaction service
e. g. Error 60: “Slave 3 not in polling list”.
1 10–29 Possible hardware Check/replace/ 1. Operator
fault repair: Hardware 2. Service
E
2 30–49 Operational Check/replace Operator
errors Switches
Submodule
4 Record Operator
3-50
9
Class Error I
No. Ext.
decimal representation
3-51
I
4. Appendix
The following message texts appear in the message line; the numbers are internal references only and should not appear.
4-1
m
4. A p p e n d i x
Source
DISKETTE + + +
CP530 + - +
EPROM + + —
— + permissible
– iillegal
DISKETTE User diskette or hard disk
CP530 SINEC L1 communications processor
EPROM Plug-in EPROM-/EEPROM submodule
4-2
4. Appendix
Error 2A: WARNING: No EPROM driver on the system diskette. No EPROM calls!!!
The COM 530 draws the user’s attention to the fact that there is no EPROM driver on the system diskette being used.
WARNING: An attempt to program data into an EPROM or to read data from an EPROM causes a program crash.
The “IN TERRUPTTRAP HALT” message appears in the form.
Action: Put original S5-DOS system diskette into a drive and start program once more.
4-3
m
4. A p p e n d i x
4-4
4. Appendix
Error 72: It is not possible to set the CP to RUN since the Stop/Run switch is at STOP!
—.
Error 73: CP 530 is a slave
The following error messages may appear after accessing a drive (diskette or hard disk):
File write-protected
Read-only access to the selected program
Siemens AG Name
Geratewerk Amberg, TDI
Postfach 1954
Werner-von-Siemens-Stra8e 48-52 :ompany/Department
D-8450 Amberg
kddress
Federal Republic of Germany
Have you found any typographical errors while reading this manual? Please use this form to
tell us about them.
We would also welcome any ideas and suggestions you may have.
.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
.,..,,,,.,., . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . , .,..0..... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..............................