Controls Library
Earlier articles
Troubleshooting
Read PLC tag arrays in one block request
Reading the start tag with an element count returns the whole array in one request: Read("Test[0]", 201) gives Test[0] through Test[200], repeatable at least every 500 ms per the driver's guidance. The count is a quantity, not a final index, and the DataReceived handler must iterate e.Values rather than use only e.Values(0). Update past driver 3.41, whose AsyncMode reads can drop data, to the 3.5 series Read and BeginRead calls.
Troubleshooting
Fixing junk Modbus TCP REAL writes from Citect SCADA
The junk is the two 16-bit halves of your 32-bit REAL, assembled in the wrong order. Give each REAL two consecutive holding registers and set the [MODNET]FloatMode parameter - values 0 to 3, default 0, byte order 1 0 3 2 - until the PLC reads back the entered value. The address is usually right; ModScan already matched the PLC arrangement.
How-to
How to OR a comparator with a contact in Machine Expert HVAC ladder
Machine Expert - HVAC will not build a GT comparator block inside a ladder parallel branch. Get the same Boolean OR by splitting the logic across two networks or by replacing the block with an expression combined through an OR block, then verify all four input combinations before download.
Troubleshooting
Why RSLogix 5000 cannot open an SLC 5/03 path
DF1 autoconfiguration in RSLinx Classic proves the serial link to the SLC 5/03 works. RSLogix 5000 cannot select it because that editor targets ControlLogix and CompactLogix only; the SLC 5/03 opens in RSLogix 500. No cable, baud, or driver change fixes the editor mismatch.
Troubleshooting
Where Omron Easy Modbus Master D32300 registers come from
D32300 through D32304 are not drive addresses: they are the fixed PLC command area that Omron's Easy Modbus Master reserves for the selected serial port, decoded as slave #1, function 06, four data bytes, register address #2136 (hexadecimal, decimal 8502) and the value from D6200. Look up 8502 in the drive's Modbus register table, not D32300.
Troubleshooting
Show a forced M580 input in Citect SCADA
A forced %I bit on an M580 never reaches Citect over Modbus, because the Quantum %S79 force-to-Modbus synchronization is not implemented on M580 or M340 and no setting restores it. For the FAT, mirror each input into a %M coil and read it at 000100-style addresses — 400100 is the holding-register area and the common addressing mistake — or serve the tags through OFS.
Selection guide
Connecting a CompactLogix to a Mitsubishi A2ACPU over Modbus
Drop the RS-232/RS-485 converter plan: it converts electricity, not protocol, and the CompactLogix DB9 port speaks DF1. Put a DF1-to-Modbus RTU gateway such as the Digi One IAP between the two PLCs, wire RS-485 from it to the A2ACPU's Modbus slave module, and confirm that module's documented register map before configuring the CompactLogix messages.
Troubleshooting
Fix block format not recognised when uploading an S7-200 program
A completed upload that Micro/WIN V4.0 cannot display means the transfer worked and the parser failed: the block in the CPU belongs to an older toolchain generation. Save the upload untouched, open the original project in the Micro/DOS or Micro/WIN release that created it, and convert a copy in V4.0. Download nothing until the recovered project opens, compiles and matches the block inventory you recorded.
How-to
Displaying an Omron CJ2M value in InTouch tag layers
InTouch reads the CJ2M through a server, never directly: install the Omron FINS or Hostlink I/O Server, or use an OPC server such as Kepserver with InTouch as the OPC client. Prove four layers in order — the PLC word in CX-Programmer, the server's device connection, the item read for CIO0008, then the InTouch tag and its screen binding — and fix only the layer that fails.
Troubleshooting
Fix PROFINET devices lost but still pingable in CODESYS V3
When both PROFINET devices still answer ping but the CODESYS V3 controller cannot find them in a scan, the fault is on the controller's receive path. The log line 'Ethercat packet receive error: sysethernet' is a runtime Ethernet-driver message, not an EtherCAT device — the device tree has none. Send clock and reduction ratio changes were already tested and ineffective, so keep the cold restart as interim recovery and escalate with correlated logs.
Explainer
Can a PLC gateway replace a networked VFD with hardwired I/O
Yes to the wiring, no to the disguise: a small PLC can drive a 4-20 mA speed reference and run/trip signals, but an EtherNet/IP scanner checks vendor ID and product code and will not connect to a gateway posing as the drive, so the upstream controller must be reprogrammed to talk to the PLC as itself. Fixed installations get a network-native drive; OEM machines built around customer-supplied drives get a defined hardwired interface.
Troubleshooting
Fix SIMATIC NET OPC DA to an S7-1500 after a PLC swap
Yes, SIMATIC NET v16 keeps serving OPC DA to the CPU 1511-1 PN; nothing new is bought on the PC side. The fix is PLC-side: enable PUT/GET in the CPU, clear optimized block access on the DBs you address absolutely, and load an XDB compiled from a TIA Portal PC station. OPC UA only needs the CPU's own server enabled and certificates trusted from firmware V2.9.