This documentation describes the device profile Festo Handling and Positioning Profile (FHPP) for the
integrated drive EMCA with the following fieldbus interface:
This provides you with supplementary information about controlling, diagnosing and parameterising
the integrated drive via the fieldbus.
Unconditionally observe the general safety regulations for the integrated drive
è Description “Integrated drive with bus interface, EMCA-EC-SY-...”, chapter 1.
Target group
This documentation is intended exclusively for technicians trained in control and automation techno
logy who have experience in installation, commissioning, programming and diagnostics of positioning
systems.
14Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 15
EMCA-EC-67-...-CO/DIO/EC/EP/PN
Version
This documentation refers to the following versions:
Fieldbus
Version number
CANopenIntegrated drive EMCA-EC-67-...-CO
Firmware: version 1.2.x or later
FCT plug-in EMCA: version 1.2.x or later
EtherCATIntegrated drive EMCA-EC-67-...-EC
Firmware: version 1.4.0 or later
FCT plug-in EMCA: version 1.4.0 or later
EtherNet/IPIntegrated drive EMCA-EC-67-...-EP
Firmware: version 1.2.x or later
FCT plug-in EMCA: version 1.2.x or later
Modbus TCPIntegrated drive EMCA-EC-67-...-DIO
Firmware: version 1.3.0.x or later
FCT plug-in EMCA: version 1.3.x.x or later
PROFINETIntegrated drive EMCA-EC-67-...-PN
Firmware: version 1.4.0 or later
FCT plug-in EMCA: version 1.4.0 or later
Tab. 2Overview: versions
Note
Before using a newer firmware version, check whether a newer version of the FCT plugin or documentation is available è Support portal: http://www.festo.com/sp.
Service
Please consult your regional Festo contact if you have any technical problems.
Product identification
For additional information on the rating plate and production date è Description for “Integrated drive
with bus interface”, EMCA-EC-SY-...
Festo – EMCA-EC-C-HP-EN – 2017-11e – English15
Page 16
EMCA-EC-67-...-CO/DIO/EC/EP/PN
Documentation on the product
For all available documents relevant to the delivery status of the product
è www.festo.com/pk.
The complete documentation for the product includes the following documents:
DesignationContents
Brief documentation
Brief device and functional description for initial information
EMCA-EC-...
Manual
EMCA-EC-SY-...
EMCA-EC-DIO-...
Device and functional description
– Mounting
– Installation (pin allocations)
– Drive functions
– Commissioning instructions
– Error messages
– Technical data
Manual
EMCA-EC-S1-...
Manual
EMCA-EC-C-HP-...
Manual
Description of the safety function “Safely switched-off torque”
(Safe torque off/STO)
Description of the device profile FHPP (Festo Handling and
Positioning Profile)
Description of the device profile CiA 402
EMCA-EC-C-CO-...
Help system for the FCT software
(help for the EMCA plug-in)
Special documentation
EMCA-EC_UL-...
Online help of the Festo Configuration Tool (FCT) for
commissioning and parameterisation
Requirements for operating the product in the USA and
Canada in accordance with certification by Underwriters
Laboratories Inc. (UL)
Tab. 3Documentation for the EMCA
Further information about the product is available in the Festo Support Portal
(è www.festo.com/sp).
– Brief documentation (Quick guide) for initial commissioning and diagnostics
– Operating instructions for configurable electromechanical drives from Festo
– Function elements for Codesys
– Certificates, declaration of conformity
Overview of accessories (catalogue) è www.festo.com/catalogue
16Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 17
1FHPP device profile (Festo Handling and Positioning Profile)
1FHPP device profile
(Festo Handling and Positioning Profile)
1.1FHPP overview
Tailored to the target applications for handling and positioning tasks, Festo has developed an optim
ised device profile, the “Festo Handling and Positioning Profile (FHPP)”.
The FHPP permits a uniform control and parameterisation for the various motor controllers or integ
rated drives from Festo, independent of the connection to various control devices.
In addition, it defines for the user in a largely uniform way
– operating modes
– I/O data structure
– Parameter objects
– sequence control
. . .
Bus communication
Record selection mode
1
2
>
3
...
n
Direct operationParameterisation
PositionSpeedTorque
Free access to parameters –
reading and writing
. . .
Fig. 1.1Overview: FHPP principle
Control and status data (FHPP standard)
Communication takes place via 8-byte control and status data. Functions and status messages re
quired in operation can be written and read directly.
Parameterisation (FPC)
The controller can access the parameter values of the integrated drive via the parameter channel. A
further 8 bytes of I/O data are used for this purpose.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English17
Page 18
1FHPP device profile (Festo Handling and Positioning Profile)
1.2Fieldbus interfaces
1.2.1Fieldbus interfaces of the EMCA
Control and parameterisation of the EMCA through the FHPP device profile is supported by the follow
ing fieldbus interface:
Fieldbus
CAN bus
(EMCA-...-CO)
EtherCAT
(EMCA-...-EC)
EtherNet/IP
(EMCA-...-EP)
Modbus TCP
(EMCA-...-DIO)
PROFINET
(EMCA-...-PN)
Tab. 1.1 Fieldbus interfaces of the EMCA
CAN bus interfaces of the EMCA-...-CO
1
Electrical interfacePage
CAN bus input (CAN IN) [X2]
CAN bus output (CAN OUT) [X3]
EtherCAT, Port 2 [X2]
EtherCAT, Port 1 [X3]
EtherNet/IP, Port 2 [X2]
EtherNet/IP, Port 1 [X3]
Ethernet [X1]91
PROFINET, Port 2 [X2]
PROFINET, Port 1 [X3]
23
36
83
104
2
1 CAN bus output (CAN OUT) [X3]2 CAN bus input (CAN IN) [X2]
Fig. 1.2CAN bus interfaces of the EMCA
18Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 19
1FHPP device profile (Festo Handling and Positioning Profile)
EtherCAT interfaces of the EMCA-...-EC
1
2
1 EtherCAT, Port 1 [X3]2 EtherCAT, Port 2 [X2]
Fig. 1.3EtherCAT interfaces of the EMCA
EtherNet/IP interfaces of the EMCA-...-EP
1
2
1 EtherNet/IP, Port 1 [X3]2 EtherNet/IP, Port 2 [X2]
Fig. 1.4EtherNet/IP interfaces of the EMCA
Ethernet interface (Modbus TCP) of the EMCA-...-DIO
1
1 Ethernet interface [X1]
Fig. 1.5Ethernet interface (Modbus TCP) of the EMCA
Festo – EMCA-EC-C-HP-EN – 2017-11e – English19
Page 20
1FHPP device profile (Festo Handling and Positioning Profile)
PROFINET interfaces of the EMCA-...-PN
1
2
1 PROFINET, Port 1 [X3]2 PROFINET, Port 2 [X2]
Fig. 1.6PROFINET interfaces of the EMCA
20Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 21
2 CANopen
2CANopen
This part of the documentation describes the connection and configuration of the EMCA in a CANopen
network. It is targeted at people who are already familiar with this bus protocol.
2.1CiA standards
CANopen is a standard worked out by the “CAN in Automation” association. Numerous device manu
facturers are organised in this user organisation. This standard has largely replaced the current manu
facturer-specific CAN protocols. As a result, the end user has a communication interface that is inde
pendent of the manufacturer.
The following manuals, among others, can be obtained from this user organisation:
CiA 102: CAN – Physical layer for industrial applications
This document describes the general fundamentals of the CANopen network (e.g. transmission).
CiA 201 … 207: CAN – Application layer for industrial applications
These documents discuss the general basic principles and embedding of CANopen into the OSI shift
model. The relevant points of these books are discussed in this description.
CiA 303-1: CANopen – Cabling and connector pin assignment
This document describes concretely the signals, plug connectors and pin allocation of the CAN bus and
the specification of the CANopen network (e.g. bus cable, bus length).
CiA 303-3: CANopen – Indicator specification (LED)
This document describes the CANopen status LEDs.
CiA 301: CANopen – Application layer and communication profile
This document describes the fundamental configuration of the object directory of a CANopen device as
well as access to it. The statements of CiA201 … 207 are also made concrete. The elements of the ob
ject directory required for the EMCA and the related access methods are presented in this description.
User organisation:
For additional information on the user organisation “CAN in Automation (CiA)” è www.can-cia.org
CANopen implementation:
CANopen implementation of the EMCA is based on the following standard:
CiA Draft StandardVersion
number
301CANopen application layer and communication profile4.2.02007-12-07
Tab. 2.1CANopen implementation
Festo – EMCA-EC-C-HP-EN – 2017-11e – English21
Version
Page 22
2 CANopen
2.2CAN bus/CANopen interface of the EMCA
The following integrated CAN bus/CANopen interfaces of the EMCA-...-CO are available for CANopen
operation:
2134
1 LED display: CANopen status
2 Connection [X2]: CAN bus input (CAN IN)
3 Connection [X3]: CAN bus output (CAN OUT)
Fig. 2.1CAN bus/CANopen interface of the EMCA
2.2.1CANopen display component
The status of the CAN bus is displayed via the “CANopen Status” LED.
LEDDescription
The following CANopen statuses are displayed:
CANopen
status
Tab. 2.2LED display
– CANopen communication
– Missing bus parameters
– Warnings/malfunctions
For additional information è page 371
4 DIP switch [S1]: CAN bus termination/termin
ating resistor
22Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 23
2 CANopen
2.2.2CAN bus ports
The EMCA is integrated into a CAN bus network through the following connections.
Connection [X2]: CAN bus input (CAN IN)
M12 plug connector
Pin DesignationDescription
A-coded
5-pin
1CAN_SHLDScreening, capacitive connection to housing
2NCUnused
3CAN_GNDLoad (reference potential for CAN signals)
4CAN_HPositive CAN signal (dominant high)
5CAN_LNegative CAN signal (dominant low)
HousingShield/FEShield/functional earth
Tab. 2.3Connection [X2]: CAN bus input (CAN IN)
Connection [X3]: CAN bus output (CAN OUT)
Socket M12
Pin DesignationDescription
A-coded
5-pin
1CAN_SHLDScreening, capacitive connection to housing
2NCUnused
3CAN_GNDLoad (reference potential for CAN signals)
4CAN_HPositive CAN signal (dominant high)
5CAN_LNegative CAN signal (dominant low)
HousingShield/FEShield/functional earth
Tab. 2.4Connection [X3]: CAN bus output (CAN OUT)
CAN bus cabling
To ensure a stable and trouble-free CAN bus communication, observe the following in
formation and notes:
– CAN bus cabling è page 25
– Bit rate and bus length è page 27
Incorrect wiring of the CAN bus can cause malfunctions in the CAN bus communication
during operation.
This can have the following results:
– The EMCA switches off due to a function error.
– The entire CAN bus communication breaks down and the system's subfunction no
longer works.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English23
Page 24
2 CANopen
2.2.3Termination of the CAN bus (terminating resistor)
If the EMCA is inserted at the connection [X2] or [X3] as an end participant of the CAN bus network, the
integrated terminating resistor (120 Ω) must be hooked up via the DIP switch [S1.1]. For termination,
only one connection can be used in all cases.
Termination of the CAN bus
EMCA-...-CO
S1.1
2
X2
CAN_H
1
X2.4
ON
OFF
S1.1
X3.4
X3
CAN_H
ON
CAN_L
S1.1 DIP switch “terminating resistor”
ON Switch position: contact closed
OFF Switch position: contact open
RTerminating resistor 120 Ω
Fig. 2.2Termination of the CAN bus
X2.5
R
120
X3.5
CAN_L
24Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 25
2 CANopen
2.2.4CAN bus cabling
The CAN bus offers a simple, interference-resistant method of networking all the components of a sys
tem together. A requirement for this is that all of the subsequent instructions on cabling are observed.
Bus length
CAN shield
CAN-GND
CAN-L
CAN-H
120 Ω
120 Ω
CAN shield
CAN-GND
CAN-L
CAN-H
CAN shield
CAN-GND
CAN-L
CAN-H
End participantEnd participantParticipant
Fig. 2.3Cabling example
– The individual nodes of the CAN bus network are connected in series. The CAN bus signals are
passed from component to component through the CAN bus cable è Fig. 2.3.
– Both end participants of the CAN bus network must be terminated with a terminating resist
or (120 Ω, ±5 %). Observe the information and notes on this in the corresponding documentation of
the end participants.
– Screened cable with 2 twisted conductor pairs must be used for the CAN bus wiring è Tab. 2.5. The
first twisted conductor pair is used for the CAN signals CAN-H and CAN-L. The second twisted con
ductor pair is used for the load CAN-GND (reference potential for CAN signals). The screening of the
CAN bus cable must be connected to the CAN shield port at each node.
– The use of adapters is not recommended for CAN bus cabling. If despite this an adapter is used, a
plug connector with metal housing is recommended. For plug connectors with a plastic or metal
housing, ensure that the screening of the CAN bus cable is connected properly.
– To keep the disturbance coupling as low as possible, CAN bus cables should not be laid parallel to
supply cables (e.g. motor cables). In addition, supply cables with screening must be earthed cor
rectly.
– To construct an interference-free CAN bus cabling, observe the information and notes in the Control
ler Area Network protocol specification, version 2.0, issue 1991, of Robert Bosch GmbH.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English25
Page 26
2 CANopen
2.2.5CAN bus cable
The CAN bus cable must fulfil the following technical data:
Several steps are required in order to produce an operational CANopen interface. Some of these set
tings should or must be carried out before the CANopen control interface is executed. This section
provides an overview of the steps required for parameterisation and configuration of the EMCA in slave
operation. As some parameters are only effective after saving or with the restart of the controller, we
recommend that commissioning with the Festo Configuration Tool (FCT) should be carried out first
without connection to the CAN bus network (ports [X2/X3] open).
For notes on commissioning with the Festo Configuration Tool (FCT) è FCT Help for the
EMCA plug-in.
26Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 27
2 CANopen
23451
2.3.1Configure EMCA
The following procedure is recommended for configuration/parameterisation of the EMCA:
– Prerequisite:
The Festo Configuration Tool (FCT) is installed (framework and EMCA plug-in).
In the FCT, a component is added and the drive system is configured è FCT Help for the EMCA
plug-in.
1. Configure CAN bus:
The following CANopen parameters can be configured/parameterised in the Festo Configuration Tool (FCT)
1 “Fieldbus” page
2 “Operating parameters” tab
4 “Node number (Node ID)” parameter
5 “Device profile” parameter
3 “Bit rate” parameter
Fig. 2.4CANopen parameters in the FCT
Note
The FCT settings are taken over into the permanent memory of the EMCA only after
“download”, “save” and “Restart controller”.
Parameterise a node number (1…127) for the CAN bus.
Note
Each node number can only be assigned once in a CANopen network.
If several CANopen participants are parameterised with the same node number, this can
result in CANopen communication errors that are difficult to localise.
Configure device profile
Select FHPP device profile.
28Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 29
2 CANopen
231
Display physical units (Factor Group)
Exchange of data (parameters) between the higher-order controller and the EMCA takes place via inter
face units [SINC]. The physical units (e.g. mm, mm/s, mm/s2) should be converted into the specified
interface units, dependent on the application è page 145.
2.3.2Commission EMCA with the Festo Configuration Tool (FCT)
Initial commissioning of the EMCA is performed with the Festo Configuration Tool (FCT) è FCT Help for
the EMCA plug-in.
Note
With activation of FCT in the device control, the Festo Configuration Tool (FCT) takes
over master control via the EMCA. CAN bus communication for the controller remains
active through the CAN bus interface [X2/X3], but the CAN bus does not have master
control.
2.3.3Configure CANopen master
EDS file for the EMCA
Use the following EDS file to configure the EMCA in the CANopen master (e.g. higher-order controller).
EDS files
Description
EMCA-EC-67-CO-FHPP.edsIntegrated drive EMCA-EC-67-...-CO with FHPP device profile
Tab. 2.7EDS file for FHPP
This EDS file is available at the following link:
– Support portal: www.festo.com/sp
Function elements for the EMCA
The following function elements can be used to enable the EMCA.
Function elementDescription
Festo_Motion_FHPP_2.libCODESYS, version 2.3
Festo_Motion_FHPP_3.libraryCODESYS, version 3.5
Tab. 2.8Function elements for FHPP
The latest version of the function elements è www.festo.com/sp
Cycle time
Data are processed by the EMCA in a cycle time of up to 5ms.
30Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 31
2 CANopen
2.4Required digital inputs for operation
The connection diagram shows the required digital inputs “controller enable”, “safety function” and
“reference or limit switch” for bus operation.
EMCA
Ethernet (Modbus TCP)
X1
CANopen; EtherCAT; EtherNet/IP;
PROFINET
1)
STO1
1)
STO2
24 V DC
Reference/limit switch (switch 1)
Reference switch/Limit switch (switch 2)
Controller enable
Ground (GND)
1) For additional information on wiring the input channels STO1/STO2 è Description EMCA-EC-S1-...
2) Only required with use of reference or limit switch è Description EMCA-EC-SY-…
3) Parameterisation of the controller enable signals è PNU 128 or FCT
Fig. 2.7Overview: Data interfaces (parameter/firmware)
32Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 33
2 CANopen
Festo – EMCA-EC-C-HP-EN – 2017-11e – English33
Page 34
3 EtherCAT with FHPP
3EtherCAT with FHPP
This part of the documentation describes the connection and configuration of the EMCA in an EtherCAT
network. It is targeted at people who are already familiar with this bus protocol.
EtherCAT (Ethernet for Controller and Automation Technology) is a standard worked out by the
“EtherCAT Technology Group (ETG)” association. Numerous device manufacturers are organised in this
user organisation. EtherCAT is an open, real-time-capable Ethernet technology that has been standard
ized by the International Electrotechnical Commission (IEC).
3.1ETG standards
The following specifications, among others, can be obtained from this user organization:
– ETG.1000.6: EtherCAT Application Layer Protocol Specification
– ETG.1020: EtherCAT Protocol Enhancements
– ETG.1300: EtherCAT Indicator and Labeling Specification
– ETG.2000: EtherCAT Slave Information Specification
– ETG.2200: EtherCAT Slave Implementation Guide
User organisation:
For additional information on the user organisation “EtherCAT Technology Group (ETG)”
è www.ethercat.org
EtherCAT implementation
The EtherCAT implementation of the EMCA is based on the following standards:
ETG Draft StandardVersion
number
1000.6EtherCAT Application Layer Protocol Specification S (R)V1.0.32013-01-03
Tab. 3.1EtherCAT implementation
Issue
34Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 35
3 EtherCAT with FHPP
3.2EtherCAT interfaces on the EMCA
The following integrated EtherCAT interfaces of the EMCA-...-EC are available for EtherCAT operation:
15
1 LED indicator: EC LINK/ACTIVITY (communic
ation activity/line monitoring) from Port 2,
connection [X2]
2 LED indicator: EC RUN
3 LED indicator: EC ERROR
Fig. 3.1EtherCAT interface on the EMCA
3.2.1EtherCAT display elements
The status of EtherCAT is displayed over the following four LEDs.
LEDDescription
EC LINK/ACTIVITY, Port1
EC LINK/ACTIVITY, Port 2
3 426
4 LED indicator: EC LINK/ACTIVITY (communic
ation activity/line monitoring) from Port 1,
connection [X3]
5 Connection [X2]: EtherCAT, Port 2
6 Connection [X3]: EtherCAT, Port 1
The following EtherCAT statuses are displayed:
– EtherCAT communication
EC ERROR
EC RUN
– Warnings/malfunctions
For additional information è Page 376
Tab. 3.2LED indicator
Festo – EMCA-EC-C-HP-EN – 2017-11e – English35
Page 36
3 EtherCAT with FHPP
3.2.2EtherCAT connections
The EMCA is integrated into an EtherCAT network through the following connections.
Note
The EtherCAT interfaces of the EMCA are intended exclusively for connection to local,
industrial fieldbus networks.
Direct connection to a public telecommunications network is not permissible.
EtherCAT, Port 1 [X3]: Pin assignment
Socket M12
Pin DesignationDescription
D-coded
5-pin
1
5
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data –
4
2
4RD-Receive Data –
5NCNot connected
3
Shield
ShieldScreening (Shield) (socket housing is connection
to functional earth via RC link)
Tab. 3.3EtherCAT, Port 1 [X3]: Pin assignment
EtherCAT, Port 2 [X2]: Pin assignment
Socket M12
Pin DesignationDescription
D-coded
5-pin
1
5
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data –
4
2
4RD-Receive Data –
5NCNot connected
3
Shield
ShieldScreening (Shield) (socket housing is connection
to functional earth via RC link)
Tab. 3.4EtherCAT, Port 2 [X2]: Pin assignment
36Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 37
3 EtherCAT with FHPP
3.2.3EtherCAT wiring
EtherCAT network participants must be wired using STP shielded Ethernet twisted-pair cables, Category
Cat 5 or higher. A max. cable length of 100 m is permitted per segment. The EtherCAT participants can
be connected together in ring, star and line topology.
3.2.4EtherCAT cable
The EtherCAT cable must fulfil the following technical data:
No external bus terminations are required for the EtherCAT bus. The EtherCAT Slave Controller (ESC)
monitors its two ports and terminates the bus automatically using the loop-back function.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English37
Page 38
3 EtherCAT with FHPP
3.3EtherCAT communication
3.3.1Overview: EtherCAT communication and synchronization
This diagram illustrates EtherCAT communication and synchronization of the EMCA with other network
participants (e.g. controller and Clock Master) and the protocol “CANopen over EtherCAT (CoE)”.
Controllers
(Master)
Clock Master
(1st Slave)
Ref clocks
EtherCAT communication
Process data communication
Process data object request
Process data object response
Mailbox communication
SDO communication
Service data object request
Service data object response
Abort SDO transfer request
Emergency communication
Emergency request
SDO Information communication
Get OD list request
Get OD list response
EtherCAT Synchronisation
Ref Time
EMCA
(Slave)
ESC
Sync manager
1)
2)
Sync manager 2/3
Sync manager 0/1
Distributed clocks
DC Time
Process
data
Mail
box
CoE
1) cyclical transmission2) acyclical transmission
Fig. 3.2 Overview: EtherCAT communication and synchronization
Abort SDO transfer65
Emergency communication67
SDO information communication
1) Internal memory area for process data communication and mailbox communication. Incoming and outgoing data are managed in
separate memory areas.
2) The EMCA supports SDO information communication for the transmission of “Get OD list” data.
2)
Tab. 3.6 Overview: EtherCAT communication and synchronization
Festo – EMCA-EC-C-HP-EN – 2017-11e – English39
Page 40
3 EtherCAT with FHPP
3.3.2EtherCAT Slave Controller ESC
The EtherCAT Slave Controller ESC forms the central communication unit for the EMCA, to exchange
data between the control unit and the EtherCAT participants. With Distributed Clocks DC, EtherCAT
Slave Controller controls the cyclic synchronous processing of process data.
3.3.3Protocol
The EMCA supports the following protocols for exchanging communication data:
Protocol
Description
CANopen over EtherCAT CoE Data transmission in accordance with CANopen, CiA301
Tab. 3.7 Overview: Protocol
Byte format
With EtherCAT, the 16-bit values (word) and the 32-bit values (double word) are presented as follows:
Byte formatData typeByte order
Little endianWord
(LSB)(MSB)
(CDEFh)
Double word
(LSB)(MSB)
(89ABCDEFh)
1) LSB: Least Significant Byte
MSB: Most Significant Byte
1)
EF
h
EF
h
CD
CD
h
h
AB
h
89
h
Tab. 3.8 Byte order
40Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 41
3 EtherCAT with FHPP
Layout of the Ethernet and EtherCAT frame
This diagram shows the layout of the Ethernet and EtherCAT frame with the protocol “CANopen over
EtherCAT (CoE)”.
Ethernet Frame [IEE E 802.3]
EtherCAT Frame [ETG]
Ethernet Header
14 Byte
Ether type:
0x88A4 =EtherCAT
EtherCAT Frame Header
Type:
4= Process data communication
5= Mailbox communication
The EtherCAT final state machine contains all statuses needed to establish EMCA communication in an
EtherCAT network. After a reboot (Power ON or Reset), the EMCA is initialized by the controller
(Master). In the following sequence, communication is established for mailbox data and process data.
By enabling communication, data can be exchanged between the EMCA and the other network parti
cipants. All status transitions are controlled by the commands from the higher-order controller.
Autonomously, the EMCA does not perform any status changes.
The illustration shows all statuses and status transitions of the EtherCAT finite state machine.
(Power ON)
(Reset)
Init
(PI)
Pre-Operational (PreOp)
(OI)
(OP)
Operational (Op)
Fig. 3.4EtherCAT final state machine
(IP)
(SI)
(PS)
(SO)
(SP)
Safe-Operational (SafeOp)
(OS)
42Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 43
3 EtherCAT with FHPP
This table describes all statuses of the EtherCAT final state machine.
State
Description
Init Status after Power ON or Reset.
No acyclic mailbox communication (SDO) is possible.
No cyclic process data communication (PDO) possible.
The controller initializes Sync Manager channels 0 and 1 for mailbox commu
nication.
Pre-Operational
(PreOp)
Acyclic mailbox communication (SDO) is possible.
No cyclic process data communication (PDO) possible.
The controller initializes Sync Manager channels 2 and 3 for PDO mapping and
for process data communication.
Safe-Operational
(SafeOp)
Acyclic mailbox communication (SDO) is possible.
Cyclic process data communication (PDO) is possible.
– The controller does not transmit any setpoint values to the EMCA (RxPDO).
The EMCA is in a secure condition.
– The EMCA transmits current actual values to the controller (TxPDO).
Operational
(Op)
Acyclic mailbox communication (SDO) is possible.
Cyclic process data communication (PDO) is possible.
– The controller transmits new setpoint values to the EMCA (RxPDO). Set
point values are processed by the EMCA.
– The EMCA transmits current actual values to the controller (TxPDO).
Tab. 3.9 Statuses of the EtherCAT final state machine
Festo – EMCA-EC-C-HP-EN – 2017-11e – English43
Page 44
3 EtherCAT with FHPP
This table describes all status transitions of the EtherCAT final state machine.
Status transition
Status
Power ON/RESETThe EMCA was switched on, or a Reset was triggered.
The EMCA initializes itself and switches directly into the “Init” status.
IP
(Init è PreOp)
Mailbox communication (SDO) is started.
The controller reads the device information from the EtherCAT slave controller
(ESC) and configures it:
Station address
Sync Manager register for mailbox communication
Distributed clocks (DC)
PI
Mailbox communication (SDO) is stopped.
(PreOp è Init)
PS
(PreOp è SafeOp)
Process data communication (PDO) is started.
The controller configures:
Sync Manager register for process data communication
PDO mapping
SP
Process data communication (PDO) is stopped.
(SafeOp è PreOp)
SO
The controller transmits valid output data.
(SafeOp è Op)
OS
(Op è SafeOp)
The controller actively requests a change into status “Safe-Operational
(SafeOp)”. The EMCA triggers a diagnostic message in accordance with the
configured response.
OP
Process data communication (PDO) is stopped.
(Op è PreOp)
SI
(SafeOp è Init)
OI
(Op è Init)
Mailbox communication (SDO) is stopped.
Process data communication (PDO) is stopped.
Mailbox communication (SDO) is stopped.
Process data communication (PDO) is stopped.
Tab. 3.10 Status transitions of the EtherCAT finite state machine
44Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 45
3 EtherCAT with FHPP
3.5Sync Manager
The sync manager supports the following functions:
– Sync Manager communication (network communication) è Page 45
– Sync Manager synchronization (network synchronization) è Page 50
3.5.1Sync Manager communication
The Sync Manager controls EMCA mailbox data and process data communication to the other network
participants (e.g. controller).
The following table describes the fixed assignment of communication type, transmission type and sync
channel to the Sync Manager.
Sync
Manager
00Mailbox
11Transmit service data objectsSDO
22Process data com
33Transmit process data objectsTxPDO
Tab. 3.11 Communication type
Sync
channel
Communication
type
communication
munication
Sync manager communication
Sync manager 0
Type of transmission
Receive service data objectsSDO
Receive process data objectsRxPDO
Sync channel 0
Mailbox receive è SDO
Sync manager 1
Sync channel 1
EtherCAT Bus
Fig. 3.5Establishing Sync Manager communication
Festo – EMCA-EC-C-HP-EN – 2017-11e – English45
Sync manager 2
Sync channel 2
Sync manager 3
Sync channel 3
Mailbox send ç SDO
Process data output è RxPDO
Process data input ç TxPDO
Page 46
3 EtherCAT with FHPP
Objects for Sync Manager communication
The following objects are available for Sync Manager communication:
3.5.2Object 1C00h: Sync manager communication type
Via the object, the communication types of the Sync Managers 0 … 3 are output.
A communication and transmission type is assigned firmly to each sync manager.
IndexNameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1C00hSync manager
ARRAY –––––
communication type
00hNumber of used sync
VARUINT8rono4
4
h
h
manager channels
01hCommunication type sync
VARUINT8ronoTab. 3.14 1
h
manager 0
02hCommunication type sync
VARUINT8rono2
h
manager 1
03hCommunication type sync
VARUINT8rono3
h
manager 2
04hCommunication type sync
VARUINT8rono4
h
manager 3
Tab. 3.13 Object 1C00
h
ValueDescription
1
h
Mailbox: Receive service data objectsSDO
Master è Slave
(Mailbox receive)
2
h
Mailbox: Transmit service data objectsSDO
Slave è Master
(Mailbox send)
3
h
Process data: Receive process data objects RxPDO
Master è Slave
(Process data output)
4
h
Process data: Transmit process data objects TxPDO
Slave è Master
(Process data input)
Tab. 3.14 Value range: Communication type sync manager
46Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 47
3 EtherCAT with FHPP
3.5.3Object 1C10h: Sync manager 0 PDO assignment
Via the object, PDO assignment is output in Sync Manager 0.
Mailbox communication “Receive service data objects SDO” is firmly assigned to Sync Manager 0.
IndexNameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1C10hSync manager 0 PDO
ARRAY –––––
assignment
00hNumber of assigned PDOsVARUINT8ronoTab. 3.16 0
Tab. 3.15 Object 1C10
h
h
ValueDescription
0
h
No PDO is assigned
Tab. 3.16 Value range: Number of assigned PDOs
3.5.4Object 1C11h: Sync manager 1 PDO assignment
Via the object, PDO assignment is output in Sync Manager 1.
Mailbox communication “Transmit service data objects SDO” is firmly assigned to Sync Manager 1.
IndexNameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1C11hSync manager 1 PDO
ARRAY –––––
assignment
00hNumber of assigned PDOsVARUINT8ronoTab. 3.18 0
Tab. 3.17 Object 1C11
h
h
ValueDescription
0
h
No PDO is assigned
Tab. 3.18 Value range: Number of assigned PDOs
Festo – EMCA-EC-C-HP-EN – 2017-11e – English47
Page 48
3 EtherCAT with FHPP
3.5.5Object 1C12h: Sync manager 2 PDO assignment
Via the object, PDO assignment is specified in Sync Manager 2.
Process data communication “Receive service data objects RxPDO” (FHPP data) is firmly assigned to
Sync Manager 2.
Index
NameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1C12hSync manager 2 PDO
ARRAY –––––
assignment
00hNumber of assigned PDOsVARUINT8rwno04
01hPDO mapping object index of
VARUINT16rwno1600h1600
assigned PDO
h
04
h
h
(RxPDO1)
(FHPP-Stan
dard)
02hPDO mapping object index of
assigned PDO
VARUINT16rwno1601h1601
(RxPDO2)
h
(FPC/FHPP+)
03hPDO mapping object index of
assigned PDO
VARUINT16rwno1602h1602
(RxPDO3)
h
(FHPP+)
04hPDO mapping object index of
assigned PDO
VARUINT16rwno1603h1603
(RxPDO4)
h
(FHPP+)
Tab. 3.19 Object 1C12
h
48Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 49
3 EtherCAT with FHPP
3.5.6Object 1C13h: Sync manager 3 PDO assignment
Via the object, PDO assignment is specified in Sync Manager 3.
Process data communication “Transmit service data objects TxPDO” (FHPP data) is firmly assigned to
Sync Manager 3.
Index
NameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1C13hSync manager 3 PDO
ARRAY –––––
assignment
00hNumber of assigned PDOsVARUINT8rwno04
01hPDO mapping object index of
VARUINT16rwno1A00h1A00
assigned PDO
h
04
h
h
(TxPDO1)
(FHPP-Stan
dard)
02hPDO mapping object index of
assigned PDO
VARUINT16rwno1A01h1A01
(TxPDO2)
h
(FPC/FHPP+)
03hPDO mapping object index of
assigned PDO
VARUINT16rwno1A02h1A02
(TxPDO3)
h
(FHPP+)
04hPDO mapping object index of
assigned PDO
VARUINT16rwno1A03h1A03
(TxPDO4)
h
(FHPP+)
Tab. 3.20 Object 1C13
h
Festo – EMCA-EC-C-HP-EN – 2017-11e – English49
Page 50
3 EtherCAT with FHPP
3.5.7Sync Manager synchronization
Transmission and processing of cyclic process data is specified by the Sync Manager synchronization
process. Synchronization is controlled by Distributed Clocks DC è Page 52.
The EMCA supports the following synchronizations:
– Free Run (no synchronization)
– Synchronization with DC Sync (DC Sync Event)
Objects for Sync Manager synchronization
The following objects are available for Sync Manager synchronization:
supported
05hMin cycle timeVARUINT32rono––
06hCalc and copy timeVARUINT32rono––
08hGet cycle timeVARUINT16rwno–0000
09hDelay timeVARUINT32rono––
0BhSM-event missed counterVARUINT16rono––
0ChCycle time too smallVARUINT16rono––
20hSync ErrorVARBOOLrono––
Tab. 3.24 Object 1C33
h
ValueDescription
00
02
h
h
Free Run: No synchronization
DC Sync0 Synchronization with DC Synco0 event
Tab. 3.25 Value range: Synchronization type
Default value
h
h
h
Festo – EMCA-EC-C-HP-EN – 2017-11e – English51
Page 52
3 EtherCAT with FHPP
3.6Distributed Clocks DC
With Distributed Clocks DC the clocks in the EtherCAT Slave Controller ESC of all DC-capable network
participants on an EtherCAT network array can be synchronized. The first DC-capable slave in the
EtherCAT network usually takes charge of the task of Clock Masters with a reference clock (Ref Clock).
At cyclical intervals, Master transmits a synchronization datagram in which Clock Master writes the
current reference time (Ref Time) to the reference clock. All subsequent slaves read out this value.
EtherCAT Slave Controller ESC calculates the time from the reference time (Ref Time) and the run-time
established by the controller (Offset) DC(DC Time).
With every subsequent synchronization datagram, Distributed Clocks DC are synchronized continu
ously. With Distributed Clocks DC, cyclic synchronous processes can be executed (e.g. chronologically
synchronous adoption of setpoint value from process data or cyclic synchronous operation of several
axes). Transmission and processing of cyclic process data is controlled by the Sync Manager synchron
ization è Page 50.
In status transition IP (Init è PreOp), all Distributed Clocks DC in an EtherCAT network are configured
by the controller. In the status transitions (PreOp è SafeOp), DC-synchronization is established in the
EtherCAT network. Then the Clock Slaves are restored to status Operational (Op).
The diagram shows the DC-topology and synchronization of the EtherCAT network.
Master
Clock Slave
Ref Time
1) Synchronization datagram
1st Slave
Clock Master
Ref Clock
Ref Time
1)Ref TimeRef Time
2nd Slave
Clock Slave
DC TimeDC TimeDC TimeDC Time
OffsetOffsetOffsetOffset
Ref TimeRef Time
Ref Time
Fig. 3.6DC-topology and synchronization of the EtherCAT network
3rd Slave... Slave
Clock Slave
52Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 53
3 EtherCAT with FHPP
3.7Process data communication
With Process data communication, process data (e.g. setpoint and actual values) are exchanged cyclic
ally between the EMCA and the network participants (e.g. controller). With each process data frame
that is run through, the process data are read and written to. In the EMCA, the controller for process
data communication is assigned permanently to Sync Managers 2 and 3. Transmission of mapped pro
cess data objects PDO (Process data objects) takes place via sync channels 2 and 3.
From status “Safe Operational”, EMCA process data communication is enabled. From this status on
wards, the EMCA transmits current actual values to the controller. When status “Operational” is
reached, incoming process data objects PDO are processed and executed by the EMCA. Synchroniza
tion of the EMCA can be controlled by Distributed Clocks DC è Page 52.
Controllers
Process data output
(transmitted data, e.g. setpoint value)
RxPDO
EMCA
RxPDO Mapping
Object 1600
… 1603
h
h
TxPDO Mapping
Process data input
(received data, e.g. actual value)
TxPDO
Object 1A00h … 1A03
Fig. 3.7Access procedure via process data objects PDO
3.7.1PDO Mapping
With PDO mapping, application-specific data sets for data interchange can be created.
Objects for PDO mapping
The following objects are available for mapping the PDO process data objects:
Mapping for TxPDO2 is specified by the object.
The TxPDO2 transmits the Festo Parameter Channel (FPC) (default) è Page 224 or the FHPP+ data
è Page 239.
Tab. 3.42 Value range: … input object to be mapped
Festo – EMCA-EC-C-HP-EN – 2017-11e – English61
Page 62
3 EtherCAT with FHPP
3.8Mailbox communication
Via the mailbox communication (Mailbox communication) acyclic service data (e.g. parameter values or
event-controlled error messages are exchanged between controller and EMCA. The SDO data are read
from the incoming SDO frames. After processing the request, an answer or acknowledgement is written
to the SDO frame. In the EMCA, the controller for mailbox communication is assigned permanently to
Sync Managers 0 and 1. Transmission of service data objects SDO (Service data objects), Emergency
messages and SDO information takes place via sync channels 0 and 1.
Mailbox communication is enabled from status “Pre-Operational”.
Mailbox communication supports the following communication services:
– SDO communication (acyclic transmission of service data objects) è Page 62
– Emergency communication (event-controlled transmission of SDO errors) è Page 67
– SDO Information communication (acyclic transmission of Get OD list data) è Page 39
3.8.1SDO Communication
SDOCommunication supports the following SDO services:
– Read command: Acyclic reading of parameter data (SDO upload) è Page 63
– Write command: Acyclic writing to parameter data (SDO download) è Page 64
– SDO Error transmission: SDO Event-controlled transmission of error code è Page 65
62Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 63
3 EtherCAT with FHPP
3.8.2SDO Read command (SDO upload)
Using the SDO read command, the controller can access parameter data (Value) of the CoE object dir
ectory CoE OD in the EMCA acyclically and can read them. Every request is confirmed by the EMCA with
a answer.
ControllersEMCA
CoE OD
Object
Request
SDO upload/Upload SDO ... request
(SDO read command)
Value
SDO upload/Upload SDO ... response
Answer
Fig. 3.8Access procedure: Reading out parameter data
The SDOservice supports the following SDO read commands:
SDO Service
SDO upload expedited requestRead para
SDO upload expedited responseAnswer (response)
SDO upload normal request5 … 1,406 bytes of
SDO upload normal responseAnswer (response)
Upload SDO segmented request1,407 … n bytes of
Upload SDO segmented responseAnswer (response)
1) The usage data are fragmented into packages, each of max. 7 bytes.
Description
meter data
(upload)
1 … 4 bytes of us
age data (expedi
ted)
usage data (nor
mal)
usage data1) (seg
mented)
Request (request)
Request (request)
Request (request)
Tab. 3.43 SDO Services: Read out parameter data
Note
The answer (upload ... response) from the EMCA must be waited for in any event!
The next SDO request cannot be transmitted until the EMCA has answered the read
command.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English63
Page 64
3 EtherCAT with FHPP
3.8.3SDO Write command (SDO download)
O write command, the controller can access parameter data (Value) in the CoE object directory in the
EMCA acyclically and can write to them. Every request is confirmed by the EMCA with an acknowledge
ment.
ControllersEMCA
CoE OD
Object
Request
SDO download/Download SDO ... request
(SDO write command)
Value
SDO download/Download SDO ... response
Acknowledgment
Fig. 3.9Access procedure: Writing to parameter data
The SDO service supports the following SDO write commands:
SDO Service
SDO download expedited requestWriting to
SDO download expedited responseAcknowledgement (re
SDO download normal request5 … 1,406 bytes of
SDO download normal responseAcknowledgement (re
Download SDO segmented request1,407 … n bytes of
Download SDO segmented responseAcknowledgement (re
1) The usage data are fragmented into packages, each of max. 7 bytes.
Description
parameter
data (down
load)
1 … 4 bytes of us
age data (expedi
ted)
usage data (nor
mal)
usage data1) (seg
mented)
Request (request)
sponse)
Request (request)
sponse)
Request (request)
sponse)
Tab. 3.44 SDO Services: Writing to parameter data
Note
Dispense with SDO write commands (Download ... request) that refer to the objects
mapped into the PDO because the corresponding parameter data are otherwise over
written alternately in a chronologically undefined sequence by the transmitted process
data objects (PDO) and service data objects (SDO).
Note
Acknowledgement (download ... response) of the EMCA must be waited for in any event!
The next SDO request cannot be transmitted until the EMCA has acknowledged the
write command.
64Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 65
3 EtherCAT with FHPP
3.8.4SDO Error message (Abort SDO transfer request)
In the event of an error while reading or writing, the EMCA responds with an SDO error message (Abort
SDO transfer request). The cause of error is transmitted to the controller as an error code (abort codes)
in the data (Data) of the error message.
ControllersEMCA
Abort SDO transfer request
SDO Error
Fig. 3.10Transmit error message
Example:
A write command is transmitted to the object “Statusword (6041
)” that only has read access. In the
h
error message, the error code “06 01 00 02h” is sent back.
SDO error code SDO abort codes
The following table describes all the SDO error codes for SDO error transmission:
Error code
Description
F3 F2 F1 F0
05 03 00 00hProtocol error: Toggle bit was not revised with segmented SDO transfer.
05 04 00 00hSDO protocol time violation
05 04 00 01hProtocol error: Client/server command specifier invalid or unknown
05 04 00 05hOutside the memory area
06 01 00 00hAccess type is not supported
06 01 00 01hRead access to an object that can only be written
06 01 00 02hWrite access to an object that can only be read
06 01 00 03hSubindex cannot be written to, subindex O must be 0 for write access
06 01 00 04hSDO complete access is not supported for objects with variable length, e.g. with
ENUM object types
06 01 00 05hLength of object exceeds size of mailbox
06 01 00 06hObject is assigned to RxPDO, SDO download is blocked
06 02 00 00hThe addressed object does not exist in the object directory.
06 04 00 41hThe object must not be entered into a PDO (e.g. ro-object in RPDO).
06 04 00 42hThe length of the objects entered in the PDO exceeds the PDO length
06 04 00 43hGeneral parameter error
06 04 00 47hOverflow of an internal variable/general error
06 06 00 00hAccess faulty due to a hardware problem
06 07 00 10hProtocol error: Length of the service parameter does not agree.
06 07 00 12hProtocol error: Length of the service parameter is too large.
06 07 00 13hProtocol error: Length of the service parameter is too small.
06 09 00 11hThe addressed subindex does not exist.
06 09 00 30hValue range for parameters was exceeded (only for write access)
06 09 00 31hParameter value is too big
Festo – EMCA-EC-C-HP-EN – 2017-11e – English65
Page 66
3 EtherCAT with FHPP
Error code
Description
F3 F2 F1 F0
06 09 00 32hParameter value is too small
06 09 00 36hMaximum value is smaller than the minimum value
08 00 00 00hGeneral error
08 00 00 20hData cannot be transmitted to the device or saved
08 00 00 21hData cannot be transmitted to the device or saved due to absence of master control
08 00 00 22hData cannot be transmitted to the device or saved due to the current status of the
device
08 00 00 23hDynamic generation of the object directory failed or no object directory is available
Tab. 3.45 SDO error codes
66Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 67
3 EtherCAT with FHPP
3.8.5Emergency Communication
The EMCA monitors the function of internal assemblies (e.g. output stage). Whenever an error occurs,
the configured error reaction is initiated and the corresponding Emergency message is transmitted to
the controller.
The EMCA also transmits a Emergency message if an error was acknowledged.
Objects for the EMCY operation
The following object is available for Emergency operation:
Index
1001
NamePage
Error register68
h
Tab. 3.46 Objects for the Emergency operation
Start
0
Error free
1
2
Error occured
3
4
Fig. 3.11Diagram: Error finite state machine
The following status transitions are possible:
no.CauseDescription
0Initialisation completedThere is no error.
1Error occursNo error is present and a new error occurs.
A Emergency message is transmitted with the error code of the
new error.
2Error acknowledgment
not successful
Not all causes of error are remedied and an error was acknow
ledged è Page 126.
3New error occursAn error is present and a new error occurs.
A Emergency message is transmitted with the error code of the
new error.
4Error acknowledgment
successful
All causes of error have been eliminated and an error acknowledg
ment has been carried out è Page 126. The Emergency message
was transmitted with error code 0000h (No error/Error reset).
Tab. 3.47 Error status transitions
Festo – EMCA-EC-C-HP-EN – 2017-11e – English67
Page 68
3 EtherCAT with FHPP
3.8.6Object 1001h: Error register
The defined type of error from the error register is issued via the object.
Index
NameObject
code
Data
type
Ac
cess
PDO
map
Value
range
ping
1001hError registerVARUINT8ronoTab. D.22 0
Tab. 3.48 Object 1001
h
Error register and error types
1)
Bit
Description
0Generic error: Error is present, OR operation of the bits 1 … 7
1Current error: Current monitoring error
2Voltage error: Voltage monitoring error
3Temperature error: Temperature monitoring error
4Communication error (overrun, error state): Communication error
5Device profile specific error: device-profile-specific error
6Reserved, fix = 0
7Manufacturer specific error: Manufacturer-specific error
1) Bit = 0: No error present; Bit = 1: Error present
Tab. 3.49 Bit assignment Error register
Default value
h
68Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 69
3 EtherCAT with FHPP
3.8.7Error messages (Error code)
The following table lists all error messages that can occur during EtherCAT mode.
For additional information on the error messages (e.g. error response, cause and meas
ures) è page 371.
Further information about parameterisation in error management of the Festo Configura
tion Tool (FCT) è Page 371.
Index pulse too close on proximity sensor0x2E
7303
7400
8100
8101
8600
8611
Encoder50x06
h
Software error50x01
h
EtherCAT connection with master control40x50
h
EtherCAT connection without master control40x51
h
Standstill monitoring50x37
h
Following error50x2F
h
Bit
(Error
register)
FCTCode
70Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 71
3 EtherCAT with FHPP
Error messages
Error code
Description
E0 E1
8612
Software limit positive50x11
h
Software limit negative0x12
Positive direction locked0x13
Negative direction locked0x14
Target position behind negative software limit0x29
Target position behind positive software limit0x2A
Value range violated0x4C
FF00
FF01
FF02
FF03
FF0A
FF0D
FF0E
FF10
FF11
FF12
FF13
FF15
Internal communication error CPUs70x03
h
Non-permitted hardware70x04
h
Offset determination for current measurement70x09
h
General error70x0A
h
Temperature central processing unit70x19
h
Firmware update, invalid firmware70x2B
h
Braking resistor70x30
h
FCT connection with master control70x32
h
Output stage temperature warning70x33
h
Parameter file access70x38
h
Trace warning70x39
h
Homing method invalid50x3B
h
Bit
(Error
register)
FCTCode
Festo – EMCA-EC-C-HP-EN – 2017-11e – English71
Page 72
3 EtherCAT with FHPP
Error messages
Error code
Description
E0 E1
FF18
FF19
FF21
FF22
FF24
FF25
FF26
FF26
FF27
FF28
Diagnostic memory70x3E
h
Record invalid70x3F
h
System reset70x41
h
Saving address data not possible70x42
h
Parameter file not compatible with firmware70x44
h
Safe Torque Off (STO) discrepancy time70x4A
h
Safe Torque Off (STO)70x34
h
Bootloader memory error70x4D
h
Overload 24V Outputs70x4E
h
System information70x4F
h
Tab. 3.50 Error messages
Bit
(Error
register)
FCTCode
72Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 73
3 EtherCAT with FHPP
Festo – EMCA-EC-C-HP-EN – 2017-11e – English73
Page 74
3 EtherCAT with FHPP
3.9Device data
The device data of the EMCA are implemented in several CoE objects. The device-specific data includes
version numbers of the hardware and software. The device-specific data cannot be changed by the
user.
Objects for the device data
The following objects are available for the device data:
IndexNamePage
1000
1008
1009
100A
1018
Tab. 3.51 Objects for the device data
3.9.1Object 1000h: Device type
Via this object, the 8-digit device type code “Motor type” and “Communication profile” is output.
IndexNameObject
1000hDevice typeVARUINT32ronoTab. 3.53 0002012D
Tab. 3.52 Object 1000
Device type74
h
Manufacturer device name74
h
Manufacturer hardware version75
h
Manufacturer software version75
h
Identity object76
h
code
Data
type
Ac
cess
PDO
map
ping
h
Value
range
Default value
h
Value
BitDescription
(0002012Dh)
00
h
02
h
012D
h
31 … 24 Manufacturer-specific information
23 … 16 Servo drive
15 … 0Communication profile CiA 301
Tab. 3.53 Value range: Device type
3.9.2Object 1008h: Manufacturer device name
The device name of the manufacturer is output via the object.
IndexNameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
1008hManufacturer device nameVARVSTRING rono–
1) ASCII string is product-dependent.
Tab. 3.54 Object 1008
74Festo – EMCA-EC-C-HP-EN – 2017-11e – English
h
1)
Page 75
3 EtherCAT with FHPP
3.9.3Object 1009h: Manufacturer hardware version
The hardware version number is output via the object.
Index
NameObject
code
Data
type
Ac
cess
PDO
map
Value
range
ping
1009hManufacturer hardware
VARVSTRING rono–Tab. 3.56
version
Tab. 3.55 Object 1009
h
ValueDescription
MxxxxPxxxxExxxxHardware version number: ASCII character string, 15-character
Tab. 3.56 Default value: Manufacturer hardware version
Default value
3.9.4Object 100A
: Manufacturer software version
h
The software version number is output via the object.
Index
NameObject
100AhManufacturer software
code
VARVSTRING rono–Tab. 3.58
Data
type
version
Tab. 3.57 Object 100A
h
ValueDescription
Mxxxx:xxxx:xxxx:xxxxByyyy:yyyy
Software version number: ASCII character string, 90-character
Pxxxx:xxxx:xxxx:xxxxByyyy:yyyy
Exxxx:xxxx:xxxx:xxxxByyyy:yyyy
Tab. 3.58 Default value: Manufacturer software version
Ac
cess
PDO
map
ping
Value
range
Default value
Festo – EMCA-EC-C-HP-EN – 2017-11e – English75
Page 76
3 EtherCAT with FHPP
3.9.5Object 1018h: Identity object
The following information is issued about the object for identification of the EMCA:
– Festo registration code with EtherCAT Technology Group (ETG) (Vendor ID)
– Festo part number (Product code)
– Revision number of the EtherCAT interface
– Serial number
Via the object, the default parameter set (factory setting) is loaded into RAM as the current parameter
set and into permanent memory as an application parameter set or the current parameter set (RAM) is
backed up into the application parameter set (permanent memory).
The object can only be used when the output stage is switched off.
IndexNameObject
code
Data
type
Ac
cess
PDO
map
Value
range
Default value
ping
20F1hEEPROM commandARRAY –––––
00hNumber of entriesVARUINT8rono–2
01hRestore factory settingsVARUINT32wono–1
02hSave object valuesVARUINT32wono–1
Tab. 3.60 Object 20F1
h
h
h
h
For this, sub-indexes must be described with the ASCII text as a hexadecimal numeral.
ObjectSignatureLSBMSB
20F1_01
20F1_02
ASCII (load)load
h
Hex (64616F6Ch)6C
ASCII (save)save
h
Hex (65766173h)73
h
h
6F
61
h
h
61
76
h
h
64
65
h
h
Tab. 3.61 ASCII text
In contrast to the normal SDO traffic, with this object the command is immediately acknowledged at the
start of processing. The internal storage cycle for saving the data can take some seconds. During this
time, no additional SDOs can be processed. Until the internal saving cycle is ended, sent SDOs are
answered with Generic error.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English77
Page 78
3 EtherCAT with FHPP
3.11Configuration of EtherCAT participants
Several steps are required in order to produce an operational EtherCAT interface.
We recommend the following procedure:
1. Parameterisation and commissioning with the Festo Configuration Tool (FCT).
2. In addition, the following settings on the fieldbus page:
– Device profile FHPP (register of operating parameters)
– Optional use of FPC and FHPP+ (FHPP+ Editor tab)
3. Incorporate the XML file in the project planning software.
3.12Parameterisation with the Festo Configuration Tool (FCT)
Notes on parameterisation with the Festo Configuration Tool (FCT) è FCT help for the
PlugIn EMCA.
3.12.1Parameterisation of the EtherCAT interface
With the help of the Festo Configuration Tool (FCT), settings at the EtherCAT interface can be read out
and configured. The aim is to configure the EtherCAT interface via the Festo Configuration Tool (FCT) in
such a way that the EMCA can establish EtherCAT communication with an EtherCAT controller.
Note
The FCT settings are taken over into the permanent memory of the EMCA only after
“Download”, “Save” and “Restart controller”.
3.12.2Setting the optional use of FPC and FHPP+
In addition to the controller and status data, the following data can also be transmitted:
– Festo Parameter Channel (FPC) è Page 224.
– Expansion of the FHPP standard data (FHPP+) è Page 239.
Configuration and parameterisation are performed using the Festo Configuration Tool (FCT), page “Field
bus”, register “FHPP+ Editor”.
78Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 79
3 EtherCAT with FHPP
3.13Commissioning with the Festo Configuration Tool (FCT)
The first time the EMCA enters service is via the Festo Configuration Tool (FCT) è FCT help for Plu
gIn EMCA.
Note
With activation of FCT in the device control, the Festo Configuration Tool (FCT) takes
over master control via the EMCA. EtherCAT communication to the controller remains
enabled via the EtherCAT interface [X2/X3] but EtherCAT has no master control.
Commissioning with the Festo Configuration Tool (FCT) via the Ethernet interface [X1]
should first be done without the EtherCAT network (ports [X2/X3] open).
Festo – EMCA-EC-C-HP-EN – 2017-11e – English79
Page 80
3 EtherCAT with FHPP
3.14Configuring the EtherCAT master
3.14.1Device description file (ESI)
The following XML file should be used to configure the EMCA in the EtherCAT master (e.g. higher-order
controller).
Product typeDescription
Festo-EMCA-EC-FHPP-YYYYMMDD.xml1)EMCA-EC-67-...-EC with device profile “FHPP”
1) YYYY = year, MM = month, DD = day
Tab. 3.62 XML file for FHPP
The latest version of the XML file è www.festo.com/sp
3.14.2Function element
The following function elements can be used to enable the EMCA.
Product typeDescription
Festo_Motion_FHPP_2.libraryBeckhoff TwinCAT 2
CODESYS, version 2.3
Festo_Motion_FHPP_3.libraryBeckhoff TwinCAT 3
CODESYS, version 3.5
Festo_Motion_FHPP.slrOmron Sysmac Studio
Tab. 3.63 Function elements for FHPP
The latest version of the function elements è www.festo.com/sp
3.14.3Addressing of the EMCA
The EMCA supports the following addressing settings:
– Physical addressing
– Auto increment
– Fixed address
– Logical addressing
3.14.4Cycle time
Data are processed by the EMCA in a cycle time of 2 … 15 ms.
80Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 81
4 EtherNet/IP with FHPP
4EtherNet/IP with FHPP
This part of the documentation describes connection and configuration of the EMCA in an EtherNet/IP
network. It is targeted at people who are already familiar with the bus protocol “EtherNet/IP”.
The Ethernet Industrial Protocol (EtherNet/IP) is an open standard for industrial networks. EtherNet/IP
is used for cyclical transmission of control and status data (I/O data) as well as acyclic transmission of
parameter data.
EtherNet/IP was developed by Rockwell Automation and the user organization “ODVA (Open DeviceNet
Vendor Association)” and standardised in the international standards series IEC 61158.
The integrated EtherNet/IP connections of the EMCA are implemented as a 2-port Ethernet switch with
two M12 connections. The EMCA is a pure EtherNet/IP adapter and requires an EtherNet/IP controller
(scanner) in order to be controlled via EtherNet/IP.
The EMCA supports the Device Level Ring function (DLR) and is able to communicate with an EtherNet/
IP Ring Supervisor. In case of a string failure, the EMCA receives the new path specifications of the Ring
Supervisor and uses them. Only the cyclic data transmission of the FHPP protocol and the EtherNet/IP
standard functions are supported.
EtherNet/IP is the implementation of Common Industrial Protocol (CIP) over TCP/IP and Ethernet
(IEEE 802.3). The Ethernet twisted-pair cable must be used as the transmission medium.
4.1ODVA standards
The following documents, among others, can be obtained from this user organisation:
THE CIP NETWORKS LIBRARY: Volume 1 – Common Industrial Protocol (CIP)
This document describes the general fundamentals of the Common Industrial Protocols (CIP) (e.g.
transmission).
THE CIP NETWORKS LIBRARY: Volume 2 – EtherNet/IP Adaptation of CIP
These documents discuss the general fundamentals and embedding of EtherNet/IP into the Common
Industrial Protocols (CIP).
User organisation:
For additional information on the user organisation “ODVA (Open DeviceNet Vendor Association)”
è http://www.odva.org
Festo – EMCA-EC-C-HP-EN – 2017-11e – English81
Page 82
4 EtherNet/IP with FHPP
4.2EtherNet/IP interface of the EMCA
The following integrated EtherNet/IP interfaces of the EMCA-...-EP are available for EtherNet/IP opera
tion:
1
1 LED indicator: LINK/ACTIVITY
(communication activity/line monitoring)
from Port 2, connection [X2]
2 LED indicator: MS (module status)
3 LED indicator: NS (network status)
Fig. 4.1EtherNet/IP interface of the EMCA
4.2.1EtherNet/IP display components
The status of EtherNet/IP is displayed over the following four LEDs.
LEDDescription
LINK/ACTIVITY, Port1
LINK/ACTIVITY, Port 2
3 4256
The following EtherNet/IP statuses are displayed:
– EtherNet/IP communication
NS
MS
– Warnings/malfunctions
For additional information è page 378
4 LED indicator: LINK/ACTIVITY
(communication activity/line monitoring)
from Port 1, connection [X3]
5 Connection [X2]: EtherNet/IP, Port 2
6 Connection [X3]: EtherNet/IP, Port 1
Tab. 4.1LED indicator
82Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 83
4 EtherNet/IP with FHPP
4.2.2EtherNet/IP connections
The EMCA is integrated into an EtherNet/IP network through the following connections.
Note
The EtherNet/IP interface of the EMCA is intended exclusively for connection to local,
industrial fieldbus networks.
Direct connection to a public telecommunications network is not permissible.
EtherNet/IP, Port 1 [X3]: pin allocation
Socket M12
Pin DesignationDescription
D-coded
5-pin
1
5
1TD+Transmitted data + (Transmit Data)
2RD+Received data + (Receive Data)
3TD-Transmitted data – (Transmit Data)
4
2
4RD-Received data – (Receive Data)
5NCNot connected
3
Shield
ShieldScreening (Shield) (socket housing is connection
to functional earth via RC link)
Tab. 4.2EtherNet/I P, Port 1 [X3]: pin allocation
EtherNet/IP, Port 2 [X2]: pin allocation
Socket M12
Pin DesignationDescription
D-coded
5-pin
1
5
1TD+Transmitted data + (Transmit Data)
2RD+Received data + (Receive Data)
3TD-Transmitted data – (Transmit Data)
4
2
4RD-Received data – (Receive Data)
5NCNot connected
3
Shield
ShieldScreening (Shield) (socket housing is connection
to functional earth via RC link)
Tab. 4.3EtherNet/I P, Port 2 [X2]: pin allocation
4.2.3EtherNet/IP copper cabling
EtherNet/IP cables are 4-wire, screened copper cables. The maximum permissible segment length for
copper cabling is 100 m.
Use only EtherNet/IP-specific cabling for the industrial environment corresponding to
è EN 61784-5-3:2013-09
Festo – EMCA-EC-C-HP-EN – 2017-11e – English83
Page 84
4 EtherNet/IP with FHPP
4.3Configuration EtherNet/IP stations
Several steps are required in order to produce an operational EtherNet/IP interface.
We recommend the following procedure:
1. Parameterisation and commissioning with the Festo Configuration Tool (FCT).
2. In addition, the following settings on the fieldbus page:
– Automatic assignment via DHCP or IP address, gateway and subnetwork mask and, in the Port
Configuration tab, automatic detection or speed and duplex mode.
– Optional use of FPC and FHPP+ (FHPP+ Editor tab)
3. Linking of the EDS file into the project planning software.
4.3.1Parameterisation of the Ethernet/IP interface
With the help of the FCT, settings of the EtherNet/IP interface can be read and parameterised. The goal
is to configure the EtherNet/IP interface through the FCT in such a way that the EMCA can build up
EtherNet/IP communication with an EtherNet/IP controller.
The settings of the EtherNet/IP interface can be parameterised in the FCT.
Note
The FCT settings are taken over into the permanent memory of the EMCA only after
“Download”, “Save” and “Restart controller”.
4.3.2Commissioning with the Festo Configuration Tool (FCT)
Notes on commissioning with the Festo Configuration Tool can be found in the Help for
the device-specific FCT plug-in.
4.3.3Setting the IP address
A unique IP address must be assigned to each device in the network.
Assignment of already used IP addresses can result in temporary overloading of your
network.
You may need to contact your network administrator for manual assignment of a permiss
ible IP address.
84Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 85
4 EtherNet/IP with FHPP
Static addressing with Festo Configuration Tool (FCT)
With the Festo Configuration Tool (FCT), the values for IP address, subnetwork mask and gateway ad
dress can be assigned on the “Fieldbus” page in the “Operating Parameters” tab.
Dynamic addressing
The dynamic addressing parameterised in the FCT is only used if:
– Obtain IP Address automatically has been selected in the FCT on the Fieldbus page in
the Operating parameters tab.
For dynamic addressing, there is the option of addressing either through DHCP or BOOTP. With auto
matic addressing, DHCP is set in the FCT. For addressing over BOOTP, the corresponding EtherNet/IP
object must be written directly. Both protocols are standard and are supported. If dynamic addressing
is set at device start or reset, an IP address is assigned to the device either through DHCP and an avail
able DHCP server or through the BOOTP protocol.
4.3.4Setting the optional use of FPC and FHPP+
Besides the control and status bytes, additional I/O data can be transmitted è Sections A.1 and B.1.
This is set via FCT (“Fieldbus” page, “FHPP+ Editor” tab).
Festo – EMCA-EC-C-HP-EN – 2017-11e – English85
Page 86
4 EtherNet/IP with FHPP
4.4Configure EtherNet/IP Master
4.4.1Electronic data sheet (EDS)
To permit fast and simple commissioning, the capabilities of the EtherNet/IP interface of the EMCA are
described in an EDS file.
TypeFile
EMCA-EC-...-EPEDS_EMCA_1_8.EDS
Tab. 4.4EDS files
By using an appropriate configuration tool, you can configure a device within a network.
For the most current version of the EDS file è www.festo.com/sp
The way in which the network is configured depends on the configuration software used. Follow the
instructions of the controller manufacturer for registering the EDS file of the EMCA.
4.4.2Function element
The following function elements can be used to enable the EMCA.
TypeDescription
FHPP_MotionLib_RockwellRockwell Studio 5000
Festo_Motion_FHPP.slrOmron Sysmac Studio
Tab. 4.5Function elements for FHPP
The latest version of the function elements è www.festo.com/sp
4.4.3Cycle time
Data are processed by the EMCA in a cycle time of up to 5ms.
86Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 87
4 EtherNet/IP with FHPP
Festo – EMCA-EC-C-HP-EN – 2017-11e – English87
Page 88
5Modbus TCP with FHPP
5Modbus TCP with FHPP
Modbus TCP is an open communication protocol based on the master-slave architecture. It is an
established standard for communication via Ethernet-TCP/IP in automation technology.
The basic function of Modbus TCP is described in IEC 61158.
The standard port for Modbus TCP is 502.
The Ethernet control interface is used parallel to the Ethernet parameterisation interface
(FestoConfiguration Tool (FCT), web server). A maximum of one Modbus TCP connection at a time is
possible.
After the TCP connection has been made, it is normally kept open and only disconnected by the EMCA
incase of error, with a timeout set or through the counterpart station.
Communication with the FCT and the web server remains possible.
Data encoding
Modbus TCP/IP uses a “big-endian” transmission sequence. The most significant byte (MSB)
(è page 125) is sent first. The data is always processed as a register (2 bytes/word). Onthe control
side, it may be necessary to “turn” these 2 bytes. This affects the Modbus commands (Function code):
0x03, 0x10, 0x17 è Section 5.3.4.
This already takes place through the module if provided by Festo.
88Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 89
5Modbus TCP with FHPP
Modbus telegram
In general, a Modbus telegram is constructed correspondingly è Tab. 5.1 (the most-significant byte is
always sent first).
If, for example, the EMCA is to be accessed by the computer through Modbus, the transaction
identifier, protocol identifier, message length and unit identifier must additionally be sent at the
beginning before the Function code is sent.
The assignment can be visualised and tested with the help of the “Modbus TCP Client”
software.è www.festo.com/sp
Byte
no.
12Transaction numberFreely selectable. Returned
2Least-significant byte
Number
of bytes
FunctionComments
Most-significant byte
again in the answer.
32Protocol identifierAlways 0Most-significant byte
4Least-significant byte
52Number of bytes still to
The Modbus connection is established via the Ethernet interface [X1] as an M12 socket. This can be
used in parallel for 2 additional TCP connections (one for the FCT parameterisation software and one for
the web server). As a Modbus TCP subscriber, the EMCA can be reached through the same IP address
as is used by FCT or the web server.
The following integrated Ethernet interfaces of the EMCA-...-DIO are available for Modbus operation:
1
2
3
1 Port [X1]: Ethernet input/output
2 LED indicator: ERROR
Fig. 5.1Modbus interface of the EMCA
5.1.1Modbus display components
The status of Modbus is not indicated by LEDs. The operating statuses of the device are indicated by
the “OK” and “ERROR” LEDs in case of Modbus TCP.
LEDDescription
The following operating statuses of the device are indicated:
– Behaviour during the switch-on phase
– Behaviour in the operating phase
ERROR LED
OK LED
Tab. 5.2LED indicator
– Identification sequence active
For additional information è page 372
3 LED indicator: OK
90Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 91
5Modbus TCP with FHPP
5.1.2Ethernet port
The EMCA is integrated into a Modbus TCP network through the following connections.
Note
The Ethernet interface of the EMCA is intended exclusively for connection to local,
industrial fieldbus networks.
Direct connection to a public telecommunications network is not permissible.
Ethernet interface [X1]: pin allocation
Socket M12
Pin DesignationDescription
D-coded
5-pin
1
5
1TD+Transmitted data + (Transmit Data)
2RD+Received data + (Receive Data)
3TD-Transmitted data – (Transmit Data)
4
2
4RD-Received data – (Receive Data)
5NCNot connected
3
Shield
ShieldScreening (Shield) (socket housing is connection
to functional earth via RC link)
Tab. 5.3Ethernet interface [X1]: pin allocation
5.1.3Ethernet cabling
Shielded twisted-pair STP cables, Cat.5 or higher, must be used for cabling.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English91
Page 92
5Modbus TCP with FHPP
5.2Parameterisation of the Modbus TCP subscriber
Before connecting the EMCA to the Modbus master, parameterise the controller interface, device
profile, TCP port and timeout:
– with the FCT plug-in EMCA è Section 5.2.1
Connection of the EMCA with the PC è Description “Integrated drive with I/O and
Modbus TCP interfaces, EMCA-EC-DIO-...”
5.2.1Parameterisation with the FCT plug-in EMCA
1. Create drive configuration è Help for the FCT plug-in EMCA.
– Define the control interface (Control Interface):
– “Digital I/O (Digital I/O)”
2. On the application data page (Application Data), determine the control interface (Control Interface):
– “Modbus TCP”
3. Optionally determine on the controller page (Controller):
– Enable with (Enabled by), determination of the required signals for controller enable:
– “Fieldbus” (Fieldbus)
– “Digital input ‘Enable’ and fieldbus” (Digital Input 'Enable' and Fieldbus) – factory setting
4. Optionally, on the Fieldbus page, Operation Parameters tab, define the following:
– Optionally, change TCP-Port (factory setting TCP-Port 502)
– Optionally activate the timeout (Timeout) (factory settings: not activated, 100 ms is the default
value when activated) è Section 5.3.12
5. Optionally, on the Fieldbuspage, FHPP+ Editor tab, define the following:
– Use the parameter channel (Use Parameter Channel):
– Checkbox not set: “FHPP Standard” – factory setting
– Checkbox set: “FHPP Standard + FPC”
6. Establish an online connection.
7. Activate the FCT device control (Device Control).
8. Download and save (Store) the parameters.
9. Optionally, on the Controller page, network settings tab (Network Settings), change the network
settings (Setup network settings):
– “DHCP server active” (DHCP server active, factory setting)
– “Obtain IP address automatically” (Obtain an IP adress automatically)
– “Use the following IP address” (fixed setting of IP address, subnet mask and standard gateway)
92Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 93
5Modbus TCP with FHPP
A restart is required after changing and storing the following parameters with the FCT
plug-in to make the settings active:
– Control interface (digital I/O, Modbus TCP)
– Interface parameters (TCP port, timeout)
– Controller parameters (enable logic)
– Network settings
– Message options (parameter channel)
After parameterisation and restart of the EMCA, the Modbus master can be configured è Section 5.3.
Festo – EMCA-EC-C-HP-EN – 2017-11e – English93
Page 94
5Modbus TCP with FHPP
5.3Configure Modbus master
5.3.1IP address
The IP address of the EMCA as a Modbus TCP subscriber is identical to the IP address set in the FCT or
web server.
5.3.2Function element
The following function elements can be used to enable the EMCA.
TypDescription
Festo_Motion_FHPP_2.libraryBeckhoff TwinCAT 2
CODESYS, Version 2.3
Festo_Motion_FHPP_3.libraryBeckhoff TwinCAT 3
CODESYS, Version 3.5
Festo_Motion_FHPP.slrOmron Sysmac Studio
FestoMotionFHPP_V14.al14Siemens Steuerung
Tab. 5.4Function elements for FHPP
The latest version of the function elements è www.festo.com/sp
5.3.3Cycle time
Data are processed by the EMCA in a cycle time of up to 5ms.
5.3.4Modbus command and address assignment
The following Modbus commands are available for processing process/device/error data:
Modbus commandsFunction code Page
Process Data
1)
Read process data (Read holding registers)0x0396
Write process data (Write multiple registers)0x1097
Read/write process data (Read/write multiple registers)0x1798
Error data
Read exception status (Read exception status)0x0799
Device data
Read device identification (Read device identification)0x2B100
1) Function code 0x17 is recommended for the reading and writing of process data. If this is not available on the control side, Function
codes 0x03 and 0x10 must be used.
Tab. 5.5 Overview of Modbus commands
94Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 95
5Modbus TCP with FHPP
The start address is always “0x0000” and the register values (Registers value) are
processed in the “Big endian” byte sequence.
5.3.5Quantity of registers/Byte count values for process data
The FHPP device profile offers a versatile combination of FHPP data. Depending on the FHPP standard
data (FHPP), Festo parameter channel (FPC) and expanded FHPP standard data (FHPP+) used, the
Quantity of registers and Byte count values for the process data vary.
Error code10x978
Exception code10x01: illegal function
9
0x02: illegal data address
0x03: illegal data value
0x04: server device failure
Tab. 5.9 Read/write process data, Function code 0x17
98Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Page 99
5Modbus TCP with FHPP
5.3.9Read exception status, Function code 0x07 (Read exception status)
The table describes the structure of the “Read exception status, Function code 0x07” command.
Significance
Read exception status request (0x07)
FieldBytes ValuesByte no.
Function code10x078
Read exception status response (0x07)
FieldBytes ValuesByte no.
Function code10x078
Output data10x00: no exception (no exception)
9
0x01 ... 0xFF: Exception status (exception
status)
Read exception status exception (0x87)
FieldBytes ValuesByte no.
Error code10x878
Exception code10x01: illegal function
9
0x02: illegal data address
0x03: illegal data value
0x04: server device failure
Tab. 5.10 Read exception status, Function code 0x07
Festo – EMCA-EC-C-HP-EN – 2017-11e – English99
Page 100
5Modbus TCP with FHPP
5.3.10Read device identification, Function code 0x2B (Read device identification)
The table describes the structure of the “Read device identification, Function code 0x2B” command.
Significance
Read device identification request (0x2B)
FieldBytes ValuesByte no.
Function code10x2B8
MEI type10x0E9
Read device ID code10x01: basic device identification
10
0x02: regular device identification
Object ID10x00: (first object to be transferred)11
Read device identification response (0x2B)
FieldBytes ValuesByte no.
Function code10x2B8
MEI type10x0E9
Read device ID code1Same as request field10
Conformity level10x01: basic device identification
11
0x02: regular device identification
More follows10x00: no more objects12
Next object ID10x0013
No of objects1Number of objects in this message14
Object 11è Tab. 5.1215 ...
......
Object n1
Read device identification exception (0xAB)
FieldBytes ValuesByte no.
Error code10xAB8
Exception code10x01: illegal function
9
0x02: illegal data address
0x03: illegal data value
0x04: server device failure
Tab. 5.11 Read device identification, Function code 0x2B
100Festo – EMCA-EC-C-HP-EN – 2017-11e – English
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.