EthercatSyncUnitStateFlags
- Namespace
- ZCore
This enumeration is used to represent a bitdecoded state that can be set for an ethercat-sync unit. Since this is a flags enumeration, several bits may be present at a given time. Use boolean algebra to check for bits, rather than integer comparison.
´´´st IF (ethercatSyncUnit.EthercatSyncUnitStateFlags() AND EthercatSyncUnitStateFlags.NotPresent) > 0 THEN Abort('The ethercat-SyncUnit is not present in the fieldbus'); ELSIF (ethercatSyncUnit.EthercatSyncUnitStateFlags() AND EthercatSyncUnitStateFlags.Op) > 0 THEN _logger.Trace('Ethercat-SyncUnit is present and operational'); END_IF ´´´
This enumeration is used in EthercatStateFlags.
Fields
Init=16#0001PreOp=16#0002Bootstrap=16#0003SafeOp=16#0004Op=16#0008Error=16#0010InvalidVendorProduceCodeRevisionNoOrSerialNo=16#0020InitializationCommandsError=16#0040Disabled=16#0080LinkOk=16#0000NotPresent=16#0100NoCommunication=16#0200MissingLink=16#0400AdditionalLink=16#0800