Beruflich Dokumente
Kultur Dokumente
Table of Contents
Chapter 1........................................................................Introduction
2.1.7 Topology.......................................................................................27
2.4 Summary..................................................................................................36
II
2.5 Quiz..........................................................................................................37
3.4 Quiz..........................................................................................................51
4.2.4 IO Configuration..........................................................................58
4.2.7 Practice.........................................................................................64
4.3.5 IO Configuration..........................................................................71
4.3.9 Practice.........................................................................................82
4.4.4 Practice.........................................................................................98
4.6 Quiz........................................................................................................109
5.3 Quiz........................................................................................................131
Host PC Connection(Advanced)1
Chapter 1 Introduction
specifications such as the temperature tolerance and vibration protection are getting
important. For this reason, the companies which develop the industrial equipments
focus on the way to make the industrial computer and devices more stable and
flexible. For example, the industrial computer has more PCI slots so that the
customers can install more PCI cards to extend their applications. Or in building
automation system, there should be an industrial computer (ex: UNO series) with
values from sensors, and can publish them as a real-time I/O values to PC. Advantech
This textbook will focus on the base knowledge about Data Acquisition system so that
Project Introduction :
community. In 2007 China established the Polluting Prevention Regulation to limit its
emissions, control pollution, and raise the standard of pollution monitoring. This
regulation mandated that every power and industrial plant must adopt higher
standards for pollution monitoring, which directly increased the demand for
System Requirements :
uses advanced and reliable technologies for photoelectric measurement and Ethernet
communications to monitor and transmit data of the exhaust gases and emission
volume.
In these investments, the CEMS system is designed to acquire and manage real-
time data in exhaust gas discharged from the chambers of the fire power plants,
System Diagram :
System Description :
which includes real time monitoring of the exhaust gas and emissions volume, and
transmits the data to a central station in the Environmental Protection Bureau. The
Computers (UNO) and Ethernet I/O Modules (ADAM-5000). The specialty of the
fanless and anti-vibration design guarantees stable operation even in the harshest
analyzer, dust analyzer and data acquisition processor are the 3 primary parts of
CEMS. They are adopted of real-time continuous monitoring for the chroma of the
primary pollutant, such as dust, SO2, NOx, in industrial boiler, industrial kilns and
electric boiler. They also provide the parameters of gas temperature, pressure, flow,
and O2 cube. The system collects the data automatically and transmits it to the central
station and environment management division through internet. The staff also can get
the real-time data and report through internet. This ensures that the national pollutant
emission volume control project and acid rain control project are on the track, and
Conclusion :
pressure, flow, and O2 cube and so on. At the same time, it needs some digital I/O to
process the data automatically as well as save the data. This customer also needed a
PLC which could collect more simulation data, had bigger memory, and had more
COM ports to connect to gas and dust analyzers. Furthermore, Advantech provides
convenience, compatibility, and time saving to customers. Customers can have one-
stop shopping instead of having to outsource a lot of the works. Compatibility will not
the time it usually takes to integrate various products across multiple brands.
Project Introduction :
Steel mills are industrial plants for turning molten steel into ingots, billets, and
plates. These mills are high temperature, high risk environments prone to outbursts of
fire. Since the factory area is too large for the workers to monitor at all times, its very
difficult to enforce safety measures in the event of a fire or other accident. These
types of accidents can lead to loss of life, production time, revenue and more. The
third largest steel mill in the world is in Korea, and they were experiencing a high
volume of accidents each year. In order to improve safety, they tried implementing
various new systems, to no effect. Therefore, they called in Advantech to help them
System Requirements :
Safety is the first priority in steel mills, where large risk factors are always
present. A fire monitoring system needed to be applied for strict monitoring of the
equipment and working environment. The largest problem found was that the quality
of wiring within the mill was old and very poor quality. Compounding this issue was
the fact that the existing system was dependant on sensors and cables only. The
system should be stable, reliable, and be able to send signals to the central monitoring
System Diagram :
System Description :
Since the factory area is so large, the transmission route between fire annunciator
between the receiver and all disaster monitoring departments. Advantechs ADAM-
5000/TCP is a distributed control module which uses the existing network backbone
as the basis of the new system. The disaster monitoring departments use the ADAM-
5051D digital input module to input alarm messages while all the fire equipment
(water sprinklers, fire extinguishers and alarms) use the ADAM-5068 digital output
module. The existing communication port employs ADAM-4571 and other modules
Conclusion:
After implementing this fire monitoring system, factory workers can work hard
in a safe environment and have the peace of mind that corrective actions can be taken
decrease the fire rate and increase the production capacity. The mill was very satisfied
at a low price point while still solving the large issue of the existing wiring problem.
The new system contributed to the improvement of overall safety, and endeavors are
being made to apply Advantechs disaster monitoring system to other mills currently
under construction.
Project Introduction :
illegal access or break-ins. When the window or door of the ammunition depot is
opened, an alarm will be activated and a message will be sent to the server (a
computer) in the central control room. While traditionally the job of a PLC, this
customer chose to apply the ADAM-6000 series with new GCL (Graphic Condition
Logic) functionality, saving them money and allowing more employees to customize
System Requirements :
All data can be transferred to the server via Ethernet, so an Ethernet I/O device is
also needed.
The customer didnt want to write programs on the server to control the EthernetI/O
device, so the Ethernet I/O device should have the ability to operate as astandalone
module.
The customer also wanted the Ethernet I/O device to be able to actively
sendmessages to the server when an event occurs (illegal break-in), so that the
serverdoesnt need to periodically poll the status of the Ethernet I/O device.
System Diagram :
System Description :
There are alarm detectors installed in the doors & windows of the ammunition
depot which will generate digital output signal when the door (window) is opened.
Since this is an ammunition depot, every entrance should be monitored and notified.
ADAM-6050 modules are located near the door (window) detectors and connect to
the detectors. The GCL utility is running on the ADAM-6050 and will continuously
check if the value of the digital inputs from the detectors has changed. In the event of
a change, it will automatically generate a digital output signal to activate the alarm
(power the buzzer). At the same time, ADAM-6050 modules will also send predefined
message through Internet or Intranet to the remote server in the central control room.
Then the guard in the central control room can take related action.
Conclusion :
Advantechs ADAM-6000 with GCL solution is perfect for this application. Not
only is this a very simple system, but only one ADAM-6050 module is needed.The
developer can build the system in a very short time, and they dont need to write a
detailed program on the server to read DI or DO status on the module. They only
The purpose of this Remote IO textbook is to assist the users to learn the basic
concept of Remote Data acquisition and know how to use Advantech Remote IO
modules. In advance, if you are already familiar with this, Chapter 5 will be described
the software programming in depth. After that, the users should know more about the
architecture of the Remote IO system and learn the skills of using Advantech utility
and examples to control the Modules. If possible, the users also can refer to the
examples and modify them to be the unique application to satisfy their needs.
This textbook will be separate into five chapters. In Chapter 1, the overview of
industry, the application story of the Remote Data acquisition and whats the rule of
the Remote IO Modules will be introduced. In Chapter2, the essential basic concept
will be described in more detail. The communication interface for Remote data
Because all Advantech Serial Modules use RS-485 to communicate, the topology of
RS-485 will be shown in 2.1.7. Finally, because both Serial and Ethernet Remote IO
modules support Modbus protocol, we will show you the Modbus Frame format. In
Chapter3, it will guide the users how to select the most suitable products for their
application. We will introduce you the RS-232 & RS-485 converter and the RS-485
Repeater. And introduce when you need RS-485 Repeater. Then we will show you the
features of Serial Remote IO modules and the powerful features of Ethernet Remote
IO modules. In Chapter4, the startup of the Remote data acquisition systems will be
introduced. And we will show you how to use Advantech ADAM .NET Utility to
configure Remote IO modules. And use utility to set the powerful function of Ethernet
Remote IO modules, Peer to Peer & GCL. Finally, we will show you the
for Advantech Remote IO modules will be introduced. We will show you what is OPC
Server and how to use Advantech OPC Server. Advantech supports an ADAM Class
modules. In this Chapter, we will introduce how to use this library and examples.
Before learning about the Advantech Remote IO modules, you need to have
some basic knowledge of serial communication. In this chapter, you will learn what is
Simplex Communication:
Data flow in a simplex channel is always in one way. Simplex channels are not
often used because it is not possible to send back error or control signals to the
Half-Duplex Communication:
receiving, but the two-way transmission can not take place simultaneously. Only one
end transmits at a time, the other end receives. The examples of half-duplex are talk-
Full-Duplex Communication:
duplex, allows this to happen simultaneously. In other words, the data can be
transmitted in two-way at the same time. There is no need to switch from transmit
mode to receive mode as in half duplex. The examples of full-duplex are RS-232, RS-
In the traditional way, for measuring the temperature, use DAC card and put a
sensor in the remote place. And use T/C wire to transmit dataFigure 1-1. Because
the distance between the sensor and DAC Card is too far and the data is transmitted
by analog signal, the signal will be interfered with noises or decay easily. Therefore,
To solve the distance issue, we can utilize the Remote I/O modules nearby the
sensor. And between remote IO modules and PC, use some kind of communication
The next section will show you three kinds of communication interface, RS-232
& RS-422 & RS-485. And explain why Advantech Serial Remote IO modules use RS-
No noise rejectionSingle-ended
Full-duplex Mode
Connected deviceonly 1
One wire carries a varying voltage that represents the signal. The standard RS-232
uses one Line for Transmit and another Line for Receive. So RS-232 can transmit and
manufactories follow this standard to design their RS-232 serial COM ports.
Request To Send (RTS): DTE informs DCE of preparing for receiving data. DTE
will send RTS signal to DCE that it has data to send. DCE will take action to send
CTS (Clear To Send) signal or to reverse the direction of a half-duplex channel. For
the modern usage of RTS, please refer to the below RTS/CTS handshaking part.
Ready To Receive (RTR): The same ping with RTS. Asserted by DTE to indicate
Clear To Send (CTS): Claimed by DCE to inform RTS and to allow DTE
transmitting data. This signaling was originally used with half-duplex modems and by
slave terminals on multi-drop lines: The DTE would raise RTS to indicate that it had
data to send, and the modem would raise CTS to indicate that it is feasible to send.
connected. If the DCE is a modem, this may "wake up" the modem, bringing it out of
a power saving mode. This behavior is usually applied to the modern PSTN and GSM
modems. When this signal is disclaimed, the modem will return to the standby mode,
Data Set Ready (DSR): DCE will send DSR signal to indicate DCE has been
powered on and is ready to receive commands or data for transmission from the DTE.
Data Carrier Detect (DCD): Claimed by DCE when a connection has been
Ring Indicator (RI): Claimed by DCE when it detects a ring signal from the
telephone line.
Handshaking of RS-232 :
Two RS-232 devices can communicate with each other only by connecting Rx,
Tx, GND pins. The user can connect the rest of the pins to employ the hand-shaking
function to ensure the correction of the link between DCE and DTE. For example, by
employing RTS and CTS signals, DTE and DCE can confirm the status of each other
Half-duplex Mode
The main advantage of single-ended over differential is that fewer wires are
limitations are that. It lacks the ability to reject noise caused by differences in ground
voltage level between transmitting and receiving circuits. It lacks the ability to reject
The RS-485 standard supports half-duplex communication. This means that both
two wires are needed to transmit and receive data. Handshaking signals (such as RTS,
Request To Send) are normally used to control the direction of the data flow.
& ADAM-4521 will automatically sense the direction of the data flow and switches
RS-485 network with just two wires. This RS-485 control is completely transparent to
the user.
Full-duplex Mode
Connected deviceup to 10
485. Obviously, the advantages of RS-485 are better than RS-232 & RS-485. This is
2.1.7 Topology
RS-485 is industrys most widely used bidirectional, standard interface for serial
receive data at high rates or over long distances across the differential signal line. 2-
wire transmission has some advantages : Save the wiring cost Easy to setup and
Because when the data reach the end of RS-485, there will be a reflect signal,
and the reflect signal would be a noise signal which can influence the original signal.
The function of the terminal resistor is to eliminate the reflect signal.Figure 1-11
Ethernet was originally developed at Xerox and then was standardized by the
DIX association. (Including DEC, Intel, and Xerox) Afterward, the DIX association
transferred the patent right to the IEEE (Institute of Electrical and Electronics
Engineers) and therefore the Ethernet was no long belong to one certain company.
microwave, etc.). Ethernet originally used a shared coaxial cable (the shared medium)
carrier sense multiple access with collision detection (CSMA/CD) to govern the way
the computers shared the channel. This scheme was simpler than the competing token
ring or token bus technologies. When a computer wanted to send some information, it
100Mbps Ethernet :
100BaseTX uses twist pair to transmit data and requires high quality twist pair
(Cat. 5) because its signal frequency is higher than before (10Mbps). 100BaseTx is
messages. It was an open standard that described the messaging structure. The
The nice thing of the standard Modbus is the flexibility, but at the same time the
easy implementation of it. Not only intelligent devices like microcontrollers, PLCs
etc. are able to communicate with Modbus, also many intelligent sensors are equiped
with a Modbus interface to send their data to host systems. Advantech ADAM
modules also support Modbus protocol, While Modbus was previously mainly used
on wired serial communication lines, there are also extensions to the standard for
carried. A complete command is consisted of command head and command body. The
command head is prefixed by six bytes and responded to pack Modbus format; the
command body defines target device and requested action. Following example will
The following picture shows the Modbus Frame structure of Request command.
The following picture shows the Modbus Frame structure of Response Message.
In the command body, the definition of the function code as the picture below.
For example :
Function Code 01
The function code 01 is used to read the discrete outputs ON/OFF status of a
Request : 03 01 00 17 00 08
Read coil number 17 to 24 (Modbus Address number 00017 to 00024) from ADAM
Response : 03 01 01 42
Coils number 00018 and 00023 are on, all others are off.
The function code 03 or 04 is used to read the binary contents of input registers
Request : 01 04 00 01 00 02
Read Analog inputs #1 and #2 in Modbus Address 40001 to 40002 as floating point
Response : 01 04 04 42 C8 AE 5D
2.4 Summary
In the Figure below, serial remote IO modules are placed in everywhere to do the
data acquisition and are connected by RS-485. There must be a central PC and
program running in this PC. The program controls these serial modules and monitor
The program made by users can access Advantech Ethernet modules through Ethernet
cable.
2.5 Quiz
1. Why using Remote I/O Modules? Please write down at least 3 advantages .
5. Why using Remote I/O Modules? Please write down at least 3 advantages.
6. RS-485 uses multi-drop connection. When there is more than one device in the
RS-485 connection, how does the client identify each of the module?
length of RS-485 is over 1200m. It extends the RS-485 network nodes and the
If users want to connect a RS-232 Device into RS-485 network, they can use
Because the most RS-232 device dont have address and the device on RS-485
The side of RS-232 and RS-485 can be set to different Baud Rate. It can be in
ADAM-4520 ADAM-4520I
Auto-BaudRate No Yes
ADAM-4510S ADAM-4510I
Convert Ability
Auto-BaudRate No Yes
Pulse Output
ADAM-6000 I/O modules have built-in web server. Remote computer or devices
can monitor and control I/O status on ADAM-6000 modules remotely through web
Upgraded from traditional I/O modules, the ADAM-6000 series have pre-built
Intelligent I/O
DI : Counter
One counter will count the pulse number of the digital signal from the selected
DI : Frequency
ADAM-6000 digital module will calculate the frequency value of the digital
DI : Low-to-High Latch
Once the digital input channel detects logic level changes from low to high, the
logic status will be keep as logic high. The logic status will remain the logic high,
until you clear latch manually. Then the logic status will back to logic low.
DI : High-to-Low Latch
Once the digital input channel detects logic level changes from high to low, the
logic status will be keep as logic low. The logic status will remain the logic low, until
you clear latch manually. Then the logic status will back to logic high.
DO : Pulse Ouput
The pulse output is the same as PWR. The DO channel can generate continuous
pulse train or finite pulses. You can define the pulse width.
DO : Low-to-High Delay
It is almost the same as choosing the DO mode. The only difference is that there
will be certain time delay when the output value changes from logic low to logic high.
Refer to the picture below for its process. Users can define the delay time.
DO : High-to-Low Delay
It is almost the same as choosing the DO mode. The only difference is that there
will be certain time delay when the output value changes from logic high to logic low.
Refer to the picture below for its process. Users can define the delay time
(or a controller, such as PLC) responsible to get the data from the input
modules(Ethernet modules), manipulate the data, execute logic operation and process
depending on the input data, and generate output data to the output modules(Ethernet
Peer to Peer & Graphic Logic Condition (GCL). These two features make the
ADAM-6000 modules become a smart I/O module that it can play as a standalone
control system. So it doesnt need PC controller and PLC any more. ADAM-6000
modules with these two features can do the logic operation and control other modules
directly.
Users dont need to program the logic rule into ADAM-6000 modules. The
completely graphical, making it very easy and intuitive to complete the logic rule
configuration.
Frequency
3.4 Quiz
1. What are the features of ADAM-4100 series? Please write down at least 3
features
mode?
4. For a series of remote I/O modules through RS-485, Is it possible that the
8. Please write down one condition when it is need to use a repeater ADAM-
For ADAM products, Advantech supports ADAM .NET Utility for users to
configure and use ADAM products. On Advantech website, you could get many
http://support.advantech.com.tw/support/default.aspx
Ethernet IO modules first time, the below will show you how to configure and use
them.
for example, ADAM-4520. About the wiring of ADAM serial modules, please follow
ADAM-4000 series modules, in order to void the address conflict, dont put all of
1. You need put only one module in the initial mode on RS-485 and set an
2. Next, you could connect another module in the initial mode on RS-485
and set an unusable address to this module and then set back to normal
mode.
The following section will introduce you how to search modulesinitial modules
and set the address by using ADAM .NET Utility along with some utility
configuration.
When you want to configure some settings of a module or if not knowing the
Baud Rate of the module, please let the module into the initial mode. There are two
ways to let a module into the initial mode. Once you change the switch or short the
INIT* and GND pin, remember reset the module. Whenever one module is in the
initial mode, the address will be zero. On RS-485 network, just only one module can
In the ADAM .NET Utility, you could choose one COMPort and configure the
COMPort setting and then click the search button to find modules on RS-485.
The found modules will be list under the COMPort item. You could stop
If one module is in the initial mode, there is a star sign(*) in the address section.
Some settings can be allowed to configure only when the module is in the initial
mode.
4.2.4 IO Configuration
AI :
For AI modules, users can change the input range for every channel and get the
AO :
For AO modules, users can change the output range for every channel and
DI/O :
For DI/O modules, users can read the DI status and control the DO ON/OFF.
For WDT function, take the following picture as an example. If there is no any
connection with ADAM-4055 over 10 seconds WDT Timeout the DO4 and
For AI Modules, ADAM .NET Utility offers a function of drawing Trend and
logging AI data to files. You can see the graphical historical trend by clicking the
Trend Log button. Simply choose the check box of the channels you want to log in the
And then click the Apply button. After that, click the Start button and the data
log will start. You can see the real-time historical trend. If you click the Stop button,
then you can click the Save to file to save the trend data into your computer.
For AIO modules, you could use utility to calibrate the module only when the
module is in the initial mode. In the top right-hand corner of the Status Display area
preparing an accurate device first which can output accurate voltage or current.
You can choose the Zero Calibration button to do zero calibration. After you
click the button, a pop-up dialog window will remind you. After you complete the
hardware wiring and send a signal with minimum value of full scale range (for
example, 0mV) to the Channel 0, click the Apply button to start the calibration action.
Similarly, choose the Span Calibration button to do span calibration. For span
calibration, after you send a signal with maximum value of full scale range (for
example, 15mV) to the Channel 0, click the Apply button to start the calibration
action.
The CJC Calibration is only for temperature measuring. For voltage or current
measuring, you don't need to do the CJC Calibration. The CJC Calibration helps you
to slightly tune the temperature available by the module. For example : you are
measuring the water temperature by using Channel 0 and you are supposed to get the
30. But the utility gets the temperature, 28.8 from Channel 0. In this situation,
4.2.7 Practice
Object :
module.
Procedure :
ps. When you change the mode, remember to re-power the module.
9. Hardware Wiring
Note: If network Firewall is enabled on your computer, you may not be able to
connect with your ADAM-6000 module. Please disable the Firewall temporarily.
ADAM.NET Utility will then search all ADAM-6000 modules in the same
Subnet with your PC. If your ADAM-6000 modules are used first time, its IP will
be 10.0.0.1 by default. So you will find it showing on the others item under
subnet with the host PC. Type the correct IP address, Subnet address, and Default
gateway on the Status Display area. After complete setting, click the Apply Change
button. A dialog box appears asking you to type the password. The default password
When you select the IP address of the ADAM-6000 modules you want to use in
Module Tree Display area, there will be 8 tabs appearing in the Status Display area for
you to set up general configuration of that module. Refer to figure below. Once you
have changed any configuration, remember to click related Apply or Apply Change
button. You can see the Firmware Version on the selected ADAM-6000 module in this
tab. You also can change the Device Name and Device Description.
When an ADAM-6000 module is not in the same Subnet with your PC, the
ADAM utility can not find the module automatically. If your PC still can PING the
ADAM-6000 module on Internet, in the ADAM utility, you could find the module
manually.
If necessary, you still can change IP Address, Subnet Address, and Default
Gateway of selected ADAM-6000 module in this tab. Any application using TCP to
communicate with the ADAM-6000 module will occupy at least one connection. The
The Host Idle (Timeout) text box is used for TCP connection timeout. If there is
module will close that connection and release it to others. Without this feature, when
the number of TCP connection exceeds the maximum number (namely 8), no more
4.3.5 IO Configuration
AI :
If you want to measure voltage or current, you need to not only set the input
range of channels by using ADAM Utility but also adjust the jumper inside the
module.
You can see the current value of analog input on this tab. Simply choose the
check box of the channels you want to monitor and click the Apply button.
Besides, you can see the graphical historical trend by clicking the Trend
Log button.
Average Setting
calculation function by its built-in processor. You can simply click the
Modbus (Current)
You can see current analog input value in decimal, hexadecimal, and
Modbus (Max)
You can see historical maximum analog input value in decimal, hexadecimal.
Modbus (Min)
You can see historical minimum analog input value in decimal, hexadecimal.
Built-in alarm function. When the analog input value is higher than the high
alarm value, or lower than the low alarm value, the alarm condition occurs. Then the
AO :
If you want to ouput voltage or current, you need to not only set the input
range of channels by using ADAM Utility but also adjust the jumper inside the
module.
DI :
DI
the minimum acceptable signal width by the Minimum low signal width and
Counter
One counter will count the pulse number of the digital signal from the selected
Once the digital input channel detects logic level changes from low to high, the
logic status will be keep as logic high. The logic status will remain the logic high,
until you clear latch manually. Then the logic status will back to logic low.
Once the digital input channel detects logic level changes from high to low, the
logic status will be keep as logic low. The logic status will remain the logic low,
until you clear latch manually. Then the logic status will back to logic high.
Frequency
ADAM-6000 digital module will calculate the frequency value of the digital
DO :
Besides, you also can control values of all digital output channels by related button.
WDT Function
You can enable or disable this function by click the Turn on WDT checked
channel when WDT triggered check box. You can define the fail safe value by the
broken, channels 0 and 2 will automatically generate logic high value, while
Pulse Output
The pulse output is the same as PWR. The DO channel can generate continuous
pulse train or finite pulses. You can define the pulse width. You can define the pulse
width by entering into the Low signal width and High signal width text box in the
Setting area.
Low-to-High Delay
It is almost the same as choosing the DO mode. The only difference is that
there will be certain time delay when the output value changes from logic low to
logic high. Refer to the picture below for its process. Users can define the delay
time.
High-to-Low Delay
It is almost the same as choosing the DO mode. The only difference is that
there will be certain time delay when the output value changes from logic high to
logic low. Refer to the picture below for its process. Users can define the delay time
In this tab, you can set up password for a selected ADAM-6000 module. You
need to type current password in theOld password text box, and the new password
in theNew password and Verify password text box. There will be many
configuration and operation action asking user to type password, so this can help to
ensure safety.
You can decide which computers or devices have the ability to control this
ADAM-6000 module in this tab. Select the IP Address or MAC Address radio button
In the Security IP/MAC Setting area, you can direct type the IP or MAC address
box. Take the following picture as example, only the computer (or device) with IP
Address 172.18.3.52 or 172.18.3.116 can have the authority to control this ADAM-
6000 module.
firmware on the Advantech website. There should be three files with different file
The file with .bin extension is the firmware itself. And the two files with .html
and .jar extension are for the Web Server on the ADAM-6000 module.
In this tab, you can upgrade the downloaded firmware to your ADAM-6000
module. Click Upgrade button to download the firmware into the ADAM-6000
module.
4.3.9 Practice
Object :
Procedure :
6. Use ADAM .NET Utility to configure AO channel & control output value.
7. Use ADAM .NET Utility to configure AI channel & monitor input value.
ADAM-6000 modules can actively send its data to Hosts periodically. It is called
Data Stream. The left side of the picture below shows the traditional method. The
program running in PC uses polling method to get data from ADAM-6000 modules.
And the right side picture shows the Data Stream method, in which ADAM-6000
In this tab, you can define IP address of the Hosts receiving the data transferred
by ADAM-6000 modules, as well as the period how often ADAM-6000 modules will
send data to the Hosts. In the picture below, the module send data to PC with
Note: When you enable GCL function, Data Stream function will automatically
In your PC, ADAM Utility also offers the function of monitoring the Data sent
Unlike master/client mode, peer to peer enable modules will actively update
input channel status to specific output channels. There will be a pair of modules: one
In the traditional way, users must write a program running in PC. And the
program is polling the hardware data continuously. Once the program detect that the
data is changed, it will send commands to another device to control the output.
In P2P function, ADAM modules can update the Input status to Output channel
automatically. There is no need for a controller and users dont need to make a
next will show you how to configure the function by using ADAM .NET Utility.
Basic Mode :
The input channels of the Source Device will be mapping to the output channels
of the Target Device. The target device is another ADAM-6000 module. In other
words, the value of the input channels of the Source will automatically update to
output channels of the Target. In Basic Mode, it is one to one mapping like the picture
below
The value of the input channel will still be updated to the target devices
with the defined period. Moreover, when C.O.S is checked, the value of the input
Take the upper picture as example, if Channel 0,2,4 is enabled, it means that DI
Enable/Disable channels
Save your setting to an outer file
Load setting from the file
Apply all setting into the module
Advanced Mode :
Channels can be mapped to a single Output channel. But one Input Channel is not
GCL is the abbreviation of Graphic Condition Logic, gives Ethernet I/O modules
control ability. Users can define the control logic rules through graphical
specific Adam-6000 Ethernet modules. Then that Ethernet module will execute the
Below the GCL Menu area is the Logic Rule Set area. There are 16 logic rules
available on one ADAM-6000 module. Users just need set the GCL rules in Source
Module.
There are four stages for one logic rule: Input Condition, Logic, Execution and
Output.
The Input Condition stage is a logic condition decision for the input data.
Logic Stage :
For each logic rule, there will be at most three input conditions passing logic
True or False values to the Logic stage here. The logic operation will process the input
logic values, and generate a logic result value to the next Execution stage.
Execution Stage :
The Execution_Period will pass result of Input condition to the Output stage
SendToNextRule :
There are only three input conditions in one rule. Users can
useSendToNextRulefunction, you can set output of one logic rule being input of the
next logic rule. Please note it can only combine two logic rules which are next to each
Output Stage :
The logic result value from the Execution stage will be passed to the three
outputs. And the three outputs will have different action depend on the logic result
value.
After you complete your GCL, dont forget to enable the rules you want to
use and download the GCL Setting into the ADAM module.
ADAM Utility also offers the Online Monitoring function. Users can see the
4.4.4 Practice
Object :
Procedure :
Figure 4-100 Enable the rule and download GCL Setting to Source Module
10. Run the GCL rule in the source module.
When the ADAM-4000 Serial IO modules are in Advantech Protocol, users can
change the protocol, please refer to the Chapter 4.2.2 & 4.2.3.
For Example :
$AAM : Return the module name. AA means the address of the module.
For more ASCII Command format, you could refer to the ADAM-4000 Manual
on the website.
When the ADAM-4000 Serial IO modules are in Modbus Protocol, users can
communicate with modules through Modbus. About how to change the protocol,
The modbus address for Digital Channels is coil and starts with 0.
The modubs address for Analog Channels is register and starts with 4.
The following pictures show how to get the modbus information by using ADAM
.NET Utility.
Users can send ASCII commands to ADAM Ethernet modules through UDP with
port 1025. ADAM Utility also supports an interface for users to send ASCII
commands to ADAM Ethernet modules. But users cant use Hyperterminal to do it. If
users want to make a program to send ASCII Commands, they can open Socket and
The modbus address for Digital Channels is coil and starts with 0.
The modubs address for Analog Channels is register and starts with 4.
The following pictures show how to get the modbus information by using ADAM
.NET Utility.
4.6 Quiz
1. Which protocols can be used to communicate with Adam Remote I/O modules?
2. Which Modbus address can Not be used for Digital data in ADAM Remote I/O
3. When communicate through Modbus RTU protocol, which is not the basic item
need to know? (a) ID (b) Function code (c) Modbus Address (d) Port number
4. If the customer gets an old Adam-4017+, he wants to change its ID but dont
know the baud rate is. What kind of mode he/she need to setup in hardware
before using the utility to change the address of the module? Please shortly
5. GCL function can be simply configured in Adam.Net utility. Setup a logic rule
including 4 parts; which are Input, Logic, Execution and Output, please short
6. When customer first time use our adam-4000 series module, what would you
8. Is it possible for there to be more than one module in the initial mode at the same
-------------------------------------------Hands-On Exam--------------------------------------
10. GCL Function => AI and DO (in ADAM-6017) trigger DO in another module.
Chapter 5 Host PC
Connection(Advanced)
applications to access data from any data source like a hardware device. In other
words, OPC Server is an interface between hardware device and software applications
on PC. Some SCADA software running in PC can not get data from devices directly.
So use an OPC Server to get data from hardware device and pass data to SCADA
software.
could get Advantech OPC Server with trial version from Advantech Web Site.
The ModbusTCP OPC Server is used for Ethernet communication and the others
The following procedure will show you how to use Modbus TCP OPC Server.
3. Connection Setting
The AdamOPC Browser provided with the ADAM OPC Servers, has rapid
methods for connecting your OPC Servers. The OPC Client is able to browse the
registry of a PC and display a complete list of all installed OPC Servers. It also
provides real live data feedback and OPC Server browsing capabilities.
Select OPC DA Monitor node and click right mouse button to add OPC Server.
you would like choose the server under local network, you have to make sure the
DCOM communication security setting of OPC server and client between two
computers.
the OPCserver. Then select target group node, the data items states are showed in the
.NET programming is the trend and becoming more and more popular
programming tool for developers. Advantech supports a library named ADAM .NET
Class Library. ADAM .NET Class Library is a free library for users to develop their
The picture below shows the ADAM .NET Class Library Software Architecture.
You could download ADAM .NET Class Library from Advantech Website.
( Refer to Chapter 4.1 ). Before installing the library, we suggest you should install
Microsoft Visual Studio 2003 or 2005 first. After installing the library, there are some
library filesDLL file and examples in the following path of your PC.
Advantech.Adam
This is the core of this library. You can use this to control and configure the
Advantech.Common
Advantech.Protocol
Advantech.Graph*
This contains some useful graphic controls for user to create their HMI like
programs.
ADAM .NET Class Library also offers a Help file for users reference. The
The library also includes some examples for Win32 and WinCE and for two
programming languages, C# and VB.NET. The following content will introduce you
This example shows how to send ASCII commands to ADAM Serial Modules
with Advantech Protocol. The picture below shows how to send commands to
ADAM Serial Modules. About the commands, you could refer to the ADAM 4000
users manual.
This example shows how to communicate with ADAM Serial Modules with
Modbus Protocol through Modbus/RTU. The following procedures show how to use
this example.
For Example :
m_bRegister = True Because m_bRegister = True, it will get Analog data.
m_iCOM=4
m_iStart = 3
Module with Device Address 5 through COMPort 4
m_iLength = 8
m_iCOM=4
m_iStart = 3
Module with Device Address 5 through COMPort 4
m_iLength = 8
ReadHoldingRegs ( ) ReadCoilStatus ( )
Reads the binary contents of Reads the ON/OFF status of
holding registers (4X references) in discrete outputs (0X references,
the slave. coils) in the slave.
through Modbus/TCP. The following procedures show how to use this example.
For Example :
m_bRegister = True Because m_bRegister = True, it will get Analog data.
m_szIP = "172.18.2.80"
m_iStart = 1
m_szIP = "172.18.2.80"
m_iStart = 1
ReadHoldingRegs ( ) ReadCoilStatus ( )
Reads the binary contents of Reads the ON/OFF status of
holding registers (4X references) in discrete outputs (0X references,
the slave. coils) in the slave.
5.3 Quiz
1. Please draw a diagram to describe the relation of OPC Server & ADAM
modules.
ADAM I/O modules? (a) OPC Server (b) ADAM.NET library (c) ACTIVEDAQ
Pro
5. Suppose there is one customer who wants to use VS .NET 2003 to make a
-------------------------------------------Hands-On Exam--------------------------------------