How to activate additional traces
Additional, specific, traces can be generated in the Event Viewer, and hence the Trace.Log file, using the SCADA Basic instruction TRACE.
Use of additional traces can affect PcVue performances and they may cause display and storage of sensitive information. If you enable any of the optional traces, they should be disabled once the issue has been diagnosed and resolved. And you must make sure diagnostics trace files are deleted securely if need be.
For the Variable Manager
| Bit 0 |
Error level 0 |
Trace( 1, 5, “1”); |
| Bit 1 |
Error level 1 |
Trace( 1, 5, “2”); |
| Bit 6 |
Source switch local/external |
Trace( 1, 5, “40”); |
| Bit 7 |
Subscribe/Unsubscribe |
Trace( 1, 5, “80”); |
| Bit 8 |
Recipe |
Trace( 1, 5, “100”); |
| Bit 9 |
Flow regulation, more detail |
Trace( 1, 5, “200”); |
| Bit 10 |
Flow Regulation |
Trace( 1, 5, “400”); |
| Bit 16 |
Subscribe response |
Trace( 1, 5, “10000”); |
| Bit 24 |
Trace writes of variable |
Trace( 1, 5, “1000000”); |
For the LAN Manager
| Bit 0 |
Error level 0 |
Trace( 1, 3, “1”); |
| Bit 1 |
Error level 1 |
Trace( 1, 3, “2”); |
| Bit 3 |
Disconnection and request of connection |
Trace( 1, 3, “8”); |
| Bit 4 |
Watchdog message from client connection |
Trace( 1, 3, “10”); |
| Bit 6 |
Packet size above 64k |
Trace( 1, 3, “40”); |
| Bit 7 |
Flow regulation, Xon/Xoff |
Trace( 1, 3, “80”); |
| Bit 8 |
Send subscribe and regulation |
Trace( 1, 3, “100”); |
| Bit 9 |
Send subscribe, more details |
Trace( 1, 3, “200”); |
| Bit 10 |
Receive subscribe and regulation |
Trace( 1, 3, “400”); |
| Bit 11 |
Distributed bad quality trend counter |
Trace( 1, 3, “800”); |
| Bit 12 |
Sent packet waiting for acknowledgment |
Trace( 1, 3, “1000”); |
| Bit 13 |
Received packet to be acknowledged |
Trace( 1, 3, “2000”); |
| Bit 16 |
Sent packet |
Trace( 1, 3, “10000”); |
| Bit 17 |
Sent packet, more details |
Trace( 1, 3, “20000”); |
| Bit 18 |
Received packet |
Trace( 1, 3, “40000”) |
| Bit 19 |
Received packet, more details |
Trace( 1, 3, “90000”); |
| Bit 20 |
Winsock receive API |
Trace( 1, 3, “100000”); |
| Bit 21 |
WinSock connect |
Trace( 1, 3, “200000”); |
| Bit 23 |
Miscellaneous |
Trace( 1, 3, “800000”); |
| Bit 24 |
Receive |
Trace( 1, 3, “1000000”); |
| Bit 26 |
System variables |
Trace( 1, 3, “4000000”); |
| Bit 29 |
NetBIOS request |
Trace( 1, 3, “20000000”) |
For the Historical Manager
| Bit 5 |
Read trend |
Trace( 1, 8, “20”); |
| Bit 6 |
Read log |
Trace( 1, 8, “40”); |
For the UI Manager
| Bit 0 |
Error level 0 |
Trace( 1, 6, “1”); |
| Bit 10 |
Send subscribe on start-up |
Trace( 1, 6, “400”); |