weintek iR-ETN User guide

Table of Contents
1. Network Diagram……………………………………………………………………………………………………………………. 3
2. Power Consumption..................................................................................................................... 5
3. EasyRemoteIO…………………………………….........................................................................……………. 7
4. EasyRemoteIO- Controlling IO Module……………………………………………………………………………………. 12
5. iR-ETN IO Module Mapping to Modbus........................................................................................ 16
6. Module Register........................................................................................................................... 20
Appendix A - Register Number.............................................................................................................. 24
Appendix B- Connecting iR-ETN to Codesys........................................................................................... 25

1. Network Diagram
Connect an iR-ETN coupler and a PC to a router with Ethernet cables. The IP address of iR-ETN is set to
192.168.0.212 by default. To change the IP address of the iR-ETN, using EasyRemoteIO utility is necessary.
On the PC, right-click on Ethernet adapter of the PC and select properties. You can set your PC to static IP
mode from [Internet Protocol Version 4 TCP/IP V4] » [General] tab. Select “Use the following IP address”
and set up a valid and non-conflicting IP address. This IP address must be configured in the same subnet,
such as 192.168.0.200.
Launch EasyRemote IO. The [Automatic scan] icon can scan all iR-ETN couplers located in this subnet.
Click on [Scan] button to start. The available couplers will be displayed on this dialog.

Once the iR-ETN is found, go to [Online] » [Change IP]. Enter a new static IP address and a sub mask.
Click [Automatic scan] again, and the iR-ETN will be found with the specified IP address.
Set back the IP address of the iR-ETN to DHCP mode. Now all the devices are configured in the same subnet.
The current network will be similar to the below diagram.

2. Power Consumption
The iR-ETN coupler supplies power for each connected IO module. To avoid the power requirements
exceeding the power supply, you can calculate how much power is required from your IO modules.
Type
Model Name
Consumption(5V)
Power Supply(5V)
Coupler
iR‐ETN
220mA/1.1w
2A/10w
Digital I/O
iR‐DM16‐P
130mA/0.65w
iR‐DM16‐N
130mA/0.65w
iR‐DQ08‐R
220mA/1.1w
iR‐DQ16‐N
205mA/1.02w
iR‐DQ16‐P
196mA/0.984w
iR‐DI16‐K
83mA/0.418w
Analog IO
iR-AQ04-VI
65mA/0.325w
iR-AI04-VI
70mA/0.35W
iR-AM06-VI
70mA/0.35W
iR-AI04-TR
65mA/0.325w
Power consumption: 220 + 964=1184mA
Power supply: 2000mA
Supply > Consumption
Power is enough to supply all the IO modules.
130+130+220+205+196+83
=964
220mA

The power consumption can be known by selecting [iR-ETN] » [Parameter] tab.
[Current Power Consumption]- indicates the power consumed by each module and coupler.
[Power Consumption] - indicates the power consumption of the selected device.
If power is not sufficient, the error will be displayed on the Log message window.

3. EasyRemoteIO
EasyRemote I/O is a utility used for setting up iR-ETN coupler and IO module connected to iR-ETN, which
includes changing the IP address of the iR-ETN, setting parameters, monitoring IOs, turn on outputs, and
changing analog values.
Device list- Lists available iR-ETN couplers. The IO module can be selected under each iR-ETN once
connected.
Device information- It includes [IO /modules] tab, [Address] tab, and [Parameter] tab.
[IO /modules] tab- can monitor the status of IOs, toggle bits, and write analog values.
[Address map] tab- displays Modbus mapping table for IOs.
[Parameter] tab- lists the available parameters.
Log message- displays logs and errors.
Note: In this user manual, EasyRemoteIO version 1.2.0.13 is used.

Toolbar overview
(Tools from left to right.)
Tool Name Descriptions
Open
Save
Add coupler
Add module
Move up
Move down
Delete
Scan
Compare with Offline
Upload
Upload all
Download
Download all
Monitor once
Start monitor
Stop monitor
Opens an old project. (*.eriop file)
Saves this project. (*.eriop file)
Adds a coupler to the Device list.
Adds a module under the selected coupler.
Moves up the selected module to adjust slot number.
Moves down the selected module to adjust slot number.
Deletes the selected coupler or module.
Scans all the couplers located in this subnet.
Compares this project edited in EasyRemoteIO to the online devices.
Reads values from a module. The values will be displayed in [IO/ Module]
tab » [Online Value] column.
Reads values from all the modules.
Writes the value from [Project Value] column to a module.
Writes all the values from [Project Value] column to all the modules.
Monitors devices once.
Starts monitoring devices
Stops monitoring devices.
Other tools
Tool Name Descriptions
Export tag Exports tags which maps to Modbus address.
Rename Changes name of the modules or couplers.
Change IP Changes IP address of couplers.
Special command Sends special command to a coupler or module.
Modbus Runs a Modbus TCP/IP master on the PC.
User defined Temp. table This function will be available if IR-AI04-TR module is used.

