rPLC Home rPLC

    How to deploy Beremiz Runtime to control coupler over OPC UA using SlapOS

    Step by step instructions for deploying a deploy Beremiz Runtime to control couplers over OPC UA using SlapOS
    • Last Update:2024-07-04
    • Version:001
    • Language:en

    Agenda

    • Supply Beremiz runtime software on an edge server
    • Request a Beremiz runtime software instance on an edge server
    • Start and stop Beremiz runtime

    Requirements

    Goal

    This how to explains how to setup a Beremiz runtime using SlapOS on an edge server which you can use in automation projects.

    Supply Beremiz runtime software on an edge server

    Step 1: Supply via SlapOS Panel

    1. Login to the panel and click on Servers (c)
    2. Select the machine on which you want to supply the Beremiz runtime

    Step 2: Supply via SlapOS Panel (continued)

    1. Click on the Supply button.

    Step 3: Supply via SlapOS Panel (continued)

    1. Select Beremiz runtime.

    Step 4: Supply via SlapOS Panel (continued)

    1. Choose the newest version.

    Step 5: Supply via SlapOS Panel (continued)

    1. Click on Proceed.
    2. Wait until the compilation process has finished.

    Step 6: Monitor compilation

    You can monitor the process on the respective machine by running

    tail -f /opt/slapos/log/slapos-node-software.log

    Request a Beremiz runtime software instance on an edge server

    Once Beremiz runtime software release is installed in order to use it we need a Beremiz instance. For the moment this instance does not need any configuration thus using defaults is good enough for a start.

    Step 1: Request via SlapOS Panel

    1. Go to the SlapOS dashboard and click on the Services (l) button. 
    2. Click on the "Add" button

    Step 2: Request via SlapOS Panel (continued)

    1. Select "Beremiz runtime".

    Step 3: Request via SlapOS Panel (continued)

    1. Pick the newest version.

    Step 4: Request via SlapOS Panel (continued)

    1. Don't forget to correctly fill in your computer reference and instance name.
    2. In "Parameters" form we define the URL to the archived PLC program, in this case it is the basic one which increments a count at rPLC coupler running on localhost. The PLC program is here.
    3. Click Proceed to request the instance.

    Step 5: Monitor instantiation

    You can monitor the process on the respective machine by running

    tail -f /opt/slapos/log/slapos-node-instance.log

    Step 6: View Beremiz runtime Instance

    1. This step can take some time.  
    2. In your SlapOS dashboard you can see you newly requested instance.
    3. Instance is ready when the the Monitoring Status is green.

    Start and stop the Beremiz runtime

    Once your instance is ready you will see following (it might be different in your case) SlapOS processes on your edge server.

    Using proper start and stop arguments of "slapos node" command one can respectively start and stop beremiz runtime process.

    Success

    Your Beremiz runtime is running in background your PLC project.