Overview: Why the cMT-G02 Cannot Take I/O Directly
The Weintek cMT-G02 is a headless gateway/IIoT node, not a controller with a local expansion bus. Its hardware is limited to communication interfaces, so there is no backplane, no expansion connector and no local I/O points. Any digital input or output must be an external module reached over one of its communication ports.
| cMT-G02 resource | Specification | I/O implication |
|---|---|---|
| Serial | 1 x COM (RS-232, RS-485 2W/4W) | Modbus RTU path to remote I/O |
| Ethernet | 1 x 10/100 Mbps | Modbus TCP path to remote I/O (needs a switch if other devices share the port) |
| Wireless | Wi-Fi 802.11 b/g/n | Optional uplink; not recommended as the I/O scan path |
| CPU / memory | 32-bit RISC 600 MHz, 256 MB flash / 256 MB RAM | Ample for macro-based I/O logic and data logging |
| Power | 10.5-28 VDC | Can share a 24 VDC supply with the I/O rack |
| Local I/O points | None | Coupler required |
Full datasheet: cMT-G02 Datasheet (Weintek).
Two Valid Architectures
| Option | Topology | When to use |
|---|---|---|
| A - cMT-G02 + iR-ETN coupler + iR slice modules | cMT-G02 -> Ethernet switch -> iR-ETN -> iR-DM16-P and other slices | I/O must be remote from the gateway, or you already standardised on the cMT-G02 for its gateway/OPC UA/MQTT role |
| B - cMT-G02 + iR-ETN40R (integrated I/O coupler) | cMT-G02 -> switch -> iR-ETN40R with 24 DI / 16 relay DO built in | Small point counts; one part number covers coupler and I/O |
| C - cMT-CTRL01 + iR slice modules | Controller with direct side-bus expansion, no coupler | New design where local I/O is the main requirement and no coupler cost is wanted |
Option B is the cleanest starting point for a first build. The iR-ETN40R provides 24 digital inputs, 4 of which are high-speed (20 kHz counter, or 10 kHz A/B encoder on two channels), plus 16 relay outputs. See the iR-ETN40R datasheet.
iR-ETN40R electrical limits to design around
| Parameter | Value |
|---|---|
| Digital inputs | 24 DI; 4 high-speed (20 kHz counter / 10 kHz A-B encoder x2) |
| Digital outputs | 16 relay |
| Relay contact rating | 250 VAC / 30 VDC, 2 A per channel |
| Total output current | 8 A max across the module |
| Relay response time | 10 ms |
| Protocol | Modbus TCP server, up to 8 simultaneous TCP connections |
| Network | 10/100 Mbps, 100 m max copper segment |
Step-by-Step: cMT-G02 to iR-ETN Digital I/O
- Power the rack. Feed 24 VDC to both the cMT-G02 (accepts 10.5-28 VDC) and the coupler. Use a supply sized for the coupler, all slice modules and field sensor loads, then verify the field-side 24 V return is bonded per your panel's grounding scheme.
- Assemble the I/O. Clip the iR-DM16-P (or other slice modules) onto the iR-ETN's side bus in the physical order you intend to address. Slot order determines the Modbus register offsets, so record it before you close the panel.
- Cable the network. The cMT-G02 has a single Ethernet port. Run cMT-G02 -> managed or unmanaged switch -> iR-ETN. Keep each copper segment under 100 m. Do not daisy-chain the I/O through a PC NIC or a Wi-Fi bridge for control traffic.
-
Set the coupler IP. Assign a static address in the same subnet as the cMT-G02, e.g. gateway
192.168.1.10, coupler192.168.1.20, mask255.255.255.0. Avoid DHCP for I/O nodes; a lease change silently kills the poll. - Add the driver in EasyBuilder Pro. In the cMT-G02 project, create a new device and select the Weintek Remote IO (MODBUS TCP/IP) driver. This driver understands the iR module layout and exposes the slices as named I/O rather than raw registers.
-
Configure connection parameters. Set the coupler IP, TCP port
502, and the unit/station ID expected by the coupler. Confirm the module list in the driver matches the physical slot order from step 2. - Map the tags. Bind bit objects, macros or logging entries to the DI and DO addresses generated by the driver. Digital inputs map to read-only coil/discrete-input space; digital outputs map to writable coils.
- Download and cycle power on the gateway, then on the coupler, so the coupler completes bus enumeration before the first poll arrives.
Addressing and Protocol Notes
If you choose to use a generic Modbus TCP master instead of the Weintek Remote IO driver, you lose automatic slot mapping and must work in raw register space. In that case:
| Function | Modbus operation | Typical use |
|---|---|---|
| Read digital inputs | FC02 (Read Discrete Inputs) or FC01 depending on coupler mapping | Sensor states from DI slices |
| Write digital outputs | FC05 (Write Single Coil) / FC15 (Write Multiple Coils) | Relay or transistor output slices |
| Read analog / status words | FC03 / FC04 | Counters, module diagnostics |
Verify the exact register base and per-slot offset against the coupler's manual before commissioning. Guessing the offset produces the classic failure mode of correct comms but I/O bits landing one slot away from where you expect.
Verification and Commissioning Checks
- Link layer: confirm the coupler's Ethernet LED shows link and activity. No activity with link up usually means an IP/subnet mismatch.
- IP reachability: ping the coupler from a laptop on the same switch. If ping fails, fix addressing before touching the EasyBuilder project.
- Port 502: open a Modbus test client and read one known discrete input. Success here proves the coupler is serving before the gateway is blamed.
- Input proof: jumper a field input to 24 V and watch the corresponding bit in the cMT-G02 project change state. Walk every DI point once during commissioning; wiring transpositions are far more common than driver faults.
- Output proof: force each DO from the gateway with the field load disconnected, and confirm contact continuity with a meter. Then reconnect loads and re-test one group at a time while monitoring total output current against the 8 A module ceiling.
- High-speed inputs: if you use the counter or encoder channels, verify the pulse source is within 20 kHz (counter) or 10 kHz (A/B encoder) and check the count register increments monotonically at full machine speed, not just at hand-turn speed.
- Loss-of-comms behaviour: unplug the coupler cable and confirm the outputs go to the state your process requires. Configure the coupler's fault/watchdog output behaviour deliberately; do not accept the default without testing it.
Troubleshooting Matrix
| Symptom | Likely cause | Action |
|---|---|---|
| No I/O data, gateway shows comm error | IP/subnet mismatch, or DHCP lease change on coupler | Set static IP on coupler in the gateway's subnet; verify mask |
| Comms OK but wrong points toggle | Slot order in driver does not match physical assembly | Re-enumerate module list against physical slice order |
| Intermittent dropouts | Cable run over 100 m, poor termination, or shared Wi-Fi path | Move I/O polling to wired 10/100 link; re-terminate; keep segments under 100 m |
| New client cannot connect, gateway fine | 8 TCP connection limit reached on coupler | Close idle engineering sessions; consolidate clients behind the gateway |
| Relay outputs chatter or weld | Inductive load without suppression, or total current above 8 A | Add flyback diode (DC) / RC snubber (AC); re-budget simultaneous ON current |
| Outputs will not pulse fast enough | 10 ms relay response floor | Use a transistor output slice for fast switching instead of relay outputs |
| iR module mounted directly on cMT-G02 | Unsupported - no local expansion bus exists | Insert an iR-ETN coupler, or migrate to cMT-CTRL01 |
Choosing Between cMT-G02 + Coupler and cMT-CTRL01
Pick the cMT-G02 path when the device's primary job is protocol gateway, data collection and remote access, and the I/O simply needs to be visible on the same network. Pick the cMT-CTRL01 when the device's primary job is local control of iR slices: it mounts the modules directly and removes the coupler, its IP address, its power feed and one more failure point from the bill of materials. Mixing both is legitimate - a cMT-CTRL01 with local I/O can still be polled by a cMT-G02 acting as the plant-facing gateway.
Can a cMT-G02 connect directly to an iR-DM16-P digital I/O module?
No. The cMT-G02 has no local expansion bus and no onboard I/O points. The iR-DM16-P must sit on an iR-ETN coupler, which the cMT-G02 then polls over Ethernet using the Weintek Remote IO (MODBUS TCP/IP) driver.
Which Weintek device can mount iR I/O modules without a coupler?
The cMT-CTRL01 gateway connects directly to iR I/O modules with no iR-ETN required. All other cMT products need a coupler between the gateway and the slice modules.
Which driver do I select in EasyBuilder Pro for iR remote I/O?
Select the Weintek Remote IO (MODBUS TCP/IP) driver, set the coupler's static IP and TCP port 502, then confirm the configured module list matches the physical slot order on the coupler bus.
How many digital points does an iR-ETN40R provide?
24 digital inputs (4 of them high-speed: 20 kHz counter or 10 kHz A/B encoder on two channels) and 16 relay outputs rated 250 VAC / 30 VDC, 2 A per channel with an 8 A total module limit and 10 ms response time.
How many masters can poll an iR-ETN40R at once?
Up to 8 simultaneous Modbus TCP connections. Count the gateway, SCADA nodes, OPC UA clients and any engineering laptops; once the limit is reached, additional clients are refused connection.