Command Mon - Manual - PLC Control - The SIMATIC AX tool to manage connections to SIMATIC PLCs and run simple PLC operations. - Connection Sharing And PLC Control Tool,tool

PLC Control CLI Tool (plc-control)

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

NOTE: this command is only available with the license COCREATION.

monitor variables of the application on the PLC, single shot as well as continuously.
apax plc-control mon [-t <target>] <options>
For example
apax plc-control mon myVar1 myVar2 myVar3
apax plc-control mon -t myPlc myVar1
apax plc-control mon -t 192.168.0.1 myVar1
!!! note If you misspells the _PLC alias_ you will get the error 'Not a valid variable name'. It cannot be distinguished whether the first name is an alias or a variable name. For details of variable names see [mon documentation](https://docs.industrial-operations-x.siemens.cloud/access?ax:packageName=%40ax%2Fmon&ft:topicTitle=Usage+example&ax:filepath=example). The [limitations](https://docs.industrial-operations-x.siemens.cloud/access?ax:packageName=%40ax%2Fmon&ft:topicTitle=Limitations&ax:filepath=limitations) of the `mon` tool apply here too. > TIP: if you want the values alone set the logging level to warning with '--log warning'. #### Options | Option | Description | | ------------------------ | ---------------- | | **_-t, --target_** | PLC alias name or IPv4 address of the target.
If only a single alias is configured the option can be omitted. | | **_variables_** | the names of variables. | | **_-i, --input_** | the path to a monitor file: all variables in the files are added to the output. | | **_--format_** | the output format. Supported values are `HumanReadable`, `Json` or `Yaml`. `HumanReadable` is the default. | | **_-c, --continuous_** | continuous operation: the values are displayed until the tool is stopped with 'x' or ^C. |