DEVICE_TYPE (ENUM) ¶ TYPE DEVICE_TYPE : This enumeration lists all available device types. Attributes: qualified_only InOut: Name Initial Comment UNKNOWN 16#0 unknown device FIELDBUS_MASTER 16#1 fieldbus master FIELDBUS_SLAVE 16#2 fieldbus slave SAFETY_DEVICE 16#3 safety device SM_DEVICE 16#4 SoftMotion device SOFT_VISION_DEVICE 16#5 SoftVision device DTM_DEVICE 16#6 DTM device SPEC_IO_MODULE 16#7 Specific I/O module PLC 16#1000 Standard PLC SAFETY_PLC 16#1002 Safety PLC DRIVE 16#1003 drive device PARAM_DEVICE 16#1004 parameterizable device HMI 16#1005 HMI device SM_PLC 16#1006 SoftMotion PLC
ERROR (ENUM) ¶ TYPE ERROR : This enumeration describes errors which may occur when working with the functions of this library. Attributes: qualified_only InOut: Name Initial Comment NO_ERROR 0 no error FIRST_ERROR 1300 first library-specific error TIME_OUT 1301 Timeout occured. ABORT 1302 Operation was aborted. REF_INVALID 1303 The interface reference was invalid. NOT_SUPPORTED 1304 The function is not supported. ERROR_IO 1305 A general I/O configuration error occured. PARAM_INVALID 1306 Invalid parameter. NODE_NOT_EXISTING 1307 The specified node does not exist. NO_MEMORY 1308 Dynamic memory allocation is disabled or system is out of memory. ADR_NOT_FOUND 1309 The specified I/O address is not valid. INST_NOT_FOUND 1310 There is no associated IDevice instance for the specified I/O address. NO_DATA 1311 There is no data available. OPERATION_INVALID 1312 Operation not possible due to the current state FIRST_MF 1350 first manufacturer-specific error LAST_ERROR 1399 last error
LOGGER_MODE (ENUM) ¶ TYPE LOGGER_MODE : This enumeration lists all possible logger modes for a bus logger. Attributes: qualified_only InOut: Name Comment LINEAR Logger uses a linear logging buffer and stops logging if buffer is full. CIRCULAR Logger uses a circular logging buffer and overwrites old entries if buffer is full.
PROC_CMD (ENUM) ¶ TYPE PROC_CMD : This enumeration is used when working with asynchronous methods. The current state is issued with the data structure PROC_STATE Attributes: qualified_only InOut: Name Initial Comment NONE 0 Operation is not started and stays in IDLE mode. The operation is returned to its initial state. EXECUTE Operation is started upon a rising edge and executed as long as the input remains on EXECUTE. The operation is done as soon as the output is assigned the value PROC_STATE.DONE . ABORT Operation is aborted. The abort is done if the state is assigned the value PROC_STATE.ABORTED .
PROC_STATE (ENUM) ¶ TYPE PROC_STATE : This enumeration is used to issue the current operation state of asynchronous methods. Attributes: qualified_only InOut: Name Initial Comment DORMAND 0 The operation is in IDLE state. BUSY The operation is busy. DONE The operation is done. ABORTED The operation has been aborted. ERROR An error occured.
Function Blocks ¶ Bus GetBusError (FunctionBlock) Device GetDeviceError (FunctionBlock) GetSpecificDeviceError (FunctionBlock) Reconfigure Reconfigure (FunctionBlock) Stack GetBusScan (FunctionBlock) Utility GetIDeviceInstByIoAddr (FunctionBlock)
Bus ¶ Function blocks working on IBus nodes. GetBusError (FunctionBlock)
GetBusError (FB) ¶ FUNCTION_BLOCK GetBusError EXTENDS CBM.ETrigA If IBus.GetBusState returns BUS_STATE.ERROR this function block returns the associated bus error code. The error codes are fieldbus specific and will be defined by the associated communication stack. Note This feature may not be supported by all fieldbus drivers. eError will return ERROR.NOT_SUPPORTED if not supported. InOut: Scope Name Type Comment Input itfNode INode bus node Output eError ERROR operation error code einBusError ERROR_INFO bus error code
Device ¶ Function blocks working on IDevice nodes. GetDeviceError (FunctionBlock) GetSpecificDeviceError (FunctionBlock)
GetDeviceError (FB) ¶ FUNCTION_BLOCK GetDeviceError EXTENDS CBM.ETrigA If IDevice.GetDeviceState returns DEVICE_STATE.ERROR this function block returns the associated device error code. The error codes are fieldbus specific and will be defined by the associated communication stack. Note This feature may not be supported by all fieldbus drivers. eError will return ERROR.NOT_SUPPORTED if not supported. InOut: Scope Name Type Comment Input itfNode INode device node Output eError ERROR operation error code einDeviceError ERROR_INFO device error code