![]() |
ApossC SDK
V01.15
|
Declaration of the EtherCat functions. More...
Go to the source code of this file.
Functions | |
| long | sdkEtherCATMasterInitialize (void) |
| Initialization of an EtherCAT master. More... | |
| long | sdkEtherCATMasterDoMapping (void) |
| Mapping of EtherCAT Master IO Image. More... | |
| long | sdkEtherCATMasterStart (void) |
| Start an EtherCAT Master. More... | |
| long | sdkEtherCATSetupDC (long slaveNo, long cycleTime_ms, long offset_us) |
| Sets the DC cycle for an individual slave. More... | |
| long sdkEtherCATMasterDoMapping | ( | void | ) |
Mapping of EtherCAT Master IO Image.
Scans through the slave's PDO setup and generates mapping. The slaves PDO setup has to be done by SDO commands before this function is called. The slaves are SAFEOP state after this function.
| - |
Definition at line 46 of file SDK_Bussystem_EtherCat.mc.
| long sdkEtherCATMasterInitialize | ( | void | ) |
Initialization of an EtherCAT master.
Initializes an EtherCAT master and scans the EtherCat bus for slaves. The slaves are now in PREOP state.
| - |
Definition at line 23 of file SDK_Bussystem_EtherCat.mc.
| long sdkEtherCATMasterStart | ( | void | ) |
Start an EtherCAT Master.
If DC is configured, this function will block until the slaves are synchronized to the master. This can take some seconds. After that the system waits until all slaves are in the OP state.
| - |
Definition at line 86 of file SDK_Bussystem_EtherCat.mc.
| long sdkEtherCATSetupDC | ( | long | slaveNo, |
| long | cycleTime_ms, | ||
| long | offset_us | ||
| ) |
Sets the DC cycle for an individual slave.
DC0 clock output will be configured with the selected cycle time and offset. Typically, Cycle time is 1ms and offset 0. This function has to be called after sdkEtherCATMasterDoMapping.
| slaveNo | ID of the EhterCAT slave |
| cycleTime_ms | cycletime in milliseconds |
| offset_us | shift offset |
Definition at line 67 of file SDK_Bussystem_EtherCat.mc.