MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you use a watch table to monitor ladder logic in TIA Portal?
HomeModels
Table of contents

On this page

PLC & Programming (100 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

How do you use a watch table to monitor ladder logic in TIA Portal?

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.

1. What a watch table can show

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.

2. Prerequisites for creating it and going online

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.

3. Monitor value and display format

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.

4. Modifying variables and forcing

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.

5. Trigger conditions and the trend view

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.

6. Common monitoring needs and how to do them

What you want to monitorRecommended wayFormat or settingNote
Whether an input point is madeAdd that input bitBinary displayWatch for 0 to 1
Whether an analog value is out of rangeAdd the analog channelFloating-point displayCompare with range limits
Timer time remainingAdd the timer instance dataShow the ET valueMust be called in the cycle
Counter current valueAdd the counter instance dataShow the CV valueWatch the counting direction
Stop when a condition is metSet a trigger conditionPause refresh on the valueCondition must be online
Variable over timeUse the trend viewAdd curves and a sample periodA long period misses detail
Temporarily change an output to testModify that output variableSingle or continuous modifyRestore immediately after
Hold an output on for a long timeForce that variablePermanent setBench commissioning only; release after
Monitor a remote station variableGo online over the networkBrowse by stationNeeds network and station online

7. Notes

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.

8. References

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.

9. Points to watch

⚠️ Three common traps:
1. Modifying or forcing outputs while the machine is still running under load, so an unintended action causes a collision or injures someone;
2. Reading a decimal quantity in hexadecimal format, seeing a value that is off by a chunk and judging the logic correct;
3. Forgetting to release a force, so the output is locked when the machine goes into production and the fault takes ages to find.

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.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL