0% found this document useful (0 votes)
55 views

Modbus Utility User Manual

This document provides a user manual for the Modbus Utility software. It describes the Modbus and Modbus/TCP protocols, the default firmware features of supported controllers, typical applications, and instructions for starting the utility interface. The manual also covers updating firmware, network settings, module configuration, data monitoring and logging tools, and linking the controller to SCADA software.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Modbus Utility User Manual

This document provides a user manual for the Modbus Utility software. It describes the Modbus and Modbus/TCP protocols, the default firmware features of supported controllers, typical applications, and instructions for starting the utility interface. The manual also covers updating firmware, network settings, module configuration, data monitoring and logging tools, and linking the controller to SCADA software.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 161

Modbus Utility User Manual

September 2014

Version 1.0.3

Table of Contents
Table of Contents

1. Introduction.............................................................................6
1.1. Introduction to the User Manual .............................................................. 6

1.2. Modbus Protocol....................................................................................... 7

1.2.1. What is the Modbus protocol? ................................................................. 7

1.2.2. What is the Modbus/TCP protocol? ......................................................... 7

1.2.3. What software supports the Modbus and Modbus/TCP protocol? ......... 7

1.2.4. What are the benefits of using Modbus and Modbus/TCP? .................... 7

1.2.5. Modbus Resources .................................................................................... 7

1.3. Default Firmware Features ....................................................................... 8

1.3.1. Support for the Modbus/TCP communication protocol that allows


access to I/O devices inserted in the I/O slots ....................................................... 8

1.3.2. Support for the VxComm technique for all COM ports on connected
controllers .............................................................................................................. 8

1.3.3. Automatic I/O module scanning ............................................................... 8

1.3.4. Automatic assignment of a register address for the I/O modules ........... 9

1.3.5. Allows simultaneous access by multiple clients (or masters) .................. 9

1.3.6. Online configuration via Ethernet using the Modbus Utility.................... 9

1.3.7. Supports I-8000 and I-87000 series I/O modules ..................................... 9

1.3.8. Updateable and programmable firmware ................................................ 9

1.4. Typical Applications ................................................................................ 10


Table of Contents

1.4.1. Basic Application 1: Modbus TCP I/O Device .......................................... 10

1.4.2. Basic Application 2: Modbus/RTU to Modbus/TCP Converter ............... 11

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
2
1.4.3. Basic Application 3: Modbus/TCP I/O Device using the VxComm
Technique ............................................................................................................. 12

1.4.4. Advanced Application 1: User-defined Modbus/TCP Controller ............ 13

1.4.5. Advanced Application 2: Modbus/TCP Controller using the VxComm


Technique ............................................................................................................. 13

1.5. Supported Modules ................................................................................ 13

2. Starting the Modbus Utility ................................................... 14


2.1. Introduction to the User Interface .......................................................... 15

2.2. Updating the Firmware ........................................................................... 17

2.2.1. Updating via Ethernet ............................................................................. 17

2.2.2. Updating via a Serial Port ........................................................................ 20

2.3. Network Settings ..................................................................................... 23

2.3.1. Method 1: Under Running Firmware Mode ........................................... 23

2.3.2. Method 2: While Operating in INIT Mode .............................................. 26

2.4. Net ID (Station Number) Settings ........................................................... 28

2.5. Connecting to the Controller .................................................................. 29

2.5.1. Connecting via the Ethernet (Modbus/TCP) ........................................... 29

2.5.2. Connecting via a Serial Port (Modbus/RTU) ........................................... 30

2.5.3. Refreshing the Configuration after Connecting ...................................... 31

2.6. Address Table (Mapping Table) .............................................................. 32

2.7. Library Version ........................................................................................ 33

2.8. Analog Module Range Code and Offset Settings .................................... 35

2.8.1. Range Code ............................................................................................. 35

2.8.2. Offset Settings ......................................................................................... 36


Table of Contents

2.9. Digital Output Power-on and Safe Values .............................................. 37

2.9.1. Digital Output Power-on Value ............................................................... 37

2.9.2. Digital Output Safe Value ........................................................................ 39

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3
2.10. Analog Output Power-on and Safe Values.............................................. 40

2.10.1. Analog Output Power-on value ....................................................... 40

2.10.2. Analog Output Safe Value ............................................................... 42

2.11. 87K Digital Input Counter........................................................................ 43

2.12. COM Port Settings ................................................................................... 45

2.12.1. COM Port Enable Modes ................................................................. 46

2.13. Watchdog Timer (WDT) Settings ............................................................ 48

2.14. Monitoring .............................................................................................. 50

2.15. Trend Chart ............................................................................................. 53

2.16. Data Log .................................................................................................. 56

2.17. Save and Load the Configuration Settings .............................................. 58

2.18. Modbus RTU Master Tool ....................................................................... 59

2.19. Modbus TCP Client Tool .......................................................................... 62

3. Linking to SCADA Software via Modbus ....................................... 65


3.1. SCADA Expert Vijeo Citect ....................................................................... 66

3.1.1. Creating a New Project, an I/O Server and an I/O Device ...................... 66

3.1.2. Designing the Layout and Acquiring the Data ........................................ 74

3.2. DASYLab .................................................................................................. 94

3.2.1. Adding an Analog Input Channel ............................................................ 94

3.2.2. Adding an Analog Output Channel ......................................................... 99

3.2.3. Adding a Digital Input Channel ............................................................. 104

3.2.4. Adding a Digital Output Channel .......................................................... 108

3.3. EZ Data Logger ...................................................................................... 112

3.3.1. Adding the I/O Modules to the Workgroup.......................................... 112


Table of Contents

3.3.2. Designing the Layout and Acquiring Data ............................................. 124

Appendix A: Backing Up and Restoring the EEPROM Settings .................. 128


1. Backing up the Settings ......................................................................... 129

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4
2. Restoring the Settings ........................................................................... 132

Appendix B: Function Codes (FC) ............................................................. 135


1. Read DO (0xxxx) .................................................................................... 136

2. Read DI (1xxxx) ...................................................................................... 137

3. Read AO (4xxxx) .................................................................................... 138

4. Read AI (3xxxx) ...................................................................................... 139

5. Write Single DO (0xxxx)......................................................................... 140

6. Write Single AO (4xxxx) ......................................................................... 141

7. Write DO (0xxxx) ................................................................................... 142

8. Write AO (4xxxx) ................................................................................... 143

Appendix C: Range Codes for Analog Modules ........................................ 144


1. 87K Analog Modules ............................................................................. 146

1.1. Current and Voltage Type Definitions .................................................. 146

1.2. Thermocouple Type Definitions ............................................................ 151

1.3. RTD (Resistance Temperature Detector) Type Definitions ........................ 153

1.4. Thermistor Type Definitions ................................................................. 157

2. 8K Modules ........................................................................................... 160

Table of Contents

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5
1. Introduction

1.1. Introduction to the User Manual


Modbus is a very common protocol used in the industrial manufacturing and
environment monitoring fields. The Modbus Utility provided by ICP DAS can be
used to communicate with a Host controller to retrieve data from remote modules.

This manual describes how to use the Modbus Utility in conjunction with
controllers that support the Modbus protocol. Also included are instructions for
linking SCADA (Supervisor Control and Data Acquisition) software to Modbus
devices.

This manual applies to following controllers and modules.

I/O Memory RS-232


Model CPU SRAM Flash Ethernet
Slots Expansion /485
I-8430 4
I-8830 8 40
I-8431-MTCP 4 MHz
3
I-8331-MTCP 8 512 1
-
I-8431-80-MTCP 4 KB 512 (10BASE-T)
I-8831-80-MTCP 8 KB
I-8KE4-MTCP-G 4 80
1
I-8KE8-MTCP-G 8 MHz
IP-8441-MTCP 4 768
Micro SD 2 4
IP-8841-MTCP 8 KB
(10/100
ET-87P4-MTCP 4
- - - - BASE-Tx) 1
ET-87P8-MTCP 8
I-7188EX(D) 512
- -
-MTCP 40 KB 1
I-7188E2(D) MHz 384 (10BASE-T)
- 512 -
-MTCP KB 2
Introduction

KB
1
μPAC-7186EX(D) 80 512
- - (10/100
-MTCP MHz KB
BASE-Tx)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
6
1.2. Modbus Protocol

1.2.1. What is the Modbus protocol?

Modbus is a communication protocol originally developed for Modicon controllers


by Modicon Inc. in 1979. Modbus is a standard, truly open protocol and is the most
widely used network communication protocol in the industrial automation field.
SCADA (Supervisor Control and Data Acquisition) and HMI (Human-Machine
Interface) software can be used to easily integrate serial devices via the Modbus
protocol.

1.2.2. What is the Modbus/TCP protocol?

The Modbus/TCP protocol is a variant of the original Modbus protocol that was
developed in 1999 to allow access to Ethernet devices by the Internet community.

1.2.3. What software supports the Modbus and Modbus/TCP


protocol?

Most SCADA and HMI software packages include support for the Modbus protocol.
For example: ControlMaestro, DASYLab(Section 3.2), EZ Data Logger(Section 3.3),
Iconics GENESIS32/64, iFIX, InduSoft Web Studio, LabView, Trace Mode,
StruxureWare SCADA Expert Vijeo Citect(Section 3.1), Wonderware Intouch, etc.

1.2.4. What are the benefits of using Modbus and Modbus/TCP?

A. Open source, no license fees


B. Widely supported by SCADA and HMI software
C. Easy to use
D. Easily integrated with a variety of devices
E. Low development cost
F. Wide knowledge base

1.2.5. Modbus Resources

A. http://www.modbus.org
A community for Modbus users.
B. http://www.modbustools.com/modbus_activex.asp
An ActiveX control that can be used to communicate with a Modbus slave device via
Introduction

the Modbus (RTU/ASCII) or Modbus/TCP protocols.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
7
1.3. Default Firmware Features
When purchased, the IP-8000-MTCP/I-8000-MTCP controller already contains the
default Modbus firmware installed Flash memory, and includes the following
features.

1.3.1. Support for the Modbus/TCP communication protocol


that allows access to I/O devices inserted in the I/O slots

The default firmware allows the controller to be connected via Ethernet in order to
transmit Modbus commands in Modbus/TCP protocol format.

1.3.2. Support for the VxComm technique for all COM ports on
connected controllers

Even if a serial device doesn't support the Modbus/RTU protocol, it can still be
accessed via Ethernet. However, the VxComm driver will first need to be installed
on the Host PC and the COM ports assigned in order to link to the COM ports on the
controller. Once installed, the serial clients will then be able to access these remote
serial devices via Ethernet using standard RS-232 functions.
The latest VxComm driver for Windows XP (or later) can be downloaded from:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/vxcomm_driver/2k/

1.3.3. Automatic I/O module scanning

Once a connection is created, the default firmware will automatically scan all the
I/O slots of any connected modules and then display the module information in the
“Summary” table which will be describe in more detail in Section 2.1, as illustrated
below.
Introduction

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
8
1.3.4. Automatic assignment of a register address for the I/O
modules

An I/O module can be inserted into any slot, and the Modbus firmware will
automatically scan all slots and assign the I/O channels to the registers in a
continuous range. The register mapping for all the I/O channels can be retrieved
by connecting to the controller using the Modbus Utility.

1.3.5. Allows simultaneous access by multiple clients (or


masters)

Different controllers support a different number of connections to a client. For


more details, refer to the FAQ on the ICPDAS web site.
http://www.icpdas.com/faq/7188e/hardware/003.htm

1.3.6. Online configuration via Ethernet using the Modbus


Utility

1.3.7. Supports I-8000 and I-87000 series I/O modules

1.3.8. Updateable and programmable firmware

