CANopenDevice.SwitchToStopped (METH) ¶ METHOD SwitchToStopped : BOOL Switches the slave to CANOPEN_STATE.STOPPED . As defined by CiA-301 following services will be performed in this state: NMT State transition is only possible in CANOPEN_STATE.PREOPERATIONAL or CANOPEN_STATE.OPERATIONAL . InOut: Scope Name Type Comment Return SwitchToStopped BOOL TRUE if state transition was possible
CANopenDevice.ObjectDictionary (PROP) ¶ PROPERTY ObjectDictionary : IObjectDictionary Returns the Object Dictionary of a slave. See IObjectDictionary for further information.
DecodePDOCOBID (FUN) ¶ FUNCTION DecodePDOCOBID Helps to decode the content of a PDO COBID Object (Object 16#1400-16#15FFsub1 or 16#1800-16#19FFsub1). InOut: Scope Name Type Comment Input dwValue DWORD value of PDO COBID object Output xEnabled BOOL true : PDO enabled; false : PDO disabled xExtendedID BOOL true : 29bit COBID, false : 11bit COBID xRTR BOOL true : RTR enabled; false : RTR disabled dwCOBID DWORD PDO COBID
DecodePDOMappingEntry (FUN) ¶ FUNCTION DecodePDOMappingEntry Helps to decode the content of a PDO Mapping Object (Object 16#1600-16#17FF or 16#1A00-16#1BFF). InOut: Scope Name Type Comment Input dwValue DWORD value of PDO Mapping object Output wIndex WORD Object index of mapped object bySubIndex BYTE SubIndex of mapped object byLength BYTE Bit length of mapped object
EncodePDOCOBID (FUN) ¶ FUNCTION EncodePDOCOBID Helps to encode the content of a PDO COBID Object (Object 16#1400-16#15FFsub1 or 16#1800-16#19FFsub1). InOut: Scope Name Type Comment Input xEnabled BOOL true : PDO enabled; false : PDO disabled xExtendedID BOOL true : 29bit COBID, false : 11bit COBID xRTR BOOL true : RTR enabled; false : RTR disabled dwCOBID DWORD PDO COBID Output dwValue DWORD value of PDO COBID object
EncodePDOMappingEntry (FUN) ¶ FUNCTION EncodePDOMappingEntry Helps to encode the content of a PDO Mapping Object (Object 16#1600-16#17FF or 16#1A00-16#1BFF). InOut: Scope Name Type Comment Input wIndex WORD Object index of mapped object bySubIndex BYTE SubIndex of mapped object byLength BYTE Bit length of mapped object Output dwValue DWORD value of PDO Mapping object
SYNC ¶ DecodeSyncCOBID (Function) EncodeSyncCOBID (Function)
DecodeSyncCOBID (FUN) ¶ FUNCTION DecodeSyncCOBID Helps to decode the content of the SYNC COBID Object (Object 16#1005). InOut: Scope Name Type Comment Input dwValue DWORD value of SYNC COBID object Output xSyncProducer BOOL true : device is Sync Producer; false : device is Sync Consumer xExtendedID BOOL true : 29bit SYNC COBID; false : 11bit SYNC COBID dwCOBID DWORD SYNC COBID
EncodeSyncCOBID (FUN) ¶ FUNCTION EncodeSyncCOBID Helps to encode the content of the SYNC COBID Object (Object 16#1005). InOut: Scope Name Type Comment Input xSyncProducer BOOL true : device is Sync Producer; false : device is Sync Consumer xExtendedID BOOL true : 29bit SYNC COBID; false : 11bit SYNC COBID dwCOBID DWORD SYNC COBID Output dwValue DWORD value of SYNC COBID object
CANopenDevice (FB) ¶ FUNCTION_BLOCK CANopenDevice EXTENDS IoDrvBase IMPLEMENTS ICmpIoDrvParameter, IODCallback Implements the CANopen Slave stack. Note This function block is not intended for being instantiated by applications. Instances will be created implicitly. Properties: ObjectDictionary NodeID State Methods: AddLogMessage PowerDown PowerUp Reset ResetCommunication SetNodeID SwitchToOp SwitchToPreop SwitchToStopped Structure: Diagnostics AddLogMessage (Method) NMT API NodeID (Property) PowerDown (Method) PowerUp (Method) Reset (Method) ResetCommunication (Method) SetNodeID (Method) State (Property) SwitchToOp (Method) SwitchToPreop (Method) SwitchToStopped (Method) ObjectDictionary (Property)