IMDTouchKnowledge BaseShop main store

Troubleshooting

Why Movicon Edit Boxes Vanish on a Windows CE HMI

HMI and touchscreens Published 6 min read By IMDTouch engineering team

Short answer

The affected edit boxes drop off the panel because they carry a %s string format while bound to numeric 16-bit word data. Remove %s from each box and set the decimal-point position with the format value property. Keep the Windows CE project environment selected, bind each box to a single array element, and accept the fix on the panel runtime, not on a desktop PC.

On this page
  1. Remove the %s format and set the format value property
  2. Keep the Windows CE project environment selected
  3. Bind the edit box to one element of the word array
  4. Worked example: a raw word of 615 shown with one decimal place
  5. Tell a data fault from a display fault
  6. Accept the fix on the panel runtime
  7. Questions asked

Four edit boxes that render in the Movicon 11.6 editor disappear from the screen after transfer to a Windows CE panel, while the same project displays correctly on a panel PC. The cause is the data format, not the platform setting: those boxes carry a %s string format while they are bound to arrays of 16-bit words, and the CE runtime drops the object instead of rendering a string-formatted numeric value. Remove the %s format from each affected edit box and set the decimal-point position with the format value property. Keep the Windows CE project environment selected so incompatible objects warn you at insertion, bind each box to a single array element, and accept the fix on the panel itself, because desktop success proves nothing about the CE runtime.

Remove the %s format and set the format value property #

A numeric word and a string are different data representations. A 16-bit word register holds a binary count, the %s format asks the object to render it as string-formatted text, and the Windows CE runtime drops the object rather than drawing it. The correction is specific: delete the %s entry from the affected edit box and set the decimal-point position with the format value property, the documented edit-box property for numeric presentation.

Work one box at a time:

  1. Open one affected edit box and record its current properties: object type, size, visibility conditions, format string and tag binding.
  2. Delete the %s entry from its format configuration.
  3. Set the format value property to the decimal-point position the quantity needs: 0 for whole counts, 1 for one implied decimal place, 2 for two.
  4. Leave the tag binding untouched for this first test, so a formatting change is never mixed with a data change.
  5. Transfer the project to the panel and confirm that this one box renders a number.

If the frame appears but the value stays blank or wrong, the format was only half the fault; move to the binding check.

Keep the Windows CE project environment selected #

The environment setting is not the fault, but it is the guard. With the Windows CE platform selected as the project environment, the editor raises an alert when an object not compatible with that platform is inserted, so you find the problem in the editor instead of on the machine. Confirm the environment is still selected in the project being transferred, and treat any such alert as an object-selection problem rather than a communications fault. A screen that already displays correctly on the panel is your reference for CE-compatible object types and properties; compare a failing box against it property by property before changing anything.

Bind the edit box to one element of the word array #

The reported boxes were connected to variables described as arrays of 16-bit words. An array carries many values; a numeric edit box formats one scalar. Read the binding expression and decide whether it names the whole array or a particular element, because the description of an array of 16-bit words leaves that unresolved. Two fixes provide a scalar: bind the box directly to the individual element, or expose that element through a scalar numeric tag when the direct expression is unclear or unsupported on the target. Check the element index against the controller's array definition and its indexing convention, and match the tag's signed or unsigned type to how the controller defines the same 16-bit pattern.

A valid, changing value in the runtime tag monitor proves the data path; it does not prove the box formats that value correctly. If the quantity is a floating-point value rather than a word, type and word order matter just as much, and displaying a PLC Real value over Modbus on an HMI works through that pairing.

Worked example: a raw word of 615 shown with one decimal place #

The inputs: an unsigned 16-bit word in the controller register bound to the edit box, holding an example raw count of 615; a quantity displayed at a resolution of 0.1 bar per count; and the documented format value property, which takes a decimal position.

The rule in words: the format value property divides the raw word by 10 raised to the decimal position you set and renders the result with that many digits after the point.

The arithmetic: 615 counts ÷ 10 = 61.5, so the panel draws 61.5.