The Modbus SDK provided by ICP DAS allows users to develop custom Modbus
firmware. For more details related to the IP-8000-MTCP, refer to the following:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/ip8000/demo/bc/

Introduction

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
9
1.4. Typical Applications

1.4.1. Basic Application 1: Modbus TCP I/O Device

An I-8000-MTCP running the default firmware operates as a Modbus/TCP slave I/O


device. Use the Modbus Utility to configure the device and then create a connection
between the SCADA/HMI software and the I-8000-MTCP.

Introduction

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
10
1.4.2. Basic Application 2: Modbus/RTU to Modbus/TCP
Converter

After setting the COM Port to Gateway mode via the Modbus Utility, the
Modbus/RTU device can be linked to the I-8000-MTCP using the Modbus/TCP
protocol. The SCADA/HMI software can then be configured to convert the
Modbus/RTU device to a Modbus/TCP device.

Introduction

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
11
1.4.3. Basic Application 3: Modbus/TCP I/O Device using the
VxComm Technique

An I-8000-MTCP is also able to link serial devices that are connected to the COM
ports on the I-8000-MTCP device. To use this function, the VxComm driver first
needs to be installed on the Host PC. After the driver is installed, the remote COM
ports can be accessed via the standard serial driver.

Introduction

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
12
1.4.4. Advanced Application 1: User-defined Modbus/TCP
Controller

Using the Modbus SDK, custom firmware can be developed that allows access to
additional functions, together with the integration of serial devices with the
Modbus/TCP kernel, making the I-8000-MTCP a powerful controller. For demo of
user-defined SDK related to the I-8000-MTCP, refer to the following:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/8000e/demo/bc/

1.4.5. Advanced Application 2: Modbus/TCP Controller using


the VxComm Technique

If an I-8000-MTCP controller is used to link the same hardware devices as


described in Advanced Application 1 above, and if any of devices connected to
specific COM ports are not integrated into the custom firmware, the COM ports can
still be accessed using the standard serial driver. However, in order to do this, the
VxComm driver must first be installed on the Host PC.

1.5. Supported Modules


For details of which I/O modules are supported by the different controllers, go to
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/8000e/document/mbt8_s
Introduction

upport_modules.htm

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
13
2. Starting the Modbus Utility
The following is an overview of the process flow used to establish a connection
between the controller and the Modbus Utility, then retrieve the I/O data and set
the I/O values.

Install the Modbus Utility and update the


firmware for the controller to the latest version

Configure the Network Settings

Configure the Net ID Settings

Connect
Address Table
(Mapping Table)
Range Code & Offset Confirm Controller
Library Version
Power-on &
Configure the Module
Safe Values

87K DI Counter Configure the COM Port Settings

Set the Watchdog Timer

Start Acquiring Data


Starting the Modbus Utility

Monitor Analyze Trends Record Log

Save and Load


Configuration Settings

The latest version of the Modbus Utility installation file can be downloaded from:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/modbus_utility/

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
14
2.1.Introduction to the User Interface
The following is an illustration of the main user interface of the Modbus Utility.

C D

A. Menu Bar

B. Toolbar

C. Connection Panel

D. Power-on Value, Safe Value ,Offset and DI Counter Settings Panel


Starting the Modbus Utility

E. Controller Panel and Module Panel

Left-hand side: COM Ports and Watchdog Timer (WDT) Settings

Right-hand side: Module Setting Panel.

F. Address Table (Mapping Table)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
15
Note: If the warning message shown below is displayed after executing the Modbus
Utility, restart the program by right-clicking the shortcut and choosing "Run as
administrator" to open the application with Administrator privileges.

Alternatively, right click the application shortcut, and choose “Properties”. Click the
“Compatibility” tab and then click the “Run this program as an administrator”
checkbox. This method will configure the Utility to always run with Administrator
privileges.

Right-click the Modbus Utility shortcut

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
16
2.2. Updating the Firmware
The “Update Firmware” function is used to update the firmware to the latest
version. The firmware can be updated using either a COM port or a UDP
connection. However, ensure that the LAN1 on the controller is connected to the
network or COM1 port on the controller is connected to the computer before
attempting to update the firmware, otherwise the update process will fail.

2.2.1. Updating via Ethernet

Step 1: Reboot the controller in INIT mode.


For I-8000 modules, short the INIT* and INIT*COM pins.
For IP-8000 and ET-87PN modules, move the DIP switch to the “Init” position.
For 7188E devices, short the INIT* and GND pins.

Step 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 3: Select the “Update Firmware” option from the “Client Tools” menu to
connect to the controller.
Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
17
In the Update Firmware window, select the UDP option from the drop-down menu.
If IP address is known, enter the details in the text field and then click the “Connect”
button. Alternatively, click the “Search IP” button to search for available controllers
on the LAN, and then double-click IP address in the search result to establish a
connection to the controller.

Method 1
Search for available controllers and then double-click
the IP address to connect.

Method 2
If known, enter the IP address here and then click
“Connect” button.

After a connection is establish, the firmware file for the controller will be listed in
the “Update Firmware” tab, as shown in the diagram below.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
18
Step 4: Before the firmware can be updated, all existing files must be deleted. Click
the “Erase Disk” button to delete all the files currently existing on the controller.

Step 5: Select the new firmware file and then click the “Upload >>” button to upload
the new firmware to the controller. A progress indicator will be displayed to show
the status of the update. After the update process is completed, the new file will be
displayed in the file list. If it is not displayed, click the “Refresh file list” button to
display the latest files.
The firmware has now been successfully updated. The device must be rebooted
before the new firmware becomes effective. If the update fails, go to step4 to
update again.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
19
2.2.2. Updating via a Serial Port

Step 1: Reboot the controller in INIT mode.


For I-8000 modules, short the INIT* and INIT*COM pins.
For IP-8000 and ET-87PN modules, move the DIP switch to the “Init” position.
For 7188E devices, short the INIT* and GND pins.

Step 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 3: Select the “Update Firmware” option from the “Client Tools” menu to
connect to the controller.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
20
In the Update Firmware window, select the required COM port from the drop-down
menu and then click the "Connect" button. After a connection is established, the
firmware file for the controller will be listed in the "Update Firmware" tab, as
shown in the diagram below.
Note: The default COM port settings are "115200, N, 8, 1”.

Step 4: Before the firmware can be updated, all existing files must be deleted. Click
the “Erase Disk” button to delete all the files currently existing on the controller. Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
21
Step 5: Select the new firmware file and then click “Upload >>” button to upload the
new firmware to the controller. A progress indicator will be displayed to show the
status of the update. Once the update process is completed, the new file will be
displayed in the file list. If it is not displayed, click the “Refresh file list” button to
display the latest files.
The firmware has now been successfully updated. The device must be rebooted
before the new firmware becomes effective. If the update fails, go to step4 to
update again

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
22
2.3. Network Settings
Before beginning the configuration process, ensure that eitherLAN1 or LAN2 ports
on the controller are connected to your network. Two methods can be used to
configure the network using a UDP connection.

2.3.1. Method 1: Under Running Firmware Mode

Step 1: Make the controller under the running firmware mode.

Step 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 3: Select the “UDP Search” option from the “Client Tools” menu to open the
eSearch Utility.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
23
Step 4: In the eSearch Utility window, click the “Search Servers” button to search
for any controller connected to the LAN.

Step 5: Once the search is complete, select the controller that is to be configured
and then click the “Configuration (UDP)” button.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
24
Enter the required details in the DHCP, IP Address, Sub-net Mask, Gateway, and
Alias fields, and then click the “OK” button to save the settings.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
25
2.3.2. Method 2: While Operating in INIT Mode

Step 1: Reboot the controller in INIT mode.


For I-8000 modules, short the INIT* and INIT*COM pins.
For IP-8000 and ET-87PN modules, move the DIP switch to the “Init” position.
For 7188E devices, short the INIT* and GND pins.

Step 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 3: Select the “Update Firmware” option from the “Client tools” menu.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
26
Step 4: In the Update Firmware window, select the UDP option from the drop-down
menu, and click the "Search IP" button to search for available controllers connected
to the LAN. Once the search is complete, select an IP address and then click the
“Connect” button to establish a connection.

Step 5: In the Update Firmware window, select the “Network Settings” tab and then
click the “Get Settings” button. The current network settings will be displayed in the
text fields for LAN1. Edit the settings as required and then click the "Save Settings"
button to save the new settings.

Starting the Modbus Utility

After the new network are saved, the Modus Utility will automatically connect to
the controller using the new IP address.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
27
2.4. Net ID (Station Number) Settings
The Net ID is a hexadecimal value that can be range from 01 to FF and must be
unique in the network. Set the Net ID by following the procedure described below.

Step 1: The Net ID is set using the 8-bit DIP switch located on the right-hand side of
the controller. To set the Net ID, move the DIP switch for the required bit to the ON
position. The following figure shows the Net ID for the controller. Bits 1 and 2 are in
the ON position and the others are set to OFF, meaning that the Net ID for the
controller is 3.

Step 2: Reboot the controller to enable the new Net ID

Step 3: After reconnecting to the controller, the Net ID for the controller will be
displayed in the connection panel as described in Introduction to the User Interface
(Item C).

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
28
2.5. Connecting to the Controller
Before performing the following operation, ensure that the controller is set to "Run
Firmware" mode, insert the modules, and then turn on the power.

2.5.1. Connecting via the Ethernet (Modbus/TCP)

Step 1: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 2: Enter the IP address for the controller in the Connection Panel described in
Introduction to the User Interface (Item C), and then click the “Connect” button. If a
connection is successfully established, the connection status will be displayed in the
text field indicated in the image below.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
29
2.5.2. Connecting via a Serial Port (Modbus/RTU)

Step 1: Execute the Modbus Utility and select the Modbus/RTU controller mode.

Step 2: In the Connection Panel described in Introduction to the User Interface


(Item C), select the COM port and click “Connect” on the connect panel. It will open
a Search List window in the next step to search for required device on the selected
COM port.

Step 3: Click the “Search” button to search for any available devices. Once the
required device has been located, click the “Stop” button to stop searching. Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
30
Step 4: Select the Net ID from the search result list, and then click the “Connect to
Selected ID” button to establish a connection.

If COM port is successfully opened, the status will be displayed in the text field
indicated in the image below.

2.5.3. Refreshing the Configuration after Connecting

If the current configuration for any of the modules on the controller does not match
the setting stored in the EEPROM, click the “Refresh” button to save the current
configuration to the EEPROM.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
31
2.6. Address Table (Mapping Table)
After connecting to the module, click the Summary tab in the address/mapping
table dialog to check the information related to the module, including the slot
number for the module and addresses of the I/O channels (points).
Note: The I/O addresses listed here are Base 0.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
32
2.7. Library Version
The library version depends on the version of the installed firmware. The latest
version of the firmware can be obtained from the following locations.

For 7188E:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/7188e/firmware/

For ET-87PN:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/et87pn/firmware/

For I-8000-MTCP:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/8000e/firmware/

For IP-8000-MTCP:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/modbus/ip8000/firmware/

Use the procedure described below to check the version information for the
current library:

Step 1: Select the “About” option from the “Help” menu.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
33
Step 2: The version information will be displayed in the Modbus Utility “About”
dialog box.

The Modbus Library and the I/O scan Library are related to the firmware name.
The version information is shown in the firmware name.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
34
2.8. Analog Module Range Code and Offset Settings
To change the Range Code and Offset settings of Analog modules, click the module
that is to be configured to display the Range Code Settings Panel.

The example shown here is for the I-87028U module.

2.8.1. Range Code

The Range code is used to set the maximum and minimum input/output range for
the Analog modules and only valid signals within this range will be transmitted.

