HIMA Training
HIMA Training
Ethernet-Communication
Contents
1
Communication monitoring............................................................................ 22
7.1
For ELOP-II NT V3.0 / operating system up to V7.0-7 (0114)...............................................22
7.2
For ELOP II V3.5 / operating system V7.0-8 (0214) / F8625 with OS V1.14 and function block
HK-COM-3......................................................................................................................................23
SA-Ethernet06_e(0530).doc
ELOP II
page 1 of 26
HIMA Training
Ethernet-Communication
Conclusion:
In new installations the preconditions for HIPRO-S DIRECT are normally fulfilled.
Comparing the two protocols there are only advantages for HIPRO-S DIRECT (faster, easy to
configure, more flexible)
Recommendation:
If possible on some way, adjust at communication module F8627 HIPRO-S DIRECT mode (Dipswitch).
In ELOP-II there is no need anymore to define dummy communication from each PES with each
other PES.
SA-Ethernet06_e(0530).doc
ELOP II
page 2 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 3 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 4 of 26
HIMA Training
Step 3:
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 5 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 6 of 26
HIMA Training
Ethernet-Communication
ELOP II
page 7 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 8 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 9 of 26
HIMA Training
Ethernet-Communication
Step 2: Edit cabinet layout, checking the interfaces of the Central unit
Click the right mouse button on the Central unit e. g. F8652, > Edit or double click:
The properties of the Central unit are shown
It is recommended to "use bus settings". By this the parameters can be defined central for all
resources belonging to a defined bus.
HW-settings means, the baud rate set with the Dip switches on the Central unit is active.
It is also possible to set the parameters manually (for special applications).
The setting can be different for both interfaces (left SIO1, right SIO2)
Inserting the Ethernet -modules F8625 (left) and F8625x (right) is required for a complete
documentation. This has no effect to the system.
Repeat Step 2 for each resource!
SA-Ethernet06_e(0530).doc
ELOP II
page 10 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 11 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 12 of 26
HIMA Training
Ethernet-Communication
Each HIPRO-S variable is defined twice. In the sender as "Export to Resource" and in minimum one
receiver as "Import from Resource". The variable name must be the same in all resources where the
variable is defined.
One variable can be transferred to several receivers.
To ensure correct spelling it is recommended to define the variable one time at the sender and to copy
it using "drag and drop" to the receiver (keep left mouse key pressed)
Another possibility: using EXCEL to define the variables and import them afterwards.
Example: AN02_PES01to PES02 will be created in PES01 and send to PES02 to read it there.
So the variable must exist in both program instances.
Open both program instances and copy it by "drag and drop":
HIPRO-S (standard):
For a Safe-Ethernet-communication each BUS-subscriber must know the other BUS-subscribers. To
ensure this requirement, dummy-variables must be defined and exchanged. Following matrix shall be
observed.
Principle: There must be a communication from each PLC with each other PLC (unidirectional)
Example: 3 PES (PES___01 PES___03)
PES___01
Export
Import
PES___02
Export
Import
Dummy_PES1toPES2
PES___03
Export
Import
Dummy_PES1toPES2
Dummy_PES1toPES3
Dummy_PES1toPES3
Dummy_PES2toPES3
Dummy_PES2toPES3
In principle the definition of dummy-variables is only required, if no other variables are exchanged
between the corresponding subscribers.
For a systematic way of working it is strictly recommended, to define all required dummy-variables
which are needed to ensure a reliable Safe-Ethernet-communication.
HIPRO-S DIRECT: No dummy communication from each PES to each other PES required!
SA-Ethernet06_e(0530).doc
ELOP II
page 13 of 26
HIMA Training
Ethernet-Communication
The definition of communication variables must be done for all resources according to the steps 1-6 in
this chapter.
Step 1 Export:
Open program instance PES___01, > Variable declaration
Right mouse button, > New
Step 2 Export:
Enter variable name in PES___01 e.g. Var01_PES01toPES02, declaration "BOOL"
SA-Ethernet06_e(0530).doc
ELOP II
page 14 of 26
HIMA Training
Ethernet-Communication
Step 3 Export :
Open folder "HIPRO-N/_S"
Mark other resource (PES___02)
Step 4 Export :
Select with double-arrow Export to Resource
SA-Ethernet06_e(0530).doc
ELOP II
page 15 of 26
HIMA Training
Ethernet-Communication
Step 5 Import
Open program instance in PES___02 to define the corresponding Import:
Create a new Variable in PES___02 with the same Name like in PES___01 used for Export or copy
the variable from program instance PES___01 to program instance PES___02, refer to 5.1
(e.g. Var01_PES01toPES02)
SA-Ethernet06_e(0530).doc
ELOP II
page 16 of 26
HIMA Training
Ethernet-Communication
Step 6 Import :
Open folder "HIPRO-N/_S"
Mark other resource
Step 7 Import :
Select with double-arrow Import from Resource
ELOP II
page 17 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 18 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 19 of 26
HIMA Training
Ethernet-Communication
Step 3 Cross-Reference
With the cross-reference the defined communication variables can be checked. (button CrossReference in the PES-Master window.
Example without errors:
You can see the variables which will be exchanged between the resources. If there is no error shown
in the column Error, all variables are defined correctly.
If there are any errors shown they must be eliminated before you can proceed to the next step!
The variables with indication "no source" or "no target" must be checked again in the program
instances .
The indication "different data blocks" will sometimes appear additional, can be ignored.
In example the definition for Export in PES___01 is missing.
SA-Ethernet06_e(0530).doc
ELOP II
page 20 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 21 of 26
HIMA Training
Ethernet-Communication
7 Communication monitoring
7.1
SA-Ethernet06_e(0530).doc
ELOP II
page 22 of 26
HIMA Training
7.2
Ethernet-Communication
For ELOP II V3.5 / operating system V7.0-8 (0214) / F8625 with OS V1.14
and function block HK-COM-3
Example:
Using function block Ethernet_Diag (e.g. copy from Application project)
Please note: In redundant operation one PES is using in minimum two different nodes in two different
segments !
Settings:
Setup Slot with location of communication module (1,2,3,4,5)
Setup Nb_OPC-Server_SegmentX with the number of used OPC-Servers in segment.
HIPRO-S:
Function block HK-COM3 will look always for 4 OPC-Server, means if no OPC-Server available, 4
stations are indicated as not connected.
To avoid wrong indication, the number of existing OPC-Servers must be set.
HIPRO-S-DIRECT:
The maximum number of OPC-Server must be set by dip switch on the module F8627. This number
must be set also in the logic of function block Ethernet_Diag.
The number of really existing OPC-Server must be set as a parameter Nb_OPCServer_SegmentX
Example: if no OPC-Server is used, Nb_OPC-Server_SegmentX will be 0 !
Diagnostic:
Error_Redundancy is indicated if one segment is OK and in the other segment at least one node is
disconnected or module error is active.
Error_Communication is indicated if nodes in both segments are disconnected or module error.
Regarding only safety related communication, Error_Communication can also mean
Error_Redundancy if nodes in different PES are disconnected or the missing node is an OPCServer.
Advice:
Function block Ethernet_Diag should only used additional to the evaluation of system
variable HIBUS.Resourcename.Fault .
Not in every case , Error_Communication is indicating also a problem in safety related
communication !
SA-Ethernet06_e(0530).doc
ELOP II
page 23 of 26
HIMA Training
Ethernet-Communication
SA-Ethernet06_e(0530).doc
ELOP II
page 24 of 26
HIMA Training
Ethernet-Communication
After the new exchanged module is in, it may take up to two minutes until the
communication is working again.
(Reason: The ARP-Timeout on the module of communication partner can be two minutes in
worst case. During this time the communication partner still tries to contact the old MACAddress. Then an ARP-Request is used to figure out the new MAC-Address of the exchanged
module)
Now first check whether the exchanged communication module is working again, using
ELOP-II Block HK-COM3 or service tool ComEth.
If there are not yet all nodes connected properly, exchanging of other (redundant)
communication modules or executing a reload can be risky.
System limits:
Data memory:
Max.64KB can be used in a Central unit for safety related data exchange with HIPRO-S
SA-Ethernet06_e(0530).doc
ELOP II
page 25 of 26
HIMA Training
Ethernet-Communication
Note: "Word" will be counted as two Bytes, "Bool" will be counted as one Byte.
Estimation of bus cycle time (n = number of F8625 at the segment, without OPC-server):
[n] x 10ms + [n x (n - 1) /2] x 6ms
Example: n = 3 means: 3 x 10ms + 3 x 6ms = 48ms
SA-Ethernet06_e(0530).doc
ELOP II
page 26 of 26