IMDTouchKnowledge BaseShop main store

How-to

Set a Premium PLC Clock From a Magelis HMI Over Unitelway

HMI and touchscreens Published 5 min read

Short answer

In Vijeo Designer, open the Unitelway equipment in the I/O Manager, add a Dialogue Table with start address %SW50 and the Configure the PLC clock function, and clear the Include editor project option before transfer, because packaging the editor project is what aborts the download with an abnormal program termination. Keep the editable project on the engineering workstation and verify the PLC clock with its own read.

On this page
  1. What the Dialogue Table actually configures
  2. Prepare the link and both clocks
  3. Configure the Dialogue Table
  4. Why the transfer aborts and what to clear
  5. Acceptance: read the processor's clock, not the HMI screen
  6. When the clock still does not move
  7. Questions asked

You set the processor's clock with a Dialogue Table in Vijeo Designer, not with screen writes to system words. In the I/O Manager, on the equipment that represents the Premium processor on the Unitelway link, add a Dialogue Table with start address %SW50 and the function Configure the PLC clock. Clear the Include editor project option before you transfer: with the editor project packaged into the download, the transfer aborts with an abnormal program termination, and without it the same application transfers and runs. In the installation this comes from, an hmigto6310 terminal sets the clock of a tsxP57203 processor through an scp114 card.

What the Dialogue Table actually configures #

The Premium processor keeps its date and time in four dedicated system words, %SW50 through %SW53. A Dialogue Table entry is a driver service, not a variable to poll: with %SW50 as the start address and Configure the PLC clock as the function, the Unitelway driver runs the processor's clock-configuration exchange at that address. Do not substitute ladder logic or HMI scripts that write calendar values into consecutive words; the service defines the exchange, and hand-written values into the same system words are how you end up with a half-set clock.

The published procedure prints a 5 beside the function. That figure numbers the entry in the function list; it is not part of the address and not an offset to apply. The start address you enter is %SW50.

Dialogue tables sit in the same request/reply service family as the other Unitelway exchanges on this platform; the ATV58 UniTelway control word sequence with TSX Premium shows the same service mechanism applied to a drive.

Confirm the equipment before touching the clock. In the I/O Manager, the equipment standing for the processor must run the Unitelway driver with serial settings that match the physical link, and it must already exchange variables with the application. If it does not, setting up the TSX Premium equipment in Vijeo Designer comes first. Read a known, changing value on both sides, terminal and PLC programming software, and continue only when they agree.

Then make the terminal worth copying: set the HMI clock against a trusted reference before the test. Setting the HMI clock from a PC and PLC daily is one way to keep it there. Finally, read the processor's clock in the programming software's clock dialog, which shows the current PLC date and time and can set it from the computer, and write down the difference from the terminal. That difference is your acceptance number. One caution, said once: stepping the clock changes the timestamps that scheduling, totalizing and alarm logic act on, so run the test in a window when time-based logic is inactive.

Configure the Dialogue Table #

  1. Open the project and go to the I/O Manager.
  2. Select the equipment that represents the Premium processor on the Unitelway link.
  3. Open the Dialogue Table for that equipment.
  4. Enter %SW50 as the start address.
  5. Select Configure the PLC clock as the function.
  6. Validate the application and resolve every configuration error it reports.
  7. In the transfer settings, clear Include editor project.
  8. Download, wait for completion, and confirm the terminal restarts the application and resumes normal data exchange.
  9. Invoke the function from the application, through the screen action bound to the dialogue-table service, then read the processor's clock again.

Why the transfer aborts and what to clear #

Transfer package Observed result Editable source
Dialogue table with Include editor project checked Transfer ends with an abnormal program termination Would live in the terminal, but the transfer never completes
Dialogue table with Include editor project cleared Transfer completes and the application runs On the engineering workstation, in controlled storage

Commission on the second row. The failure couples the dialogue-table configuration with editor-project packaging; it identifies no software defect, affected release or memory limit. If storing the source in the terminal is a hard requirement at your site, reproduce the abort with a minimal project, record the Vijeo Designer version and the terminal's runtime information alongside the full error text, and take that package to the vendor's support channel.

