DEVICE_STATE (ENUM) ¶ TYPE DEVICE_STATE : Decribes all possible states of a CANopen device Attributes: qualified_only InOut: Name Initial Comment INIT ANYNUM_TO_INT(CS.DEVICE_STATE.INIT) Device is in boot up phase RESET_COMM ANYNUM_TO_INT(CS.DEVICE_STATE.RESET_COMM) Device performs a reset communication RESET_APP ANYNUM_TO_INT(CS.DEVICE_STATE.RESET_APP) Device performs a reset application PRE_OPERATIONAL ANYNUM_TO_INT(CS.DEVICE_STATE.PRE_OPERATIONAL) Device is in PREOPERATIONAL state (default state after boot up). STOPPED ANYNUM_TO_INT(CS.DEVICE_STATE.STOPPED) Device is in STOPPED state. OPERATIONAL ANYNUM_TO_INT(CS.DEVICE_STATE.OPERATIONAL) Device is in OPERATIONAL state. I/O messaging is active. UNKNOWN ANYNUM_TO_INT(CS.DEVICE_STATE.UNKNOWN) Device state is unknown. For example if no guarding mechanism is active. NOT_AVAIL ANYNUM_TO_INT(CS.DEVICE_STATE.NOT_AVAIL) Device was not found on bus.
GUARDING_TYPE (ENUM) ¶ TYPE GUARDING_TYPE : Attributes: qualified_only InOut: Name Comment NONE HEARTBEAT Heartbeat Producing according to CiA 301 NODEGUARDING Nodeguarding according to CiA 301 SYNC_PDO_GUARDING If cyclic synchronous PDOs are activated they are used for life guarding.
NMT_ERROR_BEHAVIOUR (ENUM) ¶ TYPE NMT_ERROR_BEHAVIOUR : Defines the error behaviour algorithm used by a CANopenManager . Attributes: qualified_only InOut: Name Comment RESTART_SLAVE Restart slave if an error control event occurrs. STOP_SLAVE Stop slave if an error control event occurs. The application may start the slave afterwards by Cia405 NMT function block.
Interfaces ¶ ICANopenEventHandler (Interface) EventCallback (Method)
ICANopenEventHandler (ITF) ¶ INTERFACE ICANopenEventHandler Interface for CANopen Event Handling. A function block implementing this interface can be registered via CANopenManager.RegisterEventHandler . Afterwards it receives all events defined by CANopenEvent . Methods: EventCallback Structure: EventCallback (Method)
ICANopenEventHandler.EventCallback (METH) ¶ METHOD EventCallback : BOOL Method will be called by CANopenManager in case of a CANopen event. As long as the method returns FALSE the method will be called and the stack state machine is paused. InOut: Scope Name Type Comment Return EventCallback BOOL Returns if event was completely processed by ICANopenEventHandler : FALSE : State machine will be paused and method will be called again. TRUE : State machine continues. Input eEvent CANopenEvent Event Type usiNodeID USINT NodeID associated with the event; 0 if not relevant.
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL