úÎaà^W<      !"#$%&'()*+,-./0123456789:;None+M$?See: MODBUS Application Protocol Specification V1.1b, section 7ÿœThe function code received in the query is not an allowable action for the server (or slave). This may be because the function code is only applicable to newer devices, and was not implemented in the unit selected. It could also indicate that the server (or slave) is in the wrong state to process a request of this type, for example because it is unconfigured and is being asked to return register values.ÿThe data address received in the query is not an allowable address for the server (or slave). More specifically, the combination of reference number and transfer length is invalid. For a controller with 100 registers, the PDU addresses the first register as 0, and the last one as 99. If a request is submitted with a starting register address of 96 and a quantity of registers of 4, then this request will successfully operate (address-wise at least) on registers 96, 97, 98, 99. If a request is submitted with a starting register address of 96 and a quantity of registers of 5, then this request will fail with Exception Code 0x02 "Illegal Data Address" since it attempts to operate on registers 96, 97, 98, 99 and 100, and there is no register with address 100.ÿÞA value contained in the query data field is not an allowable value for server (or slave). This indicates a fault in the structure of the remainder of a complex request, such as that the implied length is incorrect. It specifically does NOT mean that a data item submitted for storage in a register has a value outside the expectation of the application program, since the MODBUS protocol is unaware of the significance of any particular value of any particular register.lAn unrecoverable error occurred while the server (or slave) was attempting to perform the requested action. ÿ‰Specialized use in conjunction with programming commands. The server (or slave) has accepted the request and is processing it, but a long duration of time will be required to do so. This response is returned to prevent a timeout error from occurring in the client (or master). The client (or master) can next issue a Poll Program Complete message to determine if processing is completed. ëSpecialized use in conjunction with programming commands. The server (or slave) is engaged in processing a long duration program command. The client (or master) should retransmit the message later when the server (or slave) is free. 4Specialized use in conjunction with function codes  and d and reference type 6, to indicate that the extended file area failed to pass a consistency check. ÿSpecialized use in conjunction with gateways, indicates that the gateway was unable to allocate an internal communication path from the input port to the output port for processing the request. Usually means that the gateway is misconfigured or overloaded. ¬Specialized use in conjunction with gateways, indicates that no response was obtained from the target device. Usually means that the device is not present on the network.ÿ]The function code field of a MODBUS data unit is coded in one byte. Valid codes are in the range of 1 ... 255 decimal (the range 128 - 255 is reserved and used for exception responses). When a message is sent from a Client to a Server device the function code field tells the server what kind of action to perform. Function code 0 is not valid.PSub-function codes are added to some function codes to define multiple actions.HSee: MODBUS Application Protocol Specification V1.1b, sections 4.1 and 5ASee: MODBUS Application Protocol Specification V1.1b, section 6.1ASee: MODBUS Application Protocol Specification V1.1b, section 6.2ASee: MODBUS Application Protocol Specification V1.1b, section 6.3ASee: MODBUS Application Protocol Specification V1.1b, section 6.4ASee: MODBUS Application Protocol Specification V1.1b, section 6.5ASee: MODBUS Application Protocol Specification V1.1b, section 6.6ASee: MODBUS Application Protocol Specification V1.1b, section 6.7ASee: MODBUS Application Protocol Specification V1.1b, section 6.8ASee: MODBUS Application Protocol Specification V1.1b, section 6.9BSee: MODBUS Application Protocol Specification V1.1b, section 6.10BSee: MODBUS Application Protocol Specification V1.1b, section 6.11BSee: MODBUS Application Protocol Specification V1.1b, section 6.12BSee: MODBUS Application Protocol Specification V1.1b, section 6.13BSee: MODBUS Application Protocol Specification V1.1b, section 6.14BSee: MODBUS Application Protocol Specification V1.1b, section 6.15BSee: MODBUS Application Protocol Specification V1.1b, section 6.16BSee: MODBUS Application Protocol Specification V1.1b, section 6.17 BSee: MODBUS Application Protocol Specification V1.1b, section 6.18!BSee: MODBUS Application Protocol Specification V1.1b, section 6.19"?See: MODBUS Application Protocol Specification V1.1b, section 5#?See: MODBUS Application Protocol Specification V1.1b, section 5&"MODBUS Application Protocol HeaderASee: MODBUS Application Protocol Specification V1.1b, section 4.1,#MODBUS TCP/IP Application Data UnitASee: MODBUS Application Protocol Specification V1.1b, section 4.14Sends a raw MODBUS command.<.Checks whether the response contains an error.E  !"#$%&'()*+,-./01234PDU function code. PDU data.<567Register starting address.Quantity of registers.8Starting address.Quantity of input registers.9:Register address.Register value.;Register starting addressRegister values to be written=PDU dataParser of resulting 0>?@ABCD<  !"#$%&'()*+,-./0123456789:;<,-./0&'()*+ !"#$% 321456789:;   !"#$%&'()*+,-./01234<56789:;=>?@ABCDE      !"#$%&''()*+,,-./0123456789:;<=>?@ABCDmodbu_CajgygmxR5N8k7AhEJHWD7System.Modbus.TCP MB_ExceptionExceptionResponseDecodeExceptionOtherException ExceptionCodeIllegalFunctionIllegalDataAddressIllegalDataValueSlaveDeviceFailure AcknowledgeSlaveDeviceBusyMemoryParityErrorGatewayPathUnavailable"GatewayTargetDeviceFailedToRespond FunctionCode ReadCoilsReadDiscreteInputsReadHoldingRegistersReadInputRegistersWriteSingleCoilWriteSingleRegisterReadExceptionStatus DiagnosticsGetCommEventCounterGetCommEventLogWriteMultipleCoilsWriteMultipleRegisters ReportSlaveIDReadFileRecordWriteFileRecordMaskWriteRegisterReadWriteMultipleRegisters ReadFIFOQueueEncapsulatedInterfaceTransportUserDefinedCode ReservedCode OtherCodeHeaderhdrTransactionId hdrProtocolId hdrLength hdrUnitIdTCP_ADU aduHeader aduFunctionaduDataUnitId ProtocolId TransactionIdcommand readCoilsreadDiscreteInputsreadHoldingRegistersreadInputRegisterswriteSingleCoilwriteSingleRegisterwriteMultipleRegisters checkResponse withAduData decodeW8s decodeW16s$fExceptionMB_Exception$fSerializeExceptionCode$fSerializeFunctionCode$fSerializeHeader$fSerializeTCP_ADU