IMDHMIControls LibraryShop main store

Selection guide

Selecting an Ethernet digital I/O module for Modbus TCP vision systems

Controllers and I/O Published 7 min read By IMDHMI controls team

Short answer

Select the module from the vision sequence's own numbers: count the inputs and outputs, add two spares per direction, then match a documented channel count, the 24 V DC sink or source wiring, and a poll period sized to the reject window. One camera and one reject comes to ten points, which a 16-signal module such as the Acromag 989EN covers; two stations or encoder counting call for the expandable 24-input/16-output unit.

On this page
  1. Count the channels the sequence uses
  2. Match the input and output electrical types
  3. Keep the poll period inside the reject window
  4. Compare the documented Modbus TCP modules
  5. Sizing one camera and one reject on a mixed-signal module
  6. Choose how the camera talks to the module
  7. Questions asked

Pick the module from your vision sequence, not from the protocol label. Count the inputs and outputs that the trigger, part-present, reject and strobe signals need, add two spares per direction, then order a Modbus TCP module whose datasheet covers that count, your 24 V DC sink or source wiring, and a poll latency comfortably inside the reject window. One camera and one reject comes to ten points, and the Acromag 989EN's any-mix bank covers it with room left over. Speaking Modbus TCP is the easy part: Moxa's ioLogik E1200 and Weintek's iR-ETN40R speak it too, and the count, the electrical type and the timing are what actually choose between them. The sections below give the count, the wiring match, the timing rule, a comparison table, one station worked through the arithmetic, and the integration path.

Count the channels the sequence uses #

A vision station exchanges four signal families: the trigger, part-present, reject and strobe. Decide per signal whether the module reads it or drives it, because some modules pool their channels while others fix the count per direction. A part-present sensor and a ready handshake from the line PLC are inputs; the camera trigger, the reject diverter, the strobe enable and a results-valid handshake back to the PLC are outputs.

Keep analog points off this list. A 4-20 mA output for an intensity or speed reference is selecting a Modbus TCP analog output module for 4-20 mA, a separate selection with its own signal chain.

Order the count plus two spares per direction; a spare point is far cheaper than a second module when commissioning adds a sensor. The documented limits that then apply: the Acromag 989EN takes up to 16 discrete signals in any input/output mix, while the expandable Weintek iR-ETN40R provides 24 digital inputs and 16 digital outputs. Past either limit you are into a second module or a bigger frame.

Match the input and output electrical types #

Write sink or source next to every point on the list before you order anything. The 989EN's documentation states that its inputs sense the status of dry contacts, so limit switches and relay-output devices wire straight in. A three-wire 24 V DC proximity sensor with a PNP sourcing output needs an input documented for that logic level; order the variant that names it instead of adapting the sensor with external resistors.

On the output side, the reject diverter is an inductive load whose inrush runs well above its holding current, and the datasheet's per-channel rating must sit above that inrush. Where it does not, drive an interposing relay with a flyback diode on that point and let the relay switch the solenoid. Wire the camera trigger to the trigger-input level the camera's own manual states.

The 989EN also gives you an isolated Ethernet interface, which keeps the camera's network ground out of the sensor common. Tie the field 0 V exactly as the module's wiring diagram shows rather than borrowing the camera's supply return.

Keep the poll period inside the reject window #

A reject decision that arrives after the part has passed the diverter is decoration. The window is the travel time from the inspection point to the reject device, distance divided by line speed, minus the camera's own inspection time. Polled systems lose up to two poll periods in the worst case: the decision can land just after a read went out, and the write leaves with the next cycle. Keep two poll periods plus the output turn-on inside one tenth of the window, and set the master's poll period from that budget.

Outputs and inputs behave oppositely here. A written output holds its state until the master writes it off, so the reject needs only one successful write inside the window. A pulse shorter than the poll period can rise and fall between two reads and vanish, which is why a PLC misses short input pulses and how to catch them; fast triggers belong on a counter channel. The 989EN carries counters and timers for that job, and the iR-ETN40R provides four high-speed input channels.

One boundary: the reject output is process control, not a safety function. Guarding and emergency stops stay on hardwired safety devices, never on a polled Ethernet module.

Compare the documented Modbus TCP modules #

All four candidates below move I/O over Modbus TCP; the differences are channel count, electrical type and extra functions. Figures are the documented ones from each maker's product pages and manuals.

Module Documented digital I/O Documented extras Protocol role Choose it when
Acromag 989EN Up to 16 discrete signals, any input/output mix Dry-contact input sensing, counters/timers, isolated Ethernet interface; i2o messaging in the 98xEN family manual Modbus TCP One station with mixed points, or a reject that should move module-to-module without the master
Moxa ioLogik E1200 Set by the exact model in the series Universal controller and I/O functions Modbus TCP slave The camera is the master and you want a plain, documented slave
Weintek iR-ETN40R 24 digital inputs, four high-speed, and 16 digital outputs Expandable remote I/O Modbus-TCP and EtherNet/IP Two stations share one module, an encoder needs counting, or a second protocol master must attach
Advantech Ethernet digital I/O Set by the exact model; the range lists Modbus TCP modules 2,000 VDC isolation shown on a listed module Modbus TCP The application runs on a Windows PC and needs a vendor software interface (reported, not confirmed)

One qualifier on the i2o line: the input-to-output communication that sends a module's digital input information onward is described in the 98xEN family manual, so make peer messaging a line item to confirm for the exact model you order; the rest of the table is per-module documentation.

Sizing one camera and one reject on a mixed-signal module #

