MBSlaveParameter (STRUCT) ¶ TYPE MBSlaveParameter : STRUCT InOut: Name Type Initial Comment usiSlaveAddress USINT 1 Slave address in the range between 1 and 247 tSlaveTimeout TIME TIME#1s0ms Time for this Slave to respond. Overrides the Master’s setting, (max 65535ms) dwInstance POINTER TO ModbusSerialSlave 16#0 Stores the instance pointer to this Slave iErrorCounter INT -1 Stores the number of subsequent errors. If Slave never got polled, it is -1
RequestStatus (ENUM) ¶ TYPE RequestStatus : InOut: Name Comment NONE REQUEST_PENDING WAIT_REPLY RECEIVED_DATA ERROR_SEND_COMMAND Unable to Send Command !
File and Project Information ¶ Scope Name Type Content FileHeader creationDateTime date 16.05.2024, 11:50:55 companyName string 3S-Smart Software Solutions GmbH libraryFile IoDrvModbus.library primaryProject True productName CODESYS productProfile CODESYS V3.5 SP16 Patch 3 contentFile IoDrvModbus.clean.json version version 2.0.0.0 ProjectInformation Released bool True LastModificationDateTime date 16.05.2024, 11:50:51 LibraryCategories library-category-list Intern|IoDrivers Author string CODESYS Development GmbH Company CODESYS CompiledLibraryCompatibilityVersion CODESYS V3.5 SP16 DefaultNamespace IoDrvModbus Description See: Description DocFormat reStructuredText Placeholder IoDrvModbus Project IoDrvModbus ServerBuildException ok Title IoDrvModbus Version version 4.4.0.0
Library Reference ¶ This is a dictionary of all referenced libraries and their name spaces. 3SLicense ¶ Library Identification ¶ Placeholder: 3SLicense Default Resolution: 3SLicense, * (3S - Smart Software Solutions GmbH) Namespace: _3S_LICENSE Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: 3SLicense CAA Device Diagnosis ¶ Library Identification ¶ Placeholder: CAA Device Diagnosis Default Resolution: CAA Device Diagnosis, * (CAA Technical Workgroup) Namespace: DED Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CAA Device Diagnosis CAA Types Extern ¶ Library Identification ¶ Placeholder: CAA Types Default Resolution: CAA Types Extern, * (CAA Technical Workgroup) Namespace: CAA Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: CAA Types CmpErrors2 Interfaces ¶ Library Identification ¶ Name: CmpErrors2 Interfaces Version: newest Company: System Namespace: CmpErrors Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpErrors2 Interfaces, * (System) CmpLog ¶ Library Identification ¶ Placeholder: CmpLog Default Resolution: CmpLog, * (System) Namespace: CmpLog Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: CmpLog IoDriver Interfaces ¶ Library Identification ¶ Name: IoDriver Interfaces Version: newest Company: System Namespace: IoDriver_Interfaces Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Interfaces, * (System) IoDriver Parameter Interfaces ¶ Library Identification ¶ Name: IoDriver Parameter Interfaces Version: newest Company: System Namespace: IIoDrvParameter Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDriver Parameter Interfaces, * (System) IoDrvBase ¶ Library Identification ¶ Placeholder: IoDrvBase Default Resolution: IoDrvBase, * (System) Namespace: IoDrvBase Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoDrvBase IoDrvModbusBase ¶ Library Identification ¶ Placeholder: IoDrvModbusBase Default Resolution: IoDrvModbusBase, * (3S - Smart Software Solutions GmbH) Namespace: IoDrvModbusBase Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: True SystemLibrary: False Key: IoDrvModbusBase IoStandard ¶ Library Identification ¶ Placeholder: IoStandard Default Resolution: IoStandard, * (System) Namespace: IoStandard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: IoStandard Standard ¶ Library Identification ¶ Placeholder: Standard Default Resolution: Standard, * (System) Namespace: Standard Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: Standard SysCom ¶ Library Identification ¶ Placeholder: SysCom Default Resolution: SysCom, * (System) Namespace: SysCom Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysCom SysTarget ¶ Library Identification ¶ Placeholder: SysTarget Default Resolution: SysTarget, * (System) Namespace: SysTarget Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTarget SysTime ¶ Library Identification ¶ Placeholder: SysTime Default Resolution: SysTime, * (System) Namespace: SysTime Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTime SysTypes2 Interfaces ¶ Library Identification ¶ Name: SysTypes2 Interfaces Version: newest Company: System Namespace: SysTypes Library Properties ¶ LinkAllContent: False Optional: False QualifiedOnly: False SystemLibrary: False Key: SysTypes2 Interfaces, * (System)
IoDrvModbusBase Library Documentation ¶ Company : CODESYS Title : IoDrvModbusBase Version : 4.4.0.0 Categories : Intern|IoDrivers Namespace : IoDrvModbusBase Author : CODESYS Development GmbH Placeholder : IoDrvModbusBase Description [ 1 ] ¶ Modbus Base Library. Contains common code for Modbus Master drivers. For internal use only. Contents: ¶ IoDrvModbusBase Enums GlobalConstants Serial Indices and tables ¶ [ 1 ] Based on IoDrvModbusBase.library, last modified 16.05.2024, 11:51:43. LibDoc 4.5.0.0 The content file IoDrvModbusBase.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 16.05.2024, 11:51:47.
IoDrvModbusBase ¶ Enums MBFunctionCode (Enum) GlobalConstants MBConstants (GVL) Serial MB_MasterParameter (Struct) MB_SlaveParameter (Struct) ModbusSerialSlaveBase (FunctionBlock) GetNextInitValue (Method) xOldTrigger (Property) xReqError (Property)
Enums ¶ MBFunctionCode (Enum)
MB_AccessTypes (ENUM) ¶ TYPE MB_AccessTypes : InOut: Name READWRITE READ WRITE
MB_ErrorCodes (ENUM) ¶ TYPE MB_ErrorCodes : InOut: Name Initial Comment RESPONSE_SUCCESS 16#0 Everything OK ILLEGAL_FUNCTION 16#1 Slave does not support the function code ILLEGAL_DATA_ADDRESS 16#2 Slave does not support this register offset ILLEGAL_DATA_VALUE 16#3 The value to be written is not valid SLAVE_DEVICE_FAILURE 16#4 Unrecoverable error while performing the request ACKNOWLEDGE 16#5 Notification of a Slave that a lengthy operation being started SLAVE_DEVICE_BUSY 16#6 Notification of a Slave that a lengthy operation is in progress MEMORY_PARITY_ERROR 16#8 Special error for function code 20, 21 GATEWAY_PATH_UNAVAILABLE 16#A Special error when using devices behind a gateway (Gateway misconfigured/busy) GATEWAY_DEVICE_FAILED_TO_RESPOND 16#B Special error when using devices behind a gateway (Device does not respond) RESPONSE_TIMEOUT 16#A1 There was no response in time RESPONSE_CRC_FAIL 16#A2 The checksum of the response is not correct RESPONSE_WRONG_SLAVE 16#A3 The response is not from the expected Slave RESPONSE_WRONG_FUNCTIONCODE 16#A4 The response is not the expected function code REQUEST_FAILED_TO_SEND 16#A5 Local COM Port error. Request was not sent RESPONSE_INVALID_DATA 16#A6 The response contains invalid data RESPONSE_INVALID_PROTOCOL 16#A7 The response is not modbus protocol RESPONSE_INVALID_HEADER 16#A8 Any field of Modbus MBAP (Protocoll, Length) header is invalid INVALID_PARAMETER 16#A9 Any input parameter of the operation is invalid (e.g. data- pointer is not set or FC is not supported by Modbus stack UNDEFINED 16#FF The request’s result is undefined or not yet known, e.g. initial state
MB_Medium (ENUM) ¶ TYPE MB_Medium : InOut: Name RS232 RS485 ETH