Replay and Trends

Replay records a run of your project to your account, then plays it back one scan at a time. You see the ladder, every tag value, the trends and the machine exactly as they were, and you can jump to the moment a value changed.

What a recording holds

A recording holds your program, any saved HMI screens, and every scan the PLC committed while it ran. If a Visual Simulator scene was running, its state is recorded beside each scan. A change to the program is recorded too, so a recording that spans edits shows each scan with the version of the logic that ran it. It does not record your screen, keystrokes or camera.

Record a run

  1. Open the Replay menu and choose Record attempt….
  2. Click Start recording. A status line shows Recording in the corner of the editor.
  3. Run your project: Run, Single Scan, toggle bits, change a value or use a scene.
  4. Open the Replay menu again and choose Stop recording. The status shows Saving recording… while it is kept in your account.

Play it back

  1. Open the Replay menu and choose Replay attempt…. The Recordings list shows each recording's project, date, length, number of scans and result, newest first.
  2. Click a recording, or select it and press Enter. The player opens over the editor.
  3. Press Play, or drag the Recorded scan slider to any scan.
  4. Click Close replay to return to your own project, which was not changed.

The player

ControlWhat it does
Play, PausePlays the recording at the chosen speed. It pauses by itself when the browser tab is hidden.
Previous scan, Next scanSteps one scan back or forward.
Previous change, Next changeJumps to the nearest scan where a tag changed.
Playback speed0.5×, 1×, 2× or 4×.
Recorded scan sliderDrag to any scan. The left and right arrow keys step by one scan, and Shift with an arrow jumps to the previous or next change.
EventsLists the recorded events with the scan each happened in. Choose one to jump to it.

The status bar shows Replay · Paused or Replay · Playing 1×, and Revision with the recorded project revision. Nothing in a replay can be edited: the Inspector says Recorded logic is read-only.

What each tab shows

TabShows
TagsEvery tag value at the scan on the slider.
TrendsTag values drawn over the whole run, with a cursor at the current scan.
ChangesEach tag change with its time and scan. Click a row to jump there.
FaultsFaults the runtime recorded, with the scan each happened in.
Visual SimulatorThe scene as it was at that scan. Shown only when a scene was running.
HMI, AlarmsThe recorded operator screen and its alarm table. Shown only when the project had them.

The ladder, Function Block Diagram, Sequential Function Chart or Structured Text routine is drawn above the tabs. Energized paths are shown as they were in the recorded scan, so you read the logic the same way as when it ran.

Add pens to a trend

  1. Open the Trends tab. It starts with a few tags already drawn. Each drawn tag is a pen, with its own colour.
  2. Click Add tag, type in Filter tags and click a tag in the list. A PID loop is listed once, and adds its SP, PV and CV pens together.
  3. Click a pen's colour swatch to hide or show it, or × to remove it. A trend holds six pens, and Add tag turns off when it is full.
  4. Choose a Span of All, 60 s, 10 s or 1 s. A short span follows the playhead as the recording plays.
  5. Choose Shared scale to draw every analog pen on one axis, or Own scale to give each pen the full height.

A tag with two values, such as a BOOL, is drawn as a lane of 1 and 0 under the analog pens. The ‹ and › buttons beside it jump the player to the scan where it last changed or next changes.

Measure between two points

  1. Press and drag across the trend from the first point to the second. A shaded band marks what you measured.
  2. Read the readout above the trend: Δ with the time between the points and the number of scans.
  3. Read each pen's Δ column in the pen list: the change in value for an analog pen, or the number of edges for a BOOL.
  4. Click × beside the readout, or press Esc, to clear the measurement. A click without a drag moves the player to that scan.

From the keyboard, focus the trend, move the cursor with the arrow keys (Shift moves ten scans), press Enter to set the start, move, and press Enter again to set the end. The reason to measure on a trend is that it shows how long something took, in recorded time, for example the time between StartPB and Motor turning on.

An example: why did the motor stop?

A recording of a motor seal-in shows the motor running, then off. Press Next change until you reach the scan where Motor turns off. The Changes tab lists it. Press Previous scan once and compare the two scans. The player draws the ladder the way the editor does, with the tag values at the scan on the slider. These are the scans of that run, drawn by the editor after Core scanned each one:

1. Scan 1. StartPB is on, so Motor turns on at the end of the scan.

StepStartPBStopPBMotor
1. Scan 1101
2. Scan 2001
3. Scan 3010

Replay of a real run adds the Trends and Visual Simulator tabs. See the recorded ladder, trends and machine of a Motor and Conveyor run on the FORGE page. This is how to find a cause that happened in one scan.

Good to know

  • Record and replay are Pro features. On Free, or when you are signed out, the Replay menu entries show a padlock and the list says what is needed.
  • A recording is kept for one year. The Record attempt window says your teacher can replay it.
  • Storage full means your account already holds the most recordings it keeps for that project, so a new one cannot start.
  • If a recording is stopped before you stop it, for example at its size limit, the status shows Recording stopped.
  • You can also open a recording from a file with Open file… in the Recordings list. A file must be a recording FORGE made, with at most 10,000 scans.

Related