tallakt/modbus-cli — Issue #2: Unable to read last coils on Schneider Premium
Author: tallakt
Created: 2011-12-22 07:42:55+00:00
State: open

The following line fails on PLC with 2500 bits memory

```ruby
$ modbus read 10.226.212.201 %M2400 1
%M2400 0

$ modbus read 10.226.212.201 %M2400 100
/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_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 `

'

```