The result and the decision: set the format value property to 1 for this quantity and the box shows a live pressure instead of vanishing. Set it to 0 when the word holds whole counts and no decimal is wanted. The range this supports is the full unsigned word, 0 to 65535 counts, which at that decimal position renders 0.0 to 6553.5. A %s format on this source is wrong at any count value, so remove it regardless of what the register holds.

Tell a data fault from a display fault #

Separate the two before changing anything else. If the runtime tag holds no usable value, no font or decimal setting repairs the data path; if the tag is valid and the box stays blank, the fault is in the object's binding, format or visibility. Observe the intended controller value without forcing outputs or disturbing the running process.

Observed condition Where to check Next action
Controller value changes, HMI tag does not Driver diagnostics and the runtime tag monitor Connection configuration, address mapping, acquisition status
HMI tag changes, edit box does not Edit-box binding and formatting properties Selected element, numeric format, conditional visibility
Numeric text absent but the object background is visible Object text properties and tag status Separate text rendering from full object visibility
The whole object is absent Screen layout and visibility configuration Visibility conditions, screen bounds, overlapping objects

A character the panel font cannot render shows as a box while the object itself stays in place, which is a different fault with its own fix on the page about resolving characters displayed as boxes in HMIs.

Accept the fix on the panel runtime #

The desktop run proved the project works on a PC; the panel is the acceptance target.

  1. Save the project with the corrected format value property on the first box.
  2. Transfer to the Windows CE panel and confirm that box renders its live value.
  3. Apply the same correction to the remaining affected boxes and verify each one on the panel.
  4. Compare a working display's tag path with each corrected one; one working screen proves its own path, not every array element.
  5. Leave the Windows CE environment selected so future incompatible objects alert at insertion.

The decision, for each case: a numeric edit box bound to a word array that fails to render on the CE panel gets its %s removed and its format value property set to the quantity's decimal position, and the binding is only touched if the box still fails after that.

Questions asked

Why does the same project display correctly on a panel PC but not on the Windows CE panel?

The desktop runtime and the CE runtime do not render objects the same way, so a clean desktop test proves only that the project compiles and runs on a PC. Keep the Windows CE project environment selected so the editor warns about incompatible objects at insertion, transfer after each correction, and treat the panel runtime as the only acceptance test for screen graphics.

Does removing the %s format change the value stored in the controller?

No. The %s entry is a display format request on the edit box, not a write to the device. The register keeps its raw word, and the format value property only decides where the decimal point appears when the panel renders it. Signed versus unsigned interpretation is set on the tag and the controller data definition, not by the display format.

Why do only some objects on a screen disappear while the rest display normally?

In the reported case the only difference between working and missing objects was the variable connected to them. Boxes carrying a string format on word-array data drop off the CE panel, while objects with numeric formatting or no tag binding render fine. Use a working display as the property reference and compare object type, format and binding element by element.

Keep reading

  • Troubleshooting

    HMI Project Opens With a Repeating Error Popup: Isolate It

    A repeating error popup that returns after you close it is a project-open fault, not a crash. Record the exact file the message names, open the unchanged project on a second PC, then remove only that file from a diagnostic copy. If the copy opens, that file carries the defect; if it still fails, build a new project and copy the file in.

    HMI and touchscreens

  • Troubleshooting

    Why a simulated HMI shows hash marks, not PLC values

    Hash marks mean the simulated panel runtime is not receiving any displayable value, so treat it as a communication problem before anything else. In the Windows Control Panel of the configuration PC, set S7ONLINE (STEP 7) to TCP/IP on the adapter that reaches the S7-1200, or to PLCSIM when the PLC is simulated too. Then confirm each tag's data type, widen any format pattern the value outgrows, and prove the route with a safe write.

    HMI and touchscreens

  • Troubleshooting

    Why the PDATA.FWX configuration file could not be loaded

    The message means the panel could not read the runtime configuration file its project generated, so it shut the application down. Save a backup, delete the generated PDATA file from the project, compile again, and prove the project starts clean on the PC runtime before redownloading. If the panel still fails, delete its stale copy from the flash storage folder the message names and download again.

    HMI and touchscreens

Why TIA Portal V16 graphics lose their transparent background