Thank you very much. Understanding how to reset the variable in Python has fixed the issue.
Increasing the action timeout to 2200ms has fixed the timeout issue which makes the rtu minimal time to be greater than 60ms. This forum post has helped: viewtopic.php?t=943
Search found 47 matches
- 30 Jan 2024, 17:35
- Forum: RevPiModIO
- Topic: Unable to reset Modbus Status variable using Python
- Replies: 2
- Views: 8961
- 29 Jan 2024, 20:50
- Forum: RevPiModIO
- Topic: Unable to reset Modbus Status variable using Python
- Replies: 2
- Views: 8961
Unable to reset Modbus Status variable using Python
Hi, I noticed I was getting a Status code of 110 on some of the Modbus values. This means a timeout according to this link: https://revolutionpi.com/tutorials/modbus/revpi-core-modbusrtu-master-turorial Currently the action interval is set to 1000ms. I tried to do this to reset the code: rpi.io[&quo...
- 29 Jan 2024, 18:34
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Re: Incorrect Analog output when using RevPiModIO
Thank you very much. That has helped a lot!
- 29 Jan 2024, 15:32
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Re: Incorrect Analog output when using RevPiModIO
I have narrowed down why there is a difference between python and piTest and I think there is a bug with the library. The issue is when there is a multiplier of 25, Divisor: 8, Offset: -12500 piTest: 36018 python: -29518 There is no issue with multiplier of 1, Divisor: 1, Offset: -12500 piTest: 3018...
- 29 Jan 2024, 13:44
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Re: Incorrect Analog output when using RevPiModIO
Hi, I am planning to upgrade to Buster, but first I need to update the image and ensure everything works including reading IO. So this is a temporary transition period. Thank you for your continued help in getting the IOs working. Symbolic link has been fixed with: sudo ln -s /var/www/pictory/projec...
- 26 Jan 2024, 19:48
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Re: Incorrect Analog output when using RevPiModIO
2024-01-26_18-47.png It looks like there is no symbolic link. I am using Pictory 1.4.7 Does fixing this also fix these warnings? 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...
- 26 Jan 2024, 19:20
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Re: Incorrect Analog output when using RevPiModIO
I wonder if RevPiModIO is not using the correct config.rsc file. How would I correct this?
Any changes I make to the Pictory configuration e.g. Multipliers are not making any changes to piTest.
Any changes I make to the Pictory configuration e.g. Multipliers are not making any changes to piTest.
- 26 Jan 2024, 19:14
- Forum: RevPiModIO
- Topic: Incorrect Analog output when using RevPiModIO
- Replies: 7
- Views: 12153
Incorrect Analog output when using RevPiModIO
I am getting different values when using piTest and RevPiModIO. The output of piTest is the correct one. There has been some manipulations performed in Pictory: 2024-01-26_18-41.png 2024-01-26_18-12_1.png pi@RevPi17663:~ $ piTest -r MF1_TEMP 2 Byte-Value of MF1_TEMP: 38056 dez (=94a8 hex) 2 Byte-Val...
- 26 Jan 2024, 16:52
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 11676
Re: AttributeError: can not find io 'HEATER_V'
Actually I managed to make it work. Is there a more elegant method using the RevPiModIO library? vars = { "HEATER_V" : "MBFLOAT", } for varname,type in vars.items(): high_byte = rpi.io[varname+"_HB"].value low_byte = rpi.io[varname+"_LB"].value value = (struct...
- 26 Jan 2024, 16:43
- Forum: RevPiModIO
- Topic: AttributeError: can not find io 'HEATER_V'
- Replies: 8
- Views: 11676
Re: AttributeError: can not find io 'HEATER_V'
Hi, Thanks for your help, but I am not able to read the expected data. I have tried all of the formats e.g. float, double etc. I am not able to unpack the bytes as a float. Page 9 describes this: https://cdn.shopify.com/s/files/1/0558/1039/2117/files/SPC_-_SDM120_PROTOCOL.pdf?v=1659968620 The replac...