Configure the Range Code settings in the Settings Panel by selecting the
appropriate Input/Output Range from the drop-down menu(s) for the respective
channel(s), and then click the “Set All” button to apply the new settings.

Starting the Modbus Utility

The Range Code types and definitions for Analog modules are shown in Appendix C:
Range Codes for Analog Modules.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
35
2.8.2. Offset Settings

An offset value can be set to compensate for any inaccuracies that exist in the
module. To configure the Offset value in the Range Code Settings Panel, enter the
required value in the Offset text field(s) for the respective channel(s), and then
click the “Set All” button to apply the new settings.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
36
2.9. Digital Output Power-on and Safe Values
To change the Digital Output Power-on and Safe values, click the module that is to
be configured to open the DIO Settings Panel.

The example shown here is for the I-87061 module.

2.9.1. Digital Output Power-on Value

The Power-on value is the Digital Output value that will be set for the module every
time the controller is powered on.

Step 1: In the DIO Settings Panel, click the “DO Power-on” tab, check the
checkbox(es) for the channel(s) to be set, and then click the “Set DO Power-on
Value” button to apply the new Power-on value(s).

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
37
Step 2: The controller must be rebooted before the new Power-on value settings
become effective. After rebooting, the Power-on value(s) for the channel(s) will be
displayed in the table on the DO Mapping tab in monitoring mode, or check the
output LEDs.

After rebooting the controller, the Power-on


values for channel 0 to 2 which are used in
this example will be displayed.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
38
2.9.2. Digital Output Safe Value

If Modbus communication with the controller is lost for longer than the defined
timeout period, the Host Watchdog will be triggered and all modules will be set to a
preset Safe Value.

In the DIO Settings Panel, click the “DO Safe Value” tab, check the checkbox(es) for
the channel(s) to be set, and then click the “Set DO Safe Value” button to apply the
Safe value(s).

Once the Host Watchdog has been reset the modules, the DO value will be set to the
Safe value.

Starting the Modbus Utility

Once the Host Watchdog has been reset, the


Safe values will be displayed for channel 13
to 15 which are used in this example.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
39
2.10. Analog Output Power-on and Safe Values
To change the Analog Output Power-on and Safe values, click the module that is to
be configured to open the Range Code Settings Panel.

The example shown here is for I-87028C module.

2.10.1. Analog Output Power-on value

The Power-on value is the Analog Output value that will be set for the module every
time the controller is powered on.

Step 1: In the Range Code Settings Panel, configure the Power-on value(s) by
entering the required Power-on value in the Power-on field(s) for the respective
channel(s), and then click the “Set All” button to apply the new settings.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
40
Step 2: The controller must be rebooted before the new Power-on value settings
become effective. After rebooting, the Power-on value for the channel will be
displayed in the AO Mapping tab in monitoring mode, or a monitoring tool can be
used to detect the value.

After rebooting the controller, the


Power-on value for channel 0 which is
used in this example will be displayed.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
41
2.10.2. Analog Output Safe Value

If Modbus communication with the controller is lost for longer than the defined
timeout period, the Host Watchdog will be triggered and all modules will be set to a
preset Safe Value.

In the Range Code Settings Panel, configure the Safe value(s) by entering the
required value in the Safe Value field(s) for the respective channel(s), and then
click the “Set All” button to apply the new settings.

Once the Host Watchdog has been reset, the DO value will be set to the Safe value.

Starting the Modbus Utility

Once the Host Watchdog has been reset,


the Safe value will be displayed for
channel 7 which is used in this example.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
42
2.11. 87K Digital Input Counter
Each Digital Input channel on an 87K series module can also be used as a
Low-speed (<100 Hz) counter. Click the module that is to be configured to open the
DIO Settings Panel.

The example shown here is for the I-87046 module.

Step 1: In the DIO Settings Panel, click the “DI Counter” tab, check the checkbox(es)
for the channel(s) to be set, and then click the “Set DI Counter” button to apply the
new Counter Settings.

Any channel that have been set as a DI counter will be displayed in the “AI
Starting the Modbus Utility

Mapping” tab.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
43
Step 2: After the counter(s) for the DI channel(s) have been set, click the “AI
Mapping” tab to display the channels that have associated counters, together with
the current values for the counter.

Note: Before the current counter values can be read, the Monitoring function needs
to be enabled.

Step 3: To clear counter value, click the “DO Mapping” tab and then double-click
the value for the relevant channel. The counter value for that channel will then be
set to 0. Channel 0 is used as an example here.

Double-click the Value field for channel 0.


Starting the Modbus Utility

The counter value for channel 0 will be reset to zero.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
44
2.12. COM Port Settings

To adjust the configuration for the COM ports, click the COM port icon in the
Controller Panel described in Introduction to the User Interface (Item E) to display
the “COM Port Settings” panel.

Step 1: Select the COM port to be configured from the drop-down menu, and then
select the Enable mode, and the Modbus timeout, and select the appropriate values
for the other settings. Seven modes can be selected for the COM port. Once all the
relevant values have been selected, click the “Set” button to apply the new settings.
Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
45
The new settings will be displayed in the “System Settings” panel immediately.

2.12.1. COM Port Enable Modes

Seven modes can be selected for the COM port, each of which are described below.

A. VxComm: This option creates virtual COM ports and maps them to the Ethernet
ports on the serial modules.

B. Modbus RTU Gateway: This option allows the COM port to connect to up to 255
RTU slaves (stations). Enter the number of devices connected to the Modbus RTU
gateway in the “Stations per COM Port” text field and then click the “Set” button.
The Modbus Utility will automatically assign the Slave ID if more than one port is
Starting the Modbus Utility

set to the Modbus RTU gateway mode.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
46
C. Modbus RTU Slave: This option is used to set the device to operate as a Modbus
RTU Slave.

D. Modbus ASCII Slave: This option is used to set the device to operate as a
Modbus ASCII Slave.

E. Programming: This option is used for programming purpose only and will not
automatically detect Modbus requests.

F. Debug: This option is used to display debug messages relating to Modbus


requests, or communication messages, etc. while communicating with a Modbus
master or Modbus clients.

G. Console: This option is used to perform configuration for file uploads, or


updating the firmware for the device.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
47
2.13. Watchdog Timer (WDT) Settings
Each ICP DAS controller contains a Host Watchdog that will be activated if the
controller either crashes or otherwise malfunctions for some reason. The
Watchdog Timer can be set to a specified period and is used to count the time
since Modbus communication with the controller was lost. When the Watchdog
Timer counter reaches zero, the Host Watchdog will be activated and all
Analog/Digital Output modules will be set to their predetermined Safe values and
the L3 LEDs on the panel will flash to indicate that an error has occurred.

Click the Watchdog icon in the Controller Panel described in Introduction to the
User Interface (Item E) to open the WDT Settings panel.

Starting the Modbus Utility

A. CPU Reset Status: This parameter is used to indicate whether the current
system status was set during a normal power-on event or whether it was reset by
the CPU Watchdog.
During Power on: This status message will be displayed if the controller was
started normally.
By CPU WDT: This status message will be displayed if the controller encountered
an error that caused the CPU Watchdog to reboot the controller.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
48
B. CPU Reset Event: This parameter is used to indicate the number of times the
controller has been reset due to CPU and power-on events. Clicking the “Clear”
button will reset the counter to 0.

C. Watchdog Timer Duration: This parameter is used to set the duration of the
Watchdog Timer and must be set between 0 and 65535 seconds. To enable the
Watchdog Timer, enter the required duration (must be set to more than 5 seconds)
and then click the “Set” button to apply the new duration.

D. WDT Event Count: This parameter is used to indicate the number of times the
controller has been reset due to Watchdog Timer events. Clicking the “Clear” button
will reset the counter to 0.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
49
2.14. Monitoring
The Monitor function is used to timely retrieve the current I/O values and to also
set the output values for modules.

Step 1: To set the timer scan interval, click the arrow on right-hand side of the
"Monitor" button in the toolbar and then click “Timer Interval”.

Step 2: Click the “Monitor” button in the tool bar to begin scanning. After the
monitoring process begins, the "Monitor" button will be displayed as active, as
illustrated below. To stop the monitoring process, click the “Monitor” button again.

The I/O values displayed in the Mapping table will be automatically refreshed
periodically, but the frequency of the updates depends on the value set for the timer
Starting the Modbus Utility

interval. Here use the DI Mapping Table as an example.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
50
Step 3: The display mode for analog modules can be changed to either Value,
Decimal or Hexadecimal format. Click the arrow for the “Scale” button in the
toolbar and select the desired option from the drop-down list.

Value Decimal Hexadecimal

Step 4: To change the output values for a specific channel on an Analog Output
module, click the “AO Mapping” tab and then double-click the row to relevant
channel to open the “Channel” dialog box for that channel. Enter the required value
and then click the “OK” button. The value for the channel will be changed
immediately.

Double-click the row for the relevant channel.

Enter the required value.


Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
51
Step 5: To change the output value for a specific channel on a Digital Output module,
click the “DO Mapping” tab and then double-click the row for the relevant
channel. The value to the channel will be changed immediately. The value, 0,
represents the status OFF, and the value, 1, represents the status ON.

Double-click the row for the relevant channel.

Note: The Modbus Utility also includes an alert system that warns when an 87K
module is offline. If the module is offline, the image for the module will be displayed
in red and the value in the DI Mapping table will be shown as 0. Both the image and
the value will return to normal once the module is online.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
52
2.15. Trend Chart
In addition to retrieving data values from the address table, the Trend function can
be used to monitor data and display it as a trend chart. The following illustration is
the interface for the Trend function.

B C

A. Settings and control area: This area is used to set the conditions for the
monitoring functions, such as adding an address to be tracked, starting, pausing or
stopping the monitoring, and adjusting the scope of the trend chart.
Starting the Modbus Utility

B. Trend Chart List area: this area is used to display details of the addresses and
other settings that have been selected to be tracked. The settings for the respective
address can be adjusted, and the output values for the DO/AO addresses can be set.

C. Track area: There are four areas that the Trend function uses to monitor and
display the tracked data, indicated as Track 1, Track 2, Track 3 and Track 4 in the
image above. Note that Track 1 can only be used to display trend lines for analog
modules, while Track 2 to 4 are used to display the trend lines for digital modues.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
53
The following procedures indicate that how to retrieve I/O data.

Step 1: Click the “Trend” button on the main menu to open the “Scope” dialog box.

Step 2: To record I/O data in the trend chart, select the I/O type and the address
from the respective drop-down menus. Select a color for the chart line and assign a
track number, and then click the “Add” button to add the record to the Track area.

After adding the address to the Track area, the address can be set to be visible or
not in the Track area by clicking the checkbox or the line color can be changed by
clicking the color column.

Step 3: To set the output values for the DO addresses, click the address column to
display the “Channel Information” dialog box. Click the “On” button to set the value
of DO address to ON and click the “Off” button to set the value to OFF, and click the
Starting the Modbus Utility

“Inverse” button to set the value to the inverse of the current value.

Click the address column.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
54
Step 4: To set the output values for the AO addresses, click the address column to
dsiplay the “Channel Information” dialog box. Enter the output value and then click
the “Set” button to apply the new settings.

Click the address column.

Step 5: To change the scope range, click the “Axis” button to open the “Change
Scope Range” dialog box. Adjust the settings as necessary and then click the “Set”
button. The details shown in the “Change Scope Range” dialog box can also be
fine-tuned by dragging either of the scale arrows illustrated in the image below.

fine-tuning

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
55
2.16. Data Log
The data log function can be used to record the configuration of the modules,
together with the current values, and then save the information as a text file.

