Explainer
Which CODESYS tool programs Delta AX and where G-code runs
Short answer
Delta AX motion CPUs are programmed with DIADesigner-AX, the CODESYS V3.5-based IDE in the DIAStudio suite, never a stock CODESYS installation; v1.7.0 adds multi-EtherCAT-master support. G-code per DIN 66025 runs only on CNC-licensed variants of the 8-axis class, so resolve the full ordering code and confirm the CNC objects exist in the project tree before committing a design.
On this page
Program a Delta AX motion CPU with DIADesigner-AX, not a stock CODESYS installation, and expect G-code only on the CNC-licensed variants of the 8-axis class. The AX series runs a CODESYS V3.5-based SoftMotion runtime as an EtherCAT master, but Delta ships its own IEC 61131-3 IDE inside the DIAStudio suite with the AX device descriptions, drive libraries and diagnostic views already loaded. This article gives the version you need, the CPU that matches your axis budget, and the check that proves the unit in front of you will execute DIN 66025 programs before a machine design depends on it.
Which tool programs a Delta AX motion CPU? #
DIADesigner-AX is the only supported environment: it is Delta's CODESYS V3.5-based IEC 61131-3 programming tool for the AX series, distributed in the DIAStudio suite with the AX device descriptions and Delta servo and drive libraries preloaded. A generic CODESYS Development System is the wrong base for an AX project.
Without the vendor packages you would hand-install device and library files, and you lose the Delta-specific diagnosis views and the offline simulation that ship with the branded tool. For CNC work the IDE also carries the CNC editors, so one installation covers logic, motion and G-code programming. Because the runtime underneath is CODESYS V3.5-based, general SoftMotion know-how transfers: the axis and bus configuration in the CODESYS SoftMotion over EtherCAT on a Raspberry Pi runtime walkthrough is the same plumbing you will meet on an AX CPU.
Which DIADesigner-AX version handles two EtherCAT masters? #
v1.7.0 is the practical minimum for a new project: released on 30 September 2024, it added multi-EtherCAT-master support and extended diagnostics for ASDA-series servos and MX300 drives. If the machine has more than one EtherCAT segment, a motion network plus a separate remote-I/O network for example, an older version cannot configure it, and the in-IDE servo fault detail for those drive families also requires that release. Treat it as the floor for every new project, single network or not, because the extended drive diagnostics are what you will want on the bench during commissioning.
Which AX model matches your axis count? #
The licensed SoftMotion axis count, not the I/O, selects the CPU: count your axes first, then verify the on-board I/O and interfaces on the model that fits that budget.
| Model | Max EtherCAT axes | Note |
|---|---|---|
| AX-304EL | 4 | Entry-level motion CPU |
| AX-308E | 8 | Richest on-board I/O set |
| AX-316E | 16 | Mid-range step |
| AX-332E | 32 | Minimum 1 ms sync cycle at full axis count |
| AX-364EL | 64 | Highest axis count in the family |
Worked example: a rotary filler with six servo dosing heads, one conveyor master and one nozzle-carriage slave needs 6 + 1 + 1 = 8 axes. That exactly fills an AX-308E and leaves nothing for a lane added next year, so the honest selection is the AX-316E. Size with headroom, never to the exact count.
The instruction set does not decide between models: position, velocity and torque control, multi-axis interpolation, electronic gearing (E-Gear) and electronic cam (E-Cam) are common across the family, so axis count and I/O are the real constraints.
Which AX CPU actually runs G-code? #
G-code runs only on the CNC-licensed variants of the 8-axis class, so the verbal shorthand "AX-8" is not an orderable answer: resolve the full ordering code, for example AX-308EA0MA1T, and confirm the CNC licence against that code in writing with the distributor. Two CPUs both described verbally as "AX-8" can differ in CNC capability and I/O, which is exactly how a quoted machine ends up without the feature it was sold on.
The proof is in the project tree. After adding the device in DIADesigner-AX, the tree should offer CNC settings, CNC program (G-Code) and CNC program (DIN66025) objects. If those objects are absent, or a licence error appears at download, the CPU is not CNC-enabled, and no project setting changes that. The underlying CODESYS SoftMotion CNC capability is application-licensed and includes a 3D CNC editor per DIN 66025 plus a tabular coordinate editor; on the AX platform that licence rides on the specific ordering code, which is why the full code, not the class name, is what you verify.
How do you split tasks in a filling application? #
Filling accuracy comes from the task split, not raw CPU speed: run the EtherCAT bus cycle and motion blocks in the highest-priority task, and push serial and logging traffic into a slow low-priority task.
A structure that commissions cleanly:
- MotionTask, highest priority: the bus cycle task, SoftMotion axis function blocks, MC_* calls.
- FastTask: 1-2 ms, valve cutoff, weigh and flow comparison, capture handling.
- MainTask: 10-20 ms, recipe, sequencing, HMI interface.
- CommsTask: 100 ms and slower, Modbus RTU/TCP, logging, SCADA tags.
Never place Modbus or file-logging calls in the bus cycle task: a blocking serial call inside the motion task is the classic cause of intermittent EtherCAT sync loss on CODESYS-based controllers, and it looks like a hardware fault when you chase it.
Capture the cutoff point in hardware. Wire the flowmeter pulse train to a high-speed DI and count it with the hardware counter, not a rising-edge instruction polled in a 10 ms task. For load-cell filling, sample the weight from a fast analog or weighing slave over EtherCAT and evaluate it in the FastTask. Drive the fill valve from a high-speed DO and subtract a learned in-flight quantity, updated each cycle from the measured overshoot, from the setpoint. Servo piston or auger heads become one SoftMotion axis each with MC_MoveRelative or MC_MoveAbsolute; on continuous rotary fillers, use E-Cam to slave the nozzle carriage to the conveyor master.
For the cycle budget: finalize axis count, PDO sizes and slave topology, commission at a conservative 2-4 ms cycle, read the real task time and jitter in the task monitor, and keep peak execution below roughly 60-70% of the cycle before tightening it. At a 2 ms cycle that is 2 ms × 0.70 = 1.4 ms of allowed peak execution. A lost-frame or working-counter count that is non-zero and rising in the master diagnostics means cabling or topology work, not a shorter cycle.
One safety line: the AX runtime is a soft PLC, not a safety controller, so E-stop and safe torque off stay in hardwired safety hardware outside every task.
What limits input and output speed on an AX-308E? #
The 200 kHz rating on the AX-308E's 16 DI and 8 DO channels is a hardware capture and pulse rating, not the rate at which cyclic logic services a bit; your task cycle time is that bound. The full interface set of the ordering code AX-308EA0MA1T:
| Interface | Specification |
|---|---|
| Digital inputs | 16 DI, 200 kHz, NPN |
| Digital outputs | 8 DO, 200 kHz, NPN |
| Encoder inputs | 2 incremental, 1 SSI absolute |
| Fieldbus | EtherCAT master |
| Ethernet | 2-port switch |
| Serial | RS-485, RS-232 |
| Storage and service | USB, microSD; firmware and project backup, card-based update |
Anything faster than the cycle goes through the dedicated high-speed capture and latch function blocks, never through a contact in the MainTask. The incremental and SSI inputs serve external encoder feedback, and the serial ports and Ethernet switch give you the device-level connections that keep Modbus instruments and the programming link off the motion network entirely.
Questions asked
Which programming languages does DIADesigner-AX support?
It edits LD, FBD, SFC, ST and CFC, and adds the SoftMotion and CNC editors, offline simulation and device diagnosis in one package. That coverage means logic, motion and CNC programming for an AX project stay in a single tool instead of splitting across a generic CODESYS install and separate utilities.
What happens to an older project opened in DIADesigner-AX v1.7.0?
The IDE converts the project to the newer format when you open it. Archive the original project file before converting, keep that archive with the machine documentation, and convert a copy first so the as-running version on the machine stays untouched until the converted project is tested.
Do the standard CODESYS CNC examples apply to an AX CPU?
Yes, for G-code syntax (the DIN 66025 subset), the SMC_* function block set and the decoder-interpolator-transformation chain, because the runtime is CODESYS V3.5-based. Use Delta's documentation for the device tree, drive parameter mapping and diagnostics, since those parts are AX-specific and are where generic examples stop matching.
What are the USB port and microSD slot on an AX-308E used for?
Both carry firmware and project backup, and firmware updates are card-based: the runtime version is updated from the card rather than through the programming connection. Keep a card holding the machine's current firmware and project with the cabinet so a failed CPU can be restored on the floor without hunting for the original download.


