Skip to content
Start free evaluation

Ten-minute first run

In ten minutes you confirm that the package you received communicates. You run two programs on the same computer and connect them over the loopback address (127.0.0.1), so you don’t need any equipment.

  1. Compare the SHA-256 hash of the file with the value you received:

    터미널 창
    shasum -a 256 <package file> # macOS
    sha256sum <package file> # Linux

    In Windows PowerShell, use Get-FileHash <package file> -Algorithm SHA256.

  2. Extract it into a new folder whose path has no spaces. Install the SDK describes the folder layout and the environment setup.

bin/pdcomm-tutorial in the SECS/GEM package is a prebuilt example. Run it as equipment in one terminal and as host in another, and the two establish an HSMS connection and exchange equipment information and variable values.

  1. On Linux, go to the package folder in each terminal and set the library path. On Windows, run $env:PATH = "$PWD\sdk\lib;$env:PATH" instead.

    터미널 창
    export LD_LIBRARY_PATH="$PWD/sdk/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

    The example uses the SDK, so it needs a license. In both terminals, set the path of the evaluation license file you received. On Windows, use $env:PDCOMM_LICENSE_FILE = "<file path>". Install and check a license has the details.

    터미널 창
    export PDCOMM_LICENSE_FILE="$HOME/pdcomm/pdcomm.license"
  2. In terminal 1, start the equipment in passive mode. It waits for a connection on 127.0.0.1:5000.

    터미널 창
    bin/pdcomm-tutorial equipment passive 127.0.0.1:5000 --auto
  3. In terminal 2, start the host in active mode:

    터미널 창
    bin/pdcomm-tutorial host active 127.0.0.1:5000 --auto

    With --auto, the host sends the establish-communication (S1F13), equipment-identity (S1F1), and variable-value (S1F3) requests on its own and then exits. Both terminals end with PASS tutorial … and exit code 0:

    PASS tutorial host active

If another program uses port 5000, change both commands to the same free port.

After the first exchange works, connect a program you build yourself to a simulator in the product quickstart:

Product Next page
SECS/GEM SECS/GEM quickstart
Modbus Modbus quickstart
MQTT MQTT quickstart
OPC UA OPC UA quickstart
Virtual serial ports Tools quickstart