EtherCat Communication OMRON
EtherCat Communication OMRON
EtherCat Communication OMRON
for Positioning
FZM1 Series
© OMRON, 2010
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior
written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because
OMRON is constantly striving to improve its high-quality products, the information contained in this manual
is subject to change without notice. Every precaution has been taken in the preparation of this manual.
Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for
damages resulting from the use of the information contained in this publication.
Contents
1 What Is EtherCAT?..................................................................................................... 1
1-1 Outlines of EtherCAT .......................................................................................................1
Features of EtherCAT ..................................................................................................1
EtherCAT Mechanism ..................................................................................................1
EtherCAT communication types ..................................................................................2
Structure of the CAN Application Protocol over EtherCAT (CoE) ................................3
EtherCAT Slave Information File (ESI File) .................................................................4
Communications Status Transitions ............................................................................5
Process Data Objects (PDO) .......................................................................................5
Service Data Objects (SDO) ........................................................................................7
Master and slave communication in DC mode 1 .........................................................7
1-2 System Configuration ......................................................................................................8
Device Configuration of the FZM1 EtherCAT Communication System .......................8
Precautions when Using the Position Control Unit as the EtherCAT Master ...............9
2 Specifications........................................................................................................... 11
2-1 EtherCAT Communications Specifications .................................................................... 11
2-2 FZM1 Controller Specifications .....................................................................................12
2-3 EtherCAT Communication Cables and Connector Specifications .................................13
EtherCAT Communication Cables Specifications ......................................................13
EtherCAT Connector Specifications ...........................................................................13
Connecting the EtherCAT Communication Cables and the Connectors ...................14
2-4 Status LED Indicators Specifications .............................................................................14
4 Communication Specifications............................................................................... 23
4-1 PDO Mapping Specifications .........................................................................................23
4-2 Control Signal Specifications .........................................................................................24
Control Signal Types .................................................................................................24
4-3 Command Specifications ...............................................................................................25
Command that Can Be Used .....................................................................................25
Command Details ......................................................................................................26
4-4 Timing Chart ..................................................................................................................30
Executing Measurement with STEP Signal ...............................................................30
Command Execution with EXE Signal .......................................................................31
Data Output (With Handshaking) ...............................................................................31
Data Output (Without Handshaking) ..........................................................................31
5 Appendix................................................................................................................... 32
5-1 EtherCAT Terms ............................................................................................................32
1 What Is EtherCAT?
1 What Is EtherCAT?
EtherCAT Mechanism
Rather than transmitting data to each slave node within the network, EtherCAT passes the Ethernet
frame through each slave node.
When passing through, the data is read and written in units of several nanoseconds to each
corresponding area within the frame at each slave node.
Upon passing through all EtherCAT slaves without being stopped along the way, the Ethernet frame
transmitted from the EtherCAT master is sent back by the last slave, and returns to the EtherCAT
master after passing through all frames again.
With this mechanism, the high-speed data transmission and realtime capability are achieved.
Ethernet frame
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 1
1 What Is EtherCAT?
Periodic data exchange between the EtherCAT master and the EtherCAT slaves is performed by the
"EtherCAT telegram" that is stored directly in the Ethernet frame.
Each "EtherCAT telegram" consists of 1 or multiple slave addresses, data, and working counters
(check bits).
If an Ethernet frame is compared to a "train," an EtherCAT telegram would be a "compartment."
Ethernet frame
2 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
1 What Is EtherCAT?
Ethernet frame
•
•
•
Data a
•
•
•
Data b
Data c
•
•
•
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 3
1 What Is EtherCAT?
FZM1 controller
Application layer FZ application
Object dictionary
SyncManager FMMU
With CiA402, 2 types of Object Dictionary, SDO (Service Data Object) and PDO (Process Data
Object), are available.
PDO consists of a mappable Object Dictionary, and the process data content is defined by the PDO
mapping.
PDO is primarily used for cyclic communications to periodically replace the process data.
SDO can read from and write to all object dictionaries, and is used for non-cyclic (event message)
communications.
Using the CoE interface to set the SDO and PDO object dictionaries, EtherCAT can provide an
EtherCAT device with the same Device Profile as CiA402.
EtherCAT slaves
Communication
settings
Network +
-
+
-
+
-
configuration
information
4 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
1 What Is EtherCAT?
Initialization
Pre-Operational
Safe-Operational
Operational
RxPDO
Commands, parameters, etc.
EtherCAT EtherCAT
master slaves
TxPDO
Commands, parameters, etc.
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 5
1 What Is EtherCAT?
The EtherCAT application layer can have multiple objects to enable transferring of various types of
slave process data. The process data contents are described in the "PDO mapping objects" and
the "Sync Manager PDO assignment objects."
The FZM1 Controller supports the PDO mapping for I/O control.
PDO mapping settings
The PDO mapping indicates the mapping for application objects (realtime process data) from the
Object Dictionary to PDO.
The number of mapped objects is described in Subindex 0 of the mapping table. In this mapping
table, the Indexes from 1600 hex to 17FF hex are for RxPDOs, and the Indexes from 1A00 hex to
1BFF hex are for TxPDOs.
The following is an example of a PDO mapping.
Object dictionary
Mapping objects
PDO-Length : 32 Bit
PDO_1 Object A Object B Object D
0x1A00 PDO A
Mapping objects
0x1A01 PDO B
0x1A02 PDO C
0x1A03 PDO D
0x1A04 PDO E
0x1A05 PDO F
0x1A06 PDO G
6 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
1 What Is EtherCAT?
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 7
1 What Is EtherCAT?
PC (CX-One
Ver. 4.0 or later,
or CX-Programmer
Ver. 9.11 or later)
Communication cable
Cameras
+
-
+
-
Pointing device
Monitor
FZM1 controller
(EtherCAT slave)
FZM1-35x-ECT
* When a master manufactured by BECKHOFF is used, an ESI file for FZM1 (provided by OMRON) is additionally
required.
Note that this manual explains the use of Position Control Unit CJ1W-NC281/481/881
manufactured by OMRON as the EtherCAT master.
If you are using other devices or systems, see the manual of applicable models.
8 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
1 What Is EtherCAT?
If multiple FZM1 Controllers are connected to a Position Control Unit manufactured by OMRON,
these are mapped to a continuous region for each node.
For example, if 3 FZM1 Controllers, A, B and C, are connected to nodes, 1, 2 and 4, a continuous
region is mapped in each area as shown in the figure below.
For FZM1 Controller node assignment, specify the setting using the node address setting switch.
(See "2-2 FZM1 Controller Specifications" (P12).)
Direct Operation Command Axis Status Memory Area Expanded Monitor Memory
Memory Area Area
Start address Start address Start address
Node 1 Node 1 Node 1
12 words 13 words 16 words
(command area of A) (response area of A) (output area of A)
• • •
• • •
• • •
* The maximum number of connected units varies depending on the number of units to be connected.
On the Position Control Unit side, the start area of node 1 in each area is set.
To access the data of other nodes in a ladder program, the address to which an appropriate offset
value is added from the start area of node 1 needs to be accessed.
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 9
1 What Is EtherCAT?
Cycle
Besides the EtherCAT communication cycles, communication cycles as a Position Control Unit
need to be taken into consideration.
EtherCAT master in use Signal cycle Control cycle
2-axis Unit (CJ1W-NC281) Minimum 0.25 ms 1.5 ms
1 to 2-axis control: 0.5 ms
4-axis Unit (CJ1W-NC481) Minimum 0.25 ms
3 to 4-axis control: 1 ms
1 to 4-axis control: Minimum
1 to 2-axis control: 0.5 ms
0.25 ms
8-axis Unit (CJ1W-NC881) 3 to 4-axis control: 1 ms
5 to 8-axis control: Minimum
5 to 8-axis control: 2 ms
0.5 ms
10 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
2 Specifications
2 Specifications
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 11
2 Specifications
(1)
(2)
(9) (3)
(10)
(4)
(11)
(12)
(5)
(10) (6)
(13) - (7)
(8)
12 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
2 Specifications
*1 The maximum cable length between connected nodes is 100 m. However, some cables are specified for less than
100 m. In general, if the conductors are twisted wire rather than solid wire, transmission performance will be lower,
and reliable communications at a distance of 100 m may not be possible. For details, consult the cable
manufacturer.
*2 Ethernet cables of category 5 or higher can be used regardless of whether they are shielded or not. However, we
recommend a cable with double, aluminum tape and braided shielding to ensure sufficient noise resistance.
*3 When selecting a connector, confirm that it is applicable to the cable that will be used. Confirm the following items:
Conductor size, conductor type (solid wire or twisted wire), number of twisted pairs (2 or 4), outer diameter, etc.
+
-
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 13
2 Specifications
1 White-Green White-Green 1
2 Green Green 2
3 White-Orange White-Orange 3
4 Blue Blue 4
5 White-Blue White-Blue 5
6 Orange Orange 6
7 White-Brown White-Brown 7
8 Brown Brown 8
Connector Connector
hood Shielded wire * Shielded wire * hood
* Connect the shielded wire of the cable to the connector hood at both ends of the cable.
General Information
There are 2 types of Ethernet cable connection standards, namely, "T568A" and "T568B."
Although the figure above is based on the "T568A" connection method, the connection method
based on the "T568B" standard can also be used.
ECAT ECAT
RUN ERR
L/A L/A
IN OUT
+
-
14 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
2 Specifications
General Information
The timing of each flashing of the LED is as follows.
50 ms
ON
Flickering
OFF
ON
Blinking
200 ms 200 ms
OFF
ON
Single flash 1000 ms
200 ms 200 ms
OFF
ON
Double flash 1000 ms
200 ms 200 ms 200 ms
OFF
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 15
3 Starting Procedures
3 Starting Procedures
This chapter explains the starting procedures of an EtherCAT communication system using FZM1
Controllers.
Communication cable
L1
[ECAT OUT] connector
+
-
L2
FZM1 controller
(slave)
+
-
Ln
Nothing is to be connected.
+
-
Terminal slave
Set the length of each cable between slaves (L1, L2, ... Ln in the figure) to 100 m or less.
Be sure to connect the communication cable until it clicks when securely connected.
16 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
3 Starting Procedures
Startup Setting
Set the communication mode when the FZM1 Controller is started.
1. Using the node address setting switch (see (11) in "2-2 FZM1 Controller Specifications"
(P12)), set the node address of the FZM1 Controller.
2. Start the FZM1 Controller.
3. From the menu bar, select [System] - [Controller] - [Startup setting].
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 17
3 Starting Procedures
5. Click [OK].
The following message appears.
6. Click [OK].
7. From the menu bar, select [Data] - [Data save].
The following message appears to confirm to save the settings to the unit.
General Information
The same confirmation message also appears and you can save the settings to the unit when you
click [Data save] on the toolbar.
8. Click [Yes].
9. Restart the FZM1 Controller.
Important
• The EtherCAT communication settings are applied only after they are saved and the FZM1
Controller is restarted.Be sure to save the settings and restart the controller.
• If the EtherCAT communication module is set to [EtherCAT], [PLC Link (SYSMAC CS/CJ/CP/
One)]/[PLC Link (MELSEC QnU/Q/QnAS)] of [Serial(Ethernet)] and [Serial(RS-232C/422)]
cannot be set.
18 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
3 Starting Procedures
Communication Settings
Set the communication mode when the FZM1 Controller is started.
1. Start the FZM1 Controller.
2. From the menu bar, select [System] - [Communication] - [EtherCAT].
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 19
3 Starting Procedures
Properties Settings
Set the EtherCAT communication contents on the properties setting window of the FZM1 Controller.
1. Start the FZM1 Controller.
2. Click [Edit flow] on the toolbar.
Processing item, [Fieldbus Data Output], is added to the unit list (flow).
4. Click the [Fieldbus Data Output] icon on the unit list, or select [Fieldbus Data Output]
from the processing item tree, and click [Set].
20 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
3 Starting Procedures
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 21
3 Starting Procedures
6. Click [OK].
22 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
4 Communication Specifications
4 Communication Specifications
This chapter explains the EtherCAT communication specifications with an FZM1 Controller.
0 0 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved STEP EXE
Control signal
UDINT
(32 bits)
2 1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved DSA
4 2 Command
code
Command code (32 bits) UDINT
Common with
6 3
the PLC link
8 4
Data
(Integer) Parameter 1 DINT
(Parameter)
10 5
12 6
(Integer) Parameter 2 DINT
14 7
16 8
(Integer) Parameter 3 DINT
18 9
0 0 ERR Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved RUN OR READY BUSY FLG
Control signal
UDINT
(32 bits)
2 1 Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved GATE
4 2 Command
code
Command code (32 bits) UDINT
Common with
6 3
the PLC link
8 4 Response code
Response code (32 bits) UDINT Common with
10 5 the PLC link
12 6
Response data (32 bits) DINT
14 7
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 23
4 Communication Specifications
• Output area
0 0
Data 1 (32 bits) DINT
2 1
4 2
Data 2 (32 bits) DINT
6 3
8 4
Data 3 (32 bits) DINT
10 5
12 6
Data 4 (32 bits) DINT
14 7
16 8
Data 5 (32 bits) DINT
18 9
20 10
Data 6 (32 bits) DINT
22 11
24 12
Data 7 (32 bits) DINT
26 13
28 14
Data 8 (32 bits) DINT
30 15
24 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
4 Communication Specifications
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 25
4 Communication Specifications
Command Details
Start continuous measurement (Command code: 1020 0010)
Start a continuous measurement.
Command Command bit
area Contents
Starting CH 15-12 11-8 7-4 3-0
26 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
4 Communication Specifications
No response as it is restarted.
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 27
4 Communication Specifications
28 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
4 Communication Specifications
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 29
4 Communication Specifications
Note that multiple image input as shown in the figure below is possible with STEP signal.
ON
STEP
OFF (1) Start measurement on the rising
edge of the STEP signal.
For details on multiple image input, see "6 Methods for Connecting and Communicating with External
Devices" - "About Multiple Image Input Function" in "Vision Sensor FZ3 Series User's Manual"
(catalog number Z290-E1).
30 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
4 Communication Specifications
(2)
ON
GATE DATA is output according to the specified output cycle
OFF (1) and output time (2).
FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual 31
5 Appendix
5 Appendix
32 FZM1 Series Vision Sensor Specialized for Positioning EtherCAT Communication Manual
OMRON Corporation Industrial Automation Company Authorized Distributor:
Tokyo, JAPAN
Contact: www.ia.omron.com
Regional Headquarters
OMRON EUROPE B.V. OMRON ELECTRONICS LLC
Wegalaan 67-69-2132 JD Hoofddorp One Commerce Drive Schaumburg,
The Netherlands IL 60173-5302 U.S.A.
Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787
OMRON ASIA PACIFIC PTE. LTD. OMRON (CHINA) CO., LTD. © OMRON Corporation 2009 All Rights Reserved.
No. 438A Alexandra Road # 05-05/08 (Lobby 2), Room 2211, Bank of China Tower, In the interest of product improvement,
Alexandra Technopark, 200 Yin Cheng Zhong Road, specifications are subject to change without notice.
Singapore 119967 PuDong New Area, Shanghai, 200120, China
Tel: (65) 6835-3011/Fax: (65) 6835-2711 Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200 Cat. No. Q179-E1-01 Printed in Japan