IoDrvModbusTCP_Diag (FB) ¶ FUNCTION_BLOCK IoDrvModbusTCP_Diag EXTENDS IoDrvModbusTCP IMPLEMENTS DED.IStack InOut: Scope Name Type Initial Inherited from Input xStop BOOL FALSE IoDrvModbusTCP Output xSlaveError BOOL FALSE IoDrvModbusTCP uiConnectedSlaves UINT 0 IoDrvModbusTCP Properties: ChildNodeCount Enable FirstChildNode IsRootNode NextSiblingNode ParentNode SiblingNodeCount Methods: GetBusScanAsync GetDeviceDiagnosisInfo GetDeviceErrorAsync GetDeviceInfo GetDeviceState GetLogger GetSpecificDeviceErrorAsync GetSpecificDeviceState SetCommunicationState Structure: IDevice GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) SetCommunicationState (Method) INode ChildNodeCount (Property) Enable (Property) FirstChildNode (Property) IsRootNode (Property) NextSiblingNode (Property) ParentNode (Property) SiblingNodeCount (Property) IStack GetBusScanAsync (Method) GetLogger (Method)
IDevice ¶ GetDeviceDiagnosisInfo (Method) GetDeviceErrorAsync (Method) GetDeviceInfo (Method) GetDeviceState (Method) GetSpecificDeviceErrorAsync (Method) GetSpecificDeviceState (Method) SetCommunicationState (Method)
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.
GVL (GVL) ¶ InOut: Scope Name Type Initial Constant MAX_IOBUFFER_SIZE UINT 40
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)
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
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 (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)
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