Skip to main content

ControlForge Reference Guides

Complete technical documentation for every ControlForge subsystem. Each guide includes architecture diagrams, function signatures, parameter tables, IEC 61131-3 Structured Text examples, and transport-specific notes.


Hardware Interfaces

Connect microcontrollers and USB devices directly to your PLC logic. ControlForge handles firmware upload, protocol framing, and connection management — your ST code just calls functions.

GuideTargetFunctionsDescription
Parallax P2Propeller 2 (Rev G)8244 binary protocol commands + 38 convenience functions. Smart pins, UART, I2C, SPI, ADC/DAC, PWM, servo, quadrature encoder, frequency counter, OLED display, animated eyes. 3 Mbaud USB, CRC-16 protected, schema-driven.
ArduinoUno R4 WiFi20GPIO, 14-bit analog, PWM, DAC, I2C, servo, WiFi, BLE, LED matrix, HC-SR04 ultrasonic.
TeensyTeensy 4.047CAN bus, hardware PID, complementary PWM, NeoPixel, encoder, RTC, TRNG, SPI, UART.
Flipper ZeroFlipper Zero31NFC, RFID (125 kHz), Sub-GHz radio, infrared, iButton, GPIO.
RP2040-ZeroWaveshare RP2040-Zero26GPIO, ADC, PWM, NeoPixel, I2C, SPI, UART, servo, OLED, distance, temp sensor. Rust firmware (UF2).
ESP32 HMI DongleESP32-S3-LCD-1.47CompanionWiFi status display + USB mass storage. mDNS auto-discovery, live scan times/faults/memory, OTA updates.
PhidgetsPhidgets USB16Voltage, current, temperature, humidity, load cells, relays, motors.

CNC, Laser & 3D Printing

Stream G-code to machines with real-time parsing, parameter modification, and multi-transport support. Use ST logic to add safety limits, feed overrides, and sensor integration that slicers and CAM tools can't do alone.

GuideTargetFunctionsDescription
G-codeCNC / Laser / 3D Printer41File I/O, line parser/modifier, machine connection, status, position, pause/resume/stop. Three transports: xTool HTTP, GRBL serial, Marlin serial. CLI streaming mode (free, no license).

Industrial Protocols

First-class client and server implementations for every major automation protocol. Multi-device polling, type-safe memory areas, and diagnostic counters built in.

GuideProtocolFunctionsDescription
Modbus TCPModbus TCP/IP30Client + server, FC01-FC16, multi-device polling.
Modbus RTUModbus RTU (serial)30Client + server, RS-485, bus scanning, RTU-over-TCP bridge.
EtherNet/IPCIP / EtherNet/IP43Scanner + adapter, tag browsing, Allen-Bradley integration.
Siemens S7S7comm38Client + server, DB/I/Q/M areas, S7-300/400/1200/1500.
OPC UAOPC UA36Client + server, node browsing, security policies.
MQTTMQTT 3.1.136Client + built-in broker, pub/sub, message queue, QoS levels.
Omron FINSFINS/UDP23Client + server, DM/CIO memory areas, CJ/NJ/NX series.
DNP3DNP325Master + outstation, BI/BO/AI/AO/counter, SCADA/utility.
IEC 104IEC 60870-5-10427Client + server, SP/DP/float/scaled/counter, power grid.
BACnetBACnet/IP36+Client + server, priority array, COV, WhoIs, HVAC/BMS.
SNMPSNMPv1/v2c/v336+Client + agent + trap receiver, OID helpers, datacenter monitoring.
DF1DF1 (AB serial)16Client, SLC 500 / MicroLogix, N7/F8/B3 file addressing.
Sparkplug BSparkplug B / MQTT16Edge node, NBIRTH/NDATA lifecycle, Ignition integration.
SEL RelaySEL Fast Message54Client + server + meter. Mirrored bits, SER, oscillography, COMTRADE, settings.
InfluxDBInfluxDB v1/v216Write + batch, line protocol, Grafana dashboards.

ST Language & Libraries

Built-in functions callable from Structured Text — data processing, integration, and fault tolerance.

GuideCategoryFunctionsDescription
Timers, Counters & FBsFunction Blocks14TON, TOF, TP, RTO, CTU, CTD, CTUD, SR, RS, R_TRIG, F_TRIG, PID, PIDE.
Math, String & ConversionIEC Standard + Extensions150+Trig, rounding, statistics, EMA/SMA, string ops, type conversions, bitwise, unit conversions.
JSONData Interchange22Parse, build, query, modify JSON. Dot-path access, typed getters, JSONPath.
HTTP ClientWeb Integration16GET/POST/PUT/DELETE from ST. Response maps, custom headers, webhooks.
File I/OFile System15Read/write/append files, line-by-line processing, CSV logging. Sandboxed.
DatabasePersistence18SQLite, PostgreSQL, MySQL. Query, insert, transactions, schema management.
Data StructuresCollections~160ARRAY, MAP, LIST, QUEUE, STACK, DEQUE, SET, HEAP/PQUEUE.
Resilience & CachingFault Tolerance35Cache, circuit breaker, rate limiter, throttle, debounce, bulkhead, hysteresis.
Debug & LoggingDiagnostics36Multi-target logging: file, SQLite, PostgreSQL, InfluxDB, syslog, console. Per-module levels.
Motion ControlPLCopen MC23Create axes, trapezoidal profiles, absolute/relative/velocity moves, homing, jog, PLCopen state machine.
CSV & INIFile Formats20CSV parse/query/modify/export + INI file read/write/parse. Recipe management, config files.
Regular ExpressionsPattern Matching13Match, find, replace, split, capture groups, count, validate. RE2 engine, RE_* aliases.
CryptographySecurity~55SHA/MD5 hashing, HMAC, AES (CBC/GCM), RSA encrypt/sign, Base64, JWT auth, CRC checksums.
SMTP EmailEmail4Send plain text, HTML, authenticated, and TLS-encrypted email from ST. Alarm notifications.
Analyzer & Store-ForwardDiagnostics22Protocol packet capture, decode, PCAP export + offline message queuing with SQLite persistence.
NMEA & GPSGeospatial26Parse GPS sentences, extract position/speed/altitude, geofencing, distance/bearing calculations.
EntertainmentShow Control40Art-Net DMX (7), sACN/E1.31 (7), MIDI (14), OSC (12) — stage lighting, sound, installations.
UtilitiesSpecialized83KNX, M-Bus, ZPL labels, barcode, URL, TLV/BER, GSV/SSV, ctrlX EtherCAT, directory ops.
OSCAT LibraryST Library550Open-source IEC 61131-3 library. Complex math, PID, signal processing, sensors, date/time, scheduling.

Platform

Core development tools, distributed execution, and visual programming.

GuideTopicDescription
IDE & RuntimeDevelopment EnvironmentBrowser IDE, task scheduler, debugger with breakpoints + stepping, HMI builder, project files, protocol analyzer, store-and-forward.
AI AssistantBuilt-in AIChat + autonomous control mode, 13 runtime tools, Claude/OpenAI/Ollama providers, code/HMI/flow generation, voice input.
REST API (OpenAPI 3.1)API ReferenceAll 407 operations by group, OpenAPI 3.1 spec UI, WebSocket, authentication, common patterns.
ConfigurationYAML ReferenceEvery config field documented: tasks, protocols, I/O mapping, DataLayer, AI, Node-RED, real-time, fleet, security, ctrlX.
ClusteringDistributed ExecutionBoss/minion architecture, DataLayer pub/sub, fleet management, tested to 500 minions.
Node-REDFlow Programming7 custom ControlForge nodes, Dashboard 2.0, AI-generated flows.

ControlForge v1.0.533 | April 2026 © 2026 JMB Technical Services LLC. All rights reserved.