The inputs, with units and where each comes from:

  • Example I/O list for one inspection station, the typical case; swap in your own. Inputs: part-present sensor, PLC ready handshake, so 2 DI. Outputs: camera trigger, reject diverter, strobe enable, results-valid handshake, so 4 DO.
  • Spares rule, this article's: two per direction.
  • Module limits, documented: the 989EN at 16 discrete signals in any mix; the iR-ETN40R at 24 DI and 16 DO.
  • Example line values, illustrative: line speed 15 m/min (0.25 m/s); trigger-to-reject distance 1.5 m; camera inspection time 0.5 s; master poll period set to 100 ms.

The rules: total points equal used points plus two spares per direction, checked against the documented limit; and two poll periods plus the output turn-on must sit inside one tenth of the reject window.

The arithmetic:

  • Channels: DI 2 + 2 = 4; DO 4 + 2 = 6; total 4 + 6 = 10 points.
  • Limit check: 10 against the 989EN's 16 signals fits, with 6 points of headroom.
  • Window: 1.5 m ÷ 0.25 m/s = 6 s gross; 6 s - 0.5 s inspection = 5.5 s usable.
  • Latency: 2 × 100 ms = 0.2 s plus output turn-on (milliseconds), about 0.2 s; the budget is 5.5 s ÷ 10 = 0.55 s, and 0.2 s sits inside 0.55 s.

Result: the station needs 10 points, the any-mix module holds them with 6 spare, and the latency budget passes at this poll setting.

Decision: order the mixed-signal module for this station. Step up to the expandable 24-input/16-output unit when a second station pushes the list past the smaller module's limit, or when an encoder needs the high-speed channels. At this line speed the poll never decides; the same division says when it would, because the 100 ms poll needs a window of at least 20 × 0.1 s = 2 s, and anything shorter means a proportionally faster poll or a trigger moved to a counter channel.

Choose how the camera talks to the module #

The camera's vision software is the Modbus TCP client and the module is the server. On a smart camera that socket path is the only one available, so order a module that is a plain Modbus TCP server: the ioLogik E1200 documents the Modbus TCP slave role, the 989EN's user manual covers Modbus TCP, and the iR-ETN40R answers both Modbus-TCP and EtherNet/IP.

The Modbus application protocol does the rest: the master reads inputs as discrete inputs (function code 02) or coils (01) and writes outputs as coils, single (05) or in blocks (15). The per-point register and coil map comes from the module's manual, and how digital inputs reach a Modbus TCP SCADA read covers the mapping mechanics; name each point in the vision tool's communication setup exactly as the I/O list names it.

A vendor DLL, ActiveX or .NET interface is the alternative only when the application runs on a Windows PC. Those interfaces are reported for the Advantech ADAM-5000 series, with Modbus/TCP support on that series unconfirmed; treat that as a lead to verify on the exact module, not a specification.

So the decision per case: one camera and one reject inside the any-mix limit, the mixed-signal module over a direct socket; two stations or an encoder to count, the expandable dual-protocol unit; a Windows-hosted application, the vendor software interface added to the evaluation and benched point by point like everything else.

Questions asked

Does the reject output stay energized if the camera stops polling?

Yes; the diverter stays energized until something writes it off, because a written coil holds its state. Put a watchdog in the vision sequence: when the poll cycle stops, a timer writes every output off, and the operator acknowledges before the next cycle. Bench-check it by pulling the Ethernet cable mid-cycle and timing how long the reject stays energized; anything longer than the watchdog setting means the timer is not doing its job.

Why does a brief part-present pulse never appear in my reads?

Because it fits between two reads: the level rises and falls before the next read goes out. Route the signal to a counter or high-speed channel instead; the 989EN counts on its counter/timer channels and the expandable module on its four high-speed inputs, and the master reads the accumulated total after each cycle. Keep plain discrete inputs for signals that hold state, like a part waiting under the camera; counting also rides through poll jitter that would stretch a read past a short pulse.

Can the line PLC read the same module the camera uses?

Only on the dual-protocol unit can both masters attach directly: the camera writes over Modbus-TCP while an EtherNet/IP PLC reads the same points. The single-protocol modules put the PLC behind a handshake instead; the camera sets a results-valid output and the PLC polls that one bit rather than every raw point. Either way, every added master multiplies the requests the module serves per cycle, so recheck the camera's latency margin before adding the PLC to the same module.

How should the module be bench-tested before it goes on the line?

Power it on the bench with only the camera attached. Jumper each input in turn and watch the read map change; write each output with a single-coil command and meter the terminal. Put a scope on one output and measure the delay from the write to the terminal changing; that measured number, not the datasheet's best case, is what you carry into the reject-window budget. Only after every point passes do the diverter and strobe get wired.

Keep reading

  • Selection guide

    Selecting multi-channel Modbus analog input remote I/O

    Sixteen 4-20 mA loops become Modbus data through remote I/O with current-rated analog inputs, never through a serial converter. Match input type and loop power first, then channel count — one 16-channel single-ended module or two 8-channel differential modules — and buy only against the manufacturer's register map.

    Controllers and I/O

  • 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.

    Controllers and I/O

  • Selection guide

    Selecting external Modbus I/O for an Easergy P3 relay

    The Easergy P3's External I/O function lets the relay act as Modbus master to remote I/O modules, the same pattern your P3T32 already uses with a VIO12AD for RTD and mA inputs. Against a 16-input orderable maximum, your 20-input requirement leaves a deficit of 4: choose a Modbus I/O module with at least 4 digital inputs, 8 for margin, and validate port, mode and channel types before ordering.

    Industrial networks