Note: The Monitoring function must be active before the Data Log function can be
activated.

Step 1: First, set a name for the log file by clicking the “Log File” option from the
“Log” drop-down menu in the “Settings” menu to open an “Open” dialog box. If a
name is not set for the log file, the default file name "yyyymmdd.txt" will be used
and stored in the "log" subdirectory.

Step 2: Click the “Log” icon to begin recording log data. Once recording begins, the
Log icon will change to indicate data logging is active, as shown below.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
56
Step 3: To open the data log file, first click the “Log” icon to stop data recording, and
then click the “Open Log” option in the “Log” drop-down menu to open the data log.
The I/O data will be displayed in the data log text file.

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
57
2.17. Save and Load the Configuration Settings

The Modbus Utility allows the configuration of the module to be saved for future
use, meaning that it can be loaded the next time the Modbus Utility is used without
needing to set the configuration again.

After clicking the “Save” icon, the Modbus Utility will generate two files. The default
file names are Modbus_8E.ini and Modbus_8E.txt.

Two methods can be used to review the settings of both a specific controller and
each module that is inserted in it.

A. Using the Modbus Utility: Click the “Load” icon to load the .ini file into the
Modbus Utility.

Load “Modbus_8E.ini” to the Modbus Utility.

B. Using a text editor (such as Notepad): Open the .txt file in the text editor to view
the details.

Open “Modbus_8E.txt” in Notepad.


Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
58
2.18. Modbus RTU Master Tool
The Modbus RTU (MBRTU) Master Tool can be used to send Modbus message to
read or write I/O values via the COM port. The following image provides an
overview of the MBRTU Master Tool interface.

A B

A. COM Status: Click the "Open" button to connect to the controller using the
selected COM Port and parameter values. Click the "Close" button to terminate the
Starting the Modbus Utility

connection.

B. Protocol Description: This section provides a description of the request and the
response. For more detailed information regarding this section, see Appendix B:
Function Codes (FC)

C. Polling Mode: Set the timeout and then click the “Start” button to activate
Polling Mode. Click the “Stop” button to cancel it.

Timer Mode: Used to set the timer interval (in million second) that must elapse

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
59
before a command is sent. Enter a value for the "Interval" and click the “Start”
button to activate Timer Mode. Click the “Stop” button to cancel it.

D. Command: This section is used to enter commands. After entering a command,


click the “Send Command” button to transmit the command.

E. Command/Response: Commands sent to the controller will be displayed in the


left-hand text field, and the related response will be displayed on the right.

Use the following procedure to send a Modbus command.

Step 1: Set the COM Port mode to Modbus RTU Slave. For more details of the
procedure, see Section 2.12 COM Port Settings.

Step 2: Click the “Modbus/RTU Client” option from the “Clients tools” menu.

Step 3: In the COM Status section, select the COM Port and Baud Rate from the
respective drop-down menus and then click the "Open" button to establish a
connection to the COM Port.

Starting the Modbus Utility

Step 4: In the Command section, enter a command and then click the "Send
Command" button to transmit the command. Ensure that the "Include CRC" option
is checked to automatically add a Checksum to the end of the command.

Step 5: The command will be displayed on the left-hand side of the

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
60
Command/Response window, and the response will be shown on the right-hand
side. Note that the last two bytes are the CRC.

Commands Responses

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
61
2.19. Modbus TCP Client Tool
The Modbus TCP (MBTCP) Client Tool can be used to send Modbus messages to
read or write I/O values via the Ethernet. The following image provides an
overview of the MBTCP Client Tool interface.

A B

A. Modbus TCP: Click the “Connect” button to connect to the controller using the
selected IP address and Port number. Click the “Disconnect” button to terminate
the connection.

B. Protocol Description: This section provides a description of the request and the
Starting the Modbus Utility

response. Note that a 6-byte prefix must be used for the Modbus TCP protocol. For
more detailed information regarding this section, see Appendix B: Function Codes
(FC).

C. Polling Mode: Click the “Start” button to activate Polling Mode and click the
“Stop” button to cancel it.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
62
Timer Mode: Used to set the timer interval (in million second) that must elapse
before a command is sent. Enter a value for the "Interval" and then click the "Set"
button. Click the "Start" button to activate Timer Mode and click the "Stop" button
to cancel it

D. Command: This section is used to enter commands. Enter the command,


including the 6-byte Modbus TCP prefix, and then click the “Send Command”
button to transmit the command.

E. Command/Response: Commands sent to the controller will be displayed in the


left-hand text field, and the related response will be displayed on the right.

Use the following procedure to send a Modbus command.

Step 1: Click the "Modbus/TCP Client" option from the "Clients Tools" menu.

Step 2: In the Modbus TCP section, enter the IP address and the Port number in the
respective text fields and then click the "Connect" button to establish a connection.
If you also wish to create a data log, click the "Data Log" checkbox.

Starting the Modbus Utility

Step 3: Enter a command in the command line field and then click the "Send
Command" button to transmit the command.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
63
Step 4: The command will be displayed on the left-hand side of the text box area,
and the response will be shown on the right-hand side of the text box area.

Commands Responses

Starting the Modbus Utility

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
64
3. Linking to SCADA Software via Modbus
This chapter provides a description of how to connect to SCADA (Supervisor
Control and Data Acquisition) applications via Modbus in order to retrieve I/O
values using the Modbus/TCP protocol. The SCADA applications that will be
described in this chapter are:

 SCADA Expert Vijeo Citect


 DASYLab
 EZ Data Logger

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
65
3.1. SCADA Expert Vijeo Citect
In this section, a detailed description of the procedure for connecting the Vijeo
Citect solution to a controller using the Modbus/TCP protocol is presented. In this
example, Vijeo Citect version 7.40 is used.

3.1.1. Creating a New Project, an I/O Server and an I/O Device

Step 1: Open the Vijeo Citect Explorer application from the Programs Menu.

Step 2: In the “Citect Explorer” window, click the “New” button to create a new
project.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
66
Step 3: In the “New Project” dialog box, enter a name for the new project. The
name “Modbus Demo” is used in this example. Leave all other parameters at their
default values, and then click the “OK” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
67
Step 4: In the Project List panel, expand the “Modbus Demo” folder, and then
double-click the “Express I/O Device Setup” icon in the “Communications” folder to
create a new I/O Server and I/O Device.

Step 5: Once the “Express Communications Wizard” screen is displayed, click the
“Next >” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
68
Step 6: Click the “Create a new I/O Server” radio button, and enter
“ModbusServer” in the Name field as the name of I/O Server, and then click the
“Next >” button to continue.

Step 7: Click the “Create a new I/O Device” radio button, and enter “Dev_8000” as
the name of the I/O Device in the text field, and then click the “Next >” button to
continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
69
Step 8: Click the “External I/O Device” radio button to select the I/O Device type,
and then click the “Next >” button to continue.

Step 9: Select the communication protocol by expanding the “Modicon” item,


expanding “Quantum” item, and then clicking the “Modbus/TCP (Ethernet)” option.
Click the “Next >” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
70
Step 10: Determine the IP address by checking the LED on the left-hand side of the
controller, and then enter it in the “IP address” field. In this example, the IP address
“192.168.2.199” is used. Enter the Port number in the “Port” field, “502” in this
example, and then click the “Next >” button to continue.

Step 11: There is no need to select any options on the following screen, so click the
“Next >” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
71
Step 12: Verify that the details for the new I/O Server are correct, and then click
the "Finish" button to complete the configuration.

Step 13: In the “Communication” folder, double-click the “I/O Servers” icon to open
the “I/O Server [Modbus Demo]” dialog box in the “Citect Project Editor” window.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
72
Step 14: Find the Server named “ModbusServer” that was created in previous step.
Enter the port number “502” in the “Port” text field and then click the “Replace”
button to complete the I/O Server configuration.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
73
3.1.2. Designing the Layout and Acquiring the Data

Step 1: Open the “Citect Project Editor” window, and then select the “I/O Devices”
option from the Communication menu in order to modify the parameters for the
I/O device that was created in Section 3.1.1 above.

Step 2: Once the “I/O Devices [Modbus Demo]” dialog box is displayed, find the
“Dev_8000” device that was created in Section 3.1.1. Determine the station number
by checking the DIP switch on the right-hand side of the controller, and enter the
value in the "Address" field. In this example, the station number "1" is used. To
prevent the “Number” value entered in the “Address” field from being the same as
the existing Server Number, enter “2” in the “Number” field. When all the relevant
values have been entered, click the "Replace" button to complete the configuration.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
74
Step 3: Open the “Citect Explorer” window, and expand the “Modbus Demo” folder
in the Project List panel. Click the “Tags” folder and then double-click the “Variable
Tags” icon in the Content pane to create a new variable tags.

Step 4: Open the “Citect Project Editor” window, enter a name for the tag in the
“Tag Name” field in the “Variable Tags [Modbus Demo]” dialog box. Select the I/O
device from the “I/O Device” drop-down menu, enter the correct address in the
"Address" field, and select the appropriate "Data Type" from the drop-down menu.
After the details for the first tag have been entered, click the "Add" button to save it. Linking to SCADA Software via
Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
75
Repeat the procedure to create the next tag.

Linking to SCADA Software via

The parameters for all tags used in this example are shown in the table below.

Tag Name I/O Device Name Data Type Address Eng. Scale
DO_0 Dev_8000 DIGITAL 00001 X
DI_0 Dev_8000 DIGITAL 10001 X
AO_0 Dev_8000 INT 40001 0~10
AI_0 Dev_8000 INT 30001 0~10
Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
76
Notes

 When using the Modbus protocol, the Address Type must be set to “0xxxx” for
Digital Output, “1xxxx” for Digital Input, “3xxxx” for Analog Input, and “4xxxx” for
Analog Output.

 The Digital Input and Digital Output are declared as Boolean data, and the Analog
Input and Analog Output are declared as unsigned integer data.

 The “Starting Address” begins at “0001”. Thus, to use the 5th Digital Output
channel, the “Address” filed must be set to “10005”, and the Data Type must be set
to “DIGITAL”. To use the 15th Analog Input channel, enter “30015” in the “Address”
field, and set the Data Type to “INT”.

Step 5: Open the “Citect Graphics Builder” window, and click the “New…” option
from the “File” menu to create a new page.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
77
Step 6: In the "New" dialog box, click the "Page" button to create a new page using
a pre-defined template.

Step 7: In the "Template" dialog box, click the "normal" option to select the
template to be used for the page, and then click the "OK" button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
78
Step 8: Click and hold the "New Button" icon and then drag and drop it onto the
blank page to add a new button to the page.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
79
Step 9: After releasing the mouse button, the “Button Properties” dialog box will be
displayed. Click the "Appearance" tab and click the "Text" radio button and then
enter "DO Button" in the "Text" field. This will be the label displayed on the button.

Click the "Input" tab and check the "Up" checkbox then enter "Toggle(DO_0)" in the
"UP command" text field. Click the "OK" button to save the changes.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
80
Step 10: Click and hold the "LED Object" icon and then drag and drop it onto the
page to add a new LED object to the page.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
81
Step 11: After releasing the mouse button, the “Symbol Set Properties” dialog box
will be displayed. Click the "Appearance" tab and click the "On/off" radio button in
the "Type" section, then enter "DO_0" in the "ON symbol when" text field. Click the
"OK" button to save the changes.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
82
Step 12: Repeat Steps 10 and 11 to create a second LED object. Use the
parameters shown in the image below for this LED object.

DI_0

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
83
Step 13: Click the "Text" button and then click a blank area on the page above the
left-hand LED object, and enter “DO LED” in the text field.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
84
Step 14: After entering the Text, click the text again and the “Text Properties”
dialog box will be displayed. Verify that the details in the “Text” field are correct and
change the font or other parameter as required, and then click the “OK” button to
save the settings.

