Block Programs
Block Programs allow the user to implement custom logic in CEX without modifying its firmware. A program is built by connecting blocks (functional units with inputs and outputs) in a graphical editor, in the same way as in the Veronte Autopilot 1x.
Block programs are executed cyclically by CEX in its main loop, so they can be used to read system and user variables, process them and write the results back. There is no fixed execution frequency: blocks run at the maximum rate allowed by the CEX core, so the actual frequency depends on the processor load. In this way, they can complement the rest of the configuration, for example:
- Computing user variables that are later sent through CAN, serial or ARINC outputs.
- Selecting the transmission CAN bus when Use dynamic port is enabled (see Input/Output section).
- Triggering the transmission of CAN or serial messages (custom messages) on demand.
- Implementing simple control laws, filters or protections over the I/O signals.
Block programs are managed from the following panel:
- State: Status of the program.
- Step: Step to which the program is assigned.
- Blocks: Number of blocks that make up the program.
- Size (words): Memory occupied by the program, in 16-bit words.
- Name: Name of the program.
- Memory in use (Programs + Metadata): Memory used by all programs and by their metadata, out of the total memory available.
- Launch Editor: Opens the block editor, where programs and libraries can be created, modified or deleted.
Note
For a detailed description of the block editor, see the Block Programs section of the 1x PDI Builder user manual. Note that only the blocks listed below are available in CEX.
The blocks available in CEX are grouped into the following categories in the block editor. Click on each category for a detailed description of its blocks:
- Control: PID and T-Sched PID.
- Data Source/Sink: Source and sink blocks for real, integer and bit variables, and Const Real/Integer blocks.
- Devices: Clock.
- Execution Flow: On focus, If-Else Switch and Integer Switch.
- Library: Custom blocks defined by the user (up to 8 block libraries), which can be reused in any program.
- Logic: AND, NOT and OR.
- Math: f(x), f(x,y), r64 f(x), r64 f(x,y), Uint16 and Vectors (Bundle, Split Real/Bool, Dot product, m x v, Scale, Min/Max, vector operations and azeld conversions).
- Message triggers: CAN message trigger and Serial producer trigger.
- Signals: 3D Table Interpolation, Bound, Derivative, EWMA Tau filter, IIR Filter, Integrator, Interpolation Vector and Rate limiter.
- Type Casting: Bool to Real, Integer to Real, Real to Bool and Real to Integer.
© 2026 Embention. All rights reserved.