LoggingOptions (ENUM) ¶ TYPE LoggingOptions : Logging options - can be combined with bitwise OR operation to enable specific logging. Attributes: qualified_only InOut: Name Initial Comment None 16#0 Init 16#1 Initialization ServerStartStop 16#2 Start / stop of server ServerDataModel 16#4 Server data model information ServerException 16#8 Server rejected requests with exception ServerExceptionReason 16#10 Server rejected requests with exception, detailed reason ServerReceivedValidRequests 16#20 Server received valid request ServerRequestDetails 16#40 Server received request - details ClientConnectDisconnect 16#80 Client connect / disconnect. ClientReceivedValidReplies 16#100 Client received valid reply ClientReplyDetails 16#200 Client received valid reply - details ClientRequestStateChange 16#400 ClientRequest state changes SendFrames 16#800 Send frame WarnOnReceivedInvalidFrames 16#1000 Warn on invalid frames received ClientTcpSocket 16#2000 Log ClientTcp socket activities ServerTcpSocket 16#4000 Log ServerTcp socket activities SysComOpenClose 16#8000 Log SysCom open/close Internals 16#10000 SysComHandlerStateChange 16#20000 Log SysComHandler state changes All 16#FFFFFFFF
PrimaryTables (ENUM) ¶ TYPE PrimaryTables : PrimaryTables represents the type of the “primary tables” (within the “data model”). Attributes: qualified_only InOut: Name Initial DiscreteInputs 0 Coils 1 InputRegisters 2 HoldingRegisters 3
RtuAscii (ENUM) ¶ TYPE RtuAscii : MODBUS serial RTU vs. ASCII mode. Attributes: qualified_only InOut: Name Initial RTU 0 ASCII 1
SerialSubFunctionCodes (ENUM) ¶ TYPE SerialSubFunctionCodes : Attributes: qualified_only InOut: Name Initial ReturnQueryData 0 RestartCommunicationsOption 1 ReturnDiagnosticRegister 2 ChangeASCIIInputDelimiter 3 ForceListenOnlyMode 4 ClearCountersAndDiagnosticRegister 11 ReturnBusMessageCount 12 ReturnBusCommunicationErrorCount 13 ReturnBusExceptionErrorCount 14 ReturnServerMessageCount 15 ReturnServerNoResponseCount 16 ReturnServerNAKCount 17 ReturnServerBusyCount 18 ReturnBusCharacterOverrunCount 19 ClearOverrunCounterAndFlag 20
ModbusFB Library Documentation ¶ Company : CODESYS Title : ModbusFB Version : 4.4.0.0 Categories : Application|Fieldbus Namespace : ModbusFB Author : CODESYS Development GmbH Placeholder : ModbusFB Description [ 1 ] ¶ MODBUS function block libary, providing server (slave) and client (master) function blocks for MODBUS TCP and MODBUS serial. Contents: ¶ Library Information GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function) ModbusFB Enums Function Blocks GlobalConstants Structs Indices and tables ¶ [ 1 ] Based on ModbusFB.library, last modified 16.05.2024, 11:55:03. LibDoc 4.5.0.0 The content file ModbusFB.clean.json was generated with CODESYS V3.5 SP16 Patch 3 on 16.05.2024, 11:55:07.
Library Information ¶ GetLibVersion (Function) GetLibVersionNumber (Function) IsLibReleased (Function)
GetLibVersion (FUN) ¶ FUNCTION GetLibVersion : VERSION This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersion VERSION
GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD This function has been automatically generated from the project information. InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL This function has been automatically generated from the project information. InOut: Scope Name Type Return IsLibReleased BOOL
ModbusFB ¶ Enums Error (Enum) ExceptionCodes (Enum) FunctionCodes (Enum) LoggingOptions (Enum) PrimaryTables (Enum) RtuAscii (Enum) SerialSubFunctionCodes (Enum) Function Blocks Client Client (FunctionBlock) ClientRequest (FunctionBlock) Client request errors and timeout Client request errors and connection shutdown Timeout default “data item” offset / “data item” numbers ClientRequestMaskWriteRegister (FunctionBlock) ClientRequestRead (FunctionBlock) ClientRequestReadBits (FunctionBlock) ClientRequestReadCoils (FunctionBlock) ClientRequestReadDiscreteInputs (FunctionBlock) ClientRequestReadHoldingRegisters (FunctionBlock) ClientRequestReadInputRegisters (FunctionBlock) ClientRequestReadRegisters (FunctionBlock) ClientRequestReadWriteMultipleRegisters (FunctionBlock) ClientRequestWriteMultiple (FunctionBlock) ClientRequestWriteMultipleCoils (FunctionBlock) ClientRequestWriteMultipleRegisters (FunctionBlock) ClientRequestWriteSingle (FunctionBlock) ClientRequestWriteSingleCoil (FunctionBlock) ClientRequestWriteSingleRegister (FunctionBlock) ClientSerial (FunctionBlock) ClientTCP (FunctionBlock) Server ExampleDataModel (FunctionBlock) Server (FunctionBlock) Supported function codes “data model” “data item” offset / “data item” numbers DataModel CheckDataModel (Method) InitDataModel (Method) LogDataModel (Method) Log LogStatusInfo (Method) ResetRequestStatistics (Method) SupportFc (Method) SupportsFc (Method) ServerSerial (FunctionBlock) Log LogStatusInfo (Method) ServerTCP (FunctionBlock) Log LogStatusInfo (Method) Util ByteBuffer (FunctionBlock) BytesToEnd (Method) Capacity (Method) CopyContent (Method) Equals (Method) Freeze (Method) GetByte (Method) GetData (Method) GetDataPointerAt (Method) GetDataPointerAtPosition (Method) GetNBytes (Method) GetNBytesReverse (Method) GetNWords (Method) GetWord (Method) Init (Method) Len (Method) PutByte (Method) PutNBytes (Method) PutNBytesReverse (Method) PutNWords (Method) PutWord (Method) PutWordAt (Method) Rewind (Method) SetLen (Method) SetPos (Method) SetPosToEnd (Method) GlobalConstants Constants (GVL) Parameter (ParamList) Structs RequestData (Struct) RequestDataDiagnostics (Struct) RequestDataMaskWriteRegister (Struct) RequestDataRead (Struct) RequestDataReadWriteMultipleRegisters (Struct) RequestDataWriteMultiple (Struct) RequestDataWriteSingle (Struct) RequestUnion (Union) SupportedFcs (Struct) TableDefinition (Struct) TableDefinitions (Struct) TableSection (Struct)