Controllers and I/O
Controller hardware, discrete and analog I/O, remote I/O, selection and machine safety.
Latest articles
How-to
How to configure and scale analog inputs on a Modicon M340
Configure the channel's electrical range and user range in the module configuration first; the program then reads the channel as %IW rack.slot.channel and scales with one linear formula against the configured count endpoints. A 0-10 V channel configured 0-10000 counts reads 5000 at 5 V. The converter's 16-bit resolution never enters the arithmetic.
How-to
Scale MicroLogix analog inputs to Pascals over DF1 reads
Stage the analog word into an N7 integer with a MOV and read that register over DF1; the driver does not serve the physical input word. Scale counts to volts linearly, apply the gauge exponent in one place, and check two injected points, because 10 mV of voltage error moves the reading 2 to 4 percent.
How-to
Configure a CP1H high-speed counter for an encoder input
The CP1H gives you four built-in high-speed counter inputs: single-phase counting to 100 kHz and differential-phase 4x counting to 50 kHz input frequency, with a 32-bit range in linear or ring mode. Wire the encoder's phase outputs to the counter input terminals, set the mode and range in CX-Programmer, and prove the count on a known rotation before you use it for control.
Explainer
Why Modbus polling is not the same as remote I/O
Polled Modbus moves each remote point one request-response transaction at a time, so register data refreshes on the poll cycle — commonly hundreds of milliseconds — not in step with the controller's I/O scan. Native remote I/O refreshes the whole remote image in a time close to one scan and faults deterministically on node loss. Use polled Modbus for supervisory points that tolerate its measured cycle, and native remote I/O when interlocks or short pulses need every-scan behavior.
How-to
Replacing a WAGO 750 Profibus coupler without reconfiguring
For a WAGO 750-3xx Profibus coupler such as the 750-343, the replacement needs no software configuration on the remote node: set the DIP-switch address to the same value, match the termination switch, power-cycle, and the coupler rebuilds its fixed 32-byte input and 32-byte output image from the modules on the backplane. Only 750-8xx couplers must be reconfigured with WAGO IO Check.
How-to
Wiring four drives to a shared 1756-OF8 analog return
Yes, the four drives can share the return, because the 1756-OF8 already shares it internally: every RTN terminal is one common node, so all four loops sit on a single reference. Run a separate return conductor from each 1336 signal common to the module, and give each drive its own output channel.
How-to
How to run analog I/O over a Modbus TCP bus coupler
Yes: remote analog I/O behind a Modbus TCP bus coupler can close a control loop from the PLC. Prove the electrical path with the network out of the loop, bring up the connection with a real timeout, map and scale the channels against known test points, then close the loop on measured timing — one documented integration refreshes coupler data every 10 ms, but the valve and hydraulics set the real response, and a failed exchange is a fault state, never fresh data.
Troubleshooting
Fixing 4-20 mA scaling on a Quantum AVI030 analog input
On the Quantum AVI030 analog input, the raw range follows the channel resolution: 12-bit reports 0-4095 counts and 16-bit maps 4-20 mA to 6400-32000 counts. Neither 0-64000 nor a mismatched 0-4095 will scale or hold; set the block's raw limits to match the configured resolution and verify with 4, 12 and 20 mA test currents.
Troubleshooting
Detect a failed analog input channel and report it to SCADA
Read the raw input word and the module's per-channel diagnostics before you touch the SCP scaling, then alarm channel health as its own tag that names the channel number. A failed channel then reaches SCADA as a fault with an identity, not as a plausible scaled level, so you know whether to carry a card, a transducer, or wire.
Troubleshooting
Wiring a 1769-OF2 analog output to a PowerFlex 753 input
Wire it directly: the 1769-OF2 channel sources the loop current and the PowerFlex 753 analog input set to current mode is a passive 93 Ω receiver, so no isolator is needed. Set the card's power switch to backplane, land only two wires on AI+ and AI-, and hunt repeated input-card failures in a second 24 V source, a shared 24 Vdc/0 Vdc common, or an unverified replacement card.
Troubleshooting
Why PC-polled remote I/O cannot count encoder pulses for SCADA
A 100 PPR quadrature encoder on a line at 200 m/min produces 333 Hz on channel A, about 1.3 kHz once the counter decodes quadrature at 4x. No PC poll, and no 4 ms discrete input, can follow that rate. Count the pulses in a PLC high-speed counter input and let the SCADA sample the accumulated register.
Troubleshooting
Sizing a Generic Ethernet Module connection for WAGO 750 I/O
Enter the Generic Ethernet Module connection from the coupler's process image: input assembly instance 107 sized to input-image bytes plus one, output assembly instance 101 sized to the output-image bytes exactly, configuration assembly instance 1 at size 0, Comm Format SINT, and the remaining settings at their defaults. The 750-352 orders analog data before digital, so build both byte maps from the coupler's image view and round the totals once, never slot by slot.