XL220OL
5.111.0
10/21/2026
XL220 X.111.0 released

All XL220 controllers

Enhancements

SCN 5411: XL2; Provide more granularity in Task Error reasons while deleting heap records.

The Rts_Delete_Segment function reported the same error for any failure. This makes it difficult to troubleshoot errors that occur.

There are now three errors. One for invalid pointer (Out of range). One for Header Trailer Mismatch on the delete segment. There is also one for errors in the Free Record Chain.

SCN 5412: XL2; Minimum Stack Size increase.

The Minimum Stack Size in the AMS RTOS was 0x400 bytes. We have discovered that the Builder 12 compiler is rather loose with its stack usage efficiency so we are increasing it by 50%.

SCN 5414: XL2; New control over 800004FF Health Timer

Add an operating-system service to reset the Task Time-Out (800004FF) health timer

Affected software: XL2 operating system (Task32). The new service becomes available to every XL200 product (Standard and HVAC) that is rebuilt against this version of the operating system.

Problem - history: The 800004FF task error (E_Task_Time_Out) is the operating system's application-health check. The OS expects the controller to finish its work and let the processor go idle at least once about every minute. If a single task -- or the combined load of all the running tasks -- keeps the processor fully busy for a full minute, the OS declares the application unhealthy and raises 800004FF. That is the correct, desired behavior for a task that is genuinely stuck or looping.

The limitation is that some operations are legitimately allowed to run the processor hard for a long time -- for example a lengthy calculation or data-processing step that has an unusually large amount of work to do on a particular job. The operating system gave the application no way to indicate that such a long operation is deliberately busy, so a legitimate long-running task could trip 800004FF even though nothing was actually wrong.

Likelihood: Uncommon. It requires an operation to run the processor continuously for roughly a minute without the controller ever going idle, which only happens for the heaviest jobs.

Solution: Added an operating-system service the application can call to reload the health timer -- the same reload the operating system already performs on its own each time it goes idle. The application calls this from a dedicated lowest-priority task that it creates for the duration of such a long operation, so the health check stays satisfied while the operation legitimately runs.

The capability is intended to be used only temporarily, while the application has deliberately taken control of which tasks are allowed to run during the operation -- raising the priority of the tasks that must run and leaving the rest held off -- so that the application, not chance, decides which tasks need to run and which do not for the duration. The dedicated lowest-priority task sits at the bottom of that arrangement; its getting a turn to run (and reload the timer) is the signal that the processor has drained down through everything the application chose to allow.

This does not disable the health check. The service only has any effect when that lowest-priority task is actually allowed to run, which can only happen once everything more important has already yielded the processor. If an operation ever truly hangs and starves even that lowest task, 800004FF still fires exactly as before. Application changes that make use of this new service are covered by their own SCN.

SCN 5419: XL2; DIP switch 32 support

DIP Switch 32 - making the 32nd configuration switch usable and displayed correctly

The XL200's configuration "switches" are stored as a 32-bit number, and switch 32 is the very top bit of that number. Until now switch 32 could not really be used: its checkbox on the switch configuration screen was disabled, and because it is the top bit, turning it on made the whole switch value appear as a negative number - on the switch screen, on the System Information and Model Information screens, and in the value the controller sends up to Eclipse.

This change enables the switch 32 checkbox (on Closed Loop controllers) and makes the controller treat and display the switch value as a normal positive number everywhere it is shown or sent. With this in place, switch 32 can be set and read correctly.

This is generic groundwork - it does not by itself change how any machine runs. It simply makes the 32nd switch available and trustworthy for any feature that needs it.

Bug Fixes

SCN 5407: XL2; 0xB0001 Task Error

Prevent a rare record-integrity Task Error (000B0001) caused by deleting Delay / Employee / Scrap codes while their entry pop-up is open

Affected software: XL2 Closed Loop and Open Loop, Standard and HVAC, V4 and V5.

Problem - history: The Task-Error reporting portal has been collecting a record-integrity Task Error, code 000B0001, from a number of machines in the field (seen on both V4 and V5). That error is raised by the record system's built-in integrity check whenever it is handed a record pointer that falls outside the valid record-memory range.

