MB_Parity (ENUM) ¶ TYPE MB_Parity : InOut: Name NONE ODD EVEN
MB_PortParameter (STRUCT) ¶ TYPE MB_PortParameter : STRUCT InOut: Name Type Initial Comment udiBaudrate UDINT 19200 1200, 2400, 4800, …, 115000 bps usiMedium USINT 0 RS232:=0, RS485:=1 or ETH:=2 usiParity USINT 2 EVEN:=2, ODD:=1 or NONE:=0 usiDataBits USINT 8 Number of Data Bits usiStopBits USINT 1 Number of Stop Bits xPolarization BOOL FALSE Polarization and Termination Resistors COMPORT INT 0 Number of the COM Port to use
MB_Transmission (ENUM) ¶ TYPE MB_Transmission : InOut: Name RTU ASCII
MB_TriggerType (ENUM) ¶ TYPE MB_TriggerType : InOut: Name CYCLIC RISING_EDGE
ModbusCommand (STRUCT) ¶ TYPE ModbusCommand : STRUCT InOut: Name Type Initial uiFunctionCode UINT 3 uiReadOffset UINT 0 uiReadLen UINT 1 uiWriteOffset UINT 0 uiWriteLen UINT 1
IoDrvModbusTCP_Diag.GetDeviceDiagnosisInfo (METH) ¶ METHOD GetDeviceDiagnosisInfo : DED.ERROR Returns a DiagnosisInfo if xDiagnosisInfoAvailable of GetDeviceState was true. InOut: Scope Name Type Comment Return GetDeviceDiagnosisInfo DED.ERROR Input pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData
IoDrvModbusTCP_Diag.GetDeviceErrorAsync (METH) ¶ METHOD GetDeviceErrorAsync : DED.PROC_STATE Returns the device error of the current node; you can also use functionblock GetDeviceError. InOut: Scope Name Type Comment Return GetDeviceErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand Inout eriDeviceError DED.ERROR_INFO error struct Output eError DED.ERROR error code if method fails
IoDrvModbusTCP_Diag.GetDeviceInfo (METH) ¶ METHOD GetDeviceInfo : DED.ERROR Returns the device information of the current node InOut: Scope Name Type Comment Return GetDeviceInfo DED.ERROR Inout deiInfo DED.DEVICE_INFO Device information struct
IoDrvModbusTCP_Diag.GetDeviceState (METH) ¶ METHOD GetDeviceState : DED.DEVICE_STATE Returns the state of the device; if device state is ERROR further information can be read by GetDeviceError InOut: Scope Name Type Comment Return GetDeviceState DED.DEVICE_STATE Output xDiagnosisInfoAvailable BOOL if true, diagnosis info can be read by calling GetDeviceDiagnosisInfo eError DED.ERROR
IoDrvModbusTCP_Diag.GetSpecificDeviceErrorAsync (METH) ¶ METHOD GetSpecificDeviceErrorAsync : DED.PROC_STATE Returns the specific device error of the current node; interpretation is fieldbus-dependent; you can also use functionblock GetSpecificDeviceError InOut: Scope Name Type Comment Return GetSpecificDeviceErrorAsync DED.PROC_STATE Input eCmd DED.PROC_CMD eCommand pData CAA.PVOID Pointer to memory szSize CAA.SIZE Size of memory in bytes where pData is pointing to Output szCount CAA.SIZE Number of Bytes written to pData eError DED.ERROR error code if method fails