User Manual ADAM-6200 Series Intelligent Ethernet I/O Module
Copyright The documentation and the software included with this product are copyrighted 2013 by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd. reserves the right to make improvements in the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd. Information provided in this manual is intended to be accurate and reliable.
Declaration of Conformity CE This product has passed the CE test for environmental specifications when shielded cables are used for external wiring. We recommend the use of shielded cables. This kind of cable is available from Advantech. Please contact your local supplier for ordering information. FCC Class A Note: This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules.
Safety Instructions 1. 2. 3. Read these safety instructions carefully. Keep this User Manual for later reference. Disconnect this equipment from any AC outlet before cleaning. Use a damp cloth. Do not use liquid or spray detergents for cleaning. 4. For plug-in equipment, the power outlet socket must be located near the equipment and must be easily accessible. 5. Keep this equipment away from humidity. 6. Put this equipment on a reliable surface during installation.
Contents Chapter Chapter 1 Product Overview ................................1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 Introduction ............................................................................................... 2 Feature Highlights ..................................................................................... 3 1.2.1 Easier Installation and Deployment .............................................. 3 1.2.2 Integrated automation application with IT technologies ................
Chapter 4 System Configuration....................... 37 4.1 4.2 4.3 ADAM.NET Utility (software)................................................................... 38 Connection.............................................................................................. 38 Configure ADAM-6200 with ADAM.NET Utility ....................................... 39 4.3.1 Operation Framework ................................................................. 40 4.3.2 General Configuration..........................
Chapter 1 Product Overview 1
1.1 Introduction The ADAM-6200 series is a new ADAM Ethernet I/O family and includes analog I/O, digital I/O and relay modules. Not limited to equipment with robust I/O functions, Advantech gets Ethernet switch involved in hardware design to make user easily deploy ADAM module with daisy chain connection and the connection is protected by auto-bypass when power outage occurs.Users are also able to monitor and control ADAM-6200 modules remotely by smart phone or pad in field maintenance.
1.2.1 Easier Installation and Deployment Note! Auto-bypass protection To prevent this critical issue from happening, Advantech especially refined the hardware design of ADAM-6200 so that it can rapidly recover the network connection in about 2.5 seconds, and endure for 4 days after module power outage. Therefore, the damage will be greatly minimized.
Group Configuration In certain application scenarios, it’s necessary to set multiple modules with the same settings because these modules are doing the same tasks on different sites. Users have to set configurations of module one after another before on-site deployment. After the modules are installed and the system is running, it will still require repetitive effort to carry out firmware updates.
Remote Monitoring and Control with Smart Phone/Pad Previously, due to different communication modes and data formats, it wasn’t easy to implement automation control and monitor in an IT-based infrastructure. Users need to build up a data converter to transform I/O data stream from SCADA system to IT database/management system. HTML 5 Hyper Text Markup Language (HTML) is popularly used to program the content of Web page over the Internet.
1.
Chapter 1 1.
1.5 Switch It’s non-functional now, but reserved for future use. 1.6 LED Definition LED Status/Com Color Green (Status) Indication Behavior 0.5 second ON Module is normally at work. 0.5 second OFF Always 10 sec ON When user enable LOCATE function. Blink When TX/RX data in transmission. ON Ethernet is connected. Blink When TX/RX is in transmission ON ON: Ethernet speed is at 100 Mbps OFF: Ethernet speed is less than 100 Mbps ON Ethernet is connected.
FCC – FCC 47 CFR PART 15 (Class A) – IC ICES-003 CE – EN 55011 / 55022 (Class A) – EN 61000-6-4 – EN 61000-3-2 – EN 61000-3-3 – EN 55024 – EN 61000-6-2 – IEC 61000-4-2 – IEC 61000-4-3 – IEC 61000-4-4 – IEC 61000-4-5 – IEC 61000-4-6 – IEC 61000-4-8 – IEC 61000-4-11 – RoHS China RoHS WEEE 9 Product Overview Chapter 1 1.
1.
Chapter 1 1.9 Front Name Plate Product Overview 1.10 Package Information The package of ADAM-6200 series module will contain the following items. Please check and feel free to contact us if any part missing or damaged after purchasing ADAM-6200 product.
ADAM-6200 User Manual 12
Chapter 2 2 Product Specifications
2.
Description Channel 8 (Differential) Voltage Input Range ±150 mV, ±500 mV, ±1 V, ±5 V, ±10 V Current Input Range ±20 mA, 0 ~ 20 mA, 4 ~ 20 mA Input Impedance > 10 MΩ (Voltage) 120 Ω (Current) Accuracy ±0.1% of FSR (Voltage) ±0.
2.2.2 Pin Assignment: 2.2.
Description Channel 4 Voltage Output Range ±5 V, ±10 V, 0~5 V, 0~10 V Current Output Range 0 ~ 20 mA, 4 ~ 20 mA Driving Load Voltage: 2kΩ Current: 500 Ω Output Impedance 2.1 Ω Accuracy 0.3% of FSR (Voltage) at 25°C 0.5% of FSR (Current) at 25°C Resolution 12-bit Output settling Time 20 μs Programmable Output Slope 0.125 – 128 mA/sec 0.
2.3.2 Pin Assignment 2.4 Digital Input/Output Modules (ADAM-6250/6251/ 6256) Digital Input Description Channel ADAM-6250: 8 ADAM-6251: 16 Dry Contact Logic 0: Open Logic 1: Closed to DGND Wet Contact Logic 0: 0 ~ 3 VDC or 0 ~ -3 VDC Logic 1: 10 ~ 30 VDC or -10 ~ -30 VDC Input Impedance 5.2 kΩ (wet contact) Transition Time 0.2 ms Frequency Input Range 0.
Chapter 2 2.4.
Isolated Digital Output ADAM-6250 ADAM-6200 User Manual 20
Chapter 2 ADAM-6256 Product Specifications 2.4.
ADAM-6251 ADAM-6256 ADAM-6200 User Manual 22
ADAM-6250 ADAM-6251 Product Specifications Chapter 2 2.4.
2.5 Relay Output Modules (ADAM-6260/6266) Relay Output Description Channel ADAM-6260: 5 Form C and 1 Form A ADAM-6266: 4 Form C Contact Rating 250 VAC @ 5A 30 VDC @ 5 A Max. Switching Voltage 400 VAC 300 VDC Max.
Chapter 2 2.5.
Isolated Relay Output 2.5.
ADAM-6266 Chapter 2 Product Specifications 2.5.
ADAM-6200 User Manual 28
Chapter 3 3 Hardware Installation
3.
ADAM-6200 modules are designed as compact units and are allowed to be installed in the field site under the following methods. 3.2.1 Panel Mounting Each ADAM-6200 Module is packed with a plastic panel mounting bracket. User can refer the bracket dimension and assembling figure to configure an optimal placement in a panel or cabinet. Chapter 3 3.2 Mounting Hardware Installation Figure 3.1 Bracket Dimension Figure 3.
3.2.2 DIN-Rail Mounting The ADAM-6200 module can also be fixed to the cabinet by using mounting rails. You need to assemble the DIN rail adapter to ADAM-6200 module with flathead screwdriver as below. When the module is mounted on a rail, you may also consider using end brackets at each end of the rail to keep the module from sliding horizontally along the rail. Figure 3.3 Assembly With Din Rail Adapter Figure 3.
This section introduces basic information on wiring the power supply, I/O units, and Ethernet connection. 3.3.1 Power Supply Wiring Screw terminals +Vs and -Vs are for power supply wiring Note! The wires used should be at least 2 mm. 3.3.2 I/O Units The system uses a plug-in screw terminal block for the interface between I/O modules and field devices. The following information must be considered when connecting electrical devices to I/O modules. 1. The terminal block accepts wires from 0.5 mm to 2.
3.3.3 Daisy Chain Connection In early stage of industrial automation field, most users used to deploy their automation environment as serial communication RS-422/RS-485 interface. The typical connection mode with RS-422/RS-485 is field connection. That presents each device can be connected one after one in one line. Since each ADAM-6200 module has already built in Ethernet switch, user can easily connect each ADAM-6200 module with standard Ethernet cable as following roughly diagram shows.
The average latency from one module to another: 15 - 20 μs: Typically, the maximum cabling distance of each 100BASE-TX network segment is 100 meters. Based on this limitation, the maximum total connection length of daisy chain wiring should also be 100m when auto-bypass protection active. See the following figure as an example, the distance from the first to the second module is 50m, so is the second to third.
ADAM-6200 User Manual 36
Chapter 4 4 System Configuration
4.1 ADAM.NET Utility (software) ADAM.NET Utility, which is designed with graphical operation interface, is aimed to offer users directly configure, control ADAM module, and monitor the real-time status of remote ADAM module via Ethernet or Wireless connection. You can find ADAM.NET utility and user manual from ADAM product CD. To keep you informed with latest update, you also can check it from the following download link on Advantech website. http://support.advantech.com.tw/Support/DownloadSRDetail.
After you've finished the connection between ADAM-6200 module and Host PC, you can use ADAM.NET utility to configure. 1. Install ADAM.NET Utility in your computer. (After successfully installation, there will be a shortcut generated on the screen) Double click the shortcut icon, and then you will see the main operation window as below. 39 ADAM-6200 User Manual System Configuration 2. Chapter 4 4.3 Configure ADAM-6200 with ADAM.
3. Click Search Module icon in Toolbar. You will see all online modules in the left Module Tree screen and an unconfigured new module, whose default password is 00000000, will appear on the Others section as below. Now you can define the network mode of the module in the beginning. After that, you will be able to perform other settings. Note! The default password is 00000000 4.3.
b. Tools Search Device Search all the ADAM modules you connected in local Ethernet. Add Devices to Group It's used to add ADAM modules to your favorite group. After activating search function, all online modules will show on Module Tree Screen area. Now you can enable this function to select the device you want to add in the Module Tree Screen. Group Configuration Group Configuration is on ADAM-6200 series module.
Case 1. If you want to upgrade your module's firmware. 1. Select Firmware. 2. Select I/O module 3. Click Browse button to import the firmware file from your computer. 4. Choose which module you're going to change its setting and enter password. 5. Click Apply button to activate it, and then you will see the operating progress on the Status area. Note! Note! The default password is 00000000 Please do not remove the power of your module when group configuration function is processing.
Do not remove the power of your module when group configuration function is processing. Otherwise, the module system will probably crash. 43 ADAM-6200 User Manual System Configuration Note! Chapter 4 Case 2. If you want to duplicate your module's configuration to others. (Before launching it, you need to export the configuration file to your computer in advance) 1. Select Configuration. 2. Select I/O module 3. Click Browse button to import the configuration file from your computer. 4.
Terminal for Command Testing ADAM-6200 series module support ASCII command and Modbus/TCP as communication protocol, so you can launch the terminal to directly communicate with ADAM-6200 series module by these two protocols.
Chapter 4 Print Screen You can save current ADAM.NET Utility screen into an image file by this option.
Monitor Stream/Event Data This function will indicate real-time I/O data status of one module on your preset host computers/servers. (The Host IP address and data update schedule can be configured in the Stream tab of Status display area.) Monitor Peer-to-Peer (Event Trigger) This function will indicate the Peer-to-Peer status and historical message when it enabled.
Monitor GCL IO Data Message This function will indicate GCL I/O data status when it enabled. Chapter 4 System Configuration c. Setup Favorite Group You can configure your favorite group including add one new device, modify or delete one current device, sort current devices and diagnose connection to one device. Refresh Serial and Ethernet ADAM.NET utility will refresh the serial and LAN network connection situation. Add COM Ports This option is used to add serial COM ports in ADAM.NET Utility.
4.3.1.2 Toolbar There are 8 graphical icons for common used options of Menu on the toolbar. Definition (from left to right) 1. Open favorite group 2. Save favorite group 3. Search Modules 4. Add Devices to Group 5. Terminal for Command Testing 6. Group Configuration 7. Monitor Data Stream/Event 8. Print Screen 4.3.1.3 Module Tree Screen The Module Tree Screen locates on the left part of ADAM.NET utility operation window.
Main Operation Screen located on the right side of utility includes I/O status display and function setting. You can select different items in Module Tree Screen, and then Main Operation Screen will change dependently. You can do all configurations and test in this area. In Information page (after clicking Ethernet), you can configure Connection/Send/ Receive/Scan Timeout.
4.3.2 General Configuration 4.3.2.1 Information It indicates basic information of ADAM-6200 module. Firmware Version Indicates the current Firmware version of ADAM-6200 module. Device Name Means model name of ADAM-6200 module. You also can rename it for recognition if required. Device Description You can add comments on this module for recognition. Locate It can help user search ADAM module with light sign. (Status LED will be constantly on for 10 sec when it enabled.
Chapter 4 4.3.2.2 Network You can set up required network connection on this page. System Configuration Network Setting You can select the Connection mode as DHCP or Static IP and configure the MAC address, IP address, Subnet address, Default gateway and Host Idle (timeout). Port Setting You can set up the network port for DataStream and P2P/GCL function. Note! 1. 2. Static IP mode is set 10.0.0.1 as default.
4.3.2.3 Stream ADAM-6200 modules can actively send its data to multiple hosts periodically. It is called Data Stream. In this tab, you can define IP address of the hosts receiving the data transferred by ADAM-6200 modules, as well as the period how often ADAM6200 modules will send data to the hosts. Host IP address There're up to 8 sets of Host IP address for you to run data streaming. Data Streaming It used to set up the data streaming schedule.
The administration page includes Password, reset, and restart function. Chapter 4 4.3.2.4 Administration System Configuration Password You can enter the password on this page to keep the module from losing unknown control. Note! The default password is 00000000 Reset to factory default The system configuration of ADAM-6200 module will be clear and restored to factory default when it enabled. Restart the module The system of ADAM-6200 module will reboot when it enabled.
4.3.2.5 Firmware On this page, you can import and export your configuration file and upgrade firmware. File Import There are four file types including firmware, JAR, HTML, Modbus information (described as below) for you to import from the host PC. Firmware It means system firmware, you can easily perform firmware upgrade on this page, but for AI/O module, it will additionally need to involve AI/O firmware if changed. JAR file It's used for the extended application on the Webpage.
Chapter 4 4.3.2.6 Peer to Peer / Event It will be described in following sections. System Configuration 4.3.2.7 Access Control For avoiding from unauthorized access, you can manage which host PC or device has been permitted to remotely control ADAM-6200 module by IP or MAC Address. 1. Select which type you're going to configure. 2. Enter the IP or MAC address of Host controller.
4.3.2.8 User-defined Modbus Address In order to provide user with more flexible and scalable in deploying ADAM module, ADAM-6200 module remove the limitation of Modbus address setting and make it configurable as user's actual need. Basically, there're two kinds of Modbus address section (0X and 4X) for you to configure each function item. For example, the below screenshot is Modbus address setting page of ADAM-6250.
After the introduction of ADAM-6200 general configuration in previous section, you're realized how to operate with several key functions in your application. Furthermore, you will learn the way to set up all I/O channel configuration in details such as channel range, calibration and alarm. You can select one of ADAM-6200 module you want to configure and spread its channel list by entering the password in the Module Tree screen.
4.3.3.1 ADAM-6217 Analog Input Channel Overview Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Hide Setting Panel The details of channel setting will be hidden when you check on the Hide Setting Panel checkbox. Trend Log When you click the trend log button, you will see the real time input channel status (after I/O configuration is done) in pop-up window. In which, you also can check, operate, even save the log as your actual need.
Chapter 4 Integration Time In order to remove the DC noise from the power supply, there are two kinds of frequency built-in analog input modules to filter it. You can select and apply this feature here as your request. Burnout Presently, it's only support for 4 - 20mA input range. If you select up scale, you will see the value FFFF in Modbus address when open circuit happens. Otherwise, it will show 0000 as down scale.
Channel Information – Overview It presents which channel is enabled and its current input value. – Average setting You can decide which channel will be selected to perform average calculation and it will show on right side – Modbus (Present) You can see current analog input value in decimal, hexadecimal, engineer unit, and description for all related Modbus address.
ADAM-6200 User Manual System Configuration 61 Chapter 4 Alarm Setting When the analog input value is higher than the high alarm value, or lower than the low alarm value, the alarm condition will be valid. Then the alarm status register will be pulled to logic high and alarm status LED will be lit up on the main screen of utility. There are three alarm modes. You can select the alarm mode by the Alarm mode combo box for the low alarm and high alarm respectively and enter the value as Alarm limit. 1.
4.3.3.2 ADAM-6224 Digital Input Channel Overview Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Hide Setting Panel The details of channel setting will be hidden when you check on the Hide Setting Panel checkbox. DI mode a. Normal When DI channel receives input signal, AO will send the value you defined. b. True trigger to startup value When the received logic result of DI is true, AO will send the startup value you defined. c.
Analog Output Channel Overview Output Range You can select input channel and its voltage/current range and click Apply button to take effect. 63 ADAM-6200 User Manual System Configuration Chapter 4 Invert signal It will invert the logic state of input signal. In another words, when no signal pulse come into DI channel, the DI status will be logic high ("1") DI status LED When DI channel is activated, it will light up.
Calibration It's for sure that each module is well calibrated when it's in manufacturing process. However, in certain applications, user may need to redo the calibration with their device. If you want to enable this, please go to Setup menu and click Allow Calibration first. 1. Trim Zero - It's used to help user calibrate the low limit of output range by entering the value. Step 1. Click the Trim Zero button after enabled Allow Calibration. Step 2.
Trim Span - It's used to help user calibrate the high limit of output range by entering the value. Step 1. Click the Trim Span button after enabled Allow Calibration. Step 2. The output signal will be delivered as the highest level, for example, if you select +/- 10V range, you will get around 10V. Step 3. Please check if the voltage/current meter connected to the module is right to the highest level. If not, please adjust "Counts to trim" to correct the output value indicated on the meter.
4.3.3.3 ADAM-6250 Digital Input Channel Overview Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Channel Setting You can see value of all digital input channels by related LED display in this tab. Besides, you also can control values of all digital output channels by related button. The LED next to the button will display current value of that digital output channel.
ADAM-6200 User Manual System Configuration 67 Chapter 4 Advanced channel setting 1. DI configuration In ADAM-6250 advanced channel setting, you can configure the details of input signal such as enable/disable invert signal, digital filter based on different DI mode and meanwhile, you also can check DI status of each channel. There are five kinds of DI mode including DI, Counter, Low to High Latch, High to Low Latch, and Frequency. DI mode a.
Counter mode When you choose Counter mode, one counter will count the pulse number of the digital signal from the selected channel, and then record the count number in the register. At the bottom of the screen as below, present count value of the selected channel is displayed by the Counter value text box. You can start or stop the counter to count by clicking the Star/Stop button next to the Counter value text box.
Chapter 4 Low to High Latch mode When you choose Low to High Latch mode, 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. The logic status can be seen by the Latch status LED display. If you want to clear latch, you can do it by clicking the Clear latch button.
High to Low Latch mode When you choose High to Low Latch mode, once the digital input channel detects logic level changes from high to low, 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. The logic status can be seen by the Latch status LED display. If you want to clear latch, you can do it by clicking the Clear latch button. As for Invert signal setting, it's the same as mentioned above.
Chapter 4 Frequency mode When you choose Frequency mode, ADAM-6200 digital module will calculate the frequency value of the digital input signal from the selected channel and the frequency value will be displayed by the Frequency value text box. System Configuration 5. DO configuration In ADAM-6250 advanced channel setting, you can configure the details of output signal such as signal width, frequency, duty cycle based on different DO mode and meanwhile, you also can check DO status of each channel.
DO mode When you choose DO mode, you can control the digital output value of the selected channel by the DO button. The current digital output value will be shown by the DO status LED display.
ADAM-6200 User Manual System Configuration 73 Chapter 4 Pulse Output mode The pulse output is the same as PWR. After you choose the Pulse output mode, the selected digital output channel can generate continuous pulse train or finite pulses. a. Signal width - It contains Low signal width and High signal width (unit: 0.1ms) for configuration b. Output frequency -It will automatically indicate by the setting of Low/High signal width. c.
Low to high delay It means there will be certain time delay when the output value changes from logic low to logic high as below. You can define how much Delay time of a pulse as your need, and also control DO status by clicking DO button.
Chapter 4 High to low delay It means there will be certain time delay when the output value changes from logic high to logic low as below. You can define how much Delay time of a pulse as your need, and also control DO status by clicking DO button.
4.3.3.4 ADAM-6251 Digital Input Channel Overview Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Channel Setting You can see value of all digital input channels by related LED display in this tab. Besides, you also can control values of all digital output channels by related button. The LED next to the button will display current value of that digital output channel.
Chapter 4 4.3.3.5 ADAM-6256 Digital Output Channel Overview System Configuration Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Channel Setting You can see value of all digital output channels by related LED display in this tab. Besides, you also can control values of all digital output channels by related button. The LED next to the button will display current value of that digital output channel.
4.3.3.6 ADAM-6260 Digital Output Channel Overview Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Channel Setting You can see value of all digital output channels by related LED display in this tab. Besides, you also can control values of all digital output channels by related button. The LED next to the button will display current value of that digital output channel.
Chapter 4 4.3.3.7 ADAM-6266 Digital Output Channel Overview System Configuration Locate It can help user search ADAM module with light sign. (Status LED will be on for 10 sec when it enabled.) Channel Setting You can see value of all digital input channels by related LED display in this tab. Besides, you also can control values of all digital output channels by related button. The LED next to the button will display current value of that digital output channel.
4.3.4 Peer to Peer When you want to send a signal from one module to another module, Peer-to-Peer is a perfect solution. With Peer-to-Peer function enabled, ADAM-6200 modules can actively update its input value to other devices such as PC or another ADAM-6200 module. One typical application is operating with a pair of ADAM-6200 modules. The value of input channel on one module will be automatically updated to output channel on another module.
1. 2. 3. There will be uncertainty for network communication. Sometimes there might be packet lost when event occurs. This is the reason we Period Time function +C.O.S. function (no C.O.S. function only). When event occurs, even if the packet is lost, the data will be sent again when the next period reaches. This can help to make the system more reliable. For preventing input noise also been send as digital input signal, we suggest to activate DI filter function if C.O.
Basic Mode Configuration The Status Display of basic mode is shown above. You can define the target device by entering its IP address into the Destination text box in the Basic (One to One) area. You can choose these two methods by click the Deviation Enable check box (for AI modules) or Enable Change of State check box (for digital modules). If this check box is not checked, the transfer method is Period Time function.
In advanced mode, there will be multiple target devices to receive the data transferred from one ADAM-6200 module (Module A). You can define different target devices (by different IP address) to each channel of module A. For example, you can define the input channel 1 of Module A is mapping to the output channel 3 of Module B, while input channel 2 of Module A is mapping to the output channel 4 of Module C.
Advanced Mode Configuration When you choose the advanced mode, the Main Operation screen area is shown as above. With advanced mode, each channel on the source ADAM-6200 module can be mapping to channel on different target devices. You can configure the mapping relation using the two block areas Source and Destination in the Advanced (One to Multi) area. The setup of the mapping relationship is shown as below: 1. Select the input channel by the Channel combo box in Source. 2.
Chapter 4 4.3.5 GCL 4.3.5.1 Overview In a traditional control and data acquisition system, there must be one controller to manage the system. Remote I/O modules like the ADAM-6200 modules, only acquire data from sensors, or generate signal to control other devices or equipment.
With GCL enabled, a computer (or a controller) can be removed from the control system since the ADAM-6200 modules can play as controller by themselves. The configuration environment for GCL in ADAM.NET Utility is completely graphical, making it very easy and intuitive to complete the logic rule configuration. After completing the logic rule configuration and download, engineers can see the real-time execution situation and input value in ADAM.NET Utility on line.
As previously mentioned, when you try to spread one of ADAM-6200 module, you will be allowed to check the channel setting and GCL function by entering correct password in the Module Tree screen. Chapter 4 4.3.5.2 Configuration Environment System Configuration Note! You can configure all GCL related setting by clicking the GCL Configuration item list. For the two features Peer-to-Peer and GCL, only one of them can be enable at one time.
The top icon definition in GCL Menu: Icon Function Description Current Status This icon shows current GCL status. The status represented in the Icon cell is the Disable, Programming and Running mode (From top to button) Note: You cannot enable Peer-to-Peer/Data Stream function and GCL function at the same time. So if you want to enable GCL, Peer-to-Peer and Data Stream function will be disabled automatically. Run GCL Select the Running mode. If this mode is chosen, the LED below the button is lit.
Chapter 4 The Input Condition stage is a logic condition decision for the input data. The decision result will be logic True or False, sending to the Logic stage for logic operation. Take analog input mode as example, you can define the condition as if the analog input value is greater than a specific value (the limit). So when the input value becomes greater than the limit, the input stage will transfer True to the Logic stage. Otherwise, it will transfer False to the Logic stage.
Mode Description Condition No Operation No operation N/A AI Local AI channel value >, =, < DI Local DI channel value True, False DI_Counter Local counter input channel value >, =, < DI_Frequency Local frequency input channel value >, =, < Timer Local internal Timer value >, =, < AuxFlag Local internal Flag value True, False DO Local DO channel value True, False Counter Local internal counter value >, =, < ADAM-6200 User Manual 90
0 2 3 5 Type Channel value Channel value Channel value Deviation Condition >= = <= N/A Value Description 5 If the value of analog channel 0 is more than or equal to 5, the condition result is logic True. Otherwise, the condition result is logic False. 3.2 If the value of analog channel 2 equals to 3.2, the condition result is logic True. Otherwise, the condition result is logic False. 1.7 If the value of analog channel 3 is less than or equal to 1.7, the condition result is logic True.
ADAM-6200 analog input module features Scaling function to convert the voltage (or current) value to the engineer unit value. For example, that's say the condition is if the pressure value is more than or equal to 2.5 kg/cm2. Without scaling function, you need to convert the pressure value (2.5 kg/cm2) to the current value (8 mA). Then you enter the current value 8 mA in the Value text box of the Operation area to define the condition.
ADAM-6200 User Manual System Configuration 93 Chapter 4 Internal Flag (AuxFlag) There are 16 internal flags on one ADAM-6200 module. The data type of internal flag is digital, meaning its value is either logic True or logic False. You can read the internal flag value and use it as input condition. After you choose AuxFlag as input mode, select appropriate internal flag by the Index combo box. (From flag 0 to flag 15) Then you can define the condition by the Condition combo box.
Logic Stage When you click the Logic stage icon, you should see a dialog window as below. For each logic rule, there will be at most three input conditions passing logic True or False values to the Logic stage here. You can choose four logic operations by the Type combo box: AND, OR, NAND, NOR. The logic operation will process the input logic values, and generate a logic result value to the next Execution stage. After you have selected the appropriate logic operation, click the OK button.
Execution Stage When you click the Execution stage icon, you should see a dialog window as below. There are two possible execution setting you can choose by the Type combo box in the Operation area: Execution Period (Execution_Period) and Send to Next Rule (SendToNextRule). After you choose the appropriate execution setting, click the OK button. The Execution stage icon will change its pattern to present current execution setting condition. We will describe each type in more detail.
Send to Next Rule (SendToNextRule) You can combine different logic rules into one single rule, which can help building more complex logic architecture. There are two methods to combine different logic rules: one way is using Send to Next Rule function here, another way is using Internal Flag. When you use Send to Next Rule function, 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 other on the same module.
Output Stage When you click the Output stage icon, you will see a pop-up window as below. There are three outputs for one logic rule. 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. Chapter 4 System Configuration You need to decide the target device for the output by the Destination combo box.
After you decide the target device, then you can choose the output action by the Operation Type combo box. The default setting is No Operation, meaning there is no output action. You can choose analog output (AO), digital output (DO), counter channel setting (DI_counter), pulse output (DO_Pulse), local timer (Timer), local or remote internal flag (AuxFlag), remote message output (RemoteMessage) and local internal counter setting (Counter) as the output action.
99 ADAM-6200 User Manual System Configuration Local Timer (Timer) There are 16 local timers on ADAM-6200 module. Here, you can define the timer action depending on the logic result value from the Execution stage. After you have chosen Timer in the Operation type combo box, select the interested timer by the Index combo box in the Operation area. (From timer 0 to timer 15) Then you can define the timer action by the Type combo box in the Operation area.
Local or Remote Internal Flag (AuxFlag) You can assign the logic result value from the Execution stage, to local or remote internal flag. Select the appropriate internal flag by the Index combo box. Define what value you want to assign to the internal flag for the true action (When the logic result value passed from Execution stage is logic True) by the True Action combo box.
Output Action True action (the logic result value from the Execution stage is logic True) AO Change the analog output value Keep current status DO Output True value Output False value Output False value Output True value Start counter counting Stop counter counting Stop counter counting Start counter counting Reset counter Do nothing Generate continuous pulse train Pulse Output Generate finite pulses Keep current status Stop pulse generation Timer Internal Flag Remote Message Internal Cou
Internal Flag for Logic Cascade and Feedback Logic Cascade Using internal flag as interface, you can combine different logic together to form a new single logic rule which can play more complex logic architecture. You can combine logic rules on the same module, or even on different modules. Please refer to example below to understand how the internal flag works. Local Logic Cascade Here, we take one simple example to describe the logic cascade.
Chapter 4 Rule 1. System Configuration Rule 2.
Rule 3. We use the logic rule 1 to check if AI channel 0 value of the ADAM-6217 is within 3 ~ 5 Volt. Logic rule 2 is used to check if AI channel 1 value is within 3 ~ 5 Volt. The comparison result of logic rule 1 and 2 is assigned to internal flag 0 and 1. The logic rule 3 read the value of these two internal flags and use the OR logic operation to define the output of digital output channel 0. You can find that we have built the logic architecture as shown by the internal flag.
Chapter 4 Distributed Logic Cascade Logic Cascade function is not limited on one single module. Since you can define the internal flag on another module, the logic cascade structure can be across different modules. Take the previous application as example, now you can define the logic rule 1, 2, 3 are running on module A, B and C.
Rule 2. Rule 3. Using Local or Distributed Logic Cascade architecture, there will be no limitation for input numbers of logic rules. And you can build any logic architecture to meet your application requirement.
Export logic file and online monitoring After you have completed all the configurations for GCL logic rule, click the Download Project button in the GCL Menu area. All the configuration will be downloaded to the target device. Then you can click the Run GCL button in the GCL Menu area to execute the project on the target module. You can see the Current Status icon become the Running mode. ADAM-6200 Module features special Online Monitoring function.
Note! When you use Internal Flags (AuxFlag) as the inputs of GCL logic rules, you can dynamically change the flag values in the online monitoring window of ADAM.NET Utility. Simply double click the input icons represented the internal flag, and you can see the flag values change from True to False, or from False to True. GCL Rule Execution Sequence There are 16 logic rules on one ADAM-6200 module.
Typical Applications with GCL In order to shorten GCL configuration time, Advantech has provided several example project files for some typical applications. You can find these example project files on the CD with the ADAM module. Simply load these example project files by clicking the Project Content button of GCL Menu bar. You can modify an example project based on your application requirements. Then you can download the modified project to your module and execute it.
Now, we can use GCL logic to achieve the same control operation. Two logic rules are used. The complete logic architecture is shown as below. After you load the example project file, you can find that it uses rule 1 and rule 2. One output of rule 1 and one input of rule 2 are assigned to the same internal flag: Flag 0. This can combine 2 or more logic rules together, that we call it Logic Cascade.
Chapter 4 In the example project, DI 0 is used as a trigger to start the sequential control action. Therefore, when DI 0 turn to logic high (at the moment T0), DO 0 will also change to logic high immediately. Then, DO1 ~ DO5 will sequentially be activated to logic high after a specific time interval. You can decide the time interval t1 ~ t5 (They can be different values). In this example project, t1 ~ t5 are all 5 seconds. We can use 6 logic rules and 1 internal timer for this GCL application.
You can simply implement one AND logic operator to achieve this control system. However, since one logic rule only has three inputs, we need to use Logic Cascade function to have 12 inputs. There are two ways to achieve Logic Cascade: a. b. Select SendtoNextRule in Execution Stage of one logic rule. It will combine this logic rule to the next logic rule. Assign output of one logic rule and input of another logic rule to the same internal flag, combining the two logic rules together.
113 ADAM-6200 User Manual System Configuration 6. Rising Edge For Rising Edge application, the DO status will be activated to logic high, when DI value is changed from logic low to logic high (it is so-called rising edge). But the DO value won't continuously remain logic high. Instead, after a specific time interval (in the example, it is 1 second), the DO value will return to logic low. Refer below for its time chart: Chapter 4 in logic rule 2, so DO 0 will change every 0.5 second.
You can see that DO 0 will only be triggered when rising edge of DI 0 occurs. In the example project we provide, the DO status will remain logic high for 1 second. Then it will back to logic low. When PLC is used for this kind of application, the ladder diagram will be likely as below: When you use GCL to achieve rising edge application, 3 logic rules, 1 Internal Timer (Timer 0) and 1 Internal Flag (Flag 0) are needed. For example, with logic rule 3, DO 0 value is controlled by DI 0 and Flag 0.
115 ADAM-6200 User Manual System Configuration You can see the DO 0 will only be triggered when falling edge of DI 0 occurs. In the example project we provide, the DO status will remain logic high for 1 second. Then it will back to logic low. When PLC is used for this kind of application, the ladder diagram will be likely as below: Chapter 4 7.
When you use GCL to achieve falling edge application, 3 logic rules, 1 Internal Timer (Timer 0) and 1 Internal Flag (Flag 0) are needed. For example, with logic rule 3, DO 0 value is controlled by DI 0 and Flag 0. Flag 0 value is logic False at beginning. When falling edge occurs (DI value changes from logic high to logic low), DO will be activated (logic rule 3 are satisfied), and Timer 0 starts to count time (logic rule 1 are satisfied).
ADAM-6200 User Manual System Configuration 117 Chapter 4 In order to implement this kind of application, 9 logic rules, 1 Internal Counter (Counter 0) and 1 Internal Flag (Flag 0) are used. In the example project we provide, logic rule 1 and 8 are used to create the time base. By logic rule 8, Flag 0 value will change every 0.5 second. In logic rule 1, once the Flag 0 value is logic high, the Counter 0 will increase 1 unit.
9. DI Event Trigger (Only Occurs Once) We can simply use GCL to perform Event trigger. For this kind of application, a DI channel is used to trigger some action. So, the input condition of GCL logic rule will be if the DI value is logic True, and output of the rule can be some desired action, such as sending remote message. When the DI value becomes logic True, the input condition is satisfied. The GCL logic rule will send message continuously until the DI value backs to logic False.
As mentioned in feature highlight section, this new feature will bring obvious benefit to user in maintenance anywhere over the Ethernet in the local field. Now the following paragraph will show how to build up this circumstance and use it. This feature not only works on PC or laptop, it can also work on portable devices, like smart phone or pad. Operating steps: (Take smart phone as example) 1.
3. Enter the account and password.
5. For example, if you check on DO 0, 2, 3, and 5, then click “Apply Output”, you will see the bulb is lit on and trend log is also changed. System Configuration Click Login button, you will see the operation page. In this page, you will not only to monitor I/O status (trend log), but also simply enable output setting below. Chapter 4 4.
ADAM-6200 User Manual 122
Appendix A A I/O Modbus Mapping Table
A.1 I/O Modbus Mapping Table A.1.1 Modbus Function Code Introduction To full-fill the programming requirement, there is a series of function code standard for user’s reference. Code (Hex) Name Usage 01 Read Coil Status Read Discrete Output Bit 02 Read Input Status Read Discrete Input Bit 03 Read Holding Registers 04 Read Input Registers Read 16-bit register. Used to read integer or floating point process data.
0 Read 00122 1 Read 00123 2 Read 00124 3 00125 4 00126 5 Read 00127 6 Read 00128 7 Read 00131 0 Read 00132 1 Read 00133 2 Read 00134 3 Read 00135 4 00136 5 00137 6 Read 00138 7 Read 00139 Average Ch0 - 7 Read Open-Circuit Flag (Burnout) High Alarm Flag Read Read Read Read 00141 0 Read 00142 1 Read 00143 2 Read 00144 3 Read 00145 4 00146 5 00147 6 Read 00148 7 Read 00149 Average Ch0 - 7 Read Low Alarm Flag Read Read Address (4X): Ad
40011 0 Read 40012 1 Read 40013 2 Read 40014 3 Read 40015 4 40016 5 40017 6 Read 40018 7 Read 40019 Average Ch0 - 7 Read 40021 0 Read 40022 1 Read 40023 2 Read 40024 3 Read 40025 4 40026 5 40027 6 Read 40028 7 Read 40029 Average Ch0 - 7 Read 40101 - 40102 0 Read 40103 - 40104 1 Read 40105 - 40106 2 Read 40107 - 40108 3 40109 - 40110 4 40111 - 40112 5 Read 40113 - 40114 6 Read 40115 - 40116 7 Read 40201 0 R/W 40202 1 R/W 40203 2
1. 2. 3. 4. Users can configure the High alarm value in the ADAM.NET utility. When AI value is higher than the High alarm, this bit will be 1. Users can configure the Low alarm value in the ADAM.NET utility. When AI value is lower than the Low alarm, this bit will be 1.
40111 0 Read 40112 1 40113 2 40114 3 Read 40201 0 R/W 40202 1 40203 2 40204 3 40301 All DI Value Read 40305 0 – 15 GCL Internal Flag Value R/W 40411 0 40412 1 40413 2 40414 3 R/W 40401 0 R/W 40402 1 40403 2 40404 3 DI Event Status Type Code R/W R/W R/W Safety Value Startup Value R/W R/W R/W R/W R/W Bit Description 0 Unreliable DI value (UART Timeout) 1 Safety Value triggered 2 Startup Value triggered The value definition of AO Status First register
Type Code Table Input Range Type Code (HEX) 0 ~ 20 mA 0x0182 4 ~ 20 mA 0x0180 0 ~ 10 V 0x0148 0~5V 0x0147 +/- 10 V 0x0143 +/- 5 V 0x0142 A.1.
00049 0 R/W 00050 1 R/W 00051 2 R/W 00052 3 00053 4 00054 5 R/W 00055 6 R/W 00056 7 R/W 00057 0 R/W 00058 1 R/W 00059 2 R/W 00060 3 00061 4 00062 5 R/W 00063 6 R/W 00064 7 R/W Clear Overflow DI Latch Status (1) R/W R/W R/W R/W Address (4X): Address (4X) Channel 40001 – 40002 0 Read 40003 – 40004 1 Read 40005 – 40006 2 Read 40007 – 40008 3 40009 – 40010 4 40011 – 40012 5 Read 40013 – 40014 6 Read 40015 – 40016 7 Read 40017 – 40018 0 R/
0 R/W 40047 – 40048 1 R/W 40049 – 40050 2 R/W 40051 – 40052 3 40053 – 40054 4 R/W 40055 – 40056 5 R/W 40057 – 40058 6 R/W Set Absolute Pulse R/W 40059 – 40060 0 R/W 40061 – 40062 1 R/W 40063 – 40064 2 R/W 40065 – 40066 3 40067 – 40068 4 R/W 40069 – 40070 5 R/W 40071 – 40072 6 R/W 40301 All DI Value Read 40303 All DO Value R/W 40305 0 - 15 GCL Internal Flag Value R/W Set Incremental Pulse 131 R/W ADAM-6200 User Manual Appendix A I/O Modbus Mapping Tabl
A.1.
0 Write 00050 1 Write 00051 2 Write 00052 3 Write 00053 4 Write 00054 5 Write 00055 6 Write 00056 7 00057 8 00058 9 Write 00059 10 Write 00060 11 Write 00061 12 Write 00062 13 Write 00063 14 Write 00064 15 Write 00065 0 R/W 00066 1 R/W 00067 2 R/W 00068 3 R/W 00069 4 R/W 00070 5 R/W 00071 6 R/W 00072 7 00073 8 00074 9 R/W 00075 10 R/W 00076 11 R/W 00077 12 R/W 00078 13 R/W 00079 14 R/W 00080 15 R/W Counter Start (1) /
00081 0 R/W 00082 1 R/W 00083 2 R/W 00084 3 R/W 00085 4 R/W 00086 5 R/W 00087 6 R/W 00088 7 00089 8 DI Latch Status R/W R/W 00090 9 R/W 00091 10 R/W 00092 11 R/W 00093 12 R/W 00094 13 R/W 00095 14 R/W 00096 15 R/W Address (4X): Address (4X) Channel Description 40001 – 40002 0 Read 40003 – 40004 1 Read 40005 – 40006 2 Read 40007 – 40008 3 Read 40009 – 40010 4 Read 40011 – 40012 5 Read 40013 – 40014 6 Read 40015 – 40016 7 40017 – 40018
Address (0X): Address (0X) Channel Description Attribute 00017 0 R/W 00018 1 R/W 00019 2 R/W 00020 3 R/W 00021 4 R/W 00022 5 R/W 00023 6 R/W 00024 7 00025 8 00026 9 R/W 00027 10 R/W 00028 11 R/W 00029 12 R/W 00030 13 R/W 00031 14 R/W 00032 15 R/W DO Value R/W R/W Address (4X): Address (4X) Channel Description Attribute 40001 – 40002 0 R/W 40003 – 40004 1 R/W 40005 – 40006 2 R/W 40007 – 40008 3 R/W 40009 – 40010 4 R/W 40011 – 40012 5 R/
40033 – 40034 0 R/W 40035 – 40036 1 R/W 40037 – 40038 2 R/W 40039 – 40040 3 R/W 40041 – 40042 4 R/W 40043 – 40044 5 R/W 40045 – 40046 6 R/W 40047 – 40048 7 40049 – 40050 8 40051 – 40052 9 R/W 40053 – 40054 10 R/W 40055 – 40056 11 R/W 40057 – 40058 12 R/W 40059 – 40060 13 R/W 40061 – 40062 14 R/W 40063 – 40064 15 R/W 40065 – 40066 0 R/W 40067 – 40068 1 R/W 40069 – 40070 2 R/W 40071 – 40072 3 R/W 40073 – 40074 4 R/W 40075 – 40076 5 R/W 40077 – 40
0 R/W 40099 – 40100 1 R/W 40101 – 40102 2 R/W 40103 – 40104 3 R/W 40105 – 40106 4 R/W 40107 – 40108 5 R/W 40109 – 40110 6 R/W 40111 – 40112 7 40113 – 40114 8 Set Incremental Pulse R/W R/W 40115 – 40116 9 R/W 40117 – 40118 10 R/W 40119 – 40120 11 R/W 40121 – 40122 12 R/W 40123 – 40124 13 R/W 40125 – 40126 14 R/W 40127 – 40128 15 R/W 40303 All DO Value R/W 40305 0 – 15 GCL Internal Flag Value R/W 137 ADAM-6200 User Manual Appendix A I/O Modbus Mapping T
A.1.
Address (0X): Address (0X) Channel Description Attribute 00001 0 Read 00002 1 Read 00003 2 00004 3 Read 00017 0 R/W 00018 1 00019 2 00020 3 DI Value DO Value Read R/W R/W R/W 00033 0 R/W 00034 1 R/W 00035 2 00036 3 R/W 00037 0 Write 00038 1 00039 2 00040 3 Counter Start (1) / Stop (0) Clear Counter (1) R/W Write Write Write 00041 0 R/W 00042 1 R/W 00043 2 00044 3 R/W 00045 0 R/W 00046 1 00047 2 00048 3 Clear Overflow DI Latch Status R
Address (4X): Address (4X) Channel Description Attribute 40001 – 40002 0 Read 40003 – 40004 1 Read 40005 – 40006 2 40007 – 40008 3 Read 40009 – 40010 0 R/W 40011 – 40012 1 40013 – 40014 2 40015 – 40016 3 Counter/Frequency Value Pulse Output Low Level Width Read R/W R/W R/W 40017 – 40018 0 R/W 40019 – 40020 1 R/W 40021 – 40022 2 40023 – 40024 3 R/W 40025 – 40026 0 R/W 40027 – 40028 1 40029 – 40030 2 40031 – 40032 3 Pulse Output High Level Width Set Absolute Pu
Appendix B B ADAM-6200 ASCII Commands
B.1 ASCII Commands for ADAM-6200 modules For users do not familiar to Modbus protocol, Advantech offers a function library as a protocol translator, integrating ASCII command into Modbus/TCP structure. Therefore, users familiar to ASCII command can access ADAM-6200 module easily. Before explaining the structure of ASCII command packed with Modbus/TCP format. Let's see how to use an ASCII command and how many are available for your program.
Response Example Read Module Name Returns the module name from a specified module. $aaM(cr) $ is a delimiter character. aa (range 00-FF) means the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) M is the Module Name command. (cr) is the terminating character, carriage return (0Dh). !aa60bb(cr) if the command is valid. ?aa(cr) if an invalid operation was entered.
$aaF Name Description Syntax Response Example ASCII Read Firmware Version Returns the firmware version from a specified module. $aaF(cr) $ is a delimiter character. aa (range 00-FF) means the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) F is the Firmware Version command. (cr) is the terminating character, carriage return (0Dh). !aa(version)(cr) if the command is valid. ?aa(cr) if an invalid operation was entered.
145 ADAM-6200 User Manual Appendix B ADAM-6200 ASCII Commands #aaVdbbbbdddddddd Name Write Value(s) to GCL Internal Flags (Auxiliary Flags) Description This command sets a single or all GCL internal flag(s) on the specific ADAM-6200 module. Syntax #aaVdbbbbdddddddd(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6200 module. (Always 01) Vd is the GCL Internal Flag command. bbbb is used to indicate which GCL internal flag(s) to set.
$aaVd Name Description Syntax Response Example ASCII Read GCL Internal Flags' (Auxiliary Flags) Values This command reads all GCL internal flags' values from the specific ADAM-6200 module. $aaVd(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6200 module. (Always 01) Vd is the GCL Internal Flag command. (cr) is the terminating character, carriage return (0Dh) >aadddddddd(cr) if the command was valid.
Function Description Read analog Return the input value input from Chan- from the specified ananel N log input channel Command Example Cmd: #aan(cr) Ret:>+nnnn.nnn(cr) or >–nnnn.nnn(cr) Send: #010(cr) Receive: >+0000.000(cr) Read analog input from all channels Returns the input data from all analog input channels in a specified module. Cmd: #aa(cr) Send: #010(cr) Ret:>(data) (data) Receive: (data) (data) (data) (data) (data) (data)(cr) >+0010.000+0010.000 +0010.000+0010.000+ 0010.000+0010.
#aan Name Description Syntax Response Example ASCII #aa Name Description Syntax Response Example Note! Read Analog Input from Channel N Returns the input data from a specified analog input channel in a specified module. #aan(cr) # is a delimiter character. aa (range 00-FF) means the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) n (range 0-8) represents the specific channel you want to read the input data.
Response Auto Calibration Calibrate the analog input range of module $aa1(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal Modbus address of the ADAM-6200 module which is to be calibrated. (Always 01) 1 represents the zero calibration command. (cr) is the terminating character, carriage return (0Dh) !aa(cr) if the command is valid. ?aa(cr) if an invalid operation was entered.
$aa6 Name Description Syntax Response Example ASCII Read Channel Enable/Disable Status Asks a specified module to return the Enable/Disable status of all analog input channels $aa6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) 6 is the read channels status command. (cr) is the terminating character, carriage return (0Dh) !aamm(cr) if the command is valid.
Response Example ASCII Set Channel Enable/Disable Status Set Enable/Disable status for all analog input channels $aa5mm(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module. (Always 01) 5 identifies the enable/disable channels command. mm (range 00-FF) are two hexadecimal characters. Each character is interpreted as 4 bits. The first 4-bit value represents the status of channels 7-4.
#aaMH Name Description Syntax Response Example ASCII Note! Read Maximum Value Read the maximum values from all analog input channels in a specified analog module #aaMH(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module to be read.(Always 01) MH represents the read maximum value command. (cr) is the terminating character, carriage return (0Dh) >(data)(data)(data)(data)(data)(data)(data)(data)(data)(cr) if the command is valid.
Syntax Response Example ASCII Read Maximum Value from channel N Read the maximum value from a specific channel in a specified module #aaMHn(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module to be read. (Always 01) MH represents the read maximum value command. n (range 0-8) represents the specific channel you want to read the input data. (cr) is the terminating character, carriage return (0Dh) >(data)(cr) if the command is valid.
#aaML Name Description Syntax Response Example ASCII Note! Read Minimum Value Read the minimum values from all analog input channels in a specified module #aaML(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module to be read.(Always 01) ML represents the read minimum value command. (cr) is the terminating character, carriage return (0Dh) >(data)(data)(data)(data)(data)(data)(data)(data)(data)(cr) if the command is valid.
Syntax Response Example ASCII $aaBnn Name Description Syntax Response Read Minimum Value from channel N Read the minimum value from a specific analog input channel in a specified module #aaMLn(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module to be read. (Always 01) ML stands for the read minimum value command. n (range 0-8) means the specific channel you want to read the input data.
B.1.3 Analog Input Range code Range Code HEX +/- 10V 0x0143 +/- 5 V 0x0142 +/- 1 V 0x0140 +/- 500 mV 0x0104 +/- 150 mV 0x0103 +/- 20 mA 0x0181 0 ~ 20 mA 0x0182 4 ~ 20 mA 0x0180 Example ASCII The command asks the specific module at address 01h to send analog input range code value from analog input channel 3. Command: #01B03(cr) Response: >010182(cr) B.1.
Syntax Response Example ASCII Set Alarm Mode Sets the High/Low alarm of the specified input channel in the addressed ADAM-6200 module to either Latching or Momentary mode. $aaCjAhs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of an ADAM-6200 module. (Always 01) Cj identifies the desired channel j (j : 0 to 7). A is the Set Alarm Mode command.
$aaCjAh Name Description Syntax Response Example ASCII Read Alarm Mode Returns the alarm mode for the specified channel in the specified ADAM-6200 module. $aaCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module. (Always 01) Cj identifies the desired channel j (j : 0 to 7). A is the Read Alarm Mode command.
Syntax Response Example ASCII Note! Enable/Disable Alarm Enables/Disables the High/Low alarm of the specified input channel in the addressed ADAM-6200 module $aaCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module. (Always 01) Cj identifies the desired channel j (j : 0 to 7). AhEs is the Set Alarm Mode command.
$aaCjCh Name Description Syntax Response Example Clear Latch Alarm Sets the High/Low alarm to OFF (no alarm) for the specified input channel in the addressed ADAM-6200 module $aaCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of an ADAM-6200 module. (Always 01) Cj identifies the desired channel j (j : 0 to 7). Ch is the Clear Latch Alarm command.
161 ADAM-6200 User Manual Appendix B ADAM-6200 ASCII Commands $aaCjAhCCn Name Set Alarm Connection Description Connects the High/Low alarm of the specified input channel to interlock the specified digital output in the addressed ADAM-6200 module Syntax $aaCjAhCCn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module.(Always 01) Cj identifies the desired analog input channel j (j : 0 to 7). AhC is the Set Alarm Connection command.
$aaCjRhC Name Description Syntax Response Example ASCII Read Alarm Connection Returns the High/Low alarm limit output connection of a specified input channel in the addressed module $aaCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module. (Always 01) Cj identifies the desired analog input channel j (j : 0 to 7). RhC is the Read Alarm Connection command.
Syntax Response Example ASCII Note! Set Alarm Limit Sets the High/Low alarm limit value for the specified input channel of a specified ADAM-6200 module. $aaCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module.(Always 01) Cj identifies the desired analog input channel j (j : 0 to 7). AhU is the Set Alarm Limit command.
$aaCjRhU Name Description Syntax Response Example ASCII Read Alarm Limit Returns the High/Low alarm limit value for the specified input channel in the addressed ADAM-6200 module $aaCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module.(Always 01) Cj identifies the desired analog input channel j (j : 0 to 7). RhU is the Read Alarm Limit command.
Syntax Response Example ASCII Read Alarm Status Reads whether an alarm occurred to the specified input channel in the specified ADAM-6200 module $aaCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of an ADAM-6200 module. (Always 01) Cj identifies the desired analog input channel j (j : 0 to 7). S is the Read Alarm Status command.
$aaDScc Name Description Read AO Startup Value from One Channel Returns the startup value from a specified analog output channel in a specified module. Syntax $aaDScc(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) DS represents the analog output channel startup command. cc (range 00-01) represents the specific channel you want to read the startup value.
167 ADAM-6200 User Manual Appendix B ADAM-6200 ASCII Commands #aaDSccnnnn Name Set AO Startup Value to One Channel Description Set the startup value to a specified analog output channel in a specified module. Syntax $aaDSccnnnn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) DS represents the analog output channel startup command.
#aaBCccnnnn Name Write AO Value to One Channel Description Write output value to a specified analog output channel in a specified module. Syntax #aaBCccnnnn(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) cc (range 00-01) represents the specific channel you want to write output value. nnnn (range:0000 - 0FFF) represents the analog output value of the specific analog output channel.
Syntax Response Read Analog Output Range Code from Channel N Returns the range code from a specified analog output channel in a specified module. $aaBEcc(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) cc (range 00-03) represents the specific channel you want to read the range code. (cr) is the terminating character, carriage return (0Dh). !aa(code) if the command is valid.
B.1.6 Analog Output Range code Range Code HEX +/- 10V 0x0143 +/- 5 V 0x0142 0 ~ 10V 0x0148 0 ~ 5V 0x0147 0 ~ 20 mA: 0x0182 4 ~ 20 mA: 0x0180 Example ASCII The command asks the specific module at address 01h to send analog output range code value from analog input channel 3. Command: #01BE03(cr) Response: !010147(cr) B.1.
Syntax Response Example Read Channel Status This command requests that the specified ADAM-6200 module return the status of its digital input channels $aa6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6200 module. (Always 01) 6 is the Digital Data In command. (cr) is the terminating character, carriage return (0Dh) !aa(data)(data)(data)(cr) if the command is valid. ?aa(cr) if an invalid operation was entered.
#aa00(data) Name Write all digital output channels Description This command sets all digital output channels to the specific ADAM- 6200 module. Syntax #aa00(data)(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6200 module. (Always 01) 00 means to set all channel(s). (data) is the hexadecimal representation of the DO value(s). Response >(cr) if the command was valid. ?aa(cr) if an invalid command has been issued.
173 ADAM-6200 User Manual Appendix B ADAM-6200 ASCII Commands #aa1c(data) Name Write a single digital output channel Description This command sets a single DO channels to the specific ADAM-6200 module. Syntax #aa1c(data)(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave network address of the ADAM-6200 module. (Always 01) c is used to indicate which channel(s) you want to set. (data) is the hexadecimal representation of the DO value(s).
$aaJCFFFFssmm Name Read DI Channel Counter Value Description Returns the counter value from specified DI channels in a specified module. Syntax $aaJCFFFFssmm(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal slave address of the ADAM-6200 module you want to request. (Always 01) JCFFFF is the Digital Input Channel Counter Value command. ss (range 00-07) means the specific start channel you want to read the counter value.
Appendix C C REST for ADAM-6200
C.1 Introduction REpresentational State Transfer (REST) is a design style of software architecture for Web application behaves and services including image indication, resource request and response and message delivery. It can be developed compatible with popular protocols or standards like HTTP, URI, XML, HTML. With the advantage of scalability, simplicity and performance, it's already adopted in Web service by Amazon, Yahoo.
Request The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the AI channel ID starting from 0 Examples: Use the following URI to get the AI‐0 range information. http://10.0.0.1/analoginput/0/range Use the following URI to get the all AI range information. http://10.0.0.1/analoginput/all/range Response The content-type will be ‘text/xml’ If result is OK, the content will look like below
C.2.2 Analog Output C.2.2.1 GET /analogoutput/(all|{id})/value The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the AO channel ID starting from 0 Examples: Use the following URI to get the AO‐0 value. http://10.0.0.1/analogoutput/0/value Request Response Use the following URI to get the all AO values. http://10.0.0.1/analogoutput/all/value The content-type will be ‘text/xml’ If result is OK, the content will look like below
Request The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the AO channel ID starting from 0 Examples: Use the following URI to get the AO‐0 range information. http://10.0.0.1/analogoutput/0/range Use the following URI to get the all AO range information. http://10.0.0.1/analogoutput/all/range Response The content-type will be ‘text/xml’ If result is OK, the content will look like below
C.2.2.4 GET /analogoutput/(all|{id})/range Request The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the AO channel ID starting from 0 Examples: Use the following URI to get the AO‐0 range information. http://10.0.0.1/analogoutput/0/range Use the following URI to get the all AO range information. http://10.0.0.1/analogoutput/all/range Response The content-type will be ‘text/xml’ If result is OK, the content will look like below
C.2.3.1 GET /digitalinput/(all|{id})/value Request The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the DI channel ID starting from 0 Examples: Use the following URI to get the DI‐0 value. http://10.0.0.1/digitalinput/0/value Use the following URI to get the all DI values. http://10.0.0.1/digitalinput/all/value Response The content-type will be ‘text/xml’ If result is OK, the content will look like below
C.2.4 Digital Output C.2.4.1 GET /digitaloutput/(all|{id})/value The content‐type will be ‘application/x‐www‐form‐urlencoded’. {id} : is the DO channel ID starting from 0 Examples: Use the following URI to get the DO‐0 value. http://10.0.0.1/digitaloutput/0/value Request Use the following URI to get the all DO values. http://10.0.0.1/digitaloutput/all/value The content-type will be ‘text/xml’ If result is OK, the content will look like below
Appendix C REST for ADAM-6200 ADAM-6200 User Manual 183
www.advantech.com Please verify specifications before quoting. This guide is intended for reference purposes only. All product specifications are subject to change without notice. No part of this publication may be reproduced in any form or by any means, electronic, photocopying, recording or otherwise, without prior written permission of the publisher. All brand and product names are trademarks or registered trademarks of their respective companies. © Advantech Co., Ltd.