Search found 876 matches

by nicolaiB
31 Jan 2024, 19:19
Forum: CODESYS
Topic: Problem with the new runtime
Replies: 3
Views: 1248

Re: Problem with the new runtime

Thanks for letting us know. Probably this will help other users upgrading.

Nicolai
by nicolaiB
31 Jan 2024, 19:18
Forum: Software
Topic: AIO missing decimal point
Replies: 2
Views: 323

Re: AIO missing decimal point

The value in process image is of type integer. Multiplier and Divisor are applied to the same integer feld, thus no decimals If you want to have a float value, I suggest to do the processing in your application.

Nicolai
by nicolaiB
31 Jan 2024, 14:02
Forum: Software
Topic: Real Time Output - Scripts
Replies: 1
Views: 277

Re: Real Time Output - Scripts

You get call piTest with `-1` and it will return asap the value has been printed. I guess the ~45 secs are result of your timer
by nicolaiB
30 Jan 2024, 21:30
Forum: Software
Topic: webpage password not working
Replies: 9
Views: 7929

Re: webpage password not working

The above posted /boot/config.txt gave it away: The dtoverlay=revpi-core is missing, so the device did not know which pins to connect to what. Thus nothing really will work (eg. piSerial which relies on the crypto chip). The overlay is usualy set during factory reset which you might omitted with the...
by nicolaiB
30 Jan 2024, 09:05
Forum: Software
Topic: webpage password not working
Replies: 9
Views: 7929

Re: webpage password not working

Hi

From which version did you upgrade to Bullseye and how?

Looks like the security chip is not initialized. Could you please share the content of dmesg and /boot/config.txt.

Nicolai
by nicolaiB
29 Jan 2024, 12:48
Forum: RevPiModIO
Topic: Incorrect Analog output when using RevPiModIO
Replies: 7
Views: 626

Re: Incorrect Analog output when using RevPiModIO

Which version of revpimodio2 are you using? /etc/revpi/config.rsc should be a symlink to /var/www/pictory/projects/_config.rsc (on Stretch) or /var/www/revpi/pictory/projects/_config.rsc (on Buster and upwards). NOTE: Pictory version 1.4.7 is (very) outdated, thus you must be using an outdated versi...
by nicolaiB
29 Jan 2024, 12:43
Forum: RevPiModIO
Topic: AttributeError: can not find io 'HEATER_V'
Replies: 8
Views: 700

Re: AttributeError: can not find io 'HEATER_V'

Try to set the wordorder import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.io.HEATER_V_HB.replace_io('heater_v', 'H', byteorder='little', wordorder='little') print("value=" + str(rpi.io.heater_v.value)) or import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True...
by nicolaiB
26 Jan 2024, 14:35
Forum: RevPiModIO
Topic: AttributeError: can not find io 'HEATER_V'
Replies: 8
Views: 700

Re: AttributeError: can not find io 'HEATER_V'

Looks like you're using an older image with python3, which does not support f strings. Try:

Code: Select all

import revpimodio2
rpi = revpimodio2.RevPiModIO(autorefresh=True)
rpi.io.HEATER_V_HB.replace_io('heater_v', 'H', byteorder='little')
print("value=" + str(rpi.io.heater_v.value))
by nicolaiB
25 Jan 2024, 21:22
Forum: RevPiModIO
Topic: AttributeError: can not find io 'HEATER_V'
Replies: 8
Views: 700

Re: AttributeError: can not find io 'HEATER_V'

readprocimg is also mentioned in the link above. revpimodio2 provides the handy function replace_io, which can create an virtual IO based on the provided data type. In your example the definition would look something like this: import revpimodio2 rpi = revpimodio2.RevPiModIO(autorefresh=True) rpi.io...
by nicolaiB
25 Jan 2024, 18:59
Forum: RevPiModIO
Topic: AttributeError: can not find io 'HEATER_V'
Replies: 8
Views: 700

Re: AttributeError: can not find io 'HEATER_V'

Hi The warnings are a hint for duplicate variable / devices names. In order to get values from the process image you have to use revpimodio with autorefresh=True or call the read_procimg() method. More details can be found in the API documentation or one the the linked examples: https://revpimodio.o...