Explanations - Ethercat Troubleshooting
Explanations - Ethercat Troubleshooting
CSIP Level 2:
This document or digital media and the information contained in it is restricted proprietary and confidential information that cannot be distributed or licensed and is only
for the use of Philips personnel and licensed representatives. It is not to be distributed, shared, copied, transferred or otherwise provided to anyone else, electronically
or otherwise.
Proprietary Notice:
This document and the information contained in it is proprietary and confidential information of Philips Healthcare ("Philips") and may not be reproduced, copied in whole
or in part, adapted, modified, disclosed to others, or disseminated without the prior written permission of the Philips Legal Department. Use of this document and the
information contained in it is strictly reserved for current Philips personnel and Philips customers who have a current and valid license from Philips for use by the
customer’s designated in-house service employee on equipment located at the customer’s designated site. Use of this document by unauthorized persons is strictly
prohibited. Report violation of these requirements to the Philips Legal Department. This document must be returned to Philips when the user is no longer licensed and
in any event upon Philips’ first written request.
Warranty Disclaimer Language:
Philips provides this DOCUMENT without warranty of any kind, implied or expressed, including, but not limited to, the implied warranties of merchantability and fitness
for a particular purpose.
Limitations of Liability Language:
Philips has taken care to ensure the accuracy of this document. However, Philips assumes no liability for errors or omissions and reserves the right to make changes
without further notice to any products herein to improve reliability, function, or design. Philips may make improvements or changes in the product(s) or program(s)
described in this document at any time.
1 INTRODUCTION ..............................................................................................................................4
1.1 Purpose of Document .......................................................................................................................4
1.2 Document history ..............................................................................................................................4
1.3 Abbreviation List ...............................................................................................................................4
1.4 Sources .............................................................................................................................................4
2 ETHERCAT ......................................................................................................................................5
2.1 Benefits of ethercat ...........................................................................................................................5
2.2 Protocol .............................................................................................................................................6
2.2.1 EtherCAT Frame ............................................................................................................................6
2.2.2 EtherCAT Header ...........................................................................................................................6
2.2.3 Process Data ..................................................................................................................................6
2.2.4 Working Counter ............................................................................................................................7
2.2.5 Ethercat communication train analogy ...........................................................................................7
1.4 Sources
nodes.
The Ethernet packet is no longer received, then interpreted and process data then copied at every
device.
The EtherCAT slave devices read the data addressed to them while the frame passes through the node.
Input data is inserted while the telegram passes through the frames are only delayed by a few
nanoseconds.
Since an Ethernet frame comprises the data of many devices both in send and receive direction, the
usable data rate increases dramatically compared with standard internet.
Runs on Real Time Platform which is needed for optimum performance
Processing takes only place at the master stack which makes the hardware relative cheep
Work
EtherCat Process Data
Counter
Header (PD)
(WC)
Ethernet
CRC
Header
IP Package
Printed copies are uncontrolled
All of these parts fit simply into the EtherCAT frame, and the frame fits simply into an Ethernet frame.
The Ethernet is the transmission media that allows EtherCAT to operate.
The EtherCAT frame simply replaces the IP frame of a standard Ethernet message.
The Ethernet frame does not need modification, again contributing to flexibility for EtherCAT.
Each port of an ESC can be in one of two states: open or closed. If a port is open, frames are
Transmitted to other ESCs at this port, and frames from other ESCs are received. A port which is
closed will not exchange frames with other ESCs, instead, the frames are forwarded internally to the
next logical port, until an open port is reached.
The loop state of each port can be controlled by the master. The ESCs supports four loop control
settings, two manual configurations, and two automatic modes:
3.1.3 Auto
Printed copies are uncontrolled
The loop state of each port is determined by the link state of the port. The loop is open if there is a
link, and it is closed without a link.
Slave
The direction through an ESC including the EtherCAT Processing Unit is called “processing” direction,
other directions without passing the EtherCAT Processing Unit are called “forwarding” direction.
Ports which are not implemented behave similar to closed ports, the frame is forwarded to the next.
The figure shows the frame processing in general
Both slave 1 and slave 2 detect the link failure and close their ports (port 1 at slave 1 and port 0 at
slave 2). A frame currently traveling through the ring at the right side of slave 2 might start circulating.
If such a frame contains output data, it might trigger the built-in watchdog of the ESCs, so the
watchdog never expires, although the EtherCAT master cannot update the outputs anymore.
To prevent this, a slave with no link at port 0 and loop control for port 0 set to Auto or Auto close (ESC
DL Control register 0x0100) will do the following inside the EtherCAT Processing Unit:
• If the Circulating bit of the EtherCAT datagram is 0, set the Circulating bit to 1
• If the Circulating bit is 1, do not process the frame and destroy it
The result is that circulating frames are detected and destroyed. Since the ESCs do not store the
frames for processing, a fragment of the frame will still circulate triggering the Link/Activity LEDs.
Nevertheless, the fragment is not processed.
Printed copies are uncontrolled
Source CMM
Bodyguard Interface Box (SPB) is located in the C-arc cabeling junction box.
o Only Etercat node with dedicated I/O intefacing for the bodyguards no servo drive included.
Source CMM
Geometry Interface Box (GIB) is located at the R-cainet and consist the 6-fault ethercat Hub
o Ethercat HUB function.
o I/O interfacing
o B =GIB,A =HEB provides backwards compatibility for CAN/LUC based control topologies in Allura
Xper systems
4.2 Software
The master stack is located on the Geometry IPC and the software is running as part of the Geo Host
software.
The Geo Host software is the heart of Motion Control.
On the Geo IPC, Windows and VxWorks are running in parallel.
Geo Host software is controlling all geometry parts ethercat based and non ethercat based
The real-time software runs on VxWorks and the non-real-time software on Windows.
Real-time processing is needed to support the EtherCAT motion platform.
Printed copies are uncontrolled
On the IPC desk top screen the GSC/GSCRT cmd screens must always be visible when both processes
are running
CN1 GeoIoBox
CN2 - - -
basic 1
AD7XNT long 1 2
Long + lat 1 3 2
Printed copies are uncontrolled
Longt +Tilt 1 3 2
Longt +Tilt+lat 1 4 3 2
AD7XT
Long + tilt + cradle 1 4 2 3
table
CN4
Long + tilt + lat + cradle 1 5 3 2 4
basic 1 2
Long + lat 1 4 3 2
Longt +Tilt 1 5 3 4 2
Longt +Tilt+lat 1 6 4 3 5 2
AD7XT SWIVEL
Long + tilt + cradle 1 5 3 4 2
CN6 - - -
HUB
Processing Processing
3 3
0 1 0 1
GIB ESC 0 GIB ESC 1
2 2
Processing Processing
3 3
CN2
CN1
CN1
0 1 0 1
GIB ESC 0 GIB ESC 0
2 2
HUB
CN6
SPM Flexmove
CN5 CN1
Printed copies are uncontrolled
SAF11 Height SAW11 Swivel SAT12 Tilt SAT11 Lateral SAR11 Cradle SAR12 Long
CN4 CN1 CN2 CN1 CN2 CN1 CN2 CN1 CN2 CN1 CN2 CN1
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
(Init, Pre-0perational,Safe operational and Operational, Bootstrap(optional)) Each state has its own tests and
routines and influences the Startup success of the geometry. If one of the ESC’s fails then the Master (IPC) will
indicate in the event logging that it cannot go to safeop.
Technical Event Description: Application error: EtherCat Memo: [FREE_TEXT] Time of occurrence :
ID: 063001124 POST error [item=TopologyTest] 2014-09-11, 19:24:38 [SEVERITY] Error
[EXCEPTION_DESCRIPTION] [detail=Cannot
start set master state to SAFEOP (Result =
ERROR: Time-out (0x98110010)) ]
Next chapter described the steps in a good situation with finally leads to a ethercat running state.
The steps can be found back in the IPC logging
5.1 Initialization
1. Initial startup, Create Master, make selection which ethercat topo configuration file to pick based on
geometry configuration.
2. Select file example: c:\Geo_Geometry_prod\EtherCAT_Topology_GIBCleaCeilingAd7_3axis.xml. The
ethercat cabling routing per configuration is assumed to be fixed, because the service engineer installs the
system according to the installation instructions.
3. Prepare settings for all ethercat axis/load config settings for all axes.
4. Perform bus scan which reads out Ethercat Slave Parameters and compares them with configuration and
axis settings (example: Axis SAM_TblHeight: calculated add file crc (0x2935982e) matches the configured
crc.)
5. Check if the slaves have correct sw levels and are correctly downloaded
6. Perform post powered
7. Read out calibration data to check calibration data/status
8. Run application.
Cause of events:
Problem occurs after downloading a XYBOX.
Faultfinding sequence:
Printed copies are uncontrolled
Cause of events:
Problem occurs after downloading [device].
Faultfinding sequence:
Check geometry configuration is matching the ethercat device
connection. (This is very important because it defines the motion
network topology).
Check on GEOIPC LED’s whether both LED’s are on or blinking.
Check whether ethercat LED’s on [device] are on or blinking.
Faultfinding sequence:
Check Ethercat HW POST results
Check GSC POST results
Check download status
If no power on all Ethercat devices, check power supply status
gPDU.
Check logic power LED’s on GIB.
Check logic power LED’s on Drives
<configuration>
fr_stand_sim = TRUE
lt_stand_sim = TRUE
guarding = TRUE
guarding_time = 250
iso_height = 1065
min_floor_dist = 120
doctor_nurse_ss = 450
body_guard_override = FALSE
bodyguard_indication = FALSE
spacer_option = FALSE
tbl_height_offset = 30
extended ceiling rail = FALSE
park at footside = CF_e_XXX_park_at_foot_side_disabled
xy_ceiling_x = FALSE
xy_ceiling_y = FALSE
xy_cable_inlet_position = CF_e_XXX_xy_cable_inlet_nurse_side
xy_airflow = FALSE
tilt_angle_lim_pos = 3000
tilt_angle_lim_neg = 3000
startup_reason_type = CF_e_XXX_power_down
geoipc_version = CF_e_XXX_geoipc_version_2_dualcore
niobe_option = FALSE
fr_stand_zrot_lock_option = FALSE
ethercat_bib = TRUE
ethercat_gib = TRUE
*** free_value = {}
*** user_mode = CF_e_XXX_um_application
*** no_real_mechanics = FALSE
*** skip_ecat_download_firmware_check = FALSE
*** skip_ecat_adf_file_check = FALSE
=== Configuration End ===
<check if the cable between IPC Master and first Ethercat Slave is present>
MCI_ATEM > C : Ethercat cable between GeoIPC and the first Ethercat device is connected
<ethercat bus scan to check how many devices and types are connected and via which ports>
MCI_ATEM > C : Bus scan: detected 9 slaves, cfg 9
ATEM > I :
ATEM > I : Slave 0x0:
ATEM > I : **************************************************
ATEM > I : Vendor : Prodrive B.V., ID 1401
ATEM > I : Product : PD GIB ESC0 Drive, Code: 0x61591101
ATEM > I : Revision: 0x57040000 Serial Number: 0
ATEM > I : ESC Type: Beckhoff ASIC ET1100 (0x11)
ATEM > I : Bus Physical Address (0x10) : 1001 (0x3e9)
ATEM > I : Bus Second Address (0x12) : 0000 (0x0)
ATEM > I : Configured Fix Address : 1001 (0x3e9)
ATEM > I : PD IN Byte/Bit offset: 62/0 Size: 16 bits
ATEM > I : PD OUT Byte/Bit offset: 62/0 Size: 8 bits
ATEM > I : MBX Supported : No
Printed copies are uncontrolled
7.1 Configuration
Geo_Geometry_prod\EtherCAT_Topology_GIBAd7_4axis.xml
CN2 - - -
basic 1
AD7XNT long 1 2
Long + lat 1 3 2
Longt +Tilt 1 3 2
Printed copies are uncontrolled
Longt +Tilt+lat 1 4 3 2
AD7XT
Long + tilt + cradle 1 4 2 3
table
CN4
Long + tilt + lat + cradle 1 5 3 2 4
basic 1 2
Long + lat 1 4 3 2
Longt +Tilt 1 5 3 4 2
Longt +Tilt+lat 1 6 4 3 5 2
AD7XT SWIVEL
Long + tilt + cradle 1 5 3 4 2
CN6 - - -
Note;
The ethercat logical toplogy is build around ESC1 and ESC2 (ethercat switch) this means it will always follow the
next connector sequence .
CN1,CN6,CN4,CN5,CN2 and CN3 (GeoIoBox - R-Cabinet, Spare,Table,Flexmove,Spare,Clea-2).
Configured
CN1 IPC (Master) GIB ESC 0 GIB ESC 1
CN2 nc
CN3 nc
CN4 Table Height Swivel Table lateral Table longitudinal
CN5 nc
CN6 nc
7.2 Compare
• Event log file (POSTt) is indicating that there are two slaves missing.
• Event log file is not indicating the function thus location of the present slaves
• The GSCRT does mention which drives are present and their function
Event logging:
Description: Application error: Memo: [FREE_TEXT] Time of occurrence : 2016-02-25, 7:37:17
EtherCat POST error [SEVERITY] Error [EXCEPTION_DESCRIPTION] [detail=AMC Servo Drive
[item=TopologyTest] (3) 1-Axis - Table = not detected [0xbd 0x12c],AMC Servo Drive 1-Axis -
Table = not detected [0xbd 0x12c]]
Description: Application error: Memo: [FREE_TEXT] Time of occurrence : 2016-02-25, 7:37:17
EtherCat POST error [SEVERITY] Error [EXCEPTION_DESCRIPTION] [detail=GeoIoBox - R-
[item=TopologyTest] (2) Cabinet = available [0x579 0x61591101],GeoIoBox - R-Cabinet = available
[0x579 0x61591102],AMC Servo Drive 1-Axis - Table = available [0xbd
0x12c],AMC Servo Drive 1-Axis - Table = available [0xbd 0x12c]]
Description: Application error: Memo: [FREE_TEXT] Time of occurrence : 2016-02-25, 7:37:17
EtherCat POST error [SEVERITY] Error [EXCEPTION_DESCRIPTION] [detail=Slave detection
[item=TopologyTest] (1) mismatch - bus scan: detected 4 slaves; cfg 6,Guidance: verify configuration or
add ethercat slaves (or check outer left led on connector CN2 on missing drive.
If red then drive is in 'bootloader mode'. Replace)]
MCI_ATEM > R : Slave detection mismatch - bus scan: detected 4 connected slaves while configuration has 6
CN1, Error=0, text={CN1([GIB0 ?0xffef 9699 E=GIBESC0][GIB1 ?0xffef 3C33 E=GIBESC1])} =>OK
CN2, Error=0, text={} =>OK
CN3, Error=0, text={} =>OK
CN4, Error=0, text={CN4([AMC1AX ?0xffef 3033 E=AD7HEI][AMC1AX ?0xffef 1211 E=AD7SWV:END])} =>NOK
CN5, Error=0, text={} =>OK
CN6, Error=0, text={} =>OK
Num Connected Slaves(4)
Configured
CN1 IPC (Master) GIB ESC 0 GIB ESC 1
CN2 nc
CN3 nc
CN4 Table Height Swivel Table lateral Table longitudinal
CN5 nc
CN6 nc
Scanned
CN1 IPC (Master) GIB ESC 0 GIB ESC 1
CN2 nc
CN3 nc
CN4 Table Height Swivel
Printed copies are uncontrolled
CN5 nc
CN6 nc
Conclusion:
The Table Lateral , longitudinal drive is not connected or defect
The network cable from table Swivel drive towards Table longitudinal drive is defect or not connected
The output of the table Swivel drive (CN2) is defect thus table Swivel drive is defect.
No logical power on Table lateral, longitudinal drive
8.1 Input (cn1) output (cn2) swapped at 2spc (3 Axis Servo Drive)
8.1.1 Symptom
After an installation, upgrade or corrective maintenance action the geometry start up no movements are possible.
Logging shows there is something wrong with ethercat topology.
Event logging
More details can be found in the GSCRT_CONS<last_date_time> file at the IPC computer or in in the safe data for
PR file.
What you see is when cn1 and cn2 are swapped at 2SPC then the port direction is also swapped thus first port 1 is
accessed and afterwards port 2 . The dataflow will follow the forward direction and will never pass the processing
block within the ESC as if it is not there. At The BIB the data flow is returned so then all nodes are not seen except
2SPC which port direction is swapped.
8.1.4 Solution
Swap CN1 and CN2 cable at 2SPC ethercat slave
8.2.1 Symptom
Geometry is not starting because ethercat network is not initializing. No information in event logging and/or IPC
logging which could lead directly to the root cause.
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
Ecat config AD7NT table no options only height drive present Ecat initialization OK
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
Ecat config AD7NT table no options skip height and Tilt drive then next drive becomes height drive Ecat initialization
OK. Use short network patch cable to make the connection.
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
Ecat config AD7NT table no options skip height, Tilt and lateral drive then next drive becomes height drive Ecat
initialization NOK. Use short network patch cable to make the connection.
HUB
CN6
CN5
CN2
IPC Geometry controller
Ethercat Master
Stack
CN1 X11
8.2.3 Solution
Replace Longitudinal E-cat drive and configure back to as delivered situation.