Table of Contents

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#0001
PreOp = 16#0002
Bootstrap = 16#0003
SafeOp = 16#0004
Op = 16#0008
Error = 16#0010
InvalidVendorProduceCodeRevisionNoOrSerialNo = 16#0020
InitializationCommandsError = 16#0040
Disabled = 16#0080
LinkOk = 16#0000
NotPresent = 16#0100
NoCommunication = 16#0200
MissingLink = 16#0400
AdditionalLink = 16#0800