Step 15: Repeat Steps 13 and 14 to create three more Text objects and place them
in the appropriate locations. Use the parameters shown in the image below for
these Text objects.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
85
Step 16: The layout of the page at this stage is shown in the image below. Click and
hold the "Number" button and then drag and it onto the page below the "AO Value"
text object to create a new number object.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
86
Step 17: After releasing the mouse, the “Text Properties” dialog box will be
displayed. Click the "Appearance" tab, and click the "Numeric" radio button in the
"Type" section. Enter "AO_0" in the "Numeric expression" field, and set the
"Format" to "##.##".

Click the "Input" tab and select the “Keyboard Commands” tab, and then enter
"#####ENTER" in the "Key sequence" field. Enter "AO_0=arg1;" in the "Key
sequence command" field, and then click the "OK" button to save the changes.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
87
Step 18: Repeat Step 16 to create another new number object and place it below
the "AI Value" text object. When the "Text Properties" dialog box for the new
Number object is displayed, click the "Appearance" tab. Click the "Numeric" radio
button in the "Type" section, then enter "AI_0" in the "Numeric expression" field,
and set the "Format" to "##.##". In this case, there is no need to set the Input
parameters, so click the "OK" button to save the changes.

Step 19: The layout for the finished page is shown below. Click the "Save" button to
save the page.
Linking to SCADA Software via
Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
88
Step 20: In the “Save As” dialog box, enter "page1" in the "Page" field as the name
of the page and then click the “OK” button.

Step 21: Open the “Citect Explorer” window, and then click the "Computer Setup
Wizard" button to open the "Computer Setup Wizard".

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
89
Step 22: Click the "Express Setup" radio button and then click the "Next >" button
to continue.

Step 23: Select "Modbus Demo" from the "Project Name" drop-down menu and
then click the "Next >" button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
90
Step 24: Click the "Server and Control Client" radio button, and then click the
"Next >" button to continue.

Step 25: Click the “Stand alone (no other SCADA computers)” radio button and
then click the “Next >” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
91
Step 26: Configure a password for the Server by entering a password in the
“Password” text field. Enter the same password in the “Confirm Password” field and
then click the “Next >” button to continue.

Step 27: Click the "Finish" button to complete the computer setup.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
92
Step 28: Press F5 to execute the project. Verify that clicking the "DO Button"
button to write DO LED status to on or off. Clicking the AO value "Number object"
and enter a value to change the AO Value.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
93
3.2. DASYLab
In this section, a detailed description of the procedure for connecting the DASYLab
solution to an I-8000-MTCP/ IP-8000-MTCP controller using the Modbus/TCP
protocol is presented. In this example, DASYLab version 12 is used. This solution
can also be used to request data from external devices such as the ET-7000,
I-7188-MTCP, or WISE-7000 using the Modbus protocol.

Before using DASYLab, the controller should be correctly configured using the
Modbus Utility. The Net ID is set using the DIP switch located on the right-hand side
of the controller (see Section 2.4 Net ID (Station Number) Setting for more
information).

3.2.1. Adding an Analog Input Channel

Step 1: Open the DASYLab application from the Programs Menu.

Step 2: Click the "Modules" tab and then expand the “Inputs/Outputs” folder found
in the “Modules” folder. Expand the “ModBus” folder and drag an Analog Input
object to the worksheet pane on the right-hand side of the window.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
94
Step 3: Right-click the object icon and click the “Module Properties” option.

Step 4: Configure the object properties in the Modbus Analog Input dialog box
using the values shown in the image below.

A. In the “Interfaces” section, set the Interface to TCP/IP and enter the IP address.

B. In the “Device” section, select the Address of the controller from the “Address”
drop-down menu. This will be the same as the Net ID of the controller.

C. Check the “Register starts at 0” checkbox.

D. Select a Register address from the “Register” drop-down menu. The Register
address can be found from the AI Mapping table in the Modbus Utility. Select “30”
for Analog Input channels. In this demo, the register is set to 30000. Linking to SCADA Software via

E. Set the Data Type from the drop-down menu, which is a signed 16-bit integer in
this demo.

F. In the “Data range” section, enable Scaling by checking the “Scaling” checkbox,
and set the minimum and maximum values, which are -10 to +10V in this demo.
Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
95
A

B D

E
F

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
96
Step 5: Click the “Test” button to verify that the settings are correct, and then click
the “OK” button in the Modbus Analog Input dialog box to save the configuration.

The data can also be checked using the “Monitor” function of the Modbus Utility
and then clicking the “AI Mapping” tab.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
97
Step 6: Click the “Modules” tab and then expand the “Display” folder. Drag an Analog
Meter or a List to the worksheet pane on the right-hand side of the window. Drag a
line from the “ModBus Ana00” object to the “Analog Dis00” object to establish a
connection between the Analog Input, and then drag a line from the line to “List00”
to connect these three objects.
Click the “Run” button to connect to the module and begin acquiring data.

Analog Meter

List

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
98
3.2.2. Adding an Analog Output Channel

Step 1: Click the "Modules" tab and then expand the “Inputs/Outputs” folder found
in the “Modules” folder. Expand the “ModBus” folder and then drag a Digital Input
object to the worksheet pane on the right-hand side of the window.

Step 2: Right-click the object icon and click the “Module Properties” option.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
99
Step 3: Configure the object properties in the Modbus Analog Output dialog box
using the values shown in the image.

A. In the “Interfaces” section, set the Interface to TCP/IP and enter the IP address.

B. In the “Device” section select the Address of the “Address” drop-down menu.
This will be the same as the Net ID of the controller.

C. Check the “Register starts at 0” checkbox.

D. Enter the register address, which can be found from the AO Mapping table in the
Modbus Utility.

E. Select the Data Type from the drop-down menu, which is a Word unsigned
16-bit integer in this demo.

F. In the “Data range” section, enable Scaling by checking the “Scaling” checkbox,
and set the minimum and maximum values, which are -10 to +10V in this demo.

Linking to SCADA Software via


B D

F
E
Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
100
Step 4: Click the "Modules" tab and then expand the “Control” folder found in the
“Modules” folder. Drag a Slider Control object to the worksheet pane on the
right-hand side of the window.

Step 5: Right-click the Slider Control icon and click the “Module Properties” option.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
101
Step 6: Click the “Scale” button to open the “Scale” dialog box for the slider and set
the Begin and End values in the “Display area” section of the “Scale” dialog box. In
this demo, -10 to +10 are used. Click the “OK” button to continue.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
102
Step 7: Drag a line from the “Slider00” icon to the “ModBus Ana00” icon to
establish a connection between the Slider Control and the Analog Output object.
Click the “run” button to begin doing output value by the Slider Control.

The value can also be checked using the Modbus Utility.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
103
3.2.3. Adding a Digital Input Channel

Step 1: Click the "Modules" tab and then expand the “Inputs/Outputs” folder found
in the “Modules” folder. Expand the “ModBus” folder and then drag a Digital Input
object to the worksheet pane on the right-hand side of the window.

Step 2: Right-click the object icon and click the “Module Properties” option.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
104
Step 3: Configure the object properties in the Modbus Digital Input dialog box
using the values shown in the image below. And then click the “OK” button to set
the properties.

A. In the “Device settings” section, set the Interface to TCP/IP and enter the IP
address.

B. In the “Device settings” section, select the Address of the controller from the
“Address” drop-down menu. This will be the same as the Net ID of the controller.

C. Enter a value for the Start byte, which can be found from the DI Mapping table
in the Modbus Utility.

B C

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
105
Step 4: Click the "Modules" tab and then expand the “Display” folder found in the
“Modules” folder. Drag a Status Display object to the worksheet pane on the
right-hand side of the window.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
106
Step 5: Drag a line from the “Status Dis00” icon to the ”Modbus Dig00” icon to
establish a connection between the Status Display object and the Digital Input
object. Click the “Run” button to connect to the module and begin acquiring data.

The data can also be checked using the "Monitor" function of the Modbus Utility
and then clicking the “DI Mapping” tab.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
107
3.2.4. Adding a Digital Output Channel

Step 1: Click the "Modules" tab and then expand the “Inputs/Outputs” folder found
in the “Modules” folder. Expand the “ModBus” folder and then drag a Digital Output
object to the worksheet pane on the right-hand side of the window.

Step 2: Right-click the object and click the “Module Properties” option.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
108
Step 3: Configure the object properties in the Modbus Digital Output dialog box
using the values shown in the image below. And then click the “OK” button to set
the properties.

A. In the “Device settings” section, set the Interface to TCP/IP and enter the IP
address.

B. In the “Device settings” section, select the Address of the controller from the
“Address” drop-down menu. This will be the same as the Net ID of the controller.

C. Enter the Start byte, which can be found from the DO Mapping table in the
Modbus Utility.

B C

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
109
Step 4: Click the "Modules" tab and then expand the “Control” folder found in the
“Modules” folder. Drag a Switch Control object to the worksheet pane on the
right-hand side of the window.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
110
Step 5: Drag a line from the “Switch00” icon to the “Modbus Dig00” icon to
establish a connection between the Switch Control object and the Digital Output
object. Click the “Run” button to connect to the module and begin exporting data by
the Switch00.

The data can also be set on the “DO Mapping” using the “Monitor” function of the
Modbus Utility.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
111
3.3. EZ Data Logger
In this section, a detailed description of the procedure for connecting the EZ Data
Logger solution to a controller using the Modbus/TCP protocol is presented. In this
example, EZ Data Logger version 4.5.7 is used.

Before using the EZ Data Logger, the controller should be correctly configured using
the Modbus Utility. The Net ID is set using the 8-bit DIP switch located on the
right-hand side of the controller (see Section 2.4 Net ID (Station number) Setting for
more information).

The EZ Data Logger can be downloaded from:


http://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/ez_data_logger/

3.3.1. Adding the I/O Modules to the Workgroup

Step 1: Open the EZ Data Logger software and the main project window will be
displayed containing a default project named “MyProject”.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
112
To create a new project, click the “New Project” item in the “Project” menu.

Step 2: Enter a name for the project and click the “Save” button.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
113
Step 3: Click the “Group Setup” button in the main toolbar to open the “Workgroup
Setting” dialog box, and begin adding the controller and I/O channels to the
workgroup list.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
114
Step 4: Click the “Install” button in the “Driver List” section to display the “Driver”
dialog box.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
115
Step 5: Select the “Modbus TCP” option from the “Driver Mode” drop-down menu,
and enter the IP address for the controller in the “Host” text field, and then click the
“Install” button.

The new driver will be added to the Driver List, as shown below.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
116
Step 6: Click the “+Device” button in the “Driver” dialog box to display the “Device”
dialog box.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
117
Step 7: In the “Select Driver” drop-down menu, select the “MTCP” driver that was
added earlier and select “Enter numbers by yourself” from the “Module” drop-down
menu.

Enter the name of the Analog Input module, 87017W in this example, in the
“Nickname” text field and set the “Slave ID” to “1”.

Check the “3xxxx Input Registers (AI)” checkbox in the “Address Range Definition”
section and enter the channel numbers 0 to 7 then select “Integer” as the type.

Click the “Add” button to add the new module configuration to the Device List
section and the Channel List section.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
118
Once the new device has been configured, the new channels will be displayed in the
“Channel List” section, as shown in the following figure.

Step 8: Repeat the procedure described in Step 6 and 7 to add the details for AO, DI
and DO channels to the Channel List using the details illustrated in the images
below.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
119
Step 9: The output style for the component and the alarms for a channel can be
edited by double-clicking the Nickname of the channel in the Channel List to open
the “Modify Channel” dialog box. The example illustrated below uses AI channel 0.
The AO, DI and DO channels can be edited in the same way.

