Modbus Utility User Manual
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.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.3.2. Support for the VxComm technique for all COM ports on connected
controllers .............................................................................................................. 8
1.3.4. Automatic assignment of a register address for the I/O modules ........... 9
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
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
3
2.10. Analog Output Power-on and Safe Values.............................................. 40
3.1.1. Creating a New Project, an I/O Server and an I/O Device ...................... 66
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
4
2. Restoring the Settings ........................................................................... 132
Table of Contents
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
5
1. Introduction
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.
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
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.
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.
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
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.
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/
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.
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
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/
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.
Connect
Address Table
(Mapping Table)
Range Code & Offset Confirm Controller
Library Version
Power-on &
Configure the Module
Safe Values
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
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.
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.
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.
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
19
2.2.2. Updating via a Serial Port
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.
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
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.
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.
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.
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.
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 2: Execute the Modbus Utility and select the Modbus/TCP controller mode.
Step 3: Select the “Update Firmware” option from the “Client tools” menu.
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.
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 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).
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.
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.
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 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.
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.
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.
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:
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.
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 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.
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.
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 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).
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.
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.
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 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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
B. Using a text editor (such as Notepad): Open the .txt file in the text editor to view
the details.
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.
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.
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.
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
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
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.
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
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:
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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".
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.
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.
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.
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.
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).
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.
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.
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
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.
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
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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
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.
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.
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).
Step 1: Open the EZ Data Logger software and the main project window will be
displayed containing a default project named “MyProject”.
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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
127
Appendix A: Backing Up and
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.
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
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
128
1. Backing up the Settings
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.
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.
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
131
2. Restoring the Settings
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.
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.
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.
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.
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
135
1. Read DO (0xxxx)
*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).
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
136
2. Read DI (1xxxx)
*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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
137
3. Read AO (4xxxx)
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
138
4. Read AI (3xxxx)
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
139
5. Write Single DO (0xxxx)
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..
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
140
6. Write Single AO (4xxxx)
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
141
7. Write DO (0xxxx)
*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
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
142
8. Write AO (4xxxx)
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.
Y1=20 mA
(𝒳, 𝒴)
Y2=4 mA
Offset 𝒳
(0, 0) 𝒳2=0 𝒳1=32767
Gain = ,the Slope for this Range Code type.(In the above illustration, the
Use I-87028W as an example, the Range code set to 31 (4-20mA), and the output
Appendix C: Range Codes for
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
145
1. 87K Analog Modules
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
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
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
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.
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
150
1.2. Thermocouple Type Definitions
(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
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
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.
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
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
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
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
Copyright © 2014 ICP DAS Co., Ltd. All Rights Reserved. E-mail: [email protected]
161