Export tag
This tool allows you to export tags to .CSV file for reference. This CSV file can be imported to EasyBuilder
pro and deploy tags.
In EasyRemoteIO, go to [File] » [Export tag]. Then navigate to a folder you want to save the CSV files. The
number of couplers in this project determines the number of CSV files generated by EasyRemoteIO.
The CSV file describes tag name, address type defined by EasyBuilder pro, and Modbus starting address.
In Easybuilder pro, go to [System Parameters] and add the “Weintek Remote IO( Modbus TCP IP)” driver.
Click on [Import Tags] to import the CSV file.

Rename
This tool allows you to change the name of modules and couplers for identifying devices.
In EasyRemoteIO, select a module or coupler you want to rename. Go to [Edit] » [Rename].
Enter a new name and click OK button.
Special command
This tool allows you to send special commands to a coupler or module, such as reset to factory default.
In EasyRemoteIO, go to [Online] » [Special Commands]. The available special command will be displayed.
Select a command and click [Start].

Modbus
This tool allows you to run a Modbus TCP/IP master on the PC. To use this function, go to [Tools] »
[Modbus].
For example, use this tool to read the parameter “Input Mode #0,”which is channel 0 of the analog input.
Function: Read Holding Registers.
Address: 20020
Quantity: 1
Data type: decimal
The constant value five on the Response box indicates 4-20mA signal.
[IP Address]- Enter IP address of the coupler you want to
access.
[Pre_defined]- You can bring up the tag list. Once a tag is
selected, the corresponding function code, address,
length will be filled in the boxes.
[Function]- Modbus function code.
[Address]- Modbus starting address.
[Quantity]- Length of the data.
The result will be displayed on [Response] box once
clicking on [Send] button. Select a data type to interpret
this data.

4. EasyRemoteIO- Controlling IO Module
Digital IO
An iR-DM16-P (8 DI and 8 D0) is placed on slot #3. To know status of the digital IO, click on[Online] » [Start
Monitoring] and then click on the iR-DM16-P under the iR-ETN coupler. The status of the IO will be listed on
[IO / Module] tab.
To force the digital output ON, enter 1 to the [Project Value] column.
Click [Download]. Channel 0 of digital output will be turned ON. The [Online Value] column shows the
current status of digital IO. (1=ON, 0=OFF)

Analog input
In this demonstration, iR-AM06-VI (4 AI and 2 A0) is placed on slot #1. An RTD Pt100 with transmitter
(Range:-50-100 ºC, Output:4-20mA) is being connected to the analog input of the module. The wiring
diagram is shown below.
In EasyRemoteIO, go to [Parameter] tab. Configure the Input mode, Upper limit, and Lower limit.
Input Mode #0:4-20mA
Input Scale Range Upper Limit #0: 100
Input Scale Range Upper Limit #0: -50
Click [Download]. The settings will be loaded to the module. To monitor the value, click on [Online] » [Start
Monitoring] and then go to the [iR-AM06-VI] » [IO / Module] tab.

Analog output
In this demonstration, iR-AM06-VI (4 AI and 2 A0) is placed on slot #1. A VFD analog input (Input: 4-20mA,
Range: 0-60Hz) is being connected to the analog output of the module. The wiring diagram is shown below.
To control the motor speed by sending frequency source, configure the Output mode, Upper limit, and
Lower limit, and Output Update Time in EasyRemoteIO.
Output Mode #0: 4-20mA
Output Scale Range Upper Limit #0: 100 %
Output Scale Range Upper Limit #0: 0 %
Output Update Time #0: 1000 (10s= 1000*10ms)
Click [Download]. The settings will be loaded to the module.
To control the motor speed, click on [Online] » [Start Monitoring] and then go to the [iR-AM06-VI] » [IO /
Module] tab. Write a constant value to the [Project Value] column. Click [Download] to write the value to
the module.

