Skip to main content
Skip table of contents

modbus_recv_check(recv_data)

Features

When using Modbus protocol, this command to check data integrity using CRC16 value for receive data.

Parameter

Parameter NameData TypeDefault ValueDescription

recv_data

byte

-

raw modbus data

Return

ValueDescription

res

True/False

Exception

ExceptionDescription

DR_Error (DR_ERROR_TYPE)

Parameter data error occurred

DR_Error (DR_ERROR_VALUE)

Parameter value is invalid

DR_Error (DR_ERROR_RUNTIME)

C Extension module error occurred

DR_Error (DR_ERROR_STOP)

Program terminated forcefully

Example

PY
#recvdata = b”\x01\x02\x03\x04\x05\x06\xba\xdd”
res = modbus_recv_check(recvdata)
#recv = True
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.