ex_modbus v0.1.6 Modbus.Packet

Handle Modbus packet creation and parsing.

Link to this section Summary

Functions

Parse a ModbusTCP response packet

Read status from a contiguous range of coils. starting_address is 0-indexed

Read status from a contiguous range of discrete inputs. starting_address is 0-indexed

Read the contents of a contiguous block of holding registers. starting_address is 0-indexed

Read the contents of a contiguous block of input registers. start_address is 0-indexed

Write a single coil. Possible values are :on and :off

Link to this section Functions

Link to this function

parse_response_packet(packet)

Parse a ModbusTCP response packet

Link to this function

read_coils(starting_address, count)

Read status from a contiguous range of coils. starting_address is 0-indexed.

Link to this function

read_discrete_inputs(starting_address, count)

Read status from a contiguous range of discrete inputs. starting_address is 0-indexed.

Link to this function

read_holding_registers(starting_address, count)

Read the contents of a contiguous block of holding registers. starting_address is 0-indexed.

Link to this function

read_input_registers(starting_address, count)

Read the contents of a contiguous block of input registers. start_address is 0-indexed.

Link to this function

write_multiple_registers(starting_address, data)

Link to this function

write_single_coil(starting_address, status)

Write a single coil. Possible values are :on and :off

Link to this function

write_single_register(starting_address, data)