SlideShare a Scribd company logo
1 of 20
Download to read offline
1
Copyright: 2017 OMRON Corporation. All Rights Reserved.
EtherCAT
Functional Training
Innocentio A. Loe
OEP-ID / OMCP
March 2017
Creating EtherCAT Network
2
Copyright: 2016 OMRON Corporation. All Rights Reserved.
1. In Sysmac Studio, under Configuration and Setup, double-click on EtherCAT
2. Add any connected slave manually from the Toolbox
3. If Sysmac Studio is working Online to the PLC, create the network automatically by right-
clicking on Master and choose Compare and Merge with Actual Network Configuration
4. E.g. we put R88D-1SN01H-ECT Servo Drive
Slave Node Address
Copyright: 2016 OMRON Corporation. All Rights Reserved.
Each EtherCAT Slave must have a unique Node Address. It can be set either by :
 Manually set Node Address by Slave Unit Rotary Switch. Do this only when Slave Unit
is turned Off
 Write Slave Node Address via Sysmac Studio. In this case do the following :
1. Set Slave Unit Rotary Switch to Zero (0)
2. Write desired Slave Node Address on EtherCAT editor window
3. While Online to PLC, right-click on the Master and select Write Slave Node Address
3
EtherCAT PDO Communication
Copyright: 2016 OMRON Corporation. All Rights Reserved.
PDO stands for Process Data Object
Data mapped to PDO are refreshed between Master and Slave on each communication cycle.
In Sysmac Studio, these data can be mapped to Master’s Global Variables via IO Map
e.g. Mapped
Variables
4
Customize PDO Mapping
Copyright: 2016 OMRON Corporation. All Rights Reserved.
Any EtherCAT Slaves in particular have customizable PDO Mapping, which means we can
change what information to be continuously refreshed between Master and Slave. To change
PDO Mapping, to the following :
1. Go to EtherCAT editor window and select a Slave Unit to be customized
2. In the right window, on PDO Map Settings, click on Edit PDO Map Settings button
3. Select possible data to be mapped, e.g. 261th Transmit PDO Mapping will enable
Velocity Actual Value to be mapped via IO Map
5
EtherCAT Node Location
Copyright: 2016 OMRON Corporation. All Rights Reserved.
NX/NJ CPU has internal variable which map connected EtherCAT Slaves Node Location.
To Map the internal variable, do the following :
1. Go to EtherCAT editor window and select a Slave Unit to be customized
2. Right-click on the Slave Name and choose Display Node Location Port
3. An additional variable map can be made with type of _sECAT_ID
This variable can be used in program later on to get Node Address of the connected EtherCAT
Slave.
6
EC_DisconnectSlave
Copyright: 2016 OMRON Corporation. All Rights Reserved.
EC_DisconnectSlave FB can be used to Disconnect an EtherCAT Slave from the network
The term Disconnect means the Slave stops communicating, but physically the Slave itself is
still exist on the Network
Usage Example :
Stops communication of a selected EtherCAT Slave.
If any slave is connected in Daisy Chain with the targeted Slave, they will be disconnected also
7
Variables Data Type Description
Execute BOOL Starts FB Execution
NodeAdr UINT Targeted EtherCAT Slave Node Address
EC_DisconnectSlave
Copyright: 2016 OMRON Corporation. All Rights Reserved. 8
EC_ConnectSlave
Copyright: 2016 OMRON Corporation. All Rights Reserved.
EC_ConnectSlave FB can be used to Connect an EtherCAT Slave from the network
The term Connect means the Slave is already physically exist on the network, but will start
communicating only after this FB is called
Usage Example :
Starts communication of a selected EtherCAT Slave
9
Variables Data Type Description
Execute BOOL Starts FB Execution
NodeAdr UINT Targeted EtherCAT Slave Node Address
EC_ConnectSlave
Copyright: 2016 OMRON Corporation. All Rights Reserved. 10
EC_ChangeEnableSetting
Copyright: 2016 OMRON Corporation. All Rights Reserved.
EC_ChangeEnableSetting FB can be used to either Enable/Disable an EtherCAT Slave on
the network
A Slave must be physically exist on the network before it can be Enabled, and also
communicating (Connected) before it can be Disabled
Usage Example :
Able to remove targeted slave from network without triggering any EtherCAT Error
If any slave is connected in Daisy Chain with the targeted Slave, they need to be disabled
separately
11
EC_ChangeEnableSetting
Copyright: 2016 OMRON Corporation. All Rights Reserved. 12
Variables Data Type Description
Execute BOOL Starts FB Execution
NodeAdr UINT Targeted EtherCAT Slave Node Address
IsEnable BOOL TRUE : Enable Slave, FALSE : Disable Slave
EtherCAT SDO Communication
Copyright: 2016 OMRON Corporation. All Rights Reserved.
SDO stands for Service Data Object
SDO data are not refreshed between Master and Slave. Communication occur on request
SDO data are categorized by Index. An Index can either have or don’t have a SubIndex
An SDO Index which have SubIndex can have CompleteAccess property, which means the
whole SubIndex can be Read/Written in a single SDO Communication
SDO Index/SubIndex can be Read-Only, Write-Only, or
PDO data can be accessed via SDO Communication
13
EC_CoESDORead
Copyright: 2016 OMRON Corporation. All Rights Reserved.
EC_CoESDORead FB will poll SDO Communication, reading EtherCAT Slave data
The message send uses CoE protocol
Usage Example :
1. Reads connected Slave Name and displays it on HMI
2. Reads how many times Slave has been reset
14
Variables Data Type Description
Execute BOOL Starts FB Execution
NodeAdr UINT Targeted EtherCAT Slave Node Address
SdoObj _sSDO_ACCESS Structure to define Index & SubIndex
TimeOut TIME Communication Timeout setting
ReadData ANY Read data (typically use BYTE[256])
ReadSize UINT Number of data received in Bytes
EC_CoESDORead
Copyright: 2016 OMRON Corporation. All Rights Reserved. 15
EC_CoESDOWrite
Copyright: 2016 OMRON Corporation. All Rights Reserved.
EC_CoESDOWrite FB will poll SDO Communication, writing data to EtherCAT Slave
The message send uses CoE protocol
Usage Example :
1. Writes servo drive mechanical Brake Interlock state (BKIR)
2. Writes new Threshold Value to a Fiber Sensor Amplifier (E3NX-FA0) which connected
through Sensor Communication Unit (E3NW-ECT)
16
Variables Data Type Description
Execute BOOL Starts FB Execution
NodeAdr UINT Targeted EtherCAT Slave Node Address
SdoObj _sSDO_ACCESS Structure to define Index & SubIndex
TimeOut TIME Communication Timeout setting
WriteData ANY Data to be written (typically use BYTE[256])
WriteSize UINT Number of data to be written in Bytes
EC_CoESDOWrite
Copyright: 2016 OMRON Corporation. All Rights Reserved. 17
GetECError - ResetECError
Copyright: 2016 OMRON Corporation. All Rights Reserved.
GetECError function checks whether any error has occurred related to EtherCAT
ResetECError FB clears any EtherCAT related error occurred if possible
Usage Example :
GetECError first checks if any EtherCAT related error has occurred
If EtherCAT error exists, ResetECError will try to clear it
18
Variables Data Type Description
GetECError
Level UINT EtherCAT error Level (0 means no error)
Code DWORD Error code of EtherCAT error (if any)
ResetECError
Execute BOOL Starts FB Execution
GetECError - ResetECError
Copyright: 2016 OMRON Corporation. All Rights Reserved. 19
20
Copyright: 2017 OMRON Corporation. All Rights Reserved.
E.O.F.
Thank You

