Limitations - Manual - PLC Control - The SIMATIC AX tool to manage connections to SIMATIC PLCs and run simple PLC operations like stop/run, alarms, diag, and mon/mod. - Connection Sharing And PLC Control Tool,tool

PLC Control CLI Tool (plc-control)

Portfolio
SIMATIC AX
Product
PLC Control
Software version
1.4.3
Edition
10/2025
Language
English (original)
Package Name
@ax/plc-control

CAUTION

In some environments, it is necessary to explicitly control the background server process when using certain shells.

The following limitations and instructions are known for different shells:

  • Bash
    The Bash shell implements its own job control. Hence, it is necessary to apply an ampersand (&) with the first command creating the background server. The ampersand indicates to the Bash shell that the command should run in the background. You can use the trap command to automatically clean up the background server when the script exits:

    apax plc-control connect -t 192.168.0.1 -u myUserName -p myPassword -C ./cert.cer  &
    
    trap "plc-control server-stop --force" EXIT
    
    apax sld load -t 192.168.0.1 -i ./bin/1500 --accept-security-disclaimer
    

    Note

    All scripts in the apax.yml file use the Bash shell.

  • PowerShell
    PowerShell does not support an explicit job control. Therefore, no special operations are required. Additionally, connection sharing is used automatically for scripts here. Each SIMATIC AX online tool is starting the background process for 10 sec. The next online tool will find an open connection and skips the connect command. After 10 sec of idle time, the background process will be automatically stopped.

It is important to consider these limitations when using CI pipelines.

Note

There may be problems releasing the pipeline resources if using connection sharing. So it is advisable to shut down the background process explicitly to avoid any issues.

To avoid any issues, you can set the global environment variable AX_SHARE_CONNECTION to 0.