Redirect Output - Manual - Monitor - The SIMATIC Monitor. Enables you to monitor global variables on your PLC. - Monitor (mon),tool

Monitor CLI Tool (mon)

Portfolio
SIMATIC AX
Product
Monitor
Software version
1.6.5
Edition
01/2025
Language
English (original)
Package Name
@ax/mon

To be able to access the monitored data within a third party tool, you can redirect the the output to a file or use it as input stream for another application.

The following command will redirect the monitor output data to the file 'MonitorData.json':

apax mon --targetIP 192.168.0.1 --certificate ./cert.cer --password aSecurePassword --symbols "myBool" --output json  --continuously >> MonitorData.json

After executing the command the file 'MonitorData.json' will contain json objects that represents the history of the variable 'myBool'. The monitoring can be ended by pressing the key 'x' on the keyboard.