IMDTouchKnowledge BaseShop main store

How-to

Why an EasyBuilder Pro Scheduler Loses RW Times at Power Cycle

HMI and touchscreens Published 5 min read By IMDTouch engineering team

Short answer

Scheduler times entered into LW vanish at power cycle because LW is volatile. Move the times to RW, correct malformed bit tags such as RW_Bit-700, and turn on LW-9029 momentarily after each edit, because RW otherwise saves only every minute.

On this page
  1. Why do the schedule times vanish after a power cycle?
  2. Why does the scheduler fail when the addresses move to RW?
  3. How do you configure a retained seven-day schedule?
  4. When is a macro the better scheduler?
  5. How do you verify the fix before trusting it?
  6. Questions asked

A scheduler that runs correctly but forgets its on/off times at every power cycle loses them because it stores them in LW, which is volatile and returns to compiled defaults at power-up, while retained storage is RW. Two details decide whether the move to RW works: the HMI commits RW to non-volatile memory only every minute unless LW-9029 is turned on momentarily to force an immediate save, and a malformed bit tag such as RW_Bit-700 addresses bit 0 of RW 70 rather than the sequential bit you intended, so the object silently never acquires the times.

Why do the schedule times vanish after a power cycle? #

LW is working memory: it holds values while the HMI runs and returns to compiled defaults at power-up. The Scheduler object reads the LW times happily while powered, which is why operation looks perfect until the first restart. Retained storage is RW, and the HMI commits RW to non-volatile memory every minute on its own. The remaining gap is that save interval: power down within a minute of an edit and the newest change is gone even though older RW values survive. Turning on LW-9029 momentarily forces an immediate RW save, so wire that pulse into your update routine.

Why does the scheduler fail when the addresses move to RW? #

RW is fully compatible with the Scheduler; the failure in this pattern is an address-formatting error, not a compatibility limit. The tag RW_Bit-700 means bit 0 of RW 70, so every weekday field pointed at the same wrong bit and the object had nothing valid to acquire. The tell is the confirmation lamp: after pressing "Update setting", "Time acquisition complete" lights with the LW binding and never changes with the broken RW binding. Remove the extra digit and use RW_Bit-70, RW_Bit-71 and onward, following your project's actual allocation, and the same object works.

How do you configure a retained seven-day schedule? #

Use one Scheduler object per weekday, each with its dynamic time fields bound to that day's RW words, so the operator edits everything on the HMI without a project download. The steps:

  1. Allocate separate RW words for the start and end time of each day, Monday through Sunday, and keep a written address map so no two days share a word.
  2. Create seven Scheduler objects; enable only the applicable weekday in each.
  3. Bind each object's start and end time to its day's RW values, and check every RW_Bit reference character by character against the corrected format.
  4. Place fourteen operator entry fields on the HMI for the seven on/off pairs, with range limits that match the object's time format.
  5. Connect the "Update setting" action and the "Time acquisition complete" indication so the operator can see whether the object accepted the edit.
  6. After a successful update, turn on LW-9029 momentarily to commit the new values immediately.
  7. Map the schedule output to a normal command in the controller; permissives, interlocks and every safety function stay in PLC logic, because an HMI schedule is an operating request, not a safety function.

When is a macro the better scheduler? #

Choose a macro when the schedule needs behavior the native object cannot express: multiple intervals per day, output logic other than a simple window, or custom handling of entries that cross midnight. The published pattern stores the Monday to Sunday on/off times in RW 0 through RW 13, reads the weekday from LW 9020 (0 for Sunday, 1 for Monday, and so on), the hour from LW 9019 and the minute from LW 9011, compares a combined time and writes the command to LW 100:

macro_command main()
short day
short hour, minute
short nowTime
short onTime, offTime
short outVal
// Get current day (0=Sun, 1=Mon, 2=Tues, etc.)
GetData(day, "Local HMI", LW, 9020, 1)
// Get current time
GetData(hour, "Local HMI", LW, 9019, 1)
GetData(minute, "Local HMI", LW, 9011, 1)
nowTime = hour * 100 + minute
// Map RW addresses to the day's on/off pair
// Monday RW 0/1 through Sunday RW 12/13
if (nowTime >= onTime) and (nowTime < offTime) then
    outVal = 1
else
    outVal = 0
end if
SetData(outVal, "Local HMI", LW, 100, 1)
end macro_command