B
C

Configure the properties for the channel in the “Modify Channel” dialog box.

A. To get the Gain and Offset values, enter a Value for Point 1 and Point 2 and then
click the “Calculate” button in the “Scaling” section. Linking to SCADA Software via

B. Set the High and Low alarm values in the “Alarm” section. These values will be
used to notify the System Administrator of any abnormal events if the
“MailNotifier” driver has been enabled. The procedure for enabling the
“MailNotifier” function can be downloaded from:
http://ftp.icpdas.com/pub/cd/8000cd/napdos/driver/ez_data_logger/faq_en/ezdl
1-003-03_how_to_set_alarm_notifies_by_sending_email_en.pdf

C. Select the desired style to be used for AI channel 0 from the “Component Style”
section.
Modbus

D. Click the “Modify” button to save the modified configuration.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
120
Step 10: Click the “Workgroup1” entry in the “Work Group” section to highlight it.
This ensures that all I/O channels selected later in the procedure will be added to
the Channel List for the “Workgroup1”.

Step 11: Click the “AI List” button in the “Channel List” section to display the AI
channels that were configured earlier. Select all AI channels and then click the
“Add>>” button.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
121
After clicking the “Add>>” button, the selected channels will be added to the channel
list panel for Workgroup1, as shown in the following figure. These channels will be
used for monitoring purposes later.

The AI Channels that


were added to the
Workgroup1 earlier.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
122
Step 12: Repeat the procedure described in Step 10 and 11 to add the other I/O
channels to the channel list for Workgroup1. After all channels have been added,
click the “Home” button to return to the main page.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
123
3.3.2. Designing the Layout and Acquiring Data

Once the configuration process described in Section3.3.1 has been completed, the
layout of the interface can be adjusted and the data can be acquired.

Step 1: To adjust the layout of the interface, click the “Layout” button for
“Workgroup1” on the main page of the EZ Data Logger.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
124
Step 2: The layout of the interface can be designed by dragging the relevant I/O
objects to the desired position on the form. A background image can be added by
clicking the “Back Picture” item in the “Picture” menu, or the color of the font can
be changed by clicking the “Font Color” menu.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
125
Step 3: After the interface design is complete, click the “Hide” menu item to close
the design window.

Step 4: Click the “Start” button on the main toolbar to establish a connection to the
controller and begin acquiring data. Once a connection has been successfully
established, the device state indicators will change to “ON” and the connection
status messages will be displayed in the yellow message filed.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
126
Step 5: To acquire the I/O data, click either of the “Gauge”, “Trend” or “Layout”
buttons. In the example illustrated below, the “Layout” button has been clicked, and
the values for the relevant modules is displayed interface design window.

Linking to SCADA Software via


Modbus

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
127
Appendix A: Backing Up and

Restoring the EEPROM Settings


The EEPROM is a memory component that is used to store network, system, COM
port and module configuration information .The Back Up/Restore functions could
be used to restore configuration information for a controller where the data has
been lost and can also be used to duplicate EEPROM data from one controller to
another.

The size of the EEPROM is different in every controller and each block in the
EEPROM stores different types of data. The following table provides an overview of
the writable blocks and the reserved blocks. The writable blocks contains
information related to the library version, COM port configuration, watchdog timer,
module settings, and the reserved blocks contains details of the IP address, Mask,
Gateway and MAC address.

Controller Writable Blocks Reserved Blocks Number of Blocks


I-8000 1-7 0 8 (blocks 0-7)
IP-8000 8-14 0-7 64 (blocks 0-63)
7188E 1-7 0 8 (blocks 0-7)

Note 1: Before attempting to read or write EEPROM data, ensure that the version
number of the I/O Scan Library is 1.6.0 or later.
Restoring the EEPROM Settings
Note 2: This function only supports connections via the COM port. Before
Appendix A: Backing Up and

attempting to perform this function, ensure that COM1 on the controller is


connected to the computer.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
128
1. Backing up the Settings

Step 1: Reboot the controller in INIT mode.


For I-8000 modules, short the INIT* and INIT*COM pins.
For IP-8000 modules, move the DIP switch to the “Init” position.
For 7188E devices, short the INIT* and GND pins.

Step 2: Execute the Modbus Utility and select Modbus/TCP controller mode.

Step 3: Select the “Update Firmware” option from the “Client Tools” menu to
connect to the controller.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
129
Select the COM port from the drop-down menu and then click the “Connect” button.
Once a connection is established, the “Back up Settings” and “Restore Settings”
buttons will be displayed.

Step 4: Click the “Back up Settings” button and the “Back up EEPROM file” dialog
box will be displayed. Click the "Save" button to save the current configuration of
the controller to the default root folder named “backup_setting”. The status message
"Downloading. Please wait..." will be displayed while the file is being saved.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
130
Once the download is complete, a message will be displayed to notify that the file
was saved successfully. Click the "OK" button to continue.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
131
2. Restoring the Settings

Step 1: Reboot the controller in INIT mode.


For I-8000 modules, short the INIT* and INIT*COM pins.
For IP-8000 modules, move the DIP switch to the “Init” position.
For 7188E devices, short the INIT* and GND pins.

Step 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.

Step 3: Select the “Update Firmware” option from the “Client Tools” menu to
connect to the controller.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
132
Select the COM port from the drop-down menu and then click the “Connect” button.
Once a connection is established, the “Back up Settings” and “Restore Settings”
buttons will be displayed.

Step 4: To configure a controller to the same settings as another, click the “Recover
Settings” button and the "Select an EEPROM file to Restore" dialog box will be
displayed. Click the name of the file that contains the configuration to be uploaded,
and then select the blocks to be duplicated from the "Write Block" drop-down
menus. Click the "Write 1/multi-block" button to write the configuration to the
EEPROM.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
133
The status message "Writing. Please wait..." will be displayed while the
configuration is being duplicated.

Once the duplication process is complete, a message will be displayed to notify that
the file was written successfully. Click the "OK" button to continue.

Restoring the EEPROM Settings


Appendix A: Backing Up and

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
134
Appendix B: Function Codes (FC)
All data addresses in a Modbus message start at zero and are transmitted in
hexadecimal format. For example:

A. Input register 30001 is addressed as 0 in the data address field of the Modbus
message.

B. Coil 24 (decimal) in an I/O module is addressed as coil 0017 (hexadecimal) in


the Modbus message (Equivalent to 23 in decimal.).

As the function code already specifies whether the operation is DO, DI, AO or AI,
the references ‘0xxxx, 1xxxx, 4xxxx, 3xxxx’ are implicit. Function codes are used in
both the Modbus RTU Master Tool and the Modbus TCP Client Tool.

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
135
1. Read DO (0xxxx)

Function Code 01=Read Coil Status


Request
Byte 0 1 2 3 4 5
Net ID FC=01 Starting Address Bit Count
Example: Net ID = 20(*1), Hex 14 1 0 11 0 D
Read Coils 18-30(*2) Command 14 1 0 11 0 D
Response
Byte 0 1 2 3 ~Byte Count+2
Net ID FC=01 Byte Count Bits Values
Response 14 01 2 (*3) 5C (Coils 25-18) 1B (Coils 30-26)
Binary 0101 1100(*4) 0001 1011(*5)

*1: Net ID decimal 20 = hexadecimal 14.

*2: Coils 18-30 are addressed as 17-29 (decimal), with a total of 13 coils in Modbus.

*3: If the number of coils returned isn’t a multiple of 8, the remaining bits in the last
byte will be filled with 0.

*4: 5C= 0101 1100 refers to coils 18 to 25 (from right to left). The status values are:
OFF (25), ON (24), OFF (23), ON (22), ON (21), ON (20), OFF (19), OFF (18).

*5: 1B= 0001 1011, refers to coils 26 to 30 (from right to left). The status values are:
ON (30), ON (29), OFF (28), ON (27), ON (26).

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
136
2. Read DI (1xxxx)

Function Code 02=Read Input Status


Request
Byte 0 1 2 3 4 5
Net ID FC=02 Starting Address Bit Count
Example: Net ID = 1, Read Hex 1 2 0 0 0 8
the status of inputs 1-8(*1) Command 120008
Response
Byte 0 1 2 3 ~Byte Count+2
Net ID FC=02 Byte Count Bits Values
Response 1 2 1 FF (Coils 8-1)
Binary 1111 1111(*2)

*1: Inputs 1-8 are addressed as 0-7 (decimal), there are a total of 8 inputs.

*2: FF=1111 1111, refers to coils 8 to 1 (from right to left), and the status of each
coil is set to ON.

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
137
3. Read AO (4xxxx)

Function Code 03=Read Holding Registers


Request
Byte 0 1 2 3 4 5
Net ID FC=03 Starting Address Word Count
Example: Net ID = 25, Hex 19 3 0 1A 0 2
Read registers Command 19 3 0 1A 0 2
40027-40028(*1)
Response
Byte 0 1 2 3 ~Byte Count+2
Net ID FC=03 Byte Count Register Values
Response 19 3 4 2 17 0 C8
Register 40027 (*2) 40028 (*2)

*1: Holding registers 40027-40028 are addressed as 26-27 in Modbus.

*2: The value of register 40027 is shown as a 2-byte value: 02 17 (hexadecimal) =


535 (decimal), the value of register 40028 is 00 C8 (hexadecimal) = 200
(decimal). For details of how to convert these values to float format, see
Appendix C: Range Codes for Analog Modules.

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
138
4. Read AI (3xxxx)

Function Code 04=Read Input Registers


Request
Byte 0 1 2 3 4 5
Net ID FC=04 Starting Address Word Count
Example: Net ID = 2, Hex 2 4 0 0 0 2
Read registers Command 240002
30001-30002(*1)
Response
Byte 0 1 2 3 ~Byte Count+2
Net ID FC=04 Byte Count Register Values
Response 2 4 4 0 0 0 64
Register 30001 (*2) 30002 (*2)

*1: Input registers 30001-30002 are addressed as 0-1 in Modbus.

*2: The value of register 30001 is shown as a 2-byte value: 00 00 (hexadecimal) = 0


(decimal), the value of register 30002 is 00 64 (hexadecimal) = 100 (decimal).
For details of how to convert these values to float format, see Appendix C:
Range Codes for Analog Modules.

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
139
5. Write Single DO (0xxxx)

Function Code 05=Write Single Coil


Request
Byte 0 1 2 3 4 5
Net ID FC=05 Write Address FF 00=ON,
00 00=OFF
Example: Net ID = 1, Hex 1 5 0 4 FF 0
set coil 5 to ON (*1) Command 1 5 0 4 FF 0
Response
Byte 0 1 2 3 4 5
Net ID FC=05 Write Address FF 00=ON, 00 00=OFF
Response 1 5 0 4 FF 0
If the request is successful, the function will return an echo of the request.

*1: Coil 5 is addressed as 4 in Modbus.

A value of FF 00 sets the coil to ON, and a value of 00 00 sets it to OFF. All other
values are treated as invalid..

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
140
6. Write Single AO (4xxxx)

Function Code 06= Write Single Register


Request
Byte 0 1 2 3 4 5
Net ID FC=06 Write Address Register Value
Example: Net ID = Hex 1 6 0 2 0 9B
1, set register
Command 1 6 0 2 0 9B
40003(*1) to 155(*2)
Response
Byte 0 1 2 3 4 5
Net ID FC=06 Write Address Register Value
Response 1 6 0 4 0 9B
If the request is successful, the function will return an echo of the request.

*1: Register 40003 is addressed as 2 in Modbus.

