Thanks all to this really nice thread. Helped me a lot to setup my new LS 13-B and it works.
Software-Version: 0202038212
Any one an idea why the following registers don’t work?
Mainly I am interested in the JAZ and so I think I require the hidden registers 3670x.
I only noticed that the following registers don’t work for me:
- WP_E1_Status (34104)
- WP_E2_Status (34105)
- WP_E1_Stunden (34106)
- WP_E2_Stunden (34107)
and the hidden registers:
- WPST_Elektrisch_Tag (36701)
- WPST_Elektrisch_Monat (36703)
- WPST_Elektrisch_Jahr (36704)
I tried with a raw python client to retrieve the 3670x register, but there are also wrong messages returned:
Python-Code:
WWP = ModbusClient(host='192.168.1.93', port=502, debug=True, timeout=5.0)
result = WWP.read_input_registers(36701, slave=1)
print(result.registers)
Output:
DEBUG:pymodbus.logging:Connection to Modbus server established. Socket ('192.168.1.88', 61813)
DEBUG:pymodbus.logging:Current transaction state - IDLE
DEBUG:pymodbus.logging:Running transaction 1
DEBUG:pymodbus.logging:SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x4 0x8f 0x5d 0x0 0x1
DEBUG:pymodbus.logging:New Transaction state "SENDING"
DEBUG:pymodbus.logging:Changing transaction state from "SENDING" to "WAITING FOR REPLY"
DEBUG:pymodbus.logging:Changing transaction state from "WAITING FOR REPLY" to "PROCESSING REPLY"
DEBUG:pymodbus.logging:RECV: 0x0 0x1 0x0 0x0 0x0 0x5 0x1 0x84 0x2
DEBUG:pymodbus.logging:Processing: 0x0 0x1 0x0 0x0 0x0 0x5 0x1 0x84 0x2
DEBUG:pymodbus.logging:Frame check failed, ignoring!!
DEBUG:pymodbus.logging:Resetting frame - Current Frame in buffer - 0x0 0x1 0x0 0x0 0x0 0x5 0x1 0x84 0x2
DEBUG:pymodbus.logging:Getting transaction 1
DEBUG:pymodbus.logging:Changing transaction state from "PROCESSING REPLY" to "TRANSACTION_COMPLETE"
Traceback (most recent call last):
File "D:\testmodbus.py", line 39, in <module>
readInputAndPrint(36701)
File "D:\testmodbus.py", line 19, in readInputAndPrint
print(result.registers)
^^^^^^^^^^^^^^^^
AttributeError: 'ModbusIOException' object has no attribute 'registers'