A watch table is the main online debugging tool in TIA Portal: it gathers the addresses, variables and status bits you care about into one table, shows their current values online, and lets you force or modify them when necessary. It answers the question "once the program is running, what state is this point actually in", which is far more efficient than staring at the program line by line.
A watch table lists variables as rows, showing address, format, monitor value, modify value and comment, and suits keeping an eye on a set of key points over time. A status table orders variables by program execution, showing the actual value and status within each scan, and suits tracking down sequential logic. Both work online, but for different purposes: use a watch table to find "the value is wrong", a status table to find "the sequence is wrong".
Open the Monitor and Force Tables folder in the project tree, add a watch table and name it; then enter addresses or symbolic names row by row, or right-click a variable in the program editor and choose to add it to a watch table so the address comes across automatically and typing errors are avoided. When creating the rows, keep straight whether you use absolute addresses or symbolic addressing: with symbols, renaming in the program affects the watch table, while absolute addresses are unaffected but less readable.
A row can switch between display formats such as binary, decimal, hexadecimal and floating point; binary reads best for status bits, decimal or float for analog values. A comment on each row stating what the point is for helps a great deal when several people debug together. Choosing the wrong format does not change the actual value, only makes the reading hard to interpret, so it is worth taking a moment to settle on consistent formats.
Once connected, click online and the table immediately shows the current value of each variable. To change an output or parameter temporarily you can write a modify value once, write it repeatedly over a set number of cycles, or use force to pin the point. The three differ in scope: monitoring is read-only, modify value affects addresses the program can write, and force has the highest priority and can override the program logic, which is exactly why it is the most dangerous — cancel it the moment you are finished.
You can store a batch of current values as a snapshot and later compare it with fresh online values to see whether parameters have been altered, or open a trend view and plot analog or counter values as a curve to watch how they change. A watch table can also be exported as a table file for the record, which makes it easy to keep the key data from a debugging session for later review.
| Operation | Meaning | Where to use it | Risk |
|---|---|---|---|
| Online monitoring | Read-only display of current values | Routine observation | Barely any risk |
| Modify value (once) | Written once, then the program takes over | Setting a temporary setpoint | May be overwritten at once by the program |
| Modify value (continuous) | Re-written cyclically | Debugging an analog setpoint | Leaves long-term interference if not cancelled |
| Force | Pins a pin regardless of program logic | Verifying actuator movement | Highest priority, most dangerous |
| Unforce | Restores normal program control | Must be done when debugging ends | Neglecting it leaves a hidden hazard |
| Snapshot | Saves a batch of current values | Before-and-after comparison | Needs manual comparison |
| Trend view | Plots values as a curve | Watching dynamic change | Sampling interval is limited |
| Export table | Saves to a file for the record | Debug record and handover | Contains addresses, mind confidentiality |
| Switch display format | Changes the presentation | Status bits and analog values | Does not change the actual value |
The contents of a watch table are saved with the project, and editing the program without a backup may lose them; it is worth naming the debugging tables clearly and keeping them separately. Online monitoring and modification require a connection to the CPU, set up the same way for real hardware and a simulated CPU. When several people debug one CPU, agree in advance on how force and modify values are used so you do not interfere with one another.
The conventions for variables, data types and online access in PLC programming languages follow GB/T 15969.3 (identical to IEC 61131-3); the electrical safety preconditions around monitoring and forcing, and the electrical connection, protection and earthing of the equipment, follow GB 5226.1 and the equivalent international standard IEC 60204-1. The exact function names and menu paths are as stated in the manufacturer's manual.
Online monitoring and modification may only be carried out by personnel with the necessary rights and under controlled conditions, and any forcing that affects moving mechanisms must wait until the machine is stopped and no one is in the danger zone. Before debugging ends, check every forced point and clear them all, keeping a record.