*2: Register value 155 = 9B (hexadecimal).

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
141
7. Write DO (0xxxx)

Function Code 15=Write Multiple Coils


Request
Byte 0 1 2 3 4 5 6 7 ~Byte Count+6
Net ID FC=15 Write Address Bit Count Byte Count Data to be Written
Hex 1 F 0 0 0 C 2 FE(*2) 05(*2)
Example: Net ID = 1, 1111 0000
write coils 1 to 12(*1) 1110 0101
Command 1 F 0 0 0 C 2 FE 5
Response
Byte 0 1 2 3 4 5
Net ID FC=15 Write Address Bit Count
Response 1 F 0 0 0 C

*1: Coils 1-12 are addressed as 0-11, there are a total of 12 (hexadecimal 0C) coils
in Modbus.

*2: The data is a 2-byte value. FE 05 (hexadecimal) = 1111 1110 0000 0101 (binary)
Bit 1 1 1 1 1 1 1 0 0 0 0 0 0 1 0 1
Coil 8 7 6 5 4 3 2 1 - - - - 12 11 10 9

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
142
8. Write AO (4xxxx)

Function Code 16= Write Multiple Registers


Request
Byte 0 1 2 3 4 5 6 7 ~Byte Count+6
Net ID FC=16 Write Address Word Count Byte Count Register Values
Hex 1 10 0 0 0 2 4 0 19 0 64
Example: Net ID = 1, write
Command 1 10 0 0 0 2 4 0 19 0 64
registers 40001-40002(*1)
Response
Byte 0 1 2 3 4 5
Net ID FC=16 Write Address Word Count
Response 1 10 0 0 0 2

*1: Registers 40001-40002 are addressed as 0-1 in Modbus.


The value of register 40001 is 25 (hexadecimal 19), the value of register
40002 is 100 (hexadecimal 64).

Appendix B: Function Codes (FC)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
143
Appendix C: Range Codes for
Analog Modules
The Modbus Utility can be used to convert the input or output value to float format
or other formats. An example of the operation can be seen in step 2 of 2.14
Monitoring.
The formula shown below provides details of the conversion process.

𝒴 Max Max. Input/Output Range

Y1=20 mA

(𝒳, 𝒴)
Y2=4 mA
Offset 𝒳
(0, 0) 𝒳2=0 𝒳1=32767

𝒴 Min Min. Input/Output Range

Display Value 𝒴 = (Gain * Memory Value 𝒳) + Offset

Gain = ,the Slope for this Range Code type.(In the above illustration, the

output range is 4 to 20mA.)


Memory Value 𝒳 = the input or output memory value.
Offset = Y2-(X2*Gain), the offset value to compensate for any inaccuracies in the
module.

Use I-87028W as an example, the Range code set to 31 (4-20mA), and the output
Appendix C: Range Codes for

memory value is 2048. What’s the display value?

Step1. Calculate the Gain value. Gain= (20-4)/ (32767-0) = 0.000488296


Step2. Calculate the Offset value. Offset = 4-(0*0.000488296) = 4
Step3. Calculate the display value. Display Value 𝒴 = (0.000488296*2048) + 4= 5
Analog Modules

mA.

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
144
The following tables provide the maximum and minimum values, the Gain, and the
Offset for each range code type.

 87K Analog Modules


 Current and Voltage Type Definitions
 Thermocouple Type Definitions
 RTD (Resistance Temperature Detector) Type Definitions
 Thermistor Type Definitions
 8K Modules

Appendix C: Range Codes for


Analog Modules

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
145
1. 87K Analog Modules

1.1. Current and Voltage Type Definitions

Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Analog Input Modules
Input Range +15.0 mV -15.0 mV 0.00030518 0
-15 mV to Decimal Units +32767 -32768
00
+15 mV 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +50.0 mV -50.0 mV 0.001525902 0
-50 mV to Decimal Units +32767 -32768
01
+50 mV 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +100.0 mV -100.0 mV 0.003051804 0
-100 mV to Decimal Units +32767 -32768
02
+100 mV 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +500.0 mV -500.0 mV 0.015259022 0
-500 mV to Decimal Units +32767 -32768
03
+500 mV 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +1.0 V -1.0 V 0.000030518 0
Decimal Units +32767 -32768
04 -1 V to +1V
Appendix C: Range Codes for

2's Complement
7FFF 8000
Hexadecimal Units
Input Range +2.5V -2.5V 0.025 0
-2.5 V to Decimal Units +32767 -32768
05
+2.5 V 2's Complement
Analog Modules

7FFF 8000
Hexadecimal Units
-20 mA to Input Range +20.0 mA -20.0 mA 0.00061036 0
06*1
+20 mA Decimal Units +32767 -32768

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
146
Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
(With 125
2's Complement
ohms 7FFF 8000
Hexadecimal Units
resistor)
Input Range +20.0 mA +4.0 mA 0.00024414 +4
+4 mA to Decimal Units +65535 +0
07*2
+20 mA 2's Complement
FFFF 0000
Hexadecimal Units
Input Range +10.0 V -10.0 V 0.00030518 0
-10 V to Decimal Units +32767 -32768
08
+10 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +5.0 V -5.0 V 0.00015259 0
-5 V to Decimal Units +32767 -32768
09
+5 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +1.0 V -1.0 V 0.000030518 0
Decimal Units +32767 -32768
0A -1 V to +1V
2's Complement
7FFF 8000
Hexadecimal Units
Input Range +500.0 mV -500.0 mV 0.015259022 0
-500 mV to Decimal Units +32767 -32768
0B
+500 mV 2's Complement
7FFF 8000
Hexadecimal Units
Appendix C: Range Codes for

Input Range +150.0 mV -150.0 mV 0.004577706 0


-150 mV to Decimal Units +32767 -32768
0C
+150 mV 2's Complement
7FFF 8000
Hexadecimal Units
Analog Modules

-20 mA to Input Range +20.0 mA -20.0 mA 0.00061036 0


+20 mA Decimal Units +32767 -32768
0D*3 (with 125
ohm 2's Complement
7FFF 8000
resistor) Hexadecimal Units

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
147
Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Input Range +20.0 mA +0.0 mA 0.00030518 0
+0 mA to Decimal Units +65535 +0
1A*2
+20 mA 2's Complement
FFFF 0000
Hexadecimal Units
Input Range +150.0 V -150.0 V 0.0045777 0
-150 V to Decimal Units +32767 -32768
1B
+150 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +50.0 V -50.0 V 0.0015259 0
-50 V to Decimal Units +32767 -32768
1C
+50 V 2's Complement
7FFF 8000
Hexadecimal Units
Digital Input/Output, Counter, Frequency, Encoder Modules
Digital
40 Input/ N/A N/A N/A N/A N/A
Output
Counter
50 N/A N/A N/A N/A N/A
Mode
Frequency
51 N/A N/A N/A N/A N/A
Mode
Up/Down
54 Counter N/A N/A N/A N/A N/A
Mode
Appendix C: Range Codes for

55 Pulse Mode N/A N/A N/A N/A N/A


AB Phase
56 N/A N/A N/A N/A N/A
Mode
Analog Output Modules
Output Range +20.0 mA +0.0 mA 0.00061037 0
Analog Modules

+0 mA to Decimal Units +32767 +0


0, 30
+20 mA 2's Complement
7FFF 0000
Hexadecimal Units

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
148
Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Gain-1 = 1638.35
Output Range +20.0 mA +4.0 mA 0.000488296 +4
Decimal Units +32767 +0
+4 mA to
1, 31 2's Complement
+20 mA 7FFF 0000
Hexadecimal Units
Gain-1 = 2047.9375
Output Range +10.0 V +0.0 V 0.000305185 0
Decimal Units +32767 +0
+0 V to
2, 32 2's Complement
+10 V 7FFF 0000
Hexadecimal Units
Gain-1 = 3276.7
Output Range +10.0 V -10.0 V 0.00030518 0
Decimal Units +32767 -32768
-10 V to
3, 33 2's Complement
+10 V 7FFF 8000
Hexadecimal Units
Gain-1 = 3276.75
Output Range +5.0 V +0.0 V 0.00015259 0
Decimal Units +32767 0
+0 V to
4, 34 2's Complement
+5 V 7FFF 0000
Hexadecimal Units
Gain-1 = 6553.4
Output Range +5.0 V -5.0 V 0.00015259 0
Appendix C: Range Codes for

Decimal Units +32767 -32768


-5 V to
5, 35 2's Complement
+5 V 7FFF 8000
Hexadecimal Units
Gain-1 = 6553.4
Output Range +20.0 V +0.0 V 0.00061037 0
Analog Modules

+0 V to Decimal Units +32767 0


6, 36
+20 V 2's Complement
7FFF 0000
Hexadecimal Units

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
149
Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Gain-1 = 1638.35
Notes

*1: When I-87018 and I-87018R are connecting to a current source set to the 06 type
code, an optional external 125 Ohms resistor is required.

*2: I-87017RC has built-in 125 Ohms resistors for each channel. When connecting to
a current source, no add any external resistors required.

*3: When I-87017 and I-87017R are connecting to a current source set to 0D type
code, an optional external 125 Ohms resistor is required. On the other hand,
I-87017RC has built-in 125 Ohms resistors for each channel, so require no
external resistors.

Appendix C: Range Codes for


Analog Modules

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
150
1.2. Thermocouple Type Definitions

Type Thermocouple Max. Min.


Data Format Gain Offset
Code Type Value Value
Input Range
+760.0 -210.0 0.023194089 0
(Celsius)
0E J Type Decimal Units +32767 -9054
2's Complement
7FFF DCA2
Hexadecimal Units
Input Range
+1372.0 -270.0 0.0418717327 0
(Celsius)
0F K Type Engineer Units +32767 -6448
2's Complement
7FFF E6D0
Hexadecimal Units
Input Range
+400.0 -270.0 0.0122073426 0
(Celsius)
10 T Type Decimal Units +32767 -22118
2's Complement
7FFF A99A
Hexadecimal Units
Input Range
+1000.0 -270.0 0.030518575 0
(Celsius)
11 E Type Decimal Units +32767 -8847
2's Complement
7FFF DD71
Hexadecimal Units
Input Range
+1768.0 +0.0 0.0539567247 0
(Celsius)
Appendix C: Range Codes for

12 R Type Decimal Units +32767 +0


2's Complement
7FFF 0000
Hexadecimal Units
Input Range
+1768.0 +0.0 0.0539567247 0
Analog Modules

(Celsius)
13 S Type Decimal Units +32767 +0
2's Complement
7FFF 0000
Hexadecimal Units

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
151
Type Thermocouple Max. Min.
Data Format Gain Offset
Code Type Value Value
Input Range
+1820.0 +0.0 0.0555436872 0
(Celsius)
14 B Type Decimal Units +32767 +0
2's Complement
7FFF 0000
Hexadecimal Units
Input Range
+1300.0 -270.0 0.0396745173 0
(Celsius)
15 N Type Decimal Units +32767 -6805
2's Complement
7FFF E56B
Hexadecimal Units
Input Range
+2320.0 +0.0 0.0708029419 0
(Celsius)
16 C Type Decimal Units +32767 +0
2's Complement
7FFF 0000
Hexadecimal Units
Input Range
+800.0 -200.0 0.0244146585 0
(Celsius)
17 L Type Decimal Units +32767 -8192
2's Complement
7FFF E000
Hexadecimal Units
Input Range
+100.0 -200.0 0.0061035156 0
(Celsius)
18 M Type Decimal Units +16384 -32768
Appendix C: Range Codes for

2's Complement
4000 8000
Hexadecimal Units
Input Range
+900.0 -200.0 0.0274670395 0
(Celsius)
L Type
19 Decimal Units +32767 -7281
DIN43710
Analog Modules

