RevPiPyPLC (RevPiPyLoad update to 0.6.5)

READ before UPGRADE!!!

The new version uses a new format of the configuration file ! You MUST install ne new file and migrate your settings!

On upgrade process the following message is displayed, which MUST be confirmed with “y“!!!

Setting up revpipyload (0.6.5-1) ...

Configuration file `/etc/revpipyload/revpipyload.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions                                                                                                                                                                                                                        
      Z     : start a shell to examine the situation                                                                                                                                                                                                                           
 The default action is to keep your current version.                                                                                                                                                                                                                           
*** revpipyload.conf (Y/I/N/O/D/Z) [default=N] ? y

After the update, the file /etc/revpipyload/revpipyload.conf must be changed to the previous settings.

NOTE: The old settings can be found in the file /etc/revpipyload/revpipyload.conf.dpkg-old

pi@RevPi0000 ~ $ sudo nano /etc/revpipyload/revpipyload.conf

autoreload = 1
autoreloaddelay = 5
autostart = 1
plcworkdir = /var/lib/revpipyload
plcprogram =
plcarguments =
plcuid = 1000
plcgid = 1000
pythonversion = 3
rtlevel = 0
zeroonerror = 0
zeroonexit = 0

plcslave = 0
aclfile = /etc/revpipyload/aclplcslave.conf
bindip = *
port = 55234

xmlrpc = 0
aclfile = /etc/revpipyload/aclxmlrpc.conf
bindip = *

If you wnat to access the Revolution Pi again via RevPiPyControl, the value  xmlrpc in the [XMLRPC] section must be set to 1.
Note: This value may only be 0 or 1, unlike the previous version!

For access via RevPiPyControl, access authorizations (IPADDRESS,LEVEL) must now be given, same format as PLC Slave.

Access permissions

The access permissions for XMLRPC and PLC-SLAVE are now specified in separate files and can later be managed via RevPiPyControl!

If one or more computers should get access the RevPi via RevPiPyControl, you have to edit the file /etc/revpipyload/aclxmlrpc.conf:

pi@RevPi0000 ~ $ sudo nano /etc/revpipyload/aclxmlrpc.conf

# XML-RPC Access Control List (acl)
# One entry per Line IPADRESS,LEVEL

# All computers in the net can read log files and start/stop the plc program

# The computer has access to all features and settings,4
Access level and its meaning:
  • 0: Start/Stop PLC program and read logs
  • 1: all from 0 + read IOs in watch modus
  • 2: all from 1 + read properties and download PLC program
  • 3: all from 2 + upload PLC program an write IOs in watch modus
  • 4: all from 3 + set properties of RevPiPyLoad
PLC Slave

If the PLC-Slave was used in the old version, the adjustments must be made in the [PLCSLAVE] section. The values of plcslaveacl are copied to the file /etc/revpipyload/aclplcslave.conf (one permission per line!).
These authorizations can also be made later using the graphical tool RevPiPyControl!

After these changes have been made, the service must be restart:

pi@RevPi0000 ~ $ sudo service revpipyload restart

The settings are now valid an access is granted!


You have to use the most resent version of RevPiPyControl! This version is backward compatible and can also configure OLD versions of RevPiPyLoad!

Leave a Reply

Your email address will not be published. Required fields are marked *