Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces.
IoDrvModbusSerialSlave Library Documentation ¶ Company 3S - Smart Software Solutions GmbH Title IoDrvModbusSerialSlave Version 4.1.0.0 Categories Intern|IoDrivers Namespace IoDrvModbusSerialSlaveLibrary Author 3S - Smart Software Solutions GmbH Placeholder IoDrvModbusSerialSlave Description 1 ¶ ModbusSerial Slave IO-driver written in IEC. Contents: ¶ GVL (GVL) IoDrvModbusSerialSlave (FunctionBlock) UpdateComPortSettings (Method) UpdateUnitID (Method) ModbusSerialDeviceDiag (FunctionBlock) UpdateComPortSettings (Method) UpdateUnitID (Method) ModbusServer (FunctionBlock) IsComPortValid (Property) Indices and tables ¶ 1 Based on IoDrvModbusSerialSlave.library, last modified 23.11.2021, 07:08:39. LibDoc 4.4.0.0-b.27 The content file IoDrvModbusSerialSlave.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 23.11.2021, 07:08:39.
IoDrvModbusSerialSlave (FB) ¶ FUNCTION_BLOCK IoDrvModbusSerialSlave EXTENDS IoDrvBase IMPLEMENTS ICmpIoDrvParameter An instance of this function block is generated for each serial Modbus Server device in the device tree. InOut: Scope Name Type Initial Comment Input xEnable BOOL TRUE TRUE : start operation, open Com-Port Output xOnline BOOL Com Port opened, receives data xBusy BOOL operating xInternalError BOOL FALSE ComPort errors or licence not ok ErrorCode UDINT error code Methods: UpdateComPortSettings UpdateUnitID Structure: UpdateComPortSettings (Method) UpdateUnitID (Method)
GVL (GVL) ¶ InOut: Scope Name Type Initial Constant MAX_IOBUFFER_SIZE UINT 40
IoDrvModbusSerialSlave.UpdateComPortSettings (METH) ¶ METHOD UpdateComPortSettings : UDINT Update the configured Com-Port settings of the Modbus Server. Only possible if server is disabled (see xEnable Input). InOut: Scope Name Type Initial Comment Return UpdateComPortSettings UDINT Input ComPort INT 0 Number of the COM Port to use Baudrate UDINT 19200 1200, 2400, 4800, …, 115000 bps Parity COM_Parity COM_Parity.SYS_EVENPARITY EVEN:=2, ODD:=1 or NONE:=0
ModbusSerialDeviceDiag (FB) ¶ FUNCTION_BLOCK ModbusSerialDeviceDiag EXTENDS CAADiagDeviceDefault An instance of this function block function block is generated for each serial Modbus Server device in the device tree. InOut: Scope Name Type Initial Comment Input xEnable BOOL TRUE TRUE : start operation, open Com-Port Output xOnline BOOL Com Port opened, receives data xBusy BOOL operating xInternalError BOOL FALSE ComPort errors or licence not ok ErrorCode UDINT error code Methods: UpdateComPortSettings UpdateUnitID Structure: UpdateComPortSettings (Method) UpdateUnitID (Method)
IoDrvModbusSerialSlave.UpdateUnitID (METH) ¶ METHOD UpdateUnitID : UDINT Update the configured address of the Modbus Server. Only possible if server is disabled (see xEnable Input). InOut: Scope Name Type Return UpdateUnitID UDINT Input UnitID BYTE
ModbusSerialDeviceDiag.UpdateComPortSettings (METH) ¶ METHOD UpdateComPortSettings : UDINT Update the configured Com-Port settings of the Modbus Server. Only possible if server is disabled (see xEnable Input). InOut: Scope Name Type Initial Comment Return UpdateComPortSettings UDINT Input ComPort INT 0 Number of the COM Port to use Baudrate UDINT 19200 1200, 2400, 4800, …, 115000 bps Parity COM_Parity COM_Parity.SYS_EVENPARITY EVEN:=2, ODD:=1 or NONE:=0
ModbusSerialDeviceDiag.UpdateUnitID (METH) ¶ METHOD UpdateUnitID : UDINT Update the configured address of the Modbus Server. Only possible if server is disabled (see xEnable Input). InOut: Scope Name Type Return UpdateUnitID UDINT Input UnitID BYTE
ModbusServer (FB) ¶ FUNCTION_BLOCK ModbusServer InOut: Scope Name Type Initial Comment Input byUnitID BYTE wPort: WORD:= 502; // Modbus server port - 502 is Modbus default comPortSettings ComSettings Comport Settings pInputData POINTER TO WORD Input Registers pOutputData POINTER TO WORD Holding Registers uiInputDataSize UINT Size in words of Input Register data area uiOutputDataSize UINT Size in words of Holding Register data area xEnable BOOL FALSE Flag to enable execution - default is FALSE xReset BOOL FALSE Flag to reset - default is FALSE tTimeout UDINT 0 Modbus Write timeout, resets outputs if passed EOFDetectionTimeout UDINT 0 Timeout for end of frame detection (in micro-seconds!), if not set the default of (3.5 char times is used) Output xError BOOL FALSE Properties: IsComPortValid Structure: IsComPortValid (Property)