2's Complement
7FFF E38F
Hexadecimal Units

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
152
1.3. RTD (Resistance Temperature Detector) Type Definitions

Type Max. Min.


RTD Type Data Format Gain Offset
Code Value Value

Platinum Input Range


+100.0 -100.0 0.0030518043 0
100 (Celsius)
a= Decimal Units +32767 -32768
20
0.00385 2's Complement
7FFF 8000
-100℃ to Hexadecimal Units
100℃ Ohm +138.5 +60.25

Platinum Input Range


+100.0 +0.0 0.0030518509 0
100 (Celsius)
a= Decimal Units +32767 +0
21
0.00385 2's Complement
7FFF 0000
0℃ to Hexadecimal Units
100℃ Ohm +138.5 +100.0

Platinum Input Range


+200.0 +0.0 0.0061037018 0
100 (Celsius)
a= Decimal Units +32767 +0
22
0.00385 2's Complement
7FFF 0000
0℃ to Hexadecimal Units
200℃ Ohm +175.84 +100.0

Platinum Input Range


+600.0 +0.0 0.0183111056 0
100 (Celsius)
a= Decimal Units +32767 +0
23
Appendix C: Range Codes for

0.00385 2's Complement


7FFF 0000
0℃ to Hexadecimal Units
600℃ Ohm +313.59 +100.0

Platinum Input Range


+100.0 -100.0 0.0030518043 0
100 (Celsius)
Analog Modules

a= Decimal Units +32767 -32768


24
0.003916 2's Complement
7FFF 8000
-100℃ to Hexadecimal Units
100℃ Ohm +139.16 +59.58

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
153
Type Max. Min.
RTD Type Data Format Gain Offset
Code Value Value

Platinum Input Range


+100.0 +0.0 0.0030518509 0
100 (Celsius)
a= Decimal Units +32767 +0
25
0.003916 2's Complement
7FFF 0000
0℃ to Hexadecimal Units
100℃ Ohm +139.16 +100.0

Platinum Input Range


+200.0 +0.0 0.0061037018 0
100 (Celsius)
a= Decimal Units +32767 +0
26
0.003916 2's Complement
7FFF 0000
0℃ to Hexadecimal Units
200℃ Ohm +177.13 +100.0

Platinum Input Range


+600.0 +0.0 0.01831110568 0
100 (Celsius)
a= Decimal Units +32767 +0
27
0.003916 2's Complement
7FFF 0000
0℃ to Hexadecimal Units
600℃ Ohm +317.28 +100.0
Input Range
+100.0 -80.0 0.0030518302 0
(Celsius)
Nickel 120
Decimal Units +32767 -26214
28 -80℃ to
2's Complement
100℃ 7FFF 999A
Hexadecimal Units
Appendix C: Range Codes for

Ohm +200.64 +120.6


Input Range
+100.0 +0.0 0.0030518509 0
(Celsius)
Nickel 120
Decimal Units +32767 +0
29 0℃ to
2's Complement
Analog Modules

100℃ 7FFF 0000


Hexadecimal Units
Ohm +200.64 +120.6
2A Platinum Input Range +600.0 -200.0 0.0183112453 0

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
154
Type Max. Min.
RTD Type Data Format Gain Offset
Code Value Value
1000 (Celsius)
a Decimal Units +32767 -10922
=0.00385
2's Complement
-200℃ to 7FFF D556
Hexadecimal Units
600℃
Ohm +3137.1 +185.2
Input Range
Cu 100 +150.0 -20.0 0.0045777 0
(Celsius)
a
Decimal Units +32767 -4369
2B*1 =0.00421
2's Complement
-20℃ to 7FFF EEEF
Hexadecimal Units
150℃
Ohm +163.17 +91.56
Input Range
Cu 100 +200.0 +0.0 0.0061037 0
(Celsius)
a
Decimal Units +32767 +0
2C*1 =0.00421
2's Complement
0℃ to 7FFF 0000
Hexadecimal Units
200℃
Ohm +167.75 +90.34
Input Range
Cu 1000 +150.0 -20.0 0.0045777 0
(Celsius)
a
Decimal Units +32767 -4369
2D*1 =0.00421
2's Complement
-20℃ to 7FFF EEEF
Hexadecimal Units
150℃
Ohm +1631.7 +915.6
Appendix C: Range Codes for

Input Range
Pt 100 +200.0 -200.0 0.0061036 0
(Celsius)
a
Decimal Units +32767 -32768
2E*2 =0.00385
2's Complement
-200℃ to 7FFF 8000
Hexadecimal Units
Analog Modules

200℃
Ohm +175.84 +18.49
Pt 100 Input Range
2F*2 +200.0 -200.0 0.0061036 0
a (Celsius)

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
155
Type Max. Min.
RTD Type Data Format Gain Offset
Code Value Value
=0.003916 Decimal Units +32767 -32768
-200℃ to 2's Complement
200℃ 7FFF 8000
Hexadecimal Units
Ohm +177.14 +17.14
Input Range
Pt 100 +600.0 -200.0 0.018311 0
(Celsius)
a
Decimal Units +32767 -10922
80*2 =0.00385
2's Complement
-200℃ to 7FFF D556
Hexadecimal Units
600℃
Ohm +313.59 +18.49
Input Range
Pt 100 +600.0 -200.0 0.018311 0
(Celsius)
a
Decimal Units +32767 -10922
81*2 =0.003916
2's Complement
-200℃ to 7FFF D556
Hexadecimal Units
600℃
Ohm +317.28 +17.14
Notes

*1: Type code 2B, 2C and 2D are only available with I-87015.

*2: Type code 2E, 2F, 80 and 81 are only available with the I-87015 firmware
version A1.10 and later, I-87013 firmware version B1.3 and later.

Appendix C: Range Codes for


Analog Modules

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
156
1.4. Thermistor Type Definitions

Type Thermistor
Data Format Max. Value Min. Value Gain Offset
Code Type
Input Range
Precon +240.0 -30.0 0.0073244 0
(Fahrenheit)
ST-A3
Decimal Units +32767 -4096
60 -30 to 240
2's Complement
degree 7FFF F000
Hexadecimal Units
Fahrenheit
Ohm +539.4 +173600.0
Input Range
Type U +150.0 -50.0 0.004577 0
(Celsius)
Fenwell
Decimal Units +32767 -10922
61 -50 to 150
2's Complement
degree 7FFF D556
Hexadecimal Units
Celsius
Ohm +37.2 +134020.0
Input Range
Type U +150.0 +0.0 0.004577 0
(Celsius)
Fenwell
Decimal Units +32767 +0
62 0 to 150
2's Complement
degree 7FFF 0000
Hexadecimal Units
Celsius
Ohm +37.2 +6530.0
Input Range
+100.0 -80.0 0.0030518 0
(Celsius)
YSI L Mix Decimal Units +32767 -26214
63
Appendix C: Range Codes for

100 2's Complement


7FFF 999A
Hexadecimal Units
Ohm +14.3 +14470.0
Input Range +100.0 -80.0 0.0030518 0
Decimal Units +32767 -26214
Analog Modules

YSI L Mix
64 2's Complement
300 7FFF 999A
Hexadecimal Units
Ohm +35.8 +67660.0

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
157
Type Thermistor
Data Format Max. Value Min. Value Gain Offset
Code Type
Input Range
+100.0 -70.0 0.00305 0
(Celsius)
YSI L Mix Decimal Units +32767 -22937
65
1000 2's Complement
7FFF A667
Hexadecimal Units
Ohm +106.4 +132600.0
Input Range
+150.0 -50.0 0.004577 0
(Celsius)
YSI B Mix Decimal Units +32767 -10922
66
2252 2's Complement
7FFF D556
Hexadecimal Units
Ohm +41.8 +151000.0
Input Range
+150.0 -40.0 0.004577 0
(Celsius)
YSI B Mix Decimal Units +32767 -8738
67
3000 2's Complement
7FFF DDDE
Hexadecimal Units
Ohm +55.6 +101000.0
Input Range
+150.0 -40.0 0.004577 0
(Celsius)
YSI B Mix Decimal Units +32767 -8738
68
5000 2's Complement
7FFF DDDE
Hexadecimal Units
Appendix C: Range Codes for

Ohm +92.7 +168300.0


Input Range
+150.0 -30.0 0.004577 0
(Celsius)
YSI B Mix Decimal Units +32767 -6553
69
6000 2's Complement
Analog Modules

7FFF E667
Hexadecimal Units
Ohm +111.5 +106200.0
6A YSI B Mix Input Range +150.0 -30.0 0.004577 0

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
158
Type Thermistor
Data Format Max. Value Min. Value Gain Offset
Code Type
10K (Celsius)
Decimal Units +32767 -6553
2's Complement
7FFF E667
Hexadecimal Units
Ohm +185.9 +177000.0
Input Range
+150.0 -30.0 0.004577 0
(Celsius)
YSI H Mix Decimal Units +32767 -6553
6B
10K 2's Complement
7FFF E667
Hexadecimal Units
Ohm +237.0 +135200.0
Input Range
+200.0 -10.0 0.0061037 0
(Celsius)
YSI H Mix Decimal Units +32767 -1638
6C
30K 2's Complement
7FFF F99A
Hexadecimal Units
Ohm +186.7 +158000.0
Input Range
User- +150.0 -50.0 0.004577 0
(Celsius)
defined
70- Decimal Units +32767 -10922
-50 to 150
77 2's Complement
degree 7FFF D556
Hexadecimal Units
Celsius
Ohm +0.0 +0.0
Appendix C: Range Codes for
Analog Modules

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
159
2. 8K Modules

Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Input Range +2.5 V -2.5 V 0.000076295 0
-2.5 V to Decimal Units +32767 -32768
05
+2.5 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +20.0 mV -20.0 mV 0.00061036 0
-20 mV to Decimal Units +32767 -32768
06
+20 mV 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +1.25 V -1.25 V 0.000038147 0
-1.25 V to Decimal Units +32767 -32768
07
+1.25 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +10.0 V -10.0 V 0.00030518 0
-10 V to Decimal Units +32767 -32768
08
+10 V 2's Complement
7FFF 8000
Hexadecimal Units
Input Range +5.0 V -5.0 V 0.00015259 0
Decimal Units +32767 -32768
09 -5 V to +5 V
2's Complement
7FFF 8000
Hexadecimal Units
Appendix C: Range Codes for

Output Range +20.0 mA +0.0 mA 0.00061037 0


Decimal Units +32767 +0
+0 mA to
30 2's Complement
+20 mA 7FFF 0000
Hexadecimal Units
Gain-1 = 1638.35
Analog Modules

Output Range +10.0 V -10.0 V 0.00030518 0


-10 V to
33 Decimal Units +32767 -32768
+10 V
2's Complement 7FFF 8000

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
160
Type Type
Data Format Max. Value Min. Value Gain Offset
Code Definitions
Hexadecimal Units
Gain-1 = 3276.75
Mode 0: +2147483 -2147483
Decimal Units 1 0
Pulse/ 647 648
Direction 2's Complement
7FFFFFFF 80000000
Counter Hexadecimal Units
+2147483 -2147483
Mode 1: Decimal Units 1 0
647 648
Up/Down
2's Complement
Counter 7FFFFFFF 80000000
80 Hexadecimal Units
Decimal Units 450000 0 1 0
Mode 2:
2's Complement
Frequency 6DDD0 00000000
Hexadecimal Units
+4294967
Decimal Units 0 1 0
Mode 3: Up 295
Counter 2's Complement
FFFFFFFF 00000000
Hexadecimal Units

Appendix C: Range Codes for


Analog Modules

Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
161

You might also like