HI 800 265 H41qH51q F8627X E PDF
HI 800 265 H41qH51q F8627X E PDF
The safety-related H41q/H51q systems as described in this manual can be used for several different pur-
poses. The knowledge of regulations and the technically perfect transfer carried out by qualified staff are
prerequisites for the safe installation, start-up and for the safety during operation and maintenance of the
H41q/H51q systems.
In case of unqualified interventions into the automation devices, de-activating or bypassing safety
functions, or if advices of this manual are neglected (causing disturbances or impairments of safety
functions), severe personal injuries, property or environmental damage may occur for which we cannot
take liability.
Important Notes
All HIMA products mentioned in this manual are protected with the HIMA trade-mark. As not differently
noted down this is possibly also valid for other mentioned manufactueres and their products.
All listed modules are CE certified and meet the requirements of the EMC Guideline of the European
Community.
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 er-
rors. 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.
Delivery Conditions
For our deliveries and services apply the “General Conditions for Delivery of Products and Services of
the German Electrical Industry “ - edition January 2002 -, resp. the “Conditions of Delivery for System
Software and Peripheral Devices for the HIMA Automation System“ (e. g. programmer units, printers,
screen monitors). The products of this price list are subject to the valid export regulations.
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 are subject
to change.
Table of Contents
Table of Contents
1 Technical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Functions of F 8627X. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.2 Operating system versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2.3 Compatibility of the operating system versions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3.1 Ethernet communication between F 8627X and F 8625 . . . . . . . . . . . . . . . . . . . . . . 3
2.3.2 Redundant interconnection in an H41q/H51q controller . . . . . . . . . . . . . . . . . . . . . . 3
2.4 Replacing an F 8627X . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.4.1 Operation of the ejection lever . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.4.2 Procedure for exchanging a redundant F 8627X in a redundant
H41q/H51q controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
I
Table of Contents
6.6 HIPRO-S . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.6.1 Notes for creating HIPRO-S user program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
6.7 HIPRO-S-DIRECT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
6.7.1 Notes for creating HIPRO-S-DIRECT's user program . . . . . . . . . . . . . . . . . . . . . . . 32
6.8 Calculating the monitoring time for HIPRO-S/ HIPRO-S DIRECT connections. . . . 33
6.8.1 Calculation method and formulas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
6.8.2 Example for calculating the monitoring time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
6.9 Example of "Bus configuration with 64 resources" . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.9.1 Function description of bus configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6.9.2 Setting up the bus configuration in ELOP II. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.10 Communication with HIMA OPC Server (BUSCOM). . . . . . . . . . . . . . . . . . . . . . . . 42
6.10.1 F 8627X configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.10.1.1 Passive mode disabled (switch S1/8 "ON") . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.10.1.2 Passive mode enabled (switch S1/8 "OFF") . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
6.10.1.3 Benefits of passive mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
6.10.1.4 Numbers of HIMA OPC server and determination of the node Id . . . . . . . . . . . . . . 43
6.10.1.5 Determining the IP address of the OPC Server network card . . . . . . . . . . . . . . . . . 44
6.10.2 Configuring of the BUSCOM variables in ELOP II. . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.10.2.1 Address range of the BUSCOM variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
6.10.2.2 Manually assigning the address for BUSCOM variables . . . . . . . . . . . . . . . . . . . . . 45
6.10.2.3 Automatically assigning the address for BUSCOM variables . . . . . . . . . . . . . . . . . 45
6.10.3 Example of a configuration in ELOP II for the communication with a HIMA OPC-Server
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
9 Recommended literature. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
10 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
II
F 8627X (1104)
F 8627X:Ethernet module
F 8627X Communication Module for Ethernet-Communication
Application in H41q/H51q PES (beginning with OS 41q/51q V7.0-7 (9906)).
Appertaining ELOP II Function block: HK-COM-3
switch 1 switch 2
Figure 1: Communication module F 8627X
1 Technical data
Processor 32 bit Motorola CPU MPC860T with integrated
RISC communication controller
Operating voltage 5V
Current consumption 1A
Space required 3 HU (units high), 4 SU (units wide)
Ethernet Interface 10BaseT or 100Base TX according to the IEEE 802.3 standard,
connection via an RJ-45 plug.
HSR Interface High-speed serial communication interface to the redundant
HSR (High Speed Redundancy) communication module.
Connection via an RJ-12 plug with BV 7053.
Serial Interface The serial interface FB is not used.
Diagnostic Display 6 LEDs for display diagnostic during operation.
DIP switches 2 DIP switches for setting the module functions.
2 Functions of F 8627X
2.1 General
A H41q/H51q controller can simultaneously exchange via an F 8627X non safety-related data
with a HIMA OPC server and safety-related data via safeethernet. In this case, the F 865xX
central module ensures safety.
Beginning with operating system version 4.x, the F 8627X supports the functions "Modbus
TCP slave" and "ELOP II TCP". The ELOP II TCP connection provides a fast data exchange
between a PADT (PC) and the F 865xX central module.
Note The F 8627X has the same functions as the F 8627 and is compatible
with it. The new functions are only supported in an F 8627X with oper-
ating system V4.x or higher.
2
F 8627X (1104)
Note The "passive mode" and the "DIRECT mode" may only be activated if
activated on the redundant communication module.
3
F 8627X (1104)
4
F 8627X (1104)
Make sure that you connect the Ethernet cable to the Ethernet socket
(10/100BASE-T) and the HSR cable to the HSR socket (HSR).
The respective connectors must be pressed in until they snap into their
sockets.
Note The ARP entry on the PADT (PC) must be deleted if the new F 8627X
has the same IP address as the old F 8627X.
If the new F 8627X has the same IP address it cannot be connected to
the PADT (PC).
5
F 8627X (1104)
Note
The redundancy LED is OFF if DIRECT Mode
(switch 1/7 ON) or Mono (switch S2/2 ON) is
enabled. This applies also in case of a redundant
connection via HSR cable.
Flashing - Flashing Booting of the communication module
ON - Flashing Beginning with OS version 4.x
User Error / Configuration Error
• Res-ID and ID are not equal
• Ethernet communication protocol inactive,
even if the communication module is in RUN
status.
OFF - ON Fatal error in communication module. Module
must be replaced.
OFF - Flashing Saving the error code in Flash-EPROM (required
3-times for repair purposes)
Do not unplug communication module!
6
F 8627X (1104)
ID_IP ON
The bus station number (ID) which is set on the F 865xX
central module via switches (S1 1-7) is used as Res-ID if
no Res-ID could be determined from the loaded user pro-
gram.
ID_IP OFF
The bus station number (ID) which is set on the F 865xX
central module via switches (S1 1-7) is never used for the
Res-ID.
7 DIRECT DIRECT HIPRO-S-DIRECT Mode must be activated if more than
Mode Mode one bus configuration is required. HIPRO-S-DIRECT is
enabled disabled supported beginning with the F 8627X OS version 3.x.
8 Passive Passive The Passive Mode controls the communication to the
Mode Mode HIMA OPC server.
disabled enabled
Passive Mode enabled:
The Token Passing between the F 8627X to the HIMA
OPC servers is disabled.
The HIMA OPC servers cyclically exchange data with the
F 8627X, independent of the token owner.
7
F 8627X (1104)
51) 2) Full duplex Half duplex The switch position of switch is only relevant if
switch S2/3 (auto-negotiation) is OFF.
Note Beginning with OS version 4.x, an F 8627X with the settings "Autone-
gotiation Off" (S2/3 OFF) and "full duplex" (S2/5 ON) may not operate
with a communication partner (e.g. switch) with Autonegotiation acti-
vated.
Since these settings are allowed for OS version V3.x and below, they
must be checked and, if necessary, adapted when upgrading to OS
version V4.x or higher. Not observing these settings can lead to com-
munication problems.
8
F 8627X (1104)
Note The resource name must have eight characters and the last two char-
acters (Res-ID) must be numbers!
IDs allowed:
The ethernet module does not change to RUN status, if the Res-ID >
64 and the DIRECT Mode is deactivated.
Example:
Resource name MT200_33, module channel 1 (switch 2/1 = ON)
Host address: 33 ∗ 2 + 1= 67; IP address = 192.168.0.67
9
F 8627X (1104)
Note For ELOP II TCP connection, any free IP address for the PADT may
be used. If the PADT IP addresses and the F 8627X are located in the
same subnet, a routing entry for the subnet of the F 8627X is not
required on the PADT (see also Chapter 5.2.6.1).
Note Carefully check that no other participant (e.g. H41q/H51q, OPC server
or PC) has the same IP address, as this could cause communication
problems. Next time, when expanding communication, please con-
sider the H41q/H51q and the OPC server IP-addresses.
10
F 8627X (1104)
Note Please refer to the manual "Functions of the operating system BS41q/
H51q (HI 800 105)" for further information about "Erasing the user pro-
gram".
• Open the tab PADT (PC) and select the communication type Ethernet.
• Select one of the IP addresses channel1 or channel2 which are determined by
ELOP II. By this the F 8627X connected to the PADT is selected.
• Click "OK" to close the "Properties" dialog with "OK".
Note In case of a redundant H41q/H51q, make sure that the HSR cable
(BV 7053) is plugged; otherwise there is no access available to the
redundant central module F 865xX.
• Open the context menu of the resource and select Control Panel.
11
F 8627X (1104)
In case of problems with the ELOP II TCP communication see also chapter 5.2.6.
Preconditions
A H41q/H51q controller may change to ELOP II TCP without a system stop if the following con-
ditions are fulfilled:
• The conditions for a ELOP II TCP connection are fullfilled (see chapter 5.2.1).
• A suitable operating system OS version (05.34) or higher must be loaded in the cen-
tral module(s) F 865xX.
• In the F 865xX a user program must exist having a resource name, from which the
F 8627X can determine an IP address.
• On all F 865xX the same number for the ID must be set, which is used as Res ID in
the resources name. For the reading of the ID, see manual "functions of the opera-
ting system BS41q/H51q" (HI 800 105).
Note In case of a redundant H41q/H51q, make sure that the HSR cable
(BV 7053) is plugged; otherwise no access possible to the redundant
central module F 865xX.
• Open the context menu of the resource and select control panel.
If a connection has been established, "OK" appears in the field "Communication"
In case of problems with the ELOP II TCP communication see also chapter 5.2.6.
12
F 8627X (1104)
13
F 8627X (1104)
The PADT can establish a connection to the H41q/H51q systems via ethernet segment 1 or
ethernet segment 2.
A routing entry for each ethernet module of the PADT is required (see also chapter 5.2.6).
14
F 8627X (1104)
5.2.6.1 Is the PADT (PC) network card located in the same subnet?
Note To ensure the routing entry remains permanent (e.g. after the PC is
restarted), use the -p parameter with the route command.
Example: route -p add.
Check if the routing entry for connecting the PC network card to the
F 8627X is correct by using the command route print.
15
F 8627X (1104)
Note If all steps described in this chapter have been followed and the
F 8627X does not respond, check if other participants can be
accessed using the PC's netword card.
5.2.6.4 The F 8627X determines its IP address in accordance with the following
priorities
1. The IP address is determined from the Resource ID (Res-ID) of the user program that
is loaded in the F 865xX.
The Res-ID of the user program always has a higher priority than the F 865xX ID set-
tings (DIP-switch 1-7).
2. The IP address is determined from the F 865xX ID settings (DIP switches 1-7), if the
Res-ID cannot be determined from the current user program's resource name and
switch ID_IP is activated on the F 8627X (switch 1/6 ON).
3. IP address of the "Basic Configuration"
If no IP address can be determined using the Res-ID or ID (switch 1/6 OFF) as de-
scribed in the first two cases, the last IP address determined on this F 8627X is used.
16
F 8627X (1104)
8896 Modbus (access of the process data image from the F 8627X)
6.2 Overview
The following tables provide a quick overview of the communication type properties that can
be set for the F 8627X as well as the conditions that must be fulfilled to do so.
HIPRO-S HIPRO-S-DIRECT
17
F 8627X (1104)
HIPRO-S HIPRO-S-DIRECT
F 8625 from version 1.x F 8625 from version 1.13 F 8627 / F 8627X
F 8627 / F 8627X F 8627 / F 8627X from version 3.x on
from version 2.x on from version 2.x on
DIRECT Mode Off DIRECT Mode Off DIRECT Mode On
Switch 1/7 (OFF) Switch 1/7 (OFF) Switch 1/7 (ON)
Passive Mode Off Passive Mode On If "DIRECT Mode Off"
Token passing to No token passing to an switch 1/7 is activated (ON), the
a HIMA OPC server HIMA OPC server F 8627X's settings remain
Switch 1/8 (ON) Switch 1/8 (OFF) "Passive Mode On".
Deactivate the Passive Activate the Passive Mode Activate the Passive Mode in
Mode in the HIMA OPC in the HIMA OPC server. the HIMA OPC server.
server.
Number of HIMA OPC Number of HIMA OPC Up to 14 OPC servers can be
servers fixed to 4 servers fixed to 4 used
Switch S2/6-8
Monitoring Time Monitoring Time Monitoring Time
for HIMA OPC server: for HIMA OPC server: for HIMA OPC server:
fixed to 16 ms fixed to 16 ms fixed to 6 seconds
The F 8625 / F 8627(X) The F 8625 / F 8627(X) The F 8627(X) communicates
communicates with an communicates with an with an OPC server via BUS-
OPC server via BUSCOM OPC server via BUSCOM COM variables.
variables. variables.
18
F 8627X (1104)
19
F 8627X (1104)
20
F 8627X (1104)
For a "truly" redundant connection, an own network segment is required for each channel. All
F 8625/27 (and PC network cards) with odd IP addresses (e.g. 192.168.0.67) must be at-
tached to segment 1 and all F 8625/27 with even IP addresses to segment 2 (see Chapter 5.1).
21
F 8627X (1104)
When two PES are interconnected together (Figure 7), no switch is required. Both 10BaseT or
100BaseTX interfaces of the communication modules are directly connected by a special
cross-over cable (with twisted wires).
In Figure 8, three PES are completely redundantly interconnected via two switches.
A third switch is connected to the redundantly interconnected PES via a redundant fibre optic
connection (the fibre optic interface is integrated in the switch). An HIMA OPC server and fur-
ther Ethernet components are connected to the third switch.
22
F 8627X (1104)
The serial Modbus slave is still supported (serial interface RS 485 on the F 865xX central mod-
ule).
The Modbus TCP slave IP address is the F 8627X IP address (see chapter 5.1).
A Modbus TCP master can access the Modbus TCP slave in the H41q/H51q via the ports 502
and 8896.
• Via F 8627X port 502, the F 865xX central module operates as a Modbus TCP
slave with the known functions (see manual "Functions of the operating system"
HI 800 105).
• Via F 8627X port 8896, the F 8627X operates as a Modbus TCP slave with further
Modbus function codes.
Both ports 502 and 8896 share the possible Modbus TCP connections in according with the
principle First Come, First Serve.
The following table shows three possible equipment configuration variants of H51q and how
many Modbus TCP master can access the F 865xX central module.
1 x CU1 1 4
1
1 x CU2 1 4
1 x CU1 2 8
2
1 x CU2 2 8
Partitioning of the BUSCOM address range in the Modbus TCP slave (H41q/H51q)
All variables which should be sent via the Modbus TCP slave must be created as BUSCOM
variables using ELOP II.
While configuring the Modbus communication, the user must ensure that separate address
ranges are used for BUSCOM Import Variables for each Modbus master; otherwise, the ac-
ceptance of the data sent by a Modbus TCP master cannot be guaranteed.
23
F 8627X (1104)
The following figure shows an example, how the BUSCOM import address range of the H41q/
H51q can be partitioning for the Modbus TCP masters.
Figure 9: Partitioning of the BUSCOM Import address range for the Modbus TCP Master
Note In case of port 8896, the BUSCOM variables are mapped into the pro-
cess data image of the F 8627X. The Modbus TCP master must there-
fore access the BUSCOM variables using the identity numbers (see
chapter 7).
To avoid further dividing the BUSCOM variable address ranges into
BOOL and WORD areas, we recommend creating BUSCOM variables
of type WORD only. This helps maintain a more simple overview.
Note The polling interval of the Modbus TCP slaves should be selected
depending on the cycle time of the F 865x central module.
tPoll = CT + n ∗ 15ms
CT: Maximum cycle time (ms) of the central module in status RUN
(it is displayed on ELOP II control-panel).
n: Number of Modbus masters polling the Modbus slave
15ms: Process time per request in which the Modbus masters should give to the
F 865xX central module.
Note Please read the cycle time under full communication load again and
check whether the maximum cycle time "CT" has increased. An adap-
tion of tPoll may be necessary.
24
F 8627X (1104)
Cable redundancy
Under all circumstances, Modbus communication only takes place via a single ethernet chan-
nel. If the Modbus master no longer receives a responding telegram on the active channel, it
can switch to the other channel and continue exchanging data. The Modbus master can thus
switch to the redundant channel if a network segment fails (e.g. broken ethernet cable or a
faulty switch).
Figure 10: Partitioning of the BUSCOM Import address range for the redundant
BUSCOM variables
Note In case of port 8896, the BUSCOM variables are mapped into the
F 8627X process data image. The Modbus TCP master must therefore
access the BUSCOM variables using the identity numbers (see Chap-
ter 7).
The logic of the user program must ensure, that the user program always processes the most
current data record of the channel.
A monotonically increasing sequence number, incremented by the Modbus TCP master, can
serve e.g. as a criterion for determining how up-to-date the BUSCOM variables in the separate
address ranges are.
Figure 10 shows an example, in which the sequence number is registered in the BUSCOM va-
riables Channel1 and Channel2, respectively.
25
F 8627X (1104)
Note The events query and the synchronization of the central module (CM)
software clock is only possible via TCP server port 502.
The HSR communication for a Modbus TCP slave via port 502 is inde-
pendent of the HIPRO-S-DIRECT mode.
The F 8627x and F 865xX react to a Modbus request via port 502 as follows:
• If the F 8627X is in mono operation mode (i.e. no HSR connection to a second
F 8627X), then the F 8627X must have a connection to the F 865xX, which in turn
must be in RUN status to answer a Modbus request with the corresponding Modbus
response.
• If two F 8627X are operating redundantly (i.e. HSR connection to a second
F 8627X), then one of the two redundant F 8627X must have a connection to its
associated F 865xX, which in turn must be in RUN or MONO status to answer a
Modbus request with the corresponding Modbus response.
If the Modbus request cannot be passed on to an F 865xX, the F 8627X sends the error code
0x0B back to the Modbus master.
Note Processing each Modbus Request increases the cycle time for the
F 865xX central module. To avoid increasing the cycle time too much,
the F 8627X limits the minimal polling interval per Modbus master to
50 ms.
Using port 502, if the recommended polling interval "tPoll" is ignored, the Modbus communica-
tion may behave as follows:
• Should the same master send other Modbus request within 50 ms, other Modbus
requests from the same master are received within 50 ms after a Modbus request,
the F 8627X transfers last Modbus-Request from this master to the F 865xX central
module, if:
• the central module is not processing a Modbus request from this master and
• 50 ms are expired.
• As long as the F 865xX is processing a MODUBUS request from a master, it will
only accept another Modbus request from this master after a minimum of 400 ms.
• In case of a new connection, the first request is passed on to the F 865xX after ≥ 50
ms.
Note If the Modbus master is only connected to one F 8627X on the H41q/
H51q, the Modbus master must always be connected to the F 8627X
plugged into the left F 865xX via an Ethernet cable.
This ensures that the data written most recently from the Modbus mas-
ter are also reflected in the data currently being processed by the user
program.
26
F 8627X (1104)
Note If port 502 is not used in the H41q/H51q controller, the polling interval
for port 8896 can be set to tPoll ≥ CT.
If the Modbus request cannot be passed to an active Modbus TCP slave, the F 8627X sends
the error code 0x0B back to the Modbus master.
Note HSR communication for a Modbus TCP slave via port 8896 is only
possible if both F 8627X are operating in redundant mode (DIP-switch
2/2 OFF) and the HPRO-S-DIRECT mode is deactivated (DIP-switch
1/7 OFF).
27
F 8627X (1104)
Via Modbus TCP port 8896, the F 8627X supports the following function codes:
The HIMA Modbus slave supplies identification data to the master and supports the following
Object-Ids:
Basic:
0x00 VendorName "HIMA Paul Hildebrandt GmbH + Co KG"
0x01 ProductCode "<Serial Number>"
0x02 MajorMinorRevision "<CU-OS Key 0x23ad CRC 0x-------- / COM Vx.y CRC>"
Regular:
0x03 VendorUrl "http://www.hima.com"
0x04 ProductName "HIQuad"
0x05 ModelName "<RessourceTyp>" z.B. "F 8627X"
0x06 UserApplicationName "<Buchst00>" resource name from ELOP projekt
Extended:
0x80 CPU OS version/CRC "< CU-OS Key 0x23ad CRC 0x-------->"
0x81 CPU OSL version/CRC deliver the error code 2 (Invalid Data)
0x82 CPU BL version/CRC deliver the error code 2 (Invalid Data)
0x83 COM OS version/CRC "<Vx.y / 0x234adcef>"
0x84 COM OSL version/CRC deliver the error code 2 (Invalid Data)
0x85 COM BL version/CRC deliver the error code 2 (Invalid Data)
0x86 Configuration-CRC "<Data-version 0x13ac / Area-version 0x13ac / Code-version
0x13ac / Run-version 0x13ac>"
28
F 8627X (1104)
For further information about Modbus TCP, refer to "Modbus Application Protocol Specifica-
tion" www.modbus.org.
Note The function codes 03, 04 and 16 support data type Word (2 bytes)
and any other data types. The interpretation of the two Modbus master
request parameters (start address, number) is done as follows:
Start address describes the index of the first variable to be transmitted.
Number determines the size of the area to be transmitted:
2*number bytes must be transmitted, provided the area ends directly
at a variable boundary.
0x01 If Modbus TCP master sends a telegram with an unknown function code,
(Invalid Code) Modbus TCP slave responds with error code 0x01 (invalid code).
0x02 If Modbus TCP master's telegram does not match with the Modbus TCP
(Invalid Data) slave's configuration (e.g. the request telegram does not end "even" at a
variable border), Modbus TCP slave responds with error code 0x02
(invalid data).
0x03 If Modbus TCP master sends a telegram with faulty values (e.g. length
(Invalid Value) field), Modbus TCP slave respons with error code 0x03 (invalid value).
29
F 8627X (1104)
6.6 HIPRO-S
HIPRO-S is a safe communication via the HIPRO-S variables configured in the PES.
In the HIPRO-S Mode, the Ethernet bus access control is done by token passing. This mode
provides operation with a hub and avoids collisions on the network.
The communication modules for HIPRO-S must be configured in ELOP II and via the DIP
switches.
• Switch 2/1 sets the module numbers, which corresponds to the attached Ethernet
segment (see Table 6 and Figure 5).
• Switch 2/2 set a mono or redundant interconnection of the communication module
group (see Table 6 and Figure 5).
• In ELOP II, a resource name must have eight characters, the last two of which must
be numbers (see Chapter 5.1.)
• With HIPRO-S, safety-related communication must be set up such that each PES
has configured a safety-related data exchange with all other PES (i.e. exchange of
dummy data if no other user data are exchanged).
The direction of the data exchange can be freely selected.
• To check the HIPRO-S configuration, the PES master program should be compiled,
but not loaded into the master. Potential errors can be corrected.
• Via the system variables, the diagnosis of the safety-related communication can be
evaluated in the user program.
• ELOP II's function block HK-COM-3 can be used to project and monitor the
F 8627X.
• The monitoring time "MT/MTe" for HIPRO-S connections must be calculated (Chap-
ter 6.8).
30
F 8627X (1104)
6.7 HIPRO-S-DIRECT
Like HIPRO-S, HIPRO-S-DIRECT is a safety communication via the HIPRO-S variables con-
figured in the PES. This mode can only be used with switches.
HIPRO-S-DIRECT mode allows a faster exchange of data than HIPRO-S mode.
The number of HIMA OPC servers can be set from 0 to 14. The number of HIPRO-S commu-
nication partners is not reduced by the number of configured HIMA OPC servers.
If HIPRO-S-DIRECT mode is active (switch 1/7 "ON"), switch S1/8 "passive mode" no longer
influences communication. For this reason, "passive mode" must also be activated on the
HIMA OPC servers.
The communication modules for HIPRO-S must be configured in ELOP II and via DIP-switch-
es
• Switch 2/1 sets the module number which corresponds to the attached Ethernet
segment (see Table 6 and Figure 5).
• Set switch 1/7 (Table 5 on page 7) to "ON" to activate the HIPRO-S-DIRECT mode.
• Switches 1/1 to 1/5 (Table 5 on page 7) set the "Timeout" for the answer of the com-
munication partner.
Switch 1 Timeout
On 10 ms
Off
On 20 ms
Off
On 30 ms
Off
On 40 ms
Off
On 50 ms
Off
On 60 ms
Off
On 70 ms
Off Legend:
On 80 ms
Off Positions white switch:
On 400 ms On White switch in On White switch in
Off Off position OFF Off position ON
On Not used
1000 ms switch
Off
31
F 8627X (1104)
32
F 8627X (1104)
If the monitoring time provided by the authority exceeds or is equal to 13200 ms, the user can
set the monitoring time of the HIPRO-S or HIPRO-S-DIRECT connections to 13200 ms in the
target resource. This value corresponds to the monitoring time, which is sufficient for the max-
imum size of a bus configuration (HIPRO-S with 31 or HIPRO-S-DIRECT with 64 members).
33
F 8627X (1104)
34
F 8627X (1104)
35
F 8627X (1104)
36
F 8627X (1104)
Note Respect the guidelines and application notes for configuring the Ether-
net Segments (Chapter 6.3).
37
F 8627X (1104)
In the application program of each resource, use the software function block HK-COM-3 for
configuring and monitoring the F 8627X.
• The HK-COM3 must be assigned as described in the following table:
Input Value
CU-Slot (1,2) 1
COM-Slot (1,2,3,4,5) 1
Enable Configuration TRUE/FALSE
Function 0, 1 or 3
38
F 8627X (1104)
Create and configure the three busses (see Table 13, Table 14, Table 15):
39
F 8627X (1104)
In each resource, define the communication partners (resources), with which HIPRO-S data
are to be exchanged.
Determine and set the monitoring time for the communication partners (see Chapter 6.8).
40
F 8627X (1104)
In ELOP II, define the HIPRO-S variable which should be used for the HIPRO-S communica-
tion:
41
F 8627X (1104)
Note The F 8627X OPC communication is only possible with a HIMA OPC
server.
In ELOP II, the resource name under ELOP II must have eight characters, the last two of which
must be numbers. The numbers must be unique to avoid collisions while determining the com-
munication module's IP address (see Chapter 5.1).
While configuring the communication with a HIMA OPC server, pay particular attention to the
Passive mode (see Chapter 6.10.1.1 to Chapter 6.10.1.3).
• If the Passive Mode is disabled on the F 8627X, it must also be disabled on the
HIMA OPC s+ervers.
• With HIPRO-S, safety-related communication must be set up such that each PES
has configured a safety-related data exchange with all other PES (i.e. exchange of
dummy data if no other user data are exchanged). The direction of the data
exchange can be freely selected.
This procedure is used because all Ethernet nodes must be known in each PES
within SafeEthernet to ensure communication within the network (token passing).
• The Passive mode may be only activated on a F 8627X, if HIMA OPC server also
supports it (HIMA OPC server version 3.2.0 and higher).
• The Passive Mode can also be activated, if safety-related communication for the
F 8627X module is configured.
Note If HIPRO S DIRECT mode is active (switch 1/7 "ON"), switch S1/8
"passive mode" no longer influences communication. For this reason,
"passive mode" must also be activated on the HIMA OPC servers.
42
F 8627X (1104)
Note Hubs may not be used in Passive mode. Switches are recommended.
On
Off
0 -
On 4 107 up to 110
Off
On 6 107 up to 112
Off
On 8 107 up to 114
Off
Legend:
On 10 107 up to 116
Off
Positions white switch:
On 12 107 up to 118 On White switch in On White switch in
Off Off position OFF Off position ON
Not used
On 14 107 up to 120 switch
Off
43
F 8627X (1104)
The following IP addresse are resulting from the calculation (see Table 17).
IP Address IP Address
Node Id
Segment 1 Segment 2
The IP address must be set in the properties of the network card of the PC running the HIMA
OPC server.
Note The base address' settings are located in the resource's properties. In
the "BUSCOM" tab, the user can set the base address separately for
Import, Export and Import/Export; however, using the standard base
address settings is recommended.
44
F 8627X (1104)
Note Select one of the two address ranges for the BUSCOM variables. If
this is not possible, please contact the HIMA support.
Addresses for the BUSCOM variables can be allocated automatically or manually, but each ad-
dress is allocated with reference to the base address.
Note The user should assign the address for the BUSCOM variables, man-
ually to avoid a reorganization of the addresses (address shift) after
adding new BUSCOM variables.
Once new BUSCOM variables have been added, a not reloadable code must always be gen-
erated to allow the addressing to be reconfigured.
45
F 8627X (1104)
• Save the file with the extension *.txt on a storage medium (server, floppy disk),
which the HIMA OPC server can read.
The generated BUSCOM list appears as seen in Figure 18 and can be used by the HIMA OPC
server without any changes.
46
F 8627X (1104)
All 2 Byte data types configured in ELOP II as BUSCOM variables are transmitted as WORD.
1 Byte data types (e.g. Byte, SINT) must be packed into BUSCOM variables of data type
WORD (e.g. with the function blocks "Pack" and "Unpack") such that they can be transmitted.
The addresses of the BUSCOM variables are calculated on the central module F 865xX as fol-
lows:
The relative address must be set such that the BUSCOM address is located in the same range
as the corresponding base address (see Table 20).
Note The base address' settings are located in resource's properties. In the
"BUSCOM" tab, the user can set the base address separately for
Import, Export and Import/Export; however, using the standard base
address settings is recommended.
The BOOL and WORD variables are stored within the import and export areas of the F 865x
E/X and further seperated into 0 and 1 areas.
BOOL WORD
Ranges
(BUSCOM address) (BUSCOM address)
Import range 0 (Base address 0000) 0000 to 2047 0000 to 2047
Import range 1 (Base address 4096) 4096 to 8191 4096 to 8191
Export range 0 (Base address 0000) 0000 to 2047 0000 to 2047
Export range 1 (Base address 4096) 4096 to 8191 4096 to 8191
Table 20: BUSCOM variable ranges in the F 865xX central module
47
F 8627X (1104)
Note This scheme for converting BUSCOM variables (on the F 865xX) into
identity numbers (on the F 8627X) is used for WORD as well as for
BOOL variables.
Consider at Modbus Port 8896, that you neither reading nor writing with a
Modbus telegram beyond the address range of a variable type
(see also Chapter 6.5.4)
7.3.1 Example 1
In this example the WORD variables in the export area 0 (on the F865xX) start with the BUS-
COM address 0 and are mapped to the memory area EV (on the F 8627X) with the identity
number 0.
The identity numbers of the WORD variables in memory area EV are in ascending order up to
the last WORD variable (identity number 110) from export area 0.
In this example, the BOOL variables in export area 0 (on the F 865xX) start with BUSCOM ad-
dress 0 and are mapped to memory area EV (on the F 8627X) beginning with identity number
111, which follows the last identity number of the WORD variables (i.e. 110).
The identity numbers of the BOOL variables in memory area EV are in ascending order up to
the last BOOL variable (indentity number 150) from export area 0.
F 865xX F 8627X
BUSCOM areas memory area EV
Export area (EA) for Export variables (EV)
ER-0000 0000
word 0
word Identity number
0110 EV-0000
BUSCOM address
110
area 0 ER-2047 111
ER-0000 bool EV-0000
0000
261
bool
0150
ER-2047
ER-4096
area 1 ER-8191
ER-4096
ER-8191
48
F 8627X (1104)
7.3.2 Example 2
In this example the BOOL variables in the export area 0 (on the F865xX) start with the BUS-
COM address 0 and mapped to the memory area EV (on the F 8627X) with the identity number
0.
The identity numbers of the BOOL variables in memory area EV are in ascending order up to
the last BOOL variable (identity number 100) from export area 0.
In this example, the BOOL variables in export area 1 (on the F 865xX) start with BUSCOM ad-
dress 4096 and are mapped to memory area EV (on the F 8627X) beginning with identity num-
ber 101, which follows the last identity number of the BOOL variables (i.e. 100).
The identity numbers of the BOOL variables in memory area EV are in ascending order up to
the last BOOL variable 4196 from export area 1.
F 865xX F 8627X
BUSCOM areas memory area EV
Export area (EA) for Export variables (EV)
ER-0000
0
bool Identity number
EV-0000
100
ER-2047 101
area 0 bool EV-4096
ER-0000 0000 201
bool
0100
BUSCOM address
ER-2047
ER-4096
ER-8191
area 1 ER-4096 4096
bool
4196
ER-8191
49
F 8627X (1104)
7.3.3 Example 3
In this example, the WORD variables in export area 0 (on the F 865xX) start with BUSCOM
address 1 and are mapped to the memory area EV (on the F 8627X) beginning with identity
number 1. The identity numbers of the WORD variables in memory area EV are in ascending
order up to the last WORD variable (0110) from export area 0.
The unused BUSCOM address 0 is assigned a dummy variable and mapped to identity num-
ber 0 within memory area EV.
In this example, the WORD variables in export area 1 (on the F 865xX) start with BUSCOM
address 4100 and are mapped to the memory area EV (on the F 8627X) beginning with identity
number 115. The identity numbers of the WORD variables in memory area EV are in ascend-
ing order up to the last
WORD variable (4200) from export area 1.
The unused BUSCOM addresses 4096 to 4099 are assigned dummy variables and mapped
to identity numbers 111 to 114 within memory area EV.
In this example, the BOOL variables in export area 0 (on the F 865xX) start with BUSCOM ad-
dress 0 and are mapped to the memory area EV (on the F 8627X) beginning with identity num-
ber 216 which follows the identity number 215 of the last WORD variable from export area 0.
The identity numbers of the BOOL variables in memory area EV are in ascending order up to
the last BOOL variable (0100) from export area 0.
In this example, the BOOL variables in export area 1 (on the F 865xX) start with BUSCOM
address 4096 and are mapped to the memory area EV (on the F 8627X) beginning with identity
number 317 which follows the identity number 316 of the last BOOL variable from export area
0.
The identity numbers of the BOOL variables in the memory area EV are ascending up to the
last BOOL variable 4196 from the export area 1.
Note If BUSCOM variables do not start at the beginning of an area, this area
is padded with dummy variables on the central module and also
mapped on the communication module.
F 865xX F 8627X
BUSCOM areas memory area EV
Export area (EA) for Export variables (EV)
ER-0000
0001
word 1
0110 Identity number
BUSCOM address word EV-0000
110
ER-2047 115
area 0 ER-0000 word EV-4096
0000 215
bool 216
0100
bool EV-0000
316
ER-2047 317
ER-4096 bool EV-4096
4100
word 417
4200
ER-8191
area 1 ER-4096 4096
bool
4196
ER-8191
Figure 21: Mapping of WORD- and BOOL-variables from export areas 0 and 1
50
F 8627X (1104)
When upgrading from version 2.x to another version, the user must
ensure that only the correct operating system file is loaded into the
corresponding module.
If the module F 8627X was loaded with any incorrect file, the function-
ality of the F 8627X is lost and can not be programmed any longer with
the diagnostic dialog ComEth. In this case the module F 8627X must
be programmed new by HIMA.
After upgrading to version 3.x and higher a protection mechanism is activated and only oper-
ating system files with extension *.ldb can be loaded.
51
F 8627X (1104)
The connection between the ComEth's control panel and the F 8627X
Ethernet module should be closed, if ComEth is not used.
The connection to the ComEth's diagnosis panel can remain.
• Start the ComEth diagnosis dialog and check in the error-state viewer that the
• "main program version" is 0.8.0 or higher
• "diagnostic text version" is 0.2.0 or higher.
• Select Project->New on the menubar of the ComEth diagnosis dialog, to create a
new Project.
• Select New Configuration in the context menu of the new project, to create a new
configuration.
• Select New Resource in the context menu of the new configuration, to create a new
resource.
• Select New F 8627X in the context menu of the new resource, to create a new
F 8627X in the new resource.
• Select Properties in the context menu of the new F 8627X, to open the dialog win-
dow "Properties".
52
F 8627X (1104)
OS versions ≥ V4.x
Any free IP address for the PADT may be used. If the PADT IP
addresses of the PADT and the F 8627X are located in different sub-
nets, a routing entry for the subnet of the F 8627X is required on the
PADT (PC).
• Select Control Panel in the context menu of the new F 8627X to open the Control
Panel.
• Select PADT->Connect in the control panel to create a connection to the F 8627X
module.
• Click the button Stop Device in the ComEth control panel, to set the F 8627X mod-
ule into the STOP state (green RUN LED blinks).
• Select Extra->OS Update in the ComEth control panel to open the standard dialog
for opening a file.
• Select and load the proper operating system for the upgrade/downgrade into the
selected F 8627X module (see Chapter 8.1.1 and Chapter 8.1.2).
53
F 8627X (1104)
Note The ARP entry must be deleted on the PADT (PC) if another F 8627X
is to be loaded and has the same IP address as the F 8627X loaded
immediately beforehand; otherwise, a connection cannot be opened to
the newly loaded F 8627X with the same IP address.
54
F 8627X (1104)
9 Recommended literature
[1] Safety Manual H41q/H51q
HIMA GmbH+Co KG Bruehl, 2005: HI 800 013
55
F 8627X (1104)
56
F 8627X (1104)
10 Index
A node Id 43
ARP entry 5, 16, 54 O
autonegotiation 8 operating system versions 2, 51
B P
base address 47 passive mode 7, 42
BSNx 10 Port 502 23
BSNx_IP 7 Port 8896 23
BUSCOM
R
address 47
list 46 relative address 47
variables 44, 48 replacing a F 8627X 4
Res-ID 10
C resource name 9
calculation
T
Ethernet transmission time 33
IP address of the F 8627X 9 TCP port 23
IP address of the OPC Server 44 timeout settings 31
monitoring time 33, 34, 40 token passing 17, 18, 42
polling interval 24 Y
watchdog time 34 Y cable (BV 7049) 10
communication variants
HIPRO-S 30
HIPRO-S-DIRECT 31
Modbus TCP Slave 23
OPC 42
overview 17
D
data types 47
diagnostic LEDs 6
DIRECT mode 7
dummy data 18, 19, 30, 32, 42, 43
duplex Mode 8
E
ELOP II TCP 10
export range 47
F
F 8621A 19, 43
F 865x 10
H
HIMA OPC Server 42
HIPRO-S 30
HIPRO-S-DIRECT 31
HK-COM-3 1, 38
host address 9
HSR cable (BV 7053) 10, 20
I
identity numbers 48
import range 47
M
Modbus
error codes 29
function codes 28
N
network address 9
57/57
HIMA
...the safe decision.
(1104) Phone: (+49) 06202 709 0, Fax: (+49) 06202 709 107
E-mail: [email protected], Internet: www.hima.com