More Related Content

What's hot

AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR Microcontroller
Özcan Acar
 
Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0
Oscar V
 

What's hot (20)

Ppt tugas teknik digital 3
Ppt tugas teknik digital 3Ppt tugas teknik digital 3
Ppt tugas teknik digital 3
 
VHDL course
VHDL courseVHDL course
VHDL course
 
Serial communication of microcontroller 8051
Serial communication of microcontroller 8051Serial communication of microcontroller 8051
Serial communication of microcontroller 8051
 
VHDL- data types
VHDL- data typesVHDL- data types
VHDL- data types
 
Tutorial logix pro
Tutorial logix proTutorial logix pro
Tutorial logix pro
 
I2C
I2CI2C
I2C
 
Vending Machine Controller using VHDL
Vending Machine Controller using VHDLVending Machine Controller using VHDL
Vending Machine Controller using VHDL
 
AVR Microcontroller
AVR MicrocontrollerAVR Microcontroller
AVR Microcontroller
 
RS232-485_fundamental.ppt
RS232-485_fundamental.pptRS232-485_fundamental.ppt
RS232-485_fundamental.ppt
 
Embedded C programming session10
Embedded C programming  session10Embedded C programming  session10
Embedded C programming session10
 
Verilog coding of demux 8 x1
Verilog coding of demux  8 x1Verilog coding of demux  8 x1
Verilog coding of demux 8 x1
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Part-1 : Mastering microcontroller with embedded driver development
Part-1 : Mastering microcontroller with embedded driver development Part-1 : Mastering microcontroller with embedded driver development
Part-1 : Mastering microcontroller with embedded driver development
 
Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0
 
