IEC 61131-3 IDE tool for Windows, macOS & Linux, with EtherCAT master and motion, running on the PLCnext AXC F 3152
An IEC 61131-3 IDE tool with a built-in EtherCAT master, PLC runtime and motion library is running on Windows 11, macOS and Linux (Debian 13), with the Phoenix Contact PLCnext AXC F 3152 as real-time master. It is working software used with real drives and I/O: write Structured Text, compile, download and debug online, configure the EtherCAT network, commission axes and cams, all from the same IDE on any of the three systems.
About the attached carousel. The carousel is an index of all the developments completed so far, one slide per topic. Each topic will follow in its own post with full details, measurements and how to reproduce them.
Choosing where it runs: Host, remote target, or both
The IDE and the real-time part are separate programs, so the same tool works in three setups:
Host: the master and runtime run on the same PC as the IDE (start and stop the local server from the toolbar). Remote target: the master and runtime run on a controller, for example the PLCnext AXC F 3152 or a Linux PREEMPT_RT industrial PC; the IDE connects over the network. On the controller only the master and runtime run, a few tens of MB; no GUI. Both: the IDE connects to several targets at once (a local one and one or more remote ones) and each shows its own state, RUN or STOP, application and EtherCAT network. Several EtherCAT networks (several NICs) are supported by one master.
Every machine can be host and target: Windows, macOS and Linux (Debian 13 and derivatives, including the AXC F 3152 and PREEMPT_RT PCs). Real-time performance depends on the target operating system: Linux PREEMPT_RT and PLCnext are real-time; Windows and macOS are not, and are meant for development and slow cycles.
The IDE
Project: solution tree, ST editor with IntelliSense, syntax checking and error list, POUs (programs, function blocks, functions), data types, global variables, library manager. The project lives in plain files in a folder and can be exported and imported as XML or JSON and compared.
Build and run: compile, download, online change (variables keep their address), start, stop and reset, boot project stored on the target, login with live values shown inside the code, watch window with write and force.
Tasks: several tasks with interval, priority, CPU core and watchdog per task; the bus task decides the EtherCAT cycle. Scope and plot: any variable sampled in the real-time cycle with trigger, cursors and logging to file.
Native code: C modules callable from ST, with a C interface for the runtime.
EtherCAT configuration and diagnostics Network scan, scan-versus-configuration comparison, ESI and ENI import and export, slave tabs for process data, startup commands, CoE online with dictionary, FoE, EoE and DC; tabs appear only for what the slave supports, and DC slaves use SYNC0 while others stay in free run or SM-synchronous mode as their ESI says. Process image table, device variables, Sync Units: groups of slaves with their own datagram and working counter, so a wrong counter points to the group that has the problem. Distributed clocks with offset control, jitter histogram, cycle-spike log with new-record reporting, per-command working counters, lost-frame and CRC counters, automatic slave recovery with the AL status code logged when a slave leaves OP. Motion
PLCopen-style MC_* library: power, move, velocity, halt and stop, home, gear and electronic cams, DS402 drives (CSP), superimposed motion, touch probe. Axis pages with online commands, limits, following-error source (drive 60F4h or calculated), and error handling with the axis as the authority: a drive that leaves Operation enabled raises an axis error with its status word, and a released cam reports the reason. On the PLCnext AXC F 3152
The master and runtime run on the AXC F 3152 as a stand-alone real-time master on LAN3 (X3), installed over SSH without changing the PLCnext firmware, while the IDE runs on your Windows, macOS or Linux PC and connects over LAN1 (X1). Cycle 1000 µs with distributed clocks: cycle jitter measured on the unit is about +21 µs maximum and −10 µs minimum.
Leave a Reply
You must be logged in to post a comment.