MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › How do you use the online debug and oscilloscope functions on an Inovance AM series PLC?
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 the online debug and oscilloscope functions on an Inovance AM series PLC?

The AM series (mid-range controllers, programmed in AutoShop) offers three online debugging tools: live monitoring to watch variables, breakpoints/stepping to follow the flow, and the oscilloscope (Trace) to see curves. The first two answer "is the logic right", the last answers "is the process good" — PID oscillation, timing conflicts and loop jitter only show up as curves. The sections below cover connecting, monitoring, breakpoints and the oscilloscope.

1. Going online and monitor mode

After configuring the connection in AutoShop (Ethernet uses the controller IP, serial uses the port parameters), enter online mode. In monitor state: ladder contacts show conduction by colour, variables can be forced by double-click — and forced outputs must be un-forced afterwards. Forcing outputs live is the operation most likely to cause an accident: keep a written list of every force and clear it all before handing over.

2. Watch tables and forcing discipline

OperationPurposeCaution
Build watch tablesConcentrate related variables on one screenGroup by process section, not one table for the whole machine
Force inputsSimulate sensor signals to verify logicWarn the floor first, put up a notice
Force outputsVerify actuators one point at a timeConfirm mechanics are safe; log any bypassed interlock
Write setpointsChange timers/parameters onlineKeep temporary edits separate from permanent ones

Keep temporary (commissioning) edits distinct from permanent (design) edits: after debugging, read the online changes back into the project and save, otherwise the next download reverts them and the field spends a day chasing a ghost.

3. Breakpoints and stepping

To see "where the program has got to", set breakpoints: the program halts at the marked rung or ST line and steps line by line while variables are watched. Delete breakpoints when done — a program downloaded with breakpoints stops at them repeatedly. Note that some execution contexts (interrupts, high-speed tasks) do not support breakpoints; use variable-recording (sampling into arrays) instead there.

4. The oscilloscope (Trace): an X-ray of the process

The oscilloscope samples a set of variables at a fixed period and draws curves. Four steps:

StepActionKey point
1. Pick variablesAdd the relevant ones as channels4~8 at a time; more hides the story
2. Set sampling periodMatch the speed of the signalsShortest period for servo loops, 100 ms for temperature
3. Set triggerStart recording on a limit crossing / edgeTrigger conditions are what catch sporadic problems
4. Record and analyseReproduce the condition, export the curvesLook for overshoot, lag, oscillation, timing gaps

Typical uses: PID temperature tuning — watch setpoint, measurement and output on one screen: oscillation means reduce gain, slow climb means increase gain, saturated output calls for anti-windup; mechanism timing — check the interval between two motions against design; servo tuning — the follow error curve (command vs feedback position) is the direct measure of whether the gains are right.

5. Capturing sporadic faults

For rare problems (a false alarm every few hours, momentary dropouts) use "pre-trigger": set the trigger on the fault signal's edge and configure the record window as 80% before / 20% after, so the captured curve includes what happened before the fault — the cause always lies before the event, and recording only afterwards is wasted effort. Pair it with a "black box" program structure (circular array recording slow variables) for cases the oscilloscope cannot reach.

6. Three habits that make debugging efficient

① Build the watch tables before each session and store them in the project so they reload next time; ② screenshot key oscilloscope captures with dates and operating conditions in the filename — "what conditions were those parameters tuned under?" is answered by looking; ③ record old values before changing any parameter — trials must be reversible; losing the old value is worse than never tuning.

7. Notes

Online debugging is "making program state visible". The watch table shows instant state, the breakpoint shows the path, the oscilloscope shows the process over time. With the three tools plus logical reasoning, nearly every field problem locates to a specific variable at a specific moment — no guessing required.

8. References

Functions follow the Inovance AutoShop User's Manual (online debugging, Trace) and the AM Series PLC User's Manual; safety during debugging (managing forced outputs and bypassed interlocks) follows GB 5226.1 / IEC 60204-1 commissioning-mode provisions.

9. Cautions

⚠️ Three traps to avoid:
① Forcing outputs and forgetting to release — the machine misbehaves after delivery and a whole day is lost tracing it;
② Downloading with leftover breakpoints — the program halts at them and the PLC is reported "dead";
③ Making online parameter changes without reading back and saving — the next download makes everything "worse than before".

Three closing actions every session: release all forces, delete all breakpoints, read back and archive online changes. Make it a habit and you never pay for "who changed that last time?".

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