Documente Academic
Documente Profesional
Documente Cultură
Maintenance on supply, signal and data lines may only be executed by qualified personnel with
consideration off all ESD protection measures. With direct contact of this lines the maintenance per-
sonnel have to be electrostatic discharged!
Important Note
All HIMA products mentioned in this manual are protected with the HIMA trade-mark. As not diffe-
rently noted down this is possibly also valid for other mentioned manufactueres and their products.
All technical statements and data in this manual have been worked out very carefully, and effective
checks and inspections have been applied. This manual may however contain flaws or typesetting
errors. Therefore HIMA does not offer any warranties nor assume legal reponsibility nor any liability
for the possible consequences of any errors in this manual. HIMA would appreciate being informed
on possible errors.
The „General Conditions of Supply and Delivery for the Products and Services of the German Elec-
trical Industry“ apply for our deliveries and services.
Eventual complaints can be recognized only when we are being notified within 14 days after receipt
of the merchandize.
The prices shown in a special list are valid ex works, packing charges excluded. The prices ars sub-
ject to change.
Table of Contents
Table of Contents
3 Assignment tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.1 Assignment of the Operating Systems to the
Types of Central Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3.2 Assignment of the Operating Systems to other Firmware . . . . 6
4 Cycle Run . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1
Table of Contents
11 Diagnostic Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
11.1 Information to be Called during RUN Operation . . . . . . . . . . 26
11.2 Errors in the Central Area (“CPU” LED lights up) . . . . . . . . . 29
11.3 Errors in the IO Area (“IO” LED lights up) . . . . . . . . . . . . . . . 29
11.4 List of Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2
The Functions of the Operating System
The main functions of the operating system and the selections in the user
program are listed in the table below.
Diagnostic display —
Variable Declaration,
PLESY II external coupling
PLESY II Logline attributes, event - controlled
3
The Functions of the Operating System
If a master system requests data (read data) via the serial interfaces (en-
gineering station, process control system via MODBUS coupling, etc.) the
PES answers immediately (instant answer) on the interface from which it
received the read request.
The write data received via the serial interfaces are stored in a buffer and
taken over at the beginning of the next cycle. Depending on the master the
answer comes either instantly (PLESY II, PES master) or when the datas
are taken over.
512 bytes
4
Identification of the Operating Systems
BS-CRC: 2E49
5
Assignment tables
3 Assignment tables
6
Cycle Run
4 Cycle Run
The operating system continually processes the user program cyclically.
A greatly simplified form of the order of processing looks as follows:
• Reading the input signals
• Processing the logic functions
according to IEC 61131-3 chapter 4.1.3
• Writing the output signals
Stage 3 transmission of the inputs to the slave transmission of the inputs to the other central
central module module, if redundant central module exist
Stage 4 copy all internal variables to import variables copy all internal variables to import variables
working of the user logic working of the user logic
write export data to EN-BG write export data to EN-BG
cyclically comparison of memory cyclically comparision of the memory, if redun-
dant central module exist
Stage 5 exchange of the output and comparison exchange of the output and comparison, if
redundant central module exist
Stage 6 writing of the output signals by the master writing of the output signals
central module
Stage 7 reading back of the output signals by the reading back of the output signals by the slave
slave central module and comparision central module and comparision
with correctly output signals next cycle with correctly ouput signals next cycle
(stage 1) (stage 1)
switching off of the faulty output module with switching off of the faulty output module with
unequal outputs (group shut down) and jump unequal outputs (group shut down) and jump
to stage 5 to stage 5
7
Cycle Run
8
HIMA - Standard functions
TÜV test “•” means that the respective building block can be used in safety
related PES, and that it has a TÜV safety certificate.
9
HIMA - Standard functions
TÜV (TÜV test) “•” means that the respective IO module or software buil-
ding block may be used for safety related functions, and that they have a
TÜV safety certificate.
10
Overview of the possible couplings
The data to be sent and received by a PES are defined as variables with
the attribut HIPRO-S (for safety-related data transfer).
11
Coupling with Other HIMA PES
During operation the PES master reads all the data to be transmitted in the
PES connected, joins the transmissions for the PES and then sends the
data to the PES.
During operation the PES master organizes direct data transmission bet-
ween the individual PES. The PES master itself does not store the data.
Although data transmission runs via the HIBUS, it has to be imagined as
a point-to-point connection.
12
Coupling with HIMA Master Systems
It is only possible to write variables of the PES with the attribute Modbus
read/write.
Furthermore the visualisation system stores and prints out events. The
wished variables get the attibute event controlled in the H51q variables as-
signment. The events are stored in a buffer in the PES, and they are re-
quested there by the visualisation system, where they are displayed on the
monitor or printed out on a connected printer. For later evaluation, it is pos-
sible to store the events on the hard disk. The configuration and the desti-
nation of the alarm text are done in PLESY II.
13
Logic Plan Controlled Logging
The events and texts are part of the user program. Further additional
functions can be realized by the HK-LGP-3 software building block (cf de-
scription of the building block).
Directly used are the MODBUS protocol, as slave and master system, and
the Siemens 3964R protocol, as slave system. In the case the HIMA PES
is used as a slave system, no further HIMA standard buildingblocks in the
user program are needed for the communication. If the HIMA PES is used
as MODBUS master, the HIMA standard building block HK-MMT-3 is ne-
cessary in the user program. The function of the building block is explai-
ned in the description of the building block. The interface parameters are
defined in thebookshelf (settings) of the resource, if they differ from the de-
fault setting. (9600 baud or 57600 baud, 1 stop bit, even parity).
The communication module F 8626 with its integrated Fieldbus communi-
cation module enables the connection of a Profibus-DP slave.
With the communication module F 8625 and a HIMA OPC server can be
realized an Ethernet communication with the OPC protocol.
The communication with the external systems is only working, if the HIMA
PES is in RUN-mode.
14
Coupling with External Systems
Master-system Slave-system
The HIMA PES only have the RTU (Remote Terminal Unit) mode of trans-
mission, which is the customary way between computer systems. The
transmission is asynchronous with 8 bits and CRC error check.
The master system can read and write the variables of the HIMA PES,
which habe the attribute Modbus read and write.
15
Coupling with External Systems
Events can be read (reading from the buffer) with special function codes
not defined in the original MODBUS protocol or with standard codes (see
trend recording).
CODE EXPLANATION
2 address too high, variable does notexist.
data >256 bytes (2048 bool values, 128 integer values)
Example:
Slave number: 17
Function code: 1
Bool variables: 20...56 = 37 variables
16
Coupling with External Systems
Type Slave Code Bytes Data Data Data Data Data Check
27-20 35-28 43-36 51-44 56-52
DEC 17 1 5 205 107 178 14 27 CRC
HEX 11 01 05 CD* 6B* B2* 0E* 1B* 2 bytes
* = possible values
CD (Hex) = 11001101 (binary), i.e. the variables no. 27, 26, 23, 22, and 20
have 1 signal and the variables no. 25, 24 and 21 have 0 signal.
Immediately after the request the PES sends the data to the master sy-
stem.
CODE EXPLANATION
2 address too high, variable does not exist
data >256 bytes (2048 bool values, 128 integer values
3 “EFFECT” different from FF00 H resp. 0000 H (bool values)
Example:
Slave number: 17
Function code: 5 (Force single coil)
Bool variable: 37
Address: 37
17
Coupling with External Systems
The PES receives the data transmitted and writes them to the variables at
the beginning of the next cycle. Therefore the longest response time is the
cycle time of the PES.
CODE EXPLANATION
0 RETURN QUERY DATA
For the transmission of events from the slave system to a master system
codes 65, 66, 67 which are reserved for user functions in the original
MODBUS protocol were used.
18
Coupling with External Systems
“STARTING-POINT”
is always 0.
“QUANTITY OF POINTS”
is always the total number of events (highest number + 1). The values are
transmitted as compressed values.
The events are stored with 8 bytes in the buffer. The assignment is as fol-
lows:
LO Low byte
HO High byte
a 0 or 1 signal (1 byte)
ms 0...99 milliseconds
ds 0... 9 deciseconds/tenths of seconds
s 0...59 seconds
m 0...59 minutes
h 0...23 hours
19
Coupling with External Systems
Code 67 is only possible after Code 66, if the master system has not re-
ceived a correct response to code 66. It makes the slave system repeat its
latest response.
After a new start or buffer overflow of the slave system code 65 should be
sent. In normal operation code 66 resp. 67 has to be sent cyclically by the
master system.
CODE EXPLANATION
1 code 67 was not preceeded by code 66
The event variables are defined within the ELOP II (Variable Declaration,
attribute event recorded). A maximum of 1024 event names can be defi-
ned.
From start address 2048 on, the status of the variables defined as events
can be accessed via READ COIL STATUS
20
Coupling with External Systems
The buffer holds a maximum of 62 events. If more events occur, the buffer
overflow thus caused is identified by 8 bytes FF (hex). New events are ta-
ken into the buffer only after the overflow identification has been read.
Each event is stored in the buffer by 8 bytes which have the following me-
aning:
ms 0...99 milliseconds
ds 0...9 deciseconds/tenths of seconds
s 0...59 seconds
m 0...59 minutes
h 0...23 hours
All events occurred are contained in the answer of the slave or the buffer
is empty:
All 8 bytes of the remaining data of the transmission have the value
EE(hex).
When events are being checked via code 3, as many events are read out
of the buffer (a maximum of 31 events x 4 integer values = max. 31 x 8
bytes) as have been defined in the request of the master system. As one
event consists of 8 bytes, 4 integer variables have to be taken together in
reading.
21
Coupling with External Systems
If an inquiry with the same start address as during the previous check is
received, the latest response is supposed to have been received incor-
rectly by the master, and therefore the master asks again for the same
events.
Start addresses:
Example
CODE EXPLANATION
2 start address or number of values do not correspond to the
definition.
22
Coupling with External Systems
The time transmitted is the point of time of sending the first character of
this transmission. The time in the slave is corrected by the delay caused
by the transmitting time.
The time transmitted is the point of time of sending the first character of
this transmission. The time in the slave is corrected by the delay caused
by the transmitting time.
The values sent by the master system are processed in the user program
at the beginning of the next cycle, and they are therefore treated as phy-
sical inputs. Only when the data are taken over to the variables, the ack-
nowledgement is sent to the master system.
The data requested by the master system are sent directly in the cycle to
the master.
23
Coupling with External Systems
Way of transmission:RTU
Parity bit: 1 (even)
Baud rate: 9600 Bd or 57600 Bd (DIL
switch on the central module)
Number of stop bits:1
If necessary the baud rate, parity and stop bits can be changed in the set-
tings of the resource.
The slave number is defined by the user who sets the bus subscriber num-
ber (encoding switch on the central module).
With some process control systems the counting of the addresses starts
at 1; in the HIMA PES it starts at 0 (according to the definition in the MOD-
BUS reference guide). Take remedial measures with declaration a dummy
BUSCOM variable in the HIMA PES with the adresse 0.
The HIMA H41q and H51q PES can only be applied as slave systems.
Only the interfaces on the central module (1 or 2) and not the interfaces
on the coprocessor modules can be used for this way of data transmissi-
on. Only the data type “D” (Data Block) of protocol 3964R is supported.
HIMA works with the Block Check Character (BCC) inside the telegram.
The definition of the reading and writing variablen is done the resource
(Variable Declaration) via the attribute Siemens-Protocol.
24
Coupling with External Systems
3 error of number:
number = 0 or greater than the number of defined variables
or number >128 bytes
25
Diagnostic Display
11 Diagnostic Display
The diagnostic display consists of a four-digit alphanumerical display as
well as two LEDs with “IO” and “CPU” identification on the front plate of the
central module of the PES. Via 2 pushbuttons additional information can
be called from the PES. The kind of information is explained below. One
pushbutton is for selecting the next higher or lower level, the other push-
button is for selection information on the same level.
26
Diagnostic Display
27
Diagnostic Display
If “----” has been entered in the value column only the entries in the text
column are displayed. If a number has been entered in the value column,
the text and the value are displayed alternatingly during operation of the
PES. If the text contains more letters than the four letters visible, it is dis-
played as running text. A point as running letter is the living sign.
28
Diagnostic Display
Display Explanation
Text
DEAD fatal error at start up
EXCP only switching off/on possible
NMI no communication exchange the module
RAMT display after switching on until switching on the IOs
CHCK
WAIT
STOP error stop
by error stop through error of output modules, coupling
module and group amplifier, it is possible to call the positi-
ons of the IO-modules with pushing two times the button
of the central module to the right side
Display Explanation
1024 position of a faulty IO module
04: position in the IO rack
2: number of the IO rack
1: number of the cabinet or the IO-bus
1314/2/4 channel fault of a IO module with line supervision
/2/4: numbers of the faulty channels
14: position in the IO rack
3: number of the IO rack
1: number of the cabinet or the IO-bus
14** fault of the complete IO rack
4: number of the IO rack
1: number of the cabinet or IO-bus
It is impossible to address the IO rack (connection cable,
IO-bus, power supply, connection module)
Other information can be selected via the two pushbuttons even if the “IO”
display lights up. If within 20 seconds no new information is requested, the
IO positions are again displayed.
29
Diagnostic Display
30
Diagnostic Display
31
Diagnostic Display
32
From:
Company:
Name:
Dept.:
HIMA Paul Hildebrandt GmbH + Co KG Address:
Industrie-Automatisierung
Documentation
P.O. Box 1261
68777 Brühl Phone:
Germany Fax:
Date
Dear reader,
we are always eager to keep our manuals up to date and to avoid errors. But if you have found an
error in this manual, or if you want to make suggestions for improvements, also for the HIMA pro-
ducts, we would be very grateful to you.
Please use therefore just this page or a photocopy of it and send it to us by post or by fax.
(Fax No. (+49) 6202 709-123)