3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish
3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.2 3.2.1 3.2.0 Korean English Chinese Czech Dutch French German Hungarian Italian Japanese Polish Portuguese Spanish

modbus_recv_check()

Definition

modbus_recv_check(recv_data)

Features

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

Parameters

Parameter Name

Data Type

Default Value

Description

recv_data

byte

-

raw modbus data

Return

Value

Description

res

True/False

Exception

Exception

Description

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

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

Keyword

modbus / modbus_recv / recv_check