tallakt/modbus-cli — Issue #1: Unable to read from PLC Schneider Premium
Author: tallakt
Created: 2011-12-22 07:39:59+00:00
State: open

The following line fails on a Schendier Premium PLC when the range of read variables is too big:

$ modbus read 10.226.212.201 %M0 2000
/usr/local/lib/ruby/gems/1.9.1/gems/rmodbus-1.1.0/lib/rmodbus/slave.rb:262:in `query': The data address received in the query is not an allowable address for the server (ModBus::Errors::IllegalDataAddress)
from /usr/local/lib/ruby/gems/1.9.1/gems/rmodbus-1.1.0/lib/rmodbus/slave.rb:59:in `read_coils'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:115:in `block in read_data_coils'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:114:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:114:in `each_slice'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:114:in `read_data_coils'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:66:in `read_coils'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:85:in `block (2 levels) in execute'
from /usr/local/lib/ruby/gems/1.9.1/gems/rmodbus-1.1.0/lib/rmodbus/client.rb:66:in `with_slave'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:74:in `block in execute'
from /usr/local/lib/ruby/gems/1.9.1/gems/rmodbus-1.1.0/lib/rmodbus/client.rb:39:in `initialize'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:73:in `new'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/lib/modbus-cli/read_command.rb:73:in `execute'
from /usr/local/lib/ruby/gems/1.9.1/gems/clamp-0.3.0/lib/clamp/command.rb:73:in `execute'
from /usr/local/lib/ruby/gems/1.9.1/gems/clamp-0.3.0/lib/clamp/command.rb:64:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/clamp-0.3.0/lib/clamp/command.rb:126:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/modbus-cli-0.0.2/bin/modbus:6:in `'
from /usr/local/bin/modbus:19:in `load'
from /usr/local/bin/modbus:19:in `

'