Dell Networking Switch Configuration Examples
Dell Networking Switch Configuration ExamplesDell Networking Switch Configuration Examples
Dell Networking Switch Configuration Examples
 
Microcontroller ppt
Microcontroller pptMicrocontroller ppt
Microcontroller ppt
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
VHDL
VHDLVHDL
VHDL
 
Arduino Microcontroller
Arduino MicrocontrollerArduino Microcontroller
Arduino Microcontroller
 

Similar to EtherCAT Training.pdf

119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut
nicolelemmimg
 
Restful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over EthernetRestful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over Ethernet
ijsrd.com
 
manual on networking cabling with pratical guide
manual on networking cabling with pratical guidemanual on networking cabling with pratical guide
manual on networking cabling with pratical guide
NuhuSamaila
 
Packet tracer practical guide
Packet tracer practical guidePacket tracer practical guide
Packet tracer practical guide
Nishant Gandhi
 
Ccna 1 final exam answer v5
Ccna 1 final exam answer v5Ccna 1 final exam answer v5
Ccna 1 final exam answer v5
friv4schoolgames
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
Quantum Composers
 
KPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_finalKPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_final
Fisal Anwari
 

Similar to EtherCAT Training.pdf (20)

119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut119163798 icnd1-practice-questions-9tut
119163798 icnd1-practice-questions-9tut
 
Restful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over EthernetRestful Webserver Based Domotic Home Using Power over Ethernet
Restful Webserver Based Domotic Home Using Power over Ethernet
 
Exam viewer2
Exam viewer2Exam viewer2
Exam viewer2
 
Mg90 h102 ethernet master
Mg90 h102 ethernet masterMg90 h102 ethernet master
Mg90 h102 ethernet master
 
Practica_Configuracion_Basica_SW_Cisco
Practica_Configuracion_Basica_SW_CiscoPractica_Configuracion_Basica_SW_Cisco
Practica_Configuracion_Basica_SW_Cisco
 
manual on networking cabling with pratical guide
manual on networking cabling with pratical guidemanual on networking cabling with pratical guide
manual on networking cabling with pratical guide
 
CCNA-lab-Manual.pdf
CCNA-lab-Manual.pdfCCNA-lab-Manual.pdf
CCNA-lab-Manual.pdf
 
3 2
3 23 2
3 2
 
Packet tracer practical guide
Packet tracer practical guidePacket tracer practical guide
Packet tracer practical guide
 
Cognex In-Sight - Network Settings.pdf
Cognex In-Sight - Network Settings.pdfCognex In-Sight - Network Settings.pdf
Cognex In-Sight - Network Settings.pdf
 
NetSim Technology Library- Manets
NetSim Technology Library- ManetsNetSim Technology Library- Manets
NetSim Technology Library- Manets
 
Esp32 bluetooth networking_user_guide_en
Esp32 bluetooth networking_user_guide_enEsp32 bluetooth networking_user_guide_en
Esp32 bluetooth networking_user_guide_en
 
Switching seminar ppt
Switching seminar pptSwitching seminar ppt
Switching seminar ppt
 
Ccna 1 final exam answer v5
Ccna 1 final exam answer v5Ccna 1 final exam answer v5
Ccna 1 final exam answer v5
 
Chapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networksChapter 13 : Introduction to switched networks
Chapter 13 : Introduction to switched networks
 
