CANopenManager_Diag.CheckSupportedCommunicationState (METH) ¶ METHOD CheckSupportedCommunicationState : BOOL This method checks if a specific DED.DEVICE_TRANSITION_STATE is supported by the node in general. For more details on interpretation of DED.DEVICE_TRANSITION_STATE for CANopen see CANopenManager_Diag.SetCommunicationState . Note Use CANopenManager_Diag.CheckCurrentSupportedCommunicationState to check which DED.DEVICE_TRANSITION_STATE is possible in the current state. InOut: Scope Name Type Comment Return CheckSupportedCommunicationState BOOL TRUE if node supports the requested DED.DEVICE_TRANSITION_STATE in general. Input eRequestedState DED.DEVICE_TRANSITION_STATE The communication state to be checked.
CANopenManager_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR Returns device information about the CANopenManager. Interpretation of DED.DEVICE_INFO is as follows: Component Interpretation eType DED.DEVICE_TYPE.FIELDBUS_MASTER idSystem Node ID idInstance Instance number in I/O configuration (starting by 0) InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR DED.ERROR.NO_ERROR if no error occurred while getting information. Inout deiInfo DED.DEVICE_INFO device information
CANopenManager_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE Returns the state of the CANopenManager. Following table defines the mapping between CAA Device Diagnosis DED.DEVICE_STATE and DEVICE_STATE . CAA Device Diagnosis CANopen state DED.DEVICE_STATE.UNKNOWN - DED.DEVICE_STATE.STOPPED DEVICE_STATE.STOPPED DED.DEVICE_STATE.RUNNING DEVICE_STATE.OPERATIONAL DED.DEVICE_STATE.ERROR bus error pending DED.DEVICE_STATE.DISABLED Device is disabled in I/O configuration. DED.DEVICE_STATE.NOT_CONFIGURED DEVICE_STATE.INIT DED.DEVICE_STATE.CONFIGURED DEVICE_STATE.PRE_OPERATIONAL DED.DEVICE_STATE.NOT_FOUND - InOut: Scope Name Type Comment Return GetDeviceState DED.DEVICE_STATE current device state Output xDiagnosisInfoAvailable BOOL TRUE , if red exclamation mark in device tree eError DED.ERROR
CANopenManager_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 DED.DEVICE_TRANSITION_STATE.STOP NMT Stop DED.DEVICE_TRANSITION_STATE.RESET NMT Reset; leads to reset of all slaves Note Use CANopenManager_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 ¶ ChildNodeCount (Property) Connector (Property) Enable (Property) FirstChildNode (Property) Index (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property)
External ¶ Functions Storage _StorageGetIndexId (Function) _StorageGetTableId (Function)
Functions ¶ Storage _StorageGetIndexId (Function) _StorageGetTableId (Function)
Storage ¶ _StorageGetIndexId (Function) _StorageGetTableId (Function)
Instances ¶ Storage (FunctionBlock) IStorage2 StorageGetIndexId (Method) StorageGetTableId (Method) StorageClear (Method) StorageClose (Method) StorageEncoding (Property) StorageGetMetrics (Method) StorageGetPath (Method) StorageIsReadOnly (Property) StorageLockingState (Property) StorageNumOfTables (Property) StorageOpenFile (Method) StorageReorg (Method) StorageSchemaVersion (Property) StorageUserVersion (Property) StorageVersion (Property) TableOpen (Method) TransactionBegin (Method) UtilityGetCurrentDateAndTime (Method) UtilityRandomness (Method)
Storage (FB) ¶ FUNCTION_BLOCK Storage IMPLEMENTS STO.IStorage2 Properties: StorageEncoding StorageIsReadOnly StorageLockingState StorageNumOfTables StorageSchemaVersion StorageUserVersion StorageVersion Methods: StorageClear StorageClose StorageGetMetrics StorageGetPath StorageOpenFile StorageReorg TableOpen TransactionBegin UtilityGetCurrentDateAndTime UtilityRandomness StorageGetIndexId StorageGetTableId Structure: IStorage2 StorageGetIndexId (Method) StorageGetTableId (Method) StorageClear (Method) StorageClose (Method) StorageEncoding (Property) StorageGetMetrics (Method) StorageGetPath (Method) StorageIsReadOnly (Property) StorageLockingState (Property) StorageNumOfTables (Property) StorageOpenFile (Method) StorageReorg (Method) StorageSchemaVersion (Property) StorageUserVersion (Property) StorageVersion (Property) TableOpen (Method) TransactionBegin (Method) UtilityGetCurrentDateAndTime (Method) UtilityRandomness (Method)