Worked example: with the HMI clock at 15:47 on a weekday whose retained pair is RW 0 = 700 and RW 1 = 1700, nowTime is 15 × 100 + 47 = 1547, which is greater than or equal to 700 and less than 1700, so outVal is 1 and LW 100 turns on; at 17:00 the comparison fails and it turns off. This comparison handles intervals inside one calendar day only. A window crossing midnight needs a different comparison and a rule for which weekday owns the after-midnight part, and you must define the result for equal on and off values and for invalid entries. The macro still needs retention: keep the daily settings in RW and pulse LW-9029 after every confirmed edit.

How do you verify the fix before trusting it? #

Run a bench test that proves storage and execution separately, because a lit confirmation lamp proves only that the update path ran, not that the save completed. The sequence:

  1. Enter a distinct start and end value for every weekday, for example Monday 07:00 to 17:00, Tuesday 06:30 to 16:30 and so on, so any swapped or overlapping address shows immediately.
  2. Press "Update setting" and confirm "Time acquisition complete" changes state for each object.
  3. Read the RW words back with a numeric object and compare them with the displayed entries.
  4. Pulse LW-9029 momentarily.
  5. Power-cycle the HMI, reopen the schedule screen and confirm all fourteen values are unchanged.
  6. Set a short test window around the current HMI time, then watch the schedule output at both boundaries and confirm the mapped controller command follows it. If the local output switches but the machine does not, troubleshoot the driver mapping and controller interlocks rather than the schedule storage.

When an aging unit itself is the problem rather than the project, the same configuration restores cleanly onto current industrial panel PCs running the same runtime. For the underlying behavior of a panel that loses more than its schedule after every restart, see why an HMI loses its program after every power cycle (article:why-an-hmi-loses-its-program-after-every-power-cycle).

Questions asked

Can I keep a scheduler in LW if the operator re-enters times every morning?

It works only until someone forgets. LW is not retained, so every power cycle returns the schedule to its compiled defaults, and a mid-shift brownout loses the same data. Move the values to RW once and the re-entry chore disappears.

How often does the HMI save RW on its own?

Every minute. An edit followed by a power loss inside that minute can be lost, while values older than the completed save remain. If your schedule changes happen at most a few times a week, a manual save button wired to LW-9029 is enough; there is no need to pulse it from a fast macro.

Where can I see the current weekday and time the macro reads?

LW 9020 holds the weekday with 0 for Sunday and 1 for Monday onward, LW 9019 the hour and LW 9011 the minute. A numeric object bound to these addresses lets you confirm the HMI clock before trusting any schedule test.

Is the HMI scheduler enough to stop the machine safely?

No. Treat the schedule as an operating request: the controller still owns permissives, interlocks and every safety function. The schedule output should feed a normal command input in the PLC program, never a safety path.

Can I run one weekly schedule instead of seven daily ones?

Only through a macro. The Scheduler object's native time fields apply one daily pattern, so per-day variation means either seven Scheduler objects, each enabled for one weekday, or a macro comparing the HMI clock against fourteen RW words holding each day's on and off time.

Keep reading

  • How-to

    Setting Up a Weintek HMI as a Central RFID Login Server

    Your existing HID proximity cards work, and no PC is needed: one HMI acts as the login server. Program the reader for keyboard emulation, add the Barcode Scanner/Keyboard driver, store each card UID as the account password on the server, and let clients log in with LW-1074 as user name, BARCODE 1 as password and a macro on FLAG 0.

    HMI and touchscreens

  • How-to

    Adding Flowmeter and Sensor Graphics to an EasyBuilder Pro Screen

    EasyBuilder Pro has no dedicated flowmeter or temperature-sensor object, and it does not need one. Put a picture from the Shape or Picture Library (or your own imported image) on the screen to identify the instrument, then add a separate numeric object bound to the device address for the live measurement — the picture never carries the data connection.

    HMI and touchscreens

  • Troubleshooting

    Why an HMI Loses Its Program After Every Power Cycle

    A flash-based panel keeps its project through power-off without a battery, so loss on every cycle means a supply dip below the panel's documented limit, a transfer that never completed, or failing storage. Classify what the screen shows at restart, capture the supply voltage at the terminals through a switch-off and on, then do one clean transfer and prove it survives a controlled power cycle.

    HMI and touchscreens

EasyBuilder Pro bit lamp blink lost after upgrade