FB_CoEService
This class provides a read and write service for CoE-addressable EtherCAT devices. This can be used to read and/or write internal information from a field device, for example.
Syntax:
FUNCTION_BLOCK FB_CoEService EXTENDS FB_MessageBase
Properties
Name | Type | Access | Description |
---|---|---|---|
AdsAddr | AMSADDR | Get, Set | ADS address of the target device. Is set automatically when an existing field device is linked via |
Busy | BOOL | Get | The service is currently performing a read or write operation. |
Config | Get | Information on the parameter to be read: address, data type, memory type, validation | |
Done | BOOL | Get | The read or write process has been successfully completed. |
EcDevice | Get, Set | Transfer of an existing I/O element with mapping of the ADS address | |
Error | BOOL | Get | An error has occurred during the read or write process. |
ErrorId | UDINT | Get | Error code of the last error that occurred. |
Methods
Name | Description |
---|---|
Cyclic() | Cycle method |
Read( | Commands a read process. |
Write( | Commands a write process. |
Interfaces
Type | Description |
---|---|
I_CoEService | Standard interface on FB_CoEService. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4024.55 | PC or CX (x64, x86) | Tc3_PlasticFunctions (>= v12.6.1.0) |