Temperature module
In this demonstration, iR-VI04-TR (4 Temperature inputs) is placed on slot #1. A K type thermocouple is
being connected to the input of the temperature module. The wiring diagram is shown below.
In EasyRemoteIO, go to [Parameter] tab. Select the input mode and unit of temperature.
Input Mode #0: K
Unit of Temperature: Fahrenheit
Click [Download]. The settings will be loaded to the module.
To monitor the temperature, click on [Online] » [Start Monitoring] and then go to the [iR-AI04-TR] » [IO /
Module] tab. The raw data is displayed as 717, which is 71.7 ºF (one digit after the decimal point).

5. iR-ETN IO Module Mapping to Modbus
Digital IO modules
Module name
The number of
digital inputs (DI)
The number of
digital outputs (DO)
iR-DI16-K
16
0
iR-DM16-P
8
8
iR-DM16-N
8
8
iR-DQ16-P
0
16
iR-DQ16-N
0
16
iR-DQ08-R
0
8 (Relay)
Digital IO modules mapping to Modbus address
Name
Address (HEX)
Address (DEC)
Read/Write
Supported Modbus
function code
Descriptions
Digital Input
0x0000-0x0200
0 - 512
R
2
Read in bit
0x0320-0x035F
800 - 863
R
3, 23
Read in word
Digital Output
0x0000-0x0200
0 - 512
R
1
Read in bit
0x0000-0x0200
0 - 512
W
5, 15
Write in bit
0x0360-0x039F
864 - 927
W
6, 16, 23
Write in word
Analog IO modules
Module name
The number of
analog inputs (AI)
The number of
analog outputs (AO)
iR-AI04-VI
4
4
iR-AM06-VI
4
2
iR-AQ04-VI
0
4
iR-AI04-TR
4 (Temperature)
0
Analog IO modules mapping to Modbus address
Name
Address (HEX)
Address (DEC)
Read/Write
Supported Modbus
function code
Analog Input
0x0000-0x00FF
0 - 255
R
3, 4, 23
Analog Output
0x0100- 0x01FF
256 - 511
R
3, 23
W
6, 16, 23

Example of Digital IO mapping
Slot number
Module name
Bits for input (HEX)
Bits for output (HEX)
# 0
iR-ETN
-----
-----
# 1
iR-DM16-P
0x0000 - 0x0007
0x0000 - 0x0007
# 2
iR-DM16-N
0x0008 - 0x000f
0x0008 - 0x000f
You can know the IO mapping by selecting the iR-ETN coupler and click on [Address Map] tab.
To use Codesys to control IOs, go to [Modbus TCP Slave] » [Modbus Slave Channel] tab. Configure Modbus
channels.

Example of analog IO mapping
Slot number
Module name
Words for input (HEX)
Words for output (HEX)
# 0
iR-ETN
-----
-----
# 1
iR-AM06-VI
0x0000 -0x0003
0x0100 - 0x0101
# 2
iR-AM06-VI
0x0004 -0x0007
0x0102 - 0x0103
You can know the IO mapping by selecting the iR-ETN coupler and click on [Address Map] tab.
To use Codesys to control IOs, go to [Modbus TCP Slave] » [Modbus Slave Channel] tab. Configure Modbus
channels.

Example of digital and analog IO mapping
Slot numer
Module name
Words for input (HEX)
Words for output (HEX)
# 0
iR-ETN
-----
-----
# 1
iR-AM06-VI
0x0000 - 0x0003
0x0100 - 0x0101
# 2
iR-AI04-TR
0x0004 –0x0007
-----
# 3
iR-DM16-P
0x0000 - 0x0007
0x0000 - 0x0007
# 4
iR-DM16-N
0x0008 - 0x000f
0x0008 - 0x000f
You can know the IO mapping by selecting the iR-ETN coupler and click on [Address Map] tab.
To use Codesys to control IOs, go to [Modbus TCP Slave] » [Modbus Slave Channel] tab. Configure Modbus
channels.

6. Module Register
Each analog module has its module registers (parameters). The parameters may vary based on the analog IO
modules you have. The available parameters can be known by selecting [Parameter] tab.
To read and write these parameters via Modbus protocol, you need to know their Modbus addresses.
The starting register of slot #1 IO module is 20000. The number words of the parameters are 500.
The starting registers of the following modules are 20000 + (slot number -1) * 500
Other manuals for iR-ETN
2
Table of contents