The variable table in TIA Portal is called a watch table. Add the variables you want to observe, go online, and their current values refresh scan by scan, which lets you judge whether the ladder logic is acting as intended. It only reads and never changes the program logic, making it the most direct way to troubleshoot logic problems and verify changes. The sections below cover creating it, going online and using it.
A watch table can hold bits, bytes, words, double words, floating-point values, strings and array elements, and it can also hold the instance data of timers and counters so you can see their remaining time and current value. The values shown are live readings from the online CPU; the table is not part of the program and closing it does not affect operation.
Download the program and go online with the CPU in RUN before any values can be read. Create a new watch table and enter the variable addresses or symbolic names. Using symbolic names requires that the program has been compiled and the symbols are available. Click "Monitor all" to start refreshing; offline, only grey placeholders are shown.
The monitor value shows the current value, and the display format can be decimal, binary, hexadecimal, floating point and so on. Use binary for a single bit, floating point for an analog value, and hexadecimal for a status word or a combination of bits. A wrong format does not affect the program, but it invites misreading, for example taking a hex value as decimal.
A watch table can both "modify" a variable (once or continuously) and "force" it (hold it permanently until released). The two differ: a modify is overwritten by the program scan, while a force overrides the program output. Forcing is for commissioning only and must be released afterwards, otherwise running under load carries a safety risk.
A watch table can be triggered by a condition, for example pausing and highlighting a row when a variable reaches a certain value. Together with the trend view it can also record curves of several variables over time, which makes timer sequences, PID responses and state transitions easy to observe.
| What you want to monitor | Recommended way | Format or setting | Note |
|---|---|---|---|
| Whether an input point is made | Add that input bit | Binary display | Watch for 0 to 1 |
| Whether an analog value is out of range | Add the analog channel | Floating-point display | Compare with range limits |
| Timer time remaining | Add the timer instance data | Show the ET value | Must be called in the cycle |
| Counter current value | Add the counter instance data | Show the CV value | Watch the counting direction |
| Stop when a condition is met | Set a trigger condition | Pause refresh on the value | Condition must be online |
| Variable over time | Use the trend view | Add curves and a sample period | A long period misses detail |
| Temporarily change an output to test | Modify that output variable | Single or continuous modify | Restore immediately after |
| Hold an output on for a long time | Force that variable | Permanent set | Bench commissioning only; release after |
| Monitor a remote station variable | Go online over the network | Browse by station | Needs network and station online |
A watch table is for looking, not for changing the program. It narrows the search for a logic fault to one section: check whether the input arrives, then how the intermediate bits change, then whether the output is given. Getting into the habit of placing a few monitored variables at key steps noticeably shortens troubleshooting.
Data types and variable definitions follow GB/T 15969.3, Programmable controllers, Part 3: Programming languages (equivalent to IEC 61131-3). The electrical safety preconditions involved in online monitoring follow GB 5226.1 and the equivalent international standard IEC 60204-1. The availability of monitoring and forcing functions depends on the software and CPU version in use.
Use modify and force only when the machine is stopped or safety measures are in place, and always release them after commissioning. Before changing parameters on a loaded machine, confirm the process allows it.