E-CAT Fieldbus API Functions
The E-CAT API functions are grouped below:
- Axis Control
- Command
- Diagnostics
- E-CAT Component
- Mailbox
- MainDevice
- Module Control
- Shared Memory
- Simulated Hardware
- SubDevice
Axis Control
Reads and writes the values relevant to an axis.
| Function | Description |
|---|---|
|
Writes the actual current of a simulated axis. |
|
|
Writes the actual position of a simulated axis. |
|
|
Writes the actual torque of a simulated axis. |
|
|
Writes the actual velocity of a simulated axis. |
|
|
Writes the first custom input variable of a simulated axis. |
|
|
Writes the second custom input variable of a simulated axis. |
|
|
Writes the digital inputs of a simulated axis. |
|
|
Writes the following error of a simulated axis. |
|
|
Writes a bit into an input buffer of a simulated axis. |
|
|
Writes a byte into an input buffer of a simulated axis. |
|
|
Writes a double word into an input buffer of a simulated axis. |
|
|
Writes a word into an input buffer of a simulated axis. |
|
|
Writes the modes of operation display of a simulated axis. |
|
|
Writes the secondary encoder's position of a simulated axis. |
|
|
Writes the status word of a simulated axis. |
|
|
Writes the touch probe status of a simulated axis. |
|
|
Provides pointers to the input and output buffers of an axis. |
|
|
Gets the status of an axis. |
|
|
Opens the axis object by its index. |
|
|
Opens the axis object by its location. |
|
|
Reads the actual current of an axis. |
|
|
Reads the actual position of an axis. |
|
|
Reads the actual torque of an axis. |
|
|
Reads the actual velocity of an axis. |
|
|
Reads the control word of an axis. |
|
|
Reads the first custom input variable of an axis. |
|
|
Reads the second custom input variable of an axis. |
|
|
Reads the first custom output variable of an axis. |
|
|
Reads the second custom output variable of an axis. |
|
|
Reads the digital inputs of an axis. |
|
|
Reads the digital outputs of an axis. |
|
|
Reads the following error of an axis. |
|
|
Reads a bit from an input buffer of an axis. |
|
|
Reads a byte from an input buffer of an axis. |
|
|
Reads a double word from an input buffer of an axis. |
|
|
Reads a word from an input buffer of an axis. |
|
|
Reads the maximum current of an axis. |
|
|
Reads the maximum torque of an axis. |
|
|
Reads the modes of operation of an axis. |
|
|
Reads the modes of operation display of an axis. |
|
|
Reads a bit from an output buffer of an axis. |
|
|
Reads a byte from an output buffer of an axis. |
|
|
Reads a double word from an output buffer of an axis. |
|
|
Reads a word from an output buffer of an axis. |
|
|
Reads the profile acceleration of an axis. |
|
|
Reads the profile deceleration of an axis. |
|
|
Reads the profile velocity of an axis. |
|
|
Reads the secondary encoder's position of an axis. |
|
|
Reads the status word of an axis. |
|
|
Reads the target position of an axis. |
|
|
Reads the target torque of an axis. |
|
|
Reads the target velocity of an axis. |
|
|
Reads the torque offset of an axis. |
|
|
Reads the touch probe control of an axis. |
|
|
Reads the touch probe status of an axis. |
|
|
Sets a custom name for an axis. |
|
|
Writes the control word of an axis. |
|
|
Writes the first custom output variable of an axis. |
|
|
Writes the second custom output variable of an axis. |
|
|
Writes the digital outputs of an axis. |
|
|
Writes the maximum current of an axis. |
|
|
Writes the maximum torque of an axis. |
|
|
Writes the modes of operation of an axis. |
|
|
Writes a bit into an output buffer of an axis. |
|
|
Writes a byte into an output buffer of an axis. |
|
|
Writes a double word into an output buffer of an axis. |
|
|
Writes a word into an output buffer of an axis. |
|
|
Writes the profile acceleration of an axis. |
|
|
Writes the profile deceleration of an axis. |
|
|
Writes the profile velocity of an axis. |
|
|
Writes the target position of an axis. |
|
|
Writes the target torque of an axis. |
|
|
Writes the target velocity of an axis. |
|
|
Writes the torque offset of an axis. |
|
|
Writes the touch probe control of an axis. |
Command
The commands that wait, cancel and get the states of the functions.
| Function | Description |
|---|---|
|
Aborts a command. |
|
|
Gets the status of multiple commands. |
|
|
Gets the status of a single command. |
|
|
Waits for a command for a specified time duration. |
Diagnostic
Resets MainDevice and SubDevices' diagnostic information.
| Function | Description |
|---|---|
|
Resets MainDevice and SubDevice diagnostics information. |
E-CAT Component
Controls the E-CAT component.
| Function | Description |
|---|---|
|
Gets the E-CAT component status. |
|
|
Gets an E-CAT MainDevice instance status. |
|
|
Checks if the E-CAT component license is available on the system. |
|
|
Starts all configured E-CAT MainDevice instances. |
|
|
Starts an E-CAT MainDevice instance. |
|
|
Stops all running E-CAT MainDevice instances. |
|
|
Stops a running E-CAT MainDevice instance. |
Mailbox
Exchanges data between the MainDevice and SubDevices.
| Function | Description |
|---|---|
|
Reads data from a SubDevice through AoE (Automation Device Specification over EtherCAT). |
|
|
Reads data from a SubDevice through the AoE (Automation Device Specification over EtherCAT) SDO method. |
|
|
Simultaneously reads data from and writes data to a SubDevice through AoE (Automation Device Specification over EtherCAT). |
|
|
Writes data to a SubDevice through AoE (Automation Device Specification over EtherCAT). |
|
|
Sends a command to a SubDevice through AoE (Automation Device Specification over EtherCAT). |
|
|
Writes data to a SubDevice using the AoE (Automation Device Specification over EtherCAT) SDO method. |
|
|
Reads the description of an entry in an object dictionary through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Reads an object value through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Reads the description of an object through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Reads the list of object indexes in a dictionary table through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Writes an object value through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Reads a file from a SubDevice and saves it to a buffer through FoE (File Access over EtherCAT). |
|
|
Reads a file from a SubDevice and saves it to a file on the local machine. |
|
|
Writes a file from a buffer to a SubDevice through FoE (File Access over EtherCAT). |
|
|
Writes a file from the local machine to a SubDevice. |
|
|
Reads the value of an object from an axis through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Reads the value of an object from a module through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Registers a function that the E-CAT Fieldbus will call when a mailbox message arrives. |
|
|
Reads data from a SubDevice through SoE (Servo Drive Profile over EtherCAT). |
|
|
Writes data to a SubDevice through SoE (Servo Drive Profile over EtherCAT). |
|
|
Writes data to a VoE-enabled device through VoE (Vendor-Specific Protocol over EtherCAT). |
|
|
Writes the value of an object to an axis through the CoE (CANopen over EtherCAT) SDO method. |
|
|
Writes the value of an object to a module through the CoE (CANopen over EtherCAT) SDO method. |
MainDevice
Reads and writes data from the MainDevice.
| Function | Description |
|---|---|
|
Closes an E-CAT object handle. |
|
|
Creates a MainDevice object. |
|
|
Destroys a MainDevice object. |
|
|
Gets the timestamp of the selected Sync0's signal of the DC (distributed clock). |
|
|
Gets the configuration of an EtherCAT startup feature. |
|
|
Gets the status of a MainDevice. |
|
|
Opens a MainDevice object. |
|
|
Sends a signal to notify E-CAT Fieldbus that the user application is running properly. |
|
|
Registers a function to be called every cycle when new input data arrives. The function runs on the selected processor core. |
|
|
Registers a function to be called every cycle when the output data is about to be sent. The function runs on the selected processor core. |
|
|
Requests a MainDevice to switch to a specified EtherCAT state. |
|
|
Restarts a MainDevice. |
|
|
Sets the configuration of an EtherCAT startup feature. |
|
|
Configures the heartbeat settings. |
|
|
Starts a MainDevice. Calling RtecatStart also requests the MainDevice to switch to the Op state. |
|
|
Starts a MainDevice using a configuration file created by the E-CAT Configuration Tool. Calling RtecatStartFromConfiguration also requests the MainDevice to switch to the Op state. |
|
|
Stops a MainDevice. Calling RtecatStop also requests the MainDevice to switch to the Offline state. |
Module Control
Reads and writes the values relevant to a module.
| Function | Description |
|---|---|
| RtecatForceModuleInputBit |
Writes a bit into an input buffer of a simulated module. |
| RtecatForceModuleInputByte |
Writes a byte into an input buffer of a simulated module. |
| RtecatForceModuleInputDWord |
Writes a double word into an input buffer of a simulated module. |
| RtecatForceModuleInputWord |
Writes a word into an input buffer of a simulated module. |
| RtecatGetModuleBuffers |
Provides pointers to the input and output buffers of a module. |
| RtecatGetModuleStatus |
Gets the status of a module. |
| RtecatOpenModuleByIndex |
Opens a module object by its index. |
| RtecatOpenModuleByLocation |
Opens a module object by its location. |
| RtecatReadModuleInputBit |
Reads a bit from an input buffer of a module. |
| RtecatReadModuleInputByte |
Reads a byte from an input buffer of a module. |
| RtecatReadModuleInputDWord |
Reads a double word from an input buffer of a module. |
| RtecatReadModuleInputWord |
Reads a word from an input buffer of a module. |
| RtecatReadModuleOutputBit |
Reads a bit from an output buffer of a module. |
| RtecatReadModuleOutputByte |
Reads a byte from an output buffer of a module. |
| RtecatReadModuleOutputDWord |
Reads a double word from an output buffer of a module. |
| RtecatReadModuleOutputWord |
Reads a word from an output buffer of a module. |
|
Sets a custom name for a module. |
|
| RtecatWriteModuleOutputBit |
Writes a bit into an output buffer of a module. |
| RtecatWriteModuleOutputByte |
Writes a byte into an output buffer of a module. |
| RtecatWriteModuleOutputDWord |
Writes a double word into an output buffer of a module. |
| RtecatWriteModuleOutputWord |
Writes a word into an output buffer of a module. |
Shared Memory
Reads and writes the shared memory provided by E-CAT Fieldbus.
Shared memory is a pool of memory accessible by multiple E-CAT applications, allowing them to exchange data directly. This functionality supports communication between programs written in different languages, such as C applications and PLC applications. Each MainDevice instance has a dedicated section of this shared memory.
| Function | Description |
|---|---|
|
Gets the pointer to the address of the data in the E-CAT Fieldbus shared memory. |
|
|
Reads a bit from the E-CAT Fieldbus shared memory. |
|
|
Reads a byte from the E-CAT Fieldbus shared memory. |
|
|
Reads a double word from the E-CAT Fieldbus shared memory. |
|
|
Reads a quad word from the E-CAT Fieldbus shared memory. |
|
|
Reads a word from the E-CAT Fieldbus shared memory. |
|
|
Writes a bit into the E-CAT Fieldbus shared memory. |
|
|
Writes a byte into the E-CAT Fieldbus shared memory. |
|
|
Writes a double word into the E-CAT Fieldbus shared memory. |
|
|
Writes a quad word into the E-CAT Fieldbus shared memory. |
|
|
Writes a word into the E-CAT Fieldbus shared memory. |
Simulated Hardware
Configures simulated hardware.
| Function | Description |
|---|---|
|
Configures an axis. If the corresponding index contains a real axis module, the configuration set will be overridden. |
|
|
Configures an I/O module. If the corresponding index contains a real I/O module, the configuration set will be overridden. |
|
|
Gets the number of configured axes. |
|
|
Gets the number of configured I/O modules. |
|
|
Sets the number of configured axes. If the actual number of detected real axes is less than the number configured, simulated axes will be generated during RtecatStart to match the configured number. |
|
|
Sets the number of configured I/O modules. If the actual number of detected real I/O modules is less than the number configured, simulated I/O modules will be generated during RtecatStart to match the configured number. |
SubDevice
Reads and writes data from an E-CAT sub device.
| Function | Description |
|---|---|
|
Gets the status of a SubDevice. |
|
|
Opens a SubDevice object by its explicit identification. |
|
|
Opens a SubDevice object by its index. |
|
|
Opens a SubDevice object by its station address. |
|
|
Changes the input and output PDO lengths of a SubDevice. This can be used to programmatically configure a SubDevice. |
|
|
Reads all data from a SubDevice's EEPROM. |
|
|
Reads the alias address from a SubDevice. |
|
|
Reads a double word from a SubDevice's EEPROM. |
|
|
Reads data from a SubDevice's register. |
|
|
Reloads a SubDevice's EEPROM. |
|
|
Requests a SubDevice to go into a specified EtherCAT state. |
|
|
Resets the EtherCAT SubDevice Controller of a SubDevice. |
|
|
Restarts a SubDevice. |
|
|
Writes all data into a SubDevice’s EEPROM. |
|
|
Writes an alias address into a SubDevice. |
|
|
Writes a double word into a SubDevice’s EEPROM. |
|
|
Writes data into a SubDevice's register. |