beckhoff TE1000 TwinCAT 3 — 6.6.8 Configuring EtherCAT SyncUnits

Samples | I/O #x1a03 blocks shortened — read from ProduceXml --> #x1a02 SYNC Inputs #x1a01 #x1a03 blocks shortened --> #x1a03 SYNC Inputs #x1a01 #x1a02 blocks shortened --> 6.6.8 Configuring EtherCAT SyncUnits | Configuring EtherCAT SyncUnits EtherCAT slaves are assigned to a SyncUnit so that they can be organized into a common task cycle. All slaves in the same SyncUnit are synchronized within the same real-time context. The assignment is performed via ConsumeXml on the respective slave node. Requirements An EtherCAT master with at least one slave is present. A SyncUnit is defined in the EtherCAT master. Simple SyncUnit assignment C#:

ITcSmTreeItem ecSlave = sysManager.LookupTreeItem(@"TIID^EtherCAT Master^EK1100"); ecSlave.ConsumeXml(@" SyncUnit1 "); PowerShell: $ecSlave = $sysManager.LookupTreeItem("TIID^EtherCAT Master^EK1100") $ecSlave.ConsumeXml(" SyncUnit1 SyncUnits> ") Advanced: SyncUnit with task assignment via SuTask If the assigned task is known, the task OID can be passed directly as a SuTask attribute. This links the SyncUnit directly to a specific task without requiring TwinCAT to automatically resolve the assignment. The task OID can be determined using ProduceXml on the EtherCAT master. // SuTask value = OID of the task (e.g.

"#x2010020") — read from ProduceXml on the EC master ecSlave.ConsumeXml(@" MySyncUnit "); The corresponding task OID can be read from the EC master using ProduceXml. Sample: TE1000 259 Version: 1.7.0