<< Click to Display Table of Contents >> Navigation: Modbus Universal MasterOPC Server > MasterOPC Universal Modbus Server > The Run-Time Mode > The Server Log |
The server log is written to the file ..\SERVERLOGS\Server.log.
Parameters of the server log are set in the configuration mode (see The Dialog of Server Parameters ).
If the log file is overfilled, next records are written starting from the log beginning (the most old records are overwritten, that is, are lost).
When switching to the run-time mode (see Operation Modes ), the server creates the empty file Server.log (the previous log is eliminated).
Time is written to the log accurate within 1 ms. The following parameters are written into the log as well: time elapsed for request creation, waiting for a reply, and reply analysis.
Let's view a log below.
[30.01.2017 10:16:34.040] Inf : Node1.Device1:Start of device poll
[30.01.2017 10:16:34.045] TRACE : (COM13) Tx: [0008] 01 03 00 00 00 05 85 C9
[30.01.2017 10:16:34.160] TRACE : (COM13) Rx: [0015] 01 03 0A 00 0A 00 14 00 1E 00 28 00 32 A7 C8
[30.01.2017 10:16:34.162] Inf : Node1.Device1:Stop of device poll (t = 121 ms) (H5 4,110,5 )
Start of device poll:
[30.01.2017 10:16:34.040] Inf : Node1.Device1:Start of device poll
Request to read the device 1, the region is Holding Registers (the function 0x03), start address is 0, number of registers requested is 5, and 2 bytes of check sum at the end:
[30.01.2017 10:16:34.045] TRACE : (COM13) Tx: [0008] 01 03 00 00 00 05 85 C9
Device reply:
[30.01.2017 10:16:34.160] TRACE : (COM13) Rx: [0015] 01 03 0A 00 0A 00 14 00 1E 00 28 00 32 A7 C8
Reply from the address 01, poll is performed by the function 03, number of bytes received is 10 (0x0A), 10 bytes of data (00 0A 00 14 00 1E 00 28 00 32), and a check sum.
Analysis of the request received:
[30.01.2017 10:16:34.162] Inf : Node1.Device1:Stop of device poll (t = 121 ms) (H5 4,110,5 )
Total time elapsed for device poll is 121 ms. Next, each request stage is analyzed in details - (H5 4,110,5 ). Here:
H5 - number of registers requested in a region (Holding Registers - 5 registers)
4 - number of milliseconds elapsed for preparing a request by the server
110 - number of milliseconds when waiting a device reply
5 - number of milliseconds when analyzing a device reply