Resolving a captured error dump (the stack addresses against the matching build's map, then the matching source) showed the fault happens while the operator Enter Delay Code pop-up is on screen (the related Employee and Scrap code entry pop-ups work the same way). Those pop-ups show the codes in a scrolling list, and the list holds direct pointers to the underlying code records for the rows it is currently displaying.

Separately, the software has a background housekeeping step that permanently removes records the host PC software (Eclipse) has marked for deletion. That cleanup could run even while one of these pop-ups was open. If a Delay, Employee, or Scrap code that the open pop-up was currently showing got permanently removed by that cleanup, the pop-up was left holding a pointer to memory that had been freed and reused. The next time the list drew or scrolled, it followed that stale pointer onto now- meaningless data, and the integrity check tripped - producing the 000B0001 Task Error.

Likelihood: This is believed to be a genuine but uncommon cause, not a frequently-hit one. For it to happen, several unlikely things have to coincide: Eclipse has to delete a Delay, Employee, or Scrap code - records that are normally set up once and very rarely changed - at the exact moment one of these entry pop-ups happens to be open, and those pop-ups are themselves only open briefly and occasionally. So this change removes a possible cause of the error; it is not expected to be a common trigger.

Solution: The housekeeping cleanup now defers permanently deleting Delay, Employee, and Scrap code records while any pop-up window is open. The record stays marked and is removed a moment later, the next time the cleanup runs with no pop-up on screen - so a code the user is currently looking at can no longer be pulled out from under the display. This is the same protection already in place for the Coil list; the change extends that exact approach to the Delay, Employee, and Scrap lists.

SCN 5409: XL2; 0xC0000000 divide by zero task error on Multi-Axis Screens

If more SERCOS Multi-Axis drivers were defined than what are configured in the SERCOS settings, a divide by zero error will occur.

Divisors were preconfigured with default values to prevent this but they were not configured for drives that are not supposed to be defined. This has been resolved.

SCN 5413: XL2; 0x800103FF Task Error

Increase task stack sizes to restore headroom lost in the compiler change

The controller build was moved to the C++Builder compiler, which lays out function stack frames less tightly than the previous Borland compiler. The same source now uses roughly a third more stack, with no change in behavior or execution speed. This quietly reduced the free space on every task's stack.

As a result, several tasks were left with stacks too small to hold their deepest call path together with the interrupt handlers, which run on whichever task's stack is active. When a task overruns its stack it writes past the end of its stack memory and corrupts the neighboring heap record. The damage is caught later -- most visibly as a heap delete task error (800103FF) when that task is deleted, but it can also disturb other data. Repeated 800103FF errors tied to the rotary/press task were seen in the field on at least one machine, and the same loss of headroom put several other small-stacked tasks at risk.

The operating-system minimum task stack size was raised from 0x400 to 0x600 bytes, and individual task stack sizes were increased to cover each task's worst-case usage with margin for interrupt nesting. The deepest tasks -- the rotary motion task, the rotary run-time calculation task, the Modbus task, the firmware update task, and the part-print task -- were raised to 0x1000. A group of moderately deep tasks, including the gag/press tasks, the tile-machine press task, the slave-device task, and the axis-move tasks, were raised to 0x800. The remaining tasks were brought up to the new 0x600 minimum.

The worst-case figures were determined by analyzing the released ROM image. They are a conservative lower bound -- static analysis cannot fully follow recursion or indirect (virtual) calls -- with additional margin added for the interrupt handlers, and the chosen sizes include that margin. Stack overflow is the best-supported explanation for the observed heap-delete errors, though it is not the only possible cause of that error.

SCN 5415: XL2; 0x800004FF Task error during memory test.

Record memory test - prevent the 800004FF task error during a long test, keep the display in step with the test, and run it the same way at power-up and from the Diagnostics menu

Affected software: XL200 ClosedLoop, OpenLoop, and HVAC. Must be built against an operating system that includes SCN 5414.

Problem - history: At power-up, and when started from the Diagnostics menu, the controller runs a record memory test that checks - and where necessary repairs - the stored records. When that test has a large amount of work to do, for example repairing a damaged record chain, it can keep the processor busy continuously for more than a minute and trip the operating system's 800004FF health check (see SCN 5414), even though the test is working correctly.

Two things made this worse. The test paused briefly now and then to let other work run, but that pause was tied to the on-screen progress bar and stopped happening once the bar reached the end -- so a test that ran past that point stopped giving the processor up at all. And the two ways of starting the test (power-up versus the Diagnostics menu) set task priorities up differently, so behavior was not consistent between them. The screen update also ran at a lower priority than the test, so the progress display could lag behind and show a step other than the one actually being tested.

Likelihood: Uncommon. The test has to run continuously for about a minute, which generally only happens when the stored records need extensive checking or repair. It was observed on a unit in the field.

Solution: The memory test now gives up the processor periodically throughout the entire run, instead of stopping once the progress bar is full, so other tasks keep getting a turn.

Both the power-up and Diagnostics paths now run the test the same way. For the duration of the test the application temporarily takes control of which tasks are allowed to run. The display task is now raised above the test, so the screen keeps up and the step shown on the progress display matches the record chain actually being tested -- previously the display ran below the test and could show a step behind the one really in progress. The debugger is kept responsive, the ordinary tasks are held off, and a dedicated lowest-priority "keep-alive" task runs that uses the new operating-system service (SCN 5414) to satisfy the health check while the test legitimately runs. Because that keep-alive task is the lowest priority of the group, it only gets a turn once everything the application chose to allow has run -- so if the test ever genuinely stopped making progress, the keep-alive task would be starved and 800004FF would still fire as intended.

This change keeps a long but legitimate test from tripping 800004FF and makes the two ways of running it behave the same; it does not change the record checking or repair logic itself.

SCN 5416: XL2; Manual Shear while in the Run Mode halts the line.

This bug was introduced in software versions V5.92.00 and V4.92.00 when the Open and Closed Loop source code was merged together.

While in the Run Mode, if the Manual Shear input is activated on a machine that does not support it, the line will halt when the run input is released.

This has been resolved.

SCN 5418: XL2; Diagnostic logger string indexing bug.

The logger class, in some case, uses a char array element as an index into the array, which works fine, provided the char value is below 128. A char variable is a signed variable and 128 is interpreted as a negative value in a signed char. This indexed the array out of bounds.

The logger class is typically only active while debugging and strings this large are not typically used for logging. It is unlikely to have caused any issues in the field but has been fixed nonetheless.

Other Changes

SCN 5408: XL2; 0x800004FF Task Error, downloading order fields from Eclipse.

XL2; 800004FF task error in the Order display-field (HO) command

A customer running 4.106.0 reported an 800004FF task error. The 800004FF error indicates a task stayed in an infinite loop and did not give up CPU time for lower-priority tasks to run for a lengthy period.

The stack dump showed the UART task in the host command that selects which Order fields are shown on the status display - the "HO" command (Uart_Cmd_HO). That command parses a list of field numbers out of the message. The parsing loop only counted a field - and so only advanced toward its field-count limit - when it decoded a valid, non-zero field number. A field value of zero, which is a legitimate value meaning "field not set," was skipped without advancing the count.

That left the loop with only one remaining way to end: the message index reaching the message length. Get_String_From_UartMsg returns the index unchanged when the message length is outside its valid range, so under that condition the index stops advancing. With a zero/unset field and a non-advancing index, the loop had no way to terminate and held the UART task on the processor until the watchdog fired.

The loop has been changed to advance its position counter on every pass, not only on valid fields. The counter now tracks message position (zero still means "field not set"), which limits the loop to the maximum number of order edit fields regardless of message contents, so it can no longer spin. The loop's limit test was also corrected (<= to <) so it can no longer write one entry past the end of the field array.

XL220CL 4.111.0, XL220OL 4.111.0, XL220OL 5.111.0 only

Bug Fixes

SCN 5410: XL2; 80040A4D task error from the debug-port UART command

A customer reported an 80040A4D task error. 80040A4D is a semaphore error raised by the OS when more units are sent to a semaphore than its configured maximum.

The semaphore involved is the one that wakes the UART task when a host (Eclipse) command arrives; it holds at most one pending command. In normal operation only one source ever posts it at a time - Eclipse communicates either over Ethernet or over RS485, and those two paths are mutually exclusive, so a second post does not occur.

The debug serial port, however, is the same physical port as the barcode scanner; which role the port plays is decided at boot based on whether a PC is attached. The debug port has a development command, "UART", that injects a command into the host-link processing by posting this same semaphore - and it does so without first checking that the semaphore is empty. If the port comes up as the debug port while a scanner is attached, a scanned string that begins with "U" is decoded as this command and posts the semaphore. If that lands while a real Eclipse command is already pending, the extra post exceeds the semaphore's maximum and the task error is thrown.

This is more likely than it first appears. A scanner is commonly connected to this port, and customers frequently struggle to get the scanner and the port configured correctly, so the port coming up in its debug role while a scanner is attached is not unusual. Any scanned barcode beginning with "U" is then taken as this command, and scanned data being misrouted into the debug command handler is a realistic field condition rather than a rare coincidence. The task error specifically also needs host-link traffic arriving at the same moment.

The debug-port UART command is a development and testing tool intended only for the PC simulator. It has been removed from the hardware build so it can no longer post the semaphore; the tool remains available in the simulator.