1EtherCAT

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1EtherCAT
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
EtherCAT
Sample with EtherCAT, Profibus and CAN over EtherCAT
Content ? ? ? ? ? ? ? ? General EtherCAT EtherCAT Master EtherCAT Coupler EtherCAT Terminal Profibus Master Terminal EL6731 CAN Master Terminal EL6751 TwinCAT PLC Troubleshooting 2 4 25 38 43 49 53 59
1
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
General EtherCAT
EtherCAT Features ? no manual setup of node addresses ? no IP Address configuration ? no setup of Baud rates ? no restrictions in network topology ? no (practical) limitation of the maximum number of nodes (max. 65535 nodes/segment) Main Features: TwinCAT and EtherCAT ? offline configuration in TwinCAT System Manager: select EtherCAT master and add the EtherCAT slaves (Terminals) ? online configuration in TwinCAT System Manager: scan network and all EtherCAT slaves in the topology will be listed ? TwinCAT assigns logical slave addresses automatically ? add new slaves without changing the logical slave addresses ? compare configured EtherCAT network with real existing EtherCAT network ? separation from process data and bus diagnosis (helpful to make modular control architectures) ? mapping between physical and logical process data has to be configured (same as in all other field busses) Main Features TwinCAT V2.10 ? TwinCAT and EtherCAT: easy configuration and diagnosis ? for simple and complex control applications ? default settings for most applications sufficient ? manual configuration for optimal tuned complex applications ? Sync Units for combined and synchronized process data ? any process data can be logically combined in one sync unit Sync Unit ? four independent modules (a module defines a set of process data which is consistent and synchronized) ? combination of data from different slaves (validity of data is important) ? cyclic process data diagnosis for each sync unit ? if process data in one sync unit is invalid: separate reaction of control application can be defined ? for Multi-Task-Operation: each Task has own Sync-
Unit/Frame (read/write process data in different task cycles) ? reduces bus load! ? Useful for applications with machine parts which can be out of order (planned or unplanned) and the rest of the machine should work. ?Sync Units help to structure these applications ? granularity depends on EtherCAT Slaves ? each EtherCAT Slave defines one or more process data areas which can be exchanged synchronous and consistent ? The number of independent process data areas depends on the implementation and resources of the EtherCAT Slave Controller (Sync Manager and FMMU channels)
2
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Master Settings
Master Configuration
Online: Scan Devices Select EtherCAT Device Offline: Insert EtherCAT Master Device Select and configure network adapter Slaves Configuration Startup Data CANopen over EtherCAT File over EtherCAT Firmware Update (Bootstrap)
Slave Settings
Slave Configuration
Master Diagnosis
FrameStates and FrameWcStates Device State Only in Config Mode available! Checks Network and looks for Slaves Scans the network slave by slave! Flat List of found Slave (no topology) Includes Link Information
Only in Emergency Cases: Emergency Scan
SlaveDiagnosis WcState: Variable of Type BOOL Shows Working Counter State from one EtherCAT Slave 0 (FALSE) = valid Working Counter 1 1 (TRUE) = invalid Working Counter An invalid Working Counter State means that one EtherCAT Command for updating the Inputs and Outputs has an incorrect WC. With this EtherCAT Command more than one Slave can be addressed (every Slave in this command has the same Working Counter 1). Check the Slave State to see which Slave is responsible for the Working Counter error.
3
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
EtherCAT Master
Adapter Card
4
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
For use of Ethereal or Netmon, “Promiscuous Mode” must be enabled:
5
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
EtherCAT - Advanced Settings
Configuration of Master Info Data
6
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
EtherCAT - Topology
EtherCAT
Port
A, C, B CAN over EtherCAT Profibus over EtherCAT
7
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online
8
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
EtherCAT - ADS Interface to EtherCAT Master/Slave
Communication Interface for EtherCAT Devices
9
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Master Interface
ADS Port 65535 (0xFFFF) 0x1 - 0xFFFE (fixed address of a slave device) Meaning General Ads services handled by the master directly. This is an ADS service directed at an individual slave device. The port number is the same as the EtherCAT address of the slave device.
Master Interface – Example
Index Group 0x00000003 0x00000006 Index Offset 0x00000100 0x00000000 Meaning Returns current state of master. Returns the number of projected slaves.
Slave Interface – CANopen over EtherCAT
Index Group 0x0000F302 Index Offset Index and Subindex of an SDO (coded see InfoSystem!) Example: 0x1c120001: index = 0x1c12, subindex = 1 Meaning SDO Upload/Download Request. The object is selected with the index offset.
Slave Interface – Servo Drive over EtherCAT
Index Group 0x0000F420 Index Offset IDN = LOWORD(0x0000yyyy) HIWORD for special attributes! (coded see InfoSystem!) Meaning Upload/Download IDN
10
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - Additional Debug Information
11
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - Additional Debug Information Slave State ESC Build
Master State
Frame Statistic
Number of Cyclic Frames
Number of A-Cyclic Frames
Transmit/Receive Errors in Miniport Driver
12
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - Physical Address (Register 0010)
13
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - Physical Address
14
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - Physical Address
Online - AmsNetId
15
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Online - AmsNetId
16
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
InfoData – CfgSlaveCount (Configured Slave Count)
Actual Slave Count (read)
Every “active" slave do count: “Passive" slaves and KLs don’t count:
EK1100, EK1110, BK1120 EL 1xxx/2xxx/3xxx/4xxx/5xxx/6xxx EL 9xxx KL’s on the BK1120!
17
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
InfoData - AMS Net ID of EtherCAT Master
18
EtherCAT Training
130 Research Lane, Unit 11 Guelph, ON N1G 5G3 Canada
Inputs - Frm0State (Frame 0 State)
Frame Number
Bit
Meaning
0 (0x0001) 1 (0x0002) 2 (0x0004) …..
1. EtherCAT command not sent
2. EtherCAT command not sent
3. EtherCAT command not sent
14 (0x4000) 15 (0x8000)
15. EtherCAT command not sent complete frame not sent
19。

相关文档
最新文档