Library Class
This class provides various operations for E-CAT component.
Namespace:
IntervalZero.MaxRT.Ecat.Api.NetApi
Assembly:
IntervalZero.MaxRT.Ecat (in IntervalZero.MaxRT.Ecat.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public class Library
The Library class exposes the following members:
Constructors
|
|
Name | Description |
|---|---|---|
|
|
Default constructor. |
Methods
Axis Control
|
|
Name | 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 value into an input buffer of a simulated axis. |
|
|
|
Writes a byte value 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. |
|
|
|
Gets the status of an axis. |
|
|
|
Opens an axis by its index. |
|
|
|
Opens an axis 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 value from the input buffer of an axis. |
|
|
|
Reads a byte value from the input buffer of an axis. |
|
|
|
Reads a double word from the input buffer of an axis. |
|
|
|
Reads a word from the 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 value from the output buffer of an axis. |
|
|
|
Reads a byte value from the output buffer of an axis. |
|
|
|
Reads a double word from the output buffer of an axis. |
|
|
|
Reads a word from the 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 touch probe control of an axis. |
|
|
|
Reads the touch probe status of an axis. |
|
|
|
Reads the torque offset of an axis. |
|
|
|
Sets a custom name for an axis. The custom name is not unique. |
|
|
|
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 value into an output buffer of an axis. |
|
|
|
Writes a byte value 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
|
|
Name | Description |
|---|---|---|
|
|
Aborts a CommandStatus type command. |
|
|
|
Aborts a CommandStatus<byte[]> type command. |
|
|
|
Aborts a CommandStatus<uint> type command. |
|
|
|
Aborts a CommandStatus<ushort> type command. |
|
|
|
Aborts a CommandStatus<ushort[]> type command. |
|
|
|
Aborts a CommandStatus<SdoEntryDescription> type command. |
|
|
|
Aborts a CommandStatus<SdoObjectDescription> type command. |
|
|
|
Gets the status of multiple commands. |
|
|
|
Gets the status of a CommandStatus type command. |
|
|
|
Gets the status of a CommandStatus<byte[]> type command. |
|
|
|
Gets the status of a CommandStatus<uint> type command. |
|
|
|
Gets the status of a CommandStatus<ushort> type command. |
|
|
|
Gets the status of a CommandStatus<ushort[]> type command. |
|
|
|
Gets the status of a CommandStatus<SdoEntryDescription> type command. |
|
|
|
Gets the status of a CommandStatus<SdoObjectDescription> type command. |
|
|
|
Waits for a CommandStatus type command for a specified time duration. |
|
|
|
Waits for a CommandStatus<byte[]> type command for a specified time duration. |
|
|
|
Waits for a CommandStatus<uint> type command for a specified time duration. |
|
|
|
Waits for a CommandStatus<ushort> type command for a specified time duration. |
|
|
|
Waits for a CommandStatus<ushort[]> type command for a specified time duration. |
|
|
|
WaitForCommand (double, bool, CommandStatus<SdoEntryDescription>) |
Waits for a CommandStatus<SdoEntryDescription> type command for a specified time duration. |
|
|
WaitForCommand (double, bool, CommandStatus<SdoObjectDescription>) |
Waits for a CommandStatus<SdoObjectDescription> type command for a specified time duration. |
Diagnostics
|
|
Name | Description |
|---|---|---|
|
|
Resets MainDevice and SubDevice diagnostics information. |
Mailbox
|
|
Name | Description |
|---|---|---|
|
|
Reads data from a SubDevice through Automation Device Specification over EtherCAT (AoE). |
|
|
|
Reads data from a SubDevice through the Automation Device Specification over EtherCAT (AoE) SDO method. |
|
|
|
Simultaneously reads data from and writes data to a SubDevice through Automation Device Specification over EtherCAT (AoE). |
|
|
|
Writes data to a SubDevice through Automation Device Specification over EtherCAT (AoE). |
|
|
|
Sends a command to a SubDevice through Automation Device Specification over EtherCAT (AoE). |
|
|
|
Writes data to a SubDevice using the Automation Device Specification over EtherCAT (AoE) SDO method. |
|
|
|
Reads the description of an entry in an object dictionary through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads an object value through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads the description of an object through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads the list of object indexes in a dictionary table through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Writes data to a SubDevice using the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads a file from a SubDevice and saves it to a file on the local machine. |
|
|
|
Writes a file from the local machine to a SubDevice. |
|
|
|
Reads an object value from an axis through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads an object value from a module through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Reads data from a SubDevice through Servo Drive Profile over EtherCAT (SoE). |
|
|
|
Writes data to a SubDevice through Servo Drive Profile over EtherCAT (SoE). |
|
|
|
Writes data to a VoE-enabled device through Vendor-Specific Protocol over EtherCAT (VoE). |
|
|
|
Writes an object value to an axis through the CANopen over EtherCAT (CoE) SDO method. |
|
|
|
Writes an object value to a module through the CANopen over EtherCAT (CoE) SDO method. |
MainDevice
|
|
Name | Description |
|---|---|---|
|
|
Closes an open E-CAT handle. When a MainDevice handle is closed, all handles derived from it become invalid. |
|
|
|
Creates a MainDevice instance. |
|
|
|
Destroys a MainDevice, causing all handles derived from the corresponding MainDevice to become invalid. |
|
|
|
Gets the timestamp of the selected Sync0’s signal of the distributed clock (DC). |
|
|
|
Gets the configuration of an E-CAT startup feature. |
|
|
|
Gets the status of a MainDevice. |
|
|
|
Gets the diagnostics information of a MainDevice. |
|
|
|
Gets the status and diagConfigurenostics information of a MainDevice. |
|
|
|
Returns a MainDevice's running status. |
|
|
|
Opens a MainDevice. |
|
|
|
Sends a signal to notify E-CAT Fieldbus that the user application is running properly. |
|
|
|
Requests a MainDevice to switch to a specified EtherCAT state. |
|
|
|
Restarts a MainDevice. |
|
|
|
Sets the configuration of an E-CAT startup feature. |
|
|
|
Configures the heartbeat settings of a MainDevice. |
|
|
|
Starts a MainDevice and requests it to switch to the Op state. |
|
|
|
Starts a MainDevice using a configuration file created by the E-CAT Configuration Tool. Calling this method also requests the MainDevice to switch to the Op state. |
|
|
|
Stops a MainDevice and requests it to switch to the Offline state. |
Module Control
|
|
Name | Description |
|---|---|---|
|
|
Writes a bit value into an input buffer of a simulated module. |
|
|
|
Writes a byte value into an input buffer of a simulated module. | |
|
|
Writes a double word into an input buffer of a simulated module. | |
|
|
Writes a word into an input buffer of a simulated module. | |
|
|
Gets the status of a module. |
|
|
|
Opens a module by its index. |
|
|
|
Opens a module by its location. |
|
|
|
Reads a bit value from the input buffer of a module. | |
|
|
Reads a byte value from the input buffer of a module. | |
|
|
Reads a double word from the input buffer of a module. | |
|
|
Reads a word from the input buffer of a module. | |
|
|
Reads a bit value from the output buffer of a module. |
|
|
|
Reads a byte value from the output buffer of a module. |
|
|
|
Reads a double word from the output buffer of a module. |
|
|
|
Reads a word from the output buffer of a module. |
|
|
|
Sets a custom name for a module. |
|
|
|
Writes a bit value into an output buffer of a module. |
|
|
|
Writes a byte value into an output buffer of a module. |
|
|
|
Writes a double word into an output buffer of a module. |
|
|
|
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.
|
|
Name | Description |
|---|---|---|
|
|
Reads a bit value from the E-CAT Fieldbus shared memory. |
|
|
|
Reads a byte value 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 value into the E-CAT Fieldbus shared memory. |
|
|
|
Writes a byte value 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
|
|
Name | 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 Library.Start 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 Library.Start to match the configured number. |
SubDevice
|
|
Name | Description |
|---|---|---|
|
|
Gets the status of a SubDevice. |
|
|
|
Opens a SubDevice by its explicit identification. |
|
|
|
Opens a SubDevice by its index. |
|
|
|
Opens a SubDevice 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 uint value 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 (ESC) of a SubDevice. |
|
|
|
Restarts a SubDevice. |
|
|
|
Writes all data into a SubDevice’s EEPROM. |
|
|
|
Writes an alias address into a SubDevice. |
|
|
|
Writes a uint value into a SubDevice’s EEPROM. |
|
|
|
Writes data into a SubDevice's register. |
See Also: