Using the ADS monitor

The TwinCAT ADS monitor is divided into two applications. The AMS logger records the AMS commands, while the AMS viewer displays the recorded data or can be used to control the AMS logger remotely.

The AMS logger is called up and configured with the program tcamslog. Additional parameters can be used determine the maximum size of the log file or whether a ring buffer should be used, for example.

ADS monitor, parameters of the tcamslog application.

Parameter

Description

-l

listen
Waits for an AMS viewer connection.

-p

port
Port for the AMS viewer connection. Standard: 0xbf12/48914

-c

capture
Starts logging AMS commands.

-f

file
Name of the log file. Standard: ams.cap

-d

dir
Directory in which the log file is stored. The default is the current directory.

s-

size
Maximum size of the log file. Standard: 15 MB

r-

ringbuffer
Enabled by default. The log is distributed over two or more files.

Proceed as follows:

1. Enter the command tcamslog -c -r -s 20 -f testlog in the console to record AMS commands.
2. The parameters used in the sample determine the size [-s], the file name [-f] and the use of the ring buffer [-r].
In the next step, load the recorded AMS commands into the AMS viewer to analyze the log file.