The monitor file is a text file containing a list of variables (symbols and absolute addresses) that should be monitored. Each line in the file represents a value that should be monitored. These can be either a symbol name or an absolute address from the in/output section.
The filename extension is up to the user.
The following example shows a possible monitor file, which specifies the variables to be monitored.
myBOOL
myINT
myDINT
# this is a comment
# myLINT
mySINT
myUINT
myUDINT
myULINT
# myUSINT
myREAL
myLREAL
myImaginarySymbol
%IW0:sint
%QW0
%MW3:UInt
%I0.1:boll
%Q2.1:BOOL
%M0.1:Bool
%J3.4:Bool
mySimpleArray
myArray[1,2]
myArray[0,*]
myArray[1,2,3]
myArray[1,100]
myArray[*,*]
myMotor
myMotor.is_running
myMotor.power_consumption
myMotor.hours_operating
myConveyor
myConveyor.Motor1.is_running
Save the content to a file in your project called 'variables.mon'.
Start the monitoring with the following command:
apax mon --targetIP 192.168.0.1 --certificate ./cert.cer --password aSecurePassword --file ./variables.mon --continuously