error 2 for modbus_read_input_bits & modbus_read_input_registers

46 views
Skip to first unread message

giorgio foga

unread,
Mar 7, 2016, 12:07:13 PM3/7/16
to libmodbus
In fatek plc RS485 obtain error cod. 2 on request modbus_read_input_bits or modbus_read_input_registers .... other reading operation are performed ok (coils and holding)...... modbus_read_input_registers in fatek plc not existing so the error is normal but reading from register 1001 return these strange error MODBUS_EXCEPTION_ILLEGAL_DATA_ADDRESS (2).

Sorry .... I'm on ubuntu 14.04 kernel 3.19 lowlatency ... libmodbus from repo.

Other similar issue ??

regards
Giorgio

giorgio foga

unread,
Mar 7, 2016, 12:09:44 PM3/7/16
to libmodbus


Il giorno lunedì 7 marzo 2016 18:07:13 UTC+1, giorgio foga ha scritto:
In fatek plc RS485 obtain error cod. 2 on request modbus_read_input_bits or modbus_read_input_registers .... other reading operation are performed ok (coils and holding)...... modbus_read_input_registers in fatek plc not existing so the error is normal but reading from register 1001 return these strange error MODBUS_EXCEPTION_ILLEGAL_DATA_ADDRESS (2).

Sorry .... I'm on ubuntu 14.04 kernel 3.19 lowlatency  64bit ... libmodbus from repo.

giorgio foga

unread,
Mar 8, 2016, 5:37:34 AM3/8/16
to libmodbus
ok FATEK support inform me about that:

B1 plc isn't able to read multiple input_bit with 0x02 command .....is possible only with 1 command and only for one input at time.

SOLVED.
Reply all
Reply to author
Forward
0 new messages