See the errors and warnings.
Code: Select all
import revpimodio2
import time
rpi = revpimodio2.RevPiModIO()
vars = {
b"HEATER_V" : "MBFLOAT",
b"HEATER_I" : "MBFLOAT",
b"HEATER_P" : "MBFLOAT",
b"FAN_V" : "MBFLOAT",
b"FAN_I" : "MBFLOAT",
b"FAN_P" : "MBFLOAT",
b"TEMP_SET_PT" : "MBINT",
b"TEMP_PV" : "MBINT",
b"OVER_HEAT" : "MBINT",
b"MF1_TEMP" : "AI/1000",
b"MF1_FLOW" : "AI/1000",
b"MF2_TEMP" : "AI/1000",
b"MF2_FLOW" : "AI/1000",
b"FAN_CP" : "AI",
b"FAN_SP" : "AI/100",
b"TEMP_MON" : "AI/100",
b"RPI_TEMP" : "SYSINT",
}
print(rpi.io.HEATER_V_HB.value)
print(rpi.io.HEATER_V_LB.value)
#for varname,type in vars.items():
#print("var name: ", varname, ", type: ", type)
I just get Zeros with a lot of warnings:
Code: Select all
pi@RevPi17663:~ $ python3 test.py
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'HEATER_V_STATUS_RESET', as an io already exists at the address '358 Bit 0'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'HEATER_I_STATUS_RESET', as an io already exists at the address '358 Bit 1'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'HEATER_P_STATUS_RESET', as an io already exists at the address '358 Bit 2'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'TEMP_PV_STATUS_RESET', as an io already exists at the address '358 Bit 3'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'TEMP_SET_PT_STATUS_RESET', as an io already exists at the address '358 Bit 4'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'FAN_V_STATUS_RESET', as an io already exists at the address '358 Bit 5'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'FAN_I_STATUS_RESET', as an io already exists at the address '358 Bit 6'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'FAN_P_STATUS_RESET', as an io already exists at the address '358 Bit 7'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'OVER_HEAT_STATUS_RESET', as an io already exists at the address '359 Bit 0'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_10', as an io already exists at the address '359 Bit 1'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_11', as an io already exists at the address '359 Bit 2'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_12', as an io already exists at the address '359 Bit 3'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_13', as an io already exists at the address '359 Bit 4'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_14', as an io already exists at the address '359 Bit 5'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_15', as an io already exists at the address '359 Bit 6'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/io.py:303: Warning: ignore io 'Action_Status_Reset_16', as an io already exists at the address '359 Bit 7'. this can be caused by an incorrect pictory configuration.
Warning,
/usr/lib/python3/dist-packages/revpimodio2/modio.py:426: Warning: equal device name 'RevPi AIO' in pictory configuration. you can access this devices by position number .device[30|31] only!
Warning,
0
0
This is the output of piTest:
pi@RevPi17663:~ $ piTest -r HEATER_V_HB
2 Byte-Value of HEATER_V_HB: 17262 dez (=436e hex)
2 Byte-Value of HEATER_V_HB: 17262 dez (=436e hex)
2 Byte-Value of HEATER_V_HB: 17262 dez (=436e hex)