Quantum composers white paper ethernet connectivity
Quantum composers white paper  ethernet connectivityQuantum composers white paper  ethernet connectivity
Quantum composers white paper ethernet connectivity
 
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
Nilden Tutular, Volkan Balikci, Uygar Zubari [Eldor Corporation] | MQTT - Mac...
 
Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3Hướng dẫn cài đặt switch planet layer 3
Hướng dẫn cài đặt switch planet layer 3
 
CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2CCNA 2 Routing and Switching v5.0 Chapter 2
CCNA 2 Routing and Switching v5.0 Chapter 2
 
KPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_finalKPUCC-Rs instructor ppt_chapter2_final
KPUCC-Rs instructor ppt_chapter2_final
 

Recently uploaded

會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
中 央社
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 

Recently uploaded (20)

Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文會考英文
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinhĐề tieng anh thpt 2024 danh cho cac ban hoc sinh
Đề tieng anh thpt 2024 danh cho cac ban hoc sinh
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 

EtherCAT Training.pdf

  • 1. 1 Copyright: 2017 OMRON Corporation. All Rights Reserved. EtherCAT Functional Training Innocentio A. Loe OEP-ID / OMCP March 2017
  • 2. Creating EtherCAT Network 2 Copyright: 2016 OMRON Corporation. All Rights Reserved. 1. In Sysmac Studio, under Configuration and Setup, double-click on EtherCAT 2. Add any connected slave manually from the Toolbox 3. If Sysmac Studio is working Online to the PLC, create the network automatically by right- clicking on Master and choose Compare and Merge with Actual Network Configuration 4. E.g. we put R88D-1SN01H-ECT Servo Drive
  • 3. Slave Node Address Copyright: 2016 OMRON Corporation. All Rights Reserved. Each EtherCAT Slave must have a unique Node Address. It can be set either by :  Manually set Node Address by Slave Unit Rotary Switch. Do this only when Slave Unit is turned Off  Write Slave Node Address via Sysmac Studio. In this case do the following : 1. Set Slave Unit Rotary Switch to Zero (0) 2. Write desired Slave Node Address on EtherCAT editor window 3. While Online to PLC, right-click on the Master and select Write Slave Node Address 3
  • 4. EtherCAT PDO Communication Copyright: 2016 OMRON Corporation. All Rights Reserved. PDO stands for Process Data Object Data mapped to PDO are refreshed between Master and Slave on each communication cycle. In Sysmac Studio, these data can be mapped to Master’s Global Variables via IO Map e.g. Mapped Variables 4
  • 5. Customize PDO Mapping Copyright: 2016 OMRON Corporation. All Rights Reserved. Any EtherCAT Slaves in particular have customizable PDO Mapping, which means we can change what information to be continuously refreshed between Master and Slave. To change PDO Mapping, to the following : 1. Go to EtherCAT editor window and select a Slave Unit to be customized 2. In the right window, on PDO Map Settings, click on Edit PDO Map Settings button 3. Select possible data to be mapped, e.g. 261th Transmit PDO Mapping will enable Velocity Actual Value to be mapped via IO Map 5
  • 6. EtherCAT Node Location Copyright: 2016 OMRON Corporation. All Rights Reserved. NX/NJ CPU has internal variable which map connected EtherCAT Slaves Node Location. To Map the internal variable, do the following : 1. Go to EtherCAT editor window and select a Slave Unit to be customized 2. Right-click on the Slave Name and choose Display Node Location Port 3. An additional variable map can be made with type of _sECAT_ID This variable can be used in program later on to get Node Address of the connected EtherCAT Slave. 6
  • 7. EC_DisconnectSlave Copyright: 2016 OMRON Corporation. All Rights Reserved. EC_DisconnectSlave FB can be used to Disconnect an EtherCAT Slave from the network The term Disconnect means the Slave stops communicating, but physically the Slave itself is still exist on the Network Usage Example : Stops communication of a selected EtherCAT Slave. If any slave is connected in Daisy Chain with the targeted Slave, they will be disconnected also 7 Variables Data Type Description Execute BOOL Starts FB Execution NodeAdr UINT Targeted EtherCAT Slave Node Address
  • 8. EC_DisconnectSlave Copyright: 2016 OMRON Corporation. All Rights Reserved. 8
  • 9. EC_ConnectSlave Copyright: 2016 OMRON Corporation. All Rights Reserved. EC_ConnectSlave FB can be used to Connect an EtherCAT Slave from the network The term Connect means the Slave is already physically exist on the network, but will start communicating only after this FB is called Usage Example : Starts communication of a selected EtherCAT Slave 9 Variables Data Type Description Execute BOOL Starts FB Execution NodeAdr UINT Targeted EtherCAT Slave Node Address
  • 10. EC_ConnectSlave Copyright: 2016 OMRON Corporation. All Rights Reserved. 10
  • 11. EC_ChangeEnableSetting Copyright: 2016 OMRON Corporation. All Rights Reserved. EC_ChangeEnableSetting FB can be used to either Enable/Disable an EtherCAT Slave on the network A Slave must be physically exist on the network before it can be Enabled, and also communicating (Connected) before it can be Disabled Usage Example : Able to remove targeted slave from network without triggering any EtherCAT Error If any slave is connected in Daisy Chain with the targeted Slave, they need to be disabled separately 11
  • 12. EC_ChangeEnableSetting Copyright: 2016 OMRON Corporation. All Rights Reserved. 12 Variables Data Type Description Execute BOOL Starts FB Execution NodeAdr UINT Targeted EtherCAT Slave Node Address IsEnable BOOL TRUE : Enable Slave, FALSE : Disable Slave
  • 13. EtherCAT SDO Communication Copyright: 2016 OMRON Corporation. All Rights Reserved. SDO stands for Service Data Object SDO data are not refreshed between Master and Slave. Communication occur on request SDO data are categorized by Index. An Index can either have or don’t have a SubIndex An SDO Index which have SubIndex can have CompleteAccess property, which means the whole SubIndex can be Read/Written in a single SDO Communication SDO Index/SubIndex can be Read-Only, Write-Only, or PDO data can be accessed via SDO Communication 13
  • 14. EC_CoESDORead Copyright: 2016 OMRON Corporation. All Rights Reserved. EC_CoESDORead FB will poll SDO Communication, reading EtherCAT Slave data The message send uses CoE protocol Usage Example : 1. Reads connected Slave Name and displays it on HMI 2. Reads how many times Slave has been reset 14 Variables Data Type Description Execute BOOL Starts FB Execution NodeAdr UINT Targeted EtherCAT Slave Node Address SdoObj _sSDO_ACCESS Structure to define Index & SubIndex TimeOut TIME Communication Timeout setting ReadData ANY Read data (typically use BYTE[256]) ReadSize UINT Number of data received in Bytes
  • 15. EC_CoESDORead Copyright: 2016 OMRON Corporation. All Rights Reserved. 15
  • 16. EC_CoESDOWrite Copyright: 2016 OMRON Corporation. All Rights Reserved. EC_CoESDOWrite FB will poll SDO Communication, writing data to EtherCAT Slave The message send uses CoE protocol Usage Example : 1. Writes servo drive mechanical Brake Interlock state (BKIR) 2. Writes new Threshold Value to a Fiber Sensor Amplifier (E3NX-FA0) which connected through Sensor Communication Unit (E3NW-ECT) 16 Variables Data Type Description Execute BOOL Starts FB Execution NodeAdr UINT Targeted EtherCAT Slave Node Address SdoObj _sSDO_ACCESS Structure to define Index & SubIndex TimeOut TIME Communication Timeout setting WriteData ANY Data to be written (typically use BYTE[256]) WriteSize UINT Number of data to be written in Bytes
  • 17. EC_CoESDOWrite Copyright: 2016 OMRON Corporation. All Rights Reserved. 17
  • 18. GetECError - ResetECError Copyright: 2016 OMRON Corporation. All Rights Reserved. GetECError function checks whether any error has occurred related to EtherCAT ResetECError FB clears any EtherCAT related error occurred if possible Usage Example : GetECError first checks if any EtherCAT related error has occurred If EtherCAT error exists, ResetECError will try to clear it 18 Variables Data Type Description GetECError Level UINT EtherCAT error Level (0 means no error) Code DWORD Error code of EtherCAT error (if any) ResetECError Execute BOOL Starts FB Execution
  • 19. GetECError - ResetECError Copyright: 2016 OMRON Corporation. All Rights Reserved. 19
  • 20. 20 Copyright: 2017 OMRON Corporation. All Rights Reserved. E.O.F. Thank You