Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Transaction identifier starts at 1 instead of 0 so my device doesn't want to answer #64

@fizgig10

Description

@fizgig10
ModBus::TCPClient.connect('192.168.1.38', 502) do |cl|
	cl.with_slave(1) do |slave|
		puts slave.holding_registers[933..934].to_s
	end
end

This sends the perfect request to my device except, like the title states, it starts with transaction id 1. For some reason, the device only answers id 0 requests. Is there a way to force rmodbus to start at 0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions