Controls Library
Earlier articles
Explainer
Will an S7-200 starter kit teach you S7-300 and S7-400
Yes for fundamentals, no for the toolchain: an S7-200 starter kit teaches scan-based ladder logic, timers and counters that transfer to S7-300/400 work, but Micro/WIN and STEP 7 are separate tools and no project converts between them. Budget the larger share of practice hours for STEP 7, and buy any S7-200 kit as used training hardware, since new supply ended 1 October 2014.
Troubleshooting
Two SCADA servers writing to one PLC over Modbus TCP
Yes: a Modbus TCP server accepts multiple client connections, so both SCADA systems can read the PLC at the same time. Conflict appears only where both applications write overlapping addresses, because the last write to a register or coil wins. Inventory every writable address in both projects, then either make the second system read-only or give the PLC command ownership with a separate request area per client.
How-to
How to install and run CODESYS fieldbus add-ons in ctrlX
Install the fieldbus package from Tools → Add-on Installer, add the Ethernet adapter while online to the ctrlX OS target, then set the generated IO task to priority 30 and the service task to 39 before login. Keep PROFINET off eth0, and protect the engineering interface by configuring a second IP address on the controller.
Explainer
Reading SunSpec Modbus devices into SCADA over Modbus TCP
A standard Modbus TCP driver reads SunSpec devices. SunSpec only defines the register layout: a chain of model blocks starting at the device's documented base address, each block carrying a model identifier, a length, and int16 values you decode with per-block scale factors. The engineering work is block location and scaling, not a new transport.
How-to
Exposing Modbus coil addresses as named OPC UA symbols
Machine Expert's Symbol Configuration does not list directly addressed %QX variables, so Modbus coil bits cannot be exported as they stand. Declare one ordinary named Boolean per coil, copy between the coil area and those variables in the task, and export the variables with read or write access set per point. The AT %QW word-array trick exposes 256 unnamed bits per 16 words, not named coils.
Comparison
Why PROFINET RT and IRT need different PC hardware
HSE, EtherNet/IP and PROFINET NRT run on a stock PC Ethernet NIC because they ride on IP and TCP or UDP. PROFINET RT also runs on stock hardware if the stack sends raw Ethernet frames and the PC stays on one segment. Only IRT needs dedicated time-scheduled hardware, and a PC connects to an IRT cell through ordinary Ethernet ports only.
Troubleshooting
Import PLC Coder XML into TwinCAT 3 with PLCopen import
The "cannot consume the specified XML" error in TwinCAT 3 means the file reached a generic project-tree XML import, not the PLCopen importer. Right-click the PLC project in the solution tree, choose Import PLCopenXML and select the generated file. The command and its destination decide success; the XML stays as generated.
Selection guide
Which PLC software you actually need to buy
Buy two packages for the CompactLogix machine: the programming suite whose version covers the controller's installed firmware revision, and one HMI development package matched to the touch panel's catalog number. Drop the standalone communications package that the suite bundles in Lite form, and drop the legacy PC HMI unless an existing project needs editing. Network configuration software is only for networks the machine actually has.
How-to
Change an MR-J4-TM servo amplifier network protocol card
The MR-J4-TM PROFINET, EtherNet/IP and EtherCAT variants are the same amplifier with different communication cards, so you convert one by exchanging the card and rebuilding the controller-side device configuration. Fit ABCC-M40-PIR for PROFINET, ABCC-M40-EIP for EtherNet/IP or ABCC-M40-ECT for EtherCAT; if handling the connector risks bent pins, send amplifier and card to the manufacturer's service instead.
Troubleshooting
Use the PLC Coder timer block correctly in TIA Portal
A Stateflow delay generated with PLC Coder follows wall-clock time only when the timing implementation and the PLC task call interval agree with the model sample time. Pick the target IDE timer for real elapsed time; use the Target-Independent Counter only when the generated code runs at a fixed periodic interval equal to the model step.
Troubleshooting
Why an FX3U-ENET cannot serve Modbus TCP on port 502
Modbus TCP on an FX3U needs the FX3U-ENET-P502: only that module can open TCP port 502. The standard FX3U-ENET reserves every port below 1024 for its own protocols, so a Modbus TCP client cannot connect to it and no GX Works2 setting changes that. Read the module label first; if it lacks the P502 suffix, the fix is a module swap or a gateway, not ladder edits.
Troubleshooting
Why Citect strings read empty from an S7-1500 in Ignition
Citect PSDirect writes only the character bytes of an S7 STRING and never sets the current-length byte, so the PLC, its OPC UA server and Ignition's S7 driver all return an empty string. Write 30 into byte 1 once per string, read the tag at offset 0 with length 32, trim nulls with replace(tag("tagpath"), char(0), ""), and pad Ignition writes to 30 characters.