Skip to main content
Skip table of contents

modbus_send_make(send_data)

Features

When using the Modbus protocol, this command provides the result data including the Modbus CRC16 result for the send data.

Parameter

Parameter NameData TypeDefault ValueDescription

send_data

byte

-

Transfer data requiring CRC calcuation

Return

ValueDescription

result_data

Data in which transmission data and CRC16 value are conbined

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
senddata = b"\x01\x02\x03\x04\x05\x06"
resultdata = modbus_send_make(senddata)
#resultdata = b'\x01\x02\x03\x04\x05\x06\xba\xdd’
JavaScript errors detected

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

If this problem persists, please contact our support.