Skip to main content

"Virtual Playground" Scenario: vPLC + License Server + Edge Gateway

_rtsl_img_scenario_virtual_playground.png

Requirements

  • Hardware

    The following devices are also required:

    • Desktop PC with CODESYS installed

    • Linux PC (with Docker or Podman, Python3, and SSH access installed), referred to here as "Linux Host PC".

    The following add-on products must be installed on the desktop PC (with CODESYS installed):

    • CODESYS Virtual Edge Gateway for Linux.

    • CODESYS Virtual Control for Linux SL

    • CODESYS License Server for Linux SL

Linux Host PC

  1. Execute the command ToolsDeploy Control SL and establish a connection to the Linux Host PC (Communication tab).

    For more information, see: Establishing a Connection

  2. Install the latest versions of the following packages/images (Deployment tab):

    • CODESYS Virtual Edge Gateway for Linux

    • CODESYS Virtual Control for Linux SL

    • CODESYS License Server for Linux SL

    For more information, see: Installing an image

    Tip

    The license server can also be installed and run on a different host system (requirement: Linux operating system). Communication from the Linux Host PC to the license server takes place via the TCP/IP protocol.

  3. Create the required instances and configure them.

    Instances for the gateway and the PLC(s) are required on the Linux Host PC. On the Operation tab, create the instance as follows:

    Procedure. Installing the instance for the gateway
    1. In the VPLCs section, click the _visu_icon_plus.png button.

      The Add New Instance dialog opens.

    2. In the Name field, specify a name (example: vGateway).

    3. In the Filter list box, select the Gateway value.

    4. Select latest version of the CODESYS Virtual Edge Gateway for Linux image.

    5. Then click OK.

      The new instance is listed in the VPLCs section.

    Procedure. Installing the instance for vPLC(s)
    1. In the VPLCs section, click the _visu_icon_plus.png button.

      The Add New Instance dialog opens.

    2. In the Name field, specify a name (example: vPLC1).

    3. In the Filter list box, select the Runtime value.

    4. Select the latest version of the CODESYS Virtual Control for Linux SL image.

    5. Then click OK.

      The new instance is listed in the VPLCs section.

    6. Under License server, specify the IP address of the license server. In the example shown, this is the IP address of the Linux Host PC.

    7. Click Save to confirm the change.

      The settings are applied on the Linux Host PC.

    8. Optional: Repeat these steps for additional vPLC instances.

    For more information, see "Creating instances".

  4. Start the virtual instances.

    In the VPLCs section, click the _prf_icon_start.png Start All button to start all instances.

    In the State column, the status of all virtual instances changes to Running.

From now on, the running virtual PLC instances can be accessed and programmed like normal PLCs via CODESYS. The connection is established via the "vGateway " which has been set up.

Note

Without a valid license, the PLCs run in demo mode (2hr runtime).

Installing licenses

Licenses for operating the PLC(s) can be obtained from CODESYS Store International and installed on the license server.

For more information, see: Activating the network license