ABORT_CODE (ENUM) ¶ TYPE ABORT_CODE : SDO abort codes as defined by CiA-301 Attributes: qualified_only InOut: Name Initial Comment SUCCESSFUL 16#0 No abort. Operation successful CRC_ERROR 16#5040004 OUT_OF_MEMORY 16#5040005 UNSUPPORTED_ACCESS_TO_OBJECT 16#6010000 READ_NOT_ALLOWED 16#6010001 WRITE_NOT_ALLOWED 16#6010002 NO_SUCH_OBJECT 16#6020000 NOT_MAPPABLE 16#6040041 GENERAL_PARAM_INCOMPATIBILITY 16#6040043 GENERAL_INCOMPATIBILTY 16#6040047 LENGTH_DATA_INVALID 16#6070010 NO_SUCH_SUBINDEX 16#6090011 VALUE_RANGE_EXCEEDED 16#6090030 VALUE_TOO_HIGH 16#6090031 VALUE_TOO_LOW 16#6090032 GENERAL_ERROR 16#8000000 LOCAL_CTRL_ERROR 16#8000021 Data cannot be transferred or stored to the application because of local control. DEVICE_STATE_ERROR 16#8000022 Data cannot be transferred or stored to the application because of the present device state. NO_DATA_AVAILABLE 16#8000024 No data available
CANOPEN_STATE (ENUM) ¶ TYPE CANOPEN_STATE : CANopen states as defined by CiA-301 Attributes: qualified_only InOut: Name Initial Comment POWERDOWN -1 no CANopen services INIT 0 CANopen Service (see CiA-301): Bootup Object STOPPED 16#4 CANopen Service (see CiA-301): NMT OPERATIONAL 16#5 CANopen Service (see CiA-301): PDO (I/Os), SDO, SYNC, TIME, EMCY, NMT PREOPERATIONAL 16#7F CANopen Service (see CiA-301): SDO, SYNC, TIME, EMCY, NMT
DATA_TYPE (ENUM) ¶ TYPE DATA_TYPE : CANopen data types as defined by CiA-301 Attributes: qualified_only InOut: Name Initial Comment BOOLEAN 16#1 INT8 16#2 INT16 16#3 INT32 16#4 UINT8 16#5 UINT16 16#6 UINT32 16#7 REAL32 16#8 VISIBLE_STRING 16#9 INT24 16#10 OCTET_STRING := 16#0A, UNICODE_STRING := 16#0B, TIMEOFDAY := 16#0C, TIME_DIFFERENCE := 16#0D, DOMAIN := 16#0F, REAL64 16#11 INT40 16#12 INT48 16#13 INT56 16#14 INT64 16#15 UINT24 16#16 UINT40 16#18 UINT48 16#19 UINT56 16#1A UINT64 16#1B PDO_COMMUNICATION_PARAMETER := 16#20, PDO_MAPPING := 16#21, SDO_PARAMETER := 16#22, IDENTITY := 16#23
CANopenDevice_Diag.SetCommunicationState (METH) ¶ METHOD SetCommunicationState : DED.ERROR Starts, stops or resets the device. Following table defines the mapping between CAA Device Diagnosis DED.DEVICE_TRANSITION_STATE and CANopen NMT command: CAA Device Diagnosis CANopen NMT command DED.DEVICE_TRANSITION_STATE.START NMT Start ( CANopenDevice.SwitchToOp ) DED.DEVICE_TRANSITION_STATE.STOP NMT Stop ( CANopenDevice.SwitchToStopped ) DED.DEVICE_TRANSITION_STATE.RESET If current state is CANOPEN_STATE.POWERDOWN : CANopenDevice.PowerUp else NMT Reset ( CANopenDevice.Reset ) Note Use CANopenDevice_Diag.CheckCurrentSupportedCommunicationState to check which transitions are possible in the current state! InOut: Scope Name Type Comment Return SetCommunicationState DED.ERROR DED.ERROR.NO_ERROR if device transition was successful. Input eRequestedState DED.DEVICE_TRANSITION_STATE desired transition
INode ¶ Methods for traversing the device tree. ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
CANopenDevice_Diag.ChildNodeCount (PROP) ¶ PROPERTY ChildNodeCount : CAA.COUNT Returns the number of childs below the current node
CANopenDevice_Diag.Connector (PROP) ¶ PROPERTY Connector : POINTER TO IoStandard.IoConfigConnector
CANopenDevice_Diag.Enable (PROP) ¶ PROPERTY Enable : BOOL Set: This property is used for enabling/disabling a node. Note Changes will take effect after reconfiguring (see DED.Reconfigure ). Get: Returns the current value
CANopenDevice_Diag.FirstChildNode (PROP) ¶ PROPERTY FirstChildNode : DED.INode Returns the first child node below the current one
CANopenDevice_Diag.Index (PROP) ¶ PROPERTY Index : UDINT