Yt_YA_ECStatusStruct
Yt_YA_ECStatusStruct: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| Topology_OK | BOOL | Mirrors EC_Topology_OK from PLC data list (system variable group) | <StructName>.Topology_OK |
| Matching | BOOL | Indicates the everything matches configuration, based on evaluated criteria. |
<StructName>.Matching
|
| MasterState | UINT | State of EtherCAT Master |
<StructName>.MasterState
|
| MasterStateStr | STRING | State of EtherCAT Master as a String |
<StructName>.MasterStateStr
|
| NumOfConfiguredDevices | UINT | Number of EtherCAT devices configured within iCE |
<StructName>.NumOfConfiguredDevices
|
| NumOfConnectedDevices | UINT | Number of EtherCAT devices connected to the controller |
<StructName>.NumOfConnectedDevices
|
| ConfiguredDevices | Yt_YA_ECConfDeviceList |
Contains data about the devices configured in the Plant |
<StructName>.ConfiguredDevices
|
| DeviceComparisonList | Yt_YA_ECComparisonList | Compares found connected devices against those configured in the Plant |
<StructName>.DeviceComparisonList
|
Yt_YA_ECConfDeviceList: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_YA_ECConfDeviceList |
Yt_YA_ECDeviceStruct |
1...512 | Configured Device objects, in order by NetworkOrder |
<StructName>.ConfiguredDevices
|
Yt_YA_ECDeviceStruct: STRUCT
(Number of Modules, HotConnectGroupID, IdentificationMode, and DeviceID are not yet supported) Y_YA_EC_Diagnostics attempts to read IdentificationMode and DeviceID for devices that aren't know to use Explicit Device ID (0x0134) for physical rotary / DIP switches.
| Element | Data Type | Description | Usage |
|---|---|---|---|
| DeviceName | STRING | Product Name of device for clarification |
<StructName>.ConfiguredDevices[n].DeviceName
|
| VendorID | UDINT | Numerical Identifier of Manufacturer | <StructName>.ConfiguredDevices[n].VendorID |
| ProductCode | UDINT | Numerical Identifier of Product Model | <StructName>.ConfiguredDevices[n].ProductCode |
| CoEInterfaceRevision | UDINT | CoE Interface Revision Version | <StructName>.ConfiguredDevices[n].CoEInterfaceRevision |
| VersionNumber | UDINT | Product Revision | <StructName>.ConfiguredDevices[n].VersionNumber |
| SoftwareVersion | STRING | Software Version | <StructName>.ConfiguredDevices[n].SoftwareVersion |
| StationAddress | UINT | Station Address assigned to the device |
<StructName>.ConfiguredDevices[n].StationAddress
|
| State | UINT | EC numerical state reported by the device |
<StructName>.ConfiguredDevices[n].State
|
| StatusString | STRING | EC state converted to text string |
<StructName>.ConfiguredDevices[n].StatusString
|
| Error | UDINT | EC or Device Error |
<StructName>.ConfiguredDevices[n].Error
|
| IdentificationMode | INT | Mode Used For Device Identification (0x0012 or 0x0134)(-1 = not available) |
<StructName>.ConfiguredDevices[n].IdentificationMode
|
| DeviceID | INT | Device Identification Value (0x0012 or 0x0134)(-1 = not available) |
<StructName>.ConfiguredDevices[n].DeviceID
|
| HotConnect | INT | Whether HotConnect is enabled (-1 = unspecified, 0 = false, 1 = true) |
<StructName>.ConfiguredDevices[n].HotConnect
|
| HotConnectGroupID | INT | GroupID used by iCE to refer to a given EC device(-1 = not available) |
<StructName>.ConfiguredDevices[n].HotConnectGroupID
|
| ModuleCount | UINT | Number of Modules attached to a device (not yet supported) |
<StructName>.ConfiguredDevices[n].ModuleCount
|
| Present | BOOL | Whether EC device is connected currently |
<StructName>.ConfiguredDevices[n].Present
|
| MismatchCause | Yt_YA_ECMismatch_Criteria |
Struct applying mismatch info about EC device |
<StructName>.ConfiguredDevices[n].MismatchCause
|
| Matching | BOOL | Whether the device matches the device configured |
<StructName>.ConfiguredDevices[n].Matching
|
Yt_YA_ECMismatch_Criteria: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| StationAddress |
BOOL | Returns True if the Station Addresses do not match between Configured and Connected sub-devices
|
<StructName>.ConfiguredDevices[n].MismatchCause.StationAddress |
| ProductCode | BOOL | Returns True if the Product Codes do not match between Configured and Connected sub-devices
|
<StructName>.ConfiguredDevices[n].MismatchCause.ProductCode
|
| NumberOfModules | BOOL | Returns True if the # of modules does not match between Configured and Connected sub-devices
|
<StructName>.ConfiguredDevices[n].MismatchCause.NumberOfModules
|
Yt_YA_ECComparisonList: ARRAY
| Array Name | Data Type | Range | Description | Usage |
|---|---|---|---|---|
| Yt_YA_ECComparisonList |
Yt_YA_ECComparison | 1...512 |
Connected Device objects, in order by NetworkOrder
|
<StructName>.DeviceComparisonList
|
Yt_YA_ECComparison: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| ConfiguredDevice |
Yt_YA_ECDevice |
Struct of basic Configured Device details |
<StructName>.DeviceComparisonList[n].ConfiguredDevice
|
| ConnectedDevice |
Yt_YA_ECDevice |
Struct of basic Connected Device details
|
<StructName>.DeviceComparisonList[n].ConnectedDevice
|
| HotConnectable | INT | Status of Hot Connect for these devices (HC is only set for Configured sub-devices |
<StructName>.DeviceComparisonList[n].HotConnectable
|
Yt_YA_ECDevice: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| StationAddress |
UINT | Station Address assigned to the device |
<StructName>.DeviceComparisonList[n].ConfiguredDevice.StationAddress
|
| ProductCode | UDINT | Device name as reported by the device | <StructName>.DeviceComparisonList[n].ConfiguredDevice.DeviceName |
| Modules | Yt_YA_ECModules | Structure for information about any attached modules(not yet supported) | <StructName>.DeviceComparisonList[n].ConfiguredDevice.Modules |
Yt_YA_ECModules: STRUCT
| Element | Data Type | Description | Usage |
|---|---|---|---|
| ModuleCount |
UINT | Number of Modules attached to a device (not yet supported) |
<StructName>.DeviceComparisonList[n].ConfiguredDevice.Modules.ModuleCount
|
| ModuleList | ARRAY[1..32] of Yt_String32 |
Number of Modules attached to a device (not yet supported) | <StructName>.DeviceComparisonList[n].ConfiguredDevice.Modules.ModuleList |