What you give up is in-terminal source storage: an upload from a terminal with no stored editor project returns a copy that will not open for editing, which is why an uploaded HMI copy is not an editable project. Keep the engineering copy in controlled storage and prove it opens before you change the transfer options.

Acceptance: read the processor's clock, not the HMI screen #

Successful transfer and a successfully set clock are two separate tests. Worked example with illustrative numbers: before the test the terminal reads 10:00:00 and the processor's clock dialog reads 09:58:12, so the offset is 10:00:00 - 09:58:12 = 1 min 48 s = 108 s. Run the service, then read the processor again in the same dialog. A processor at 10:00:01 against a terminal at 10:00:02 differs by 1 s, inside the resolution of two clocks read by hand, so accept. A processor still trailing by 108 s means the service never executed, and an HMI screen is not the instrument to argue with, because it may be displaying terminal time.

When the clock still does not move #

  • Equipment association: the Dialogue Table must sit on the equipment that actually talks to the processor, not on another node in the project.
  • Function selection: the address alone configures nothing; the clock function must be selected on the entry.
  • Transfer content: confirm the dialogue table passed validation and is part of what downloaded.
  • Conflicting requests: search the PLC program for logic that writes to the %SW50 area, so the application and the service are not both setting the clock.
  • Still aborting at transfer: capture the full error text and the stage where it stops, then reproduce it with the smallest project that contains the dialogue table before escalating.

Questions asked

What is the 5 printed beside %SW50 in the documented procedure?

List numbering. The procedure numbers the dialogue-table functions, and the clock entry carries that index beside it; the figure is not part of the address and not an offset to apply. The start address you enter is %SW50, and Configure the PLC clock is the function. Subtracting five and entering %SW45 is wrong.

Can I get my editable project back from the terminal after clearing the option?

No. The option controls whether a copy of the editable source is stored in the terminal during download; clear it and an upload returns a runtime copy that will not open for editing. That is the trade: a reliable transfer of the clock application, with the source kept in controlled storage on the engineering workstation.

Will stepping the processor's clock disturb the running application?

It can, wherever logic compares time or date: schedules fire or skip, time-based totalizers miscount, and alarm and event timestamps reorder while the clock jumps. Run the clock-setting test in a window when that logic is inactive, and read the affected registers after the step to confirm nothing latched.

Does this also set the HMI clock, or work on an M340?

No on both counts. This service writes the terminal's time into the Premium processor over Unitelway. The reverse direction is configured on the terminal side, and on an M340 the documented I/O Manager procedure syncs the Magelis clock from the PLC rather than the other way around.

Does the abnormal termination mean my dialogue table is wrong?

Probably not. The abort appeared only when the dialogue table and the stored editor project went into the same transfer package; the identical dialogue table transferred cleanly once Include editor project was cleared. Validate the dialogue-table configuration as a check separate from the transfer packaging.

Keep reading

  • How-to

    Relaying serial PLC data through a C-more HMI to SCADA

    The C-more EA9 is a communications client: it polls the PLCs it is configured for and exposes nothing for Ignition or KepServer to browse. Make the panel the relay instead — add a Modbus TCP server as a second PLC device and copy FX3 tags into it with Tag Copy events triggered from the system clock tags, since scheduled copies run at best once per minute.

    HMI and touchscreens

  • Troubleshooting

    Fixing a Vijeo Designer USB transfer filesystem path error

    The [HMIS] filesystem path error means the software resolved the wrong transfer destination, and the connection-abort line is only its consequence. Because the failure sits on one workstation, compare that PC's target selection, transfer method and installed version against a working one before touching the Runtime installer, and keep the two-to-three-times-slower USB-key route as a fallback.

    HMI and touchscreens

  • How-to

    Reading Modbus discrete input 10001 in a Vijeo HMI

    Yes, you can read it: 10001 is the first Modbus discrete input, and %M10001 points at internal coil 10001 instead. Uncheck IEC61131 Syntax on the Modbus/TCP driver and enter 100001 in the 1x family, which equals %I1; copy the input to a %M bit only if the driver cannot reach the input table.

    HMI and touchscreens

How to reset a startup bit after two minutes in Vijeo Designer