Advantech ADAM-5000/TCP Series Manual

Advantech ADAM-5000/TCP Series Manual

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADAM-5000/TCP Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Advantech ADAM-5000/TCP Series

  • Page 2 Copyright Notice This document is copyrighted, 2001, by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd., reserves the right to make improvements to 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.
  • Page 3 Because of Advantech’s high quality-control standards and rigorous testing, most of our customers never need to use our repair service. If an Advantech product ever does prove defective, it will be repaired or re- placed at no charge during the warranty period. For out-of-warranty repairs, you will be billed according to the cost of replacement materials, service time and freight.
  • Page 4 photocopy of dated proof of purchase (such as your sales receipt) in a shippable container. A product returned without dated proof of purchase is not eligible for warranty service. 5. Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer.
  • Page 5 Our dealers are well trained and ready to give you the support you need to get the most from your Advantech products. In fact, most problems reported are minor and are able to be easily solved over the phone.
  • Page 6 Organization of this manual This Manual has six chapters, three appendices. The following table lists each chapter or appendices with its corresponding title and a brief overview of the topics covered in it. Chapter / Title Topics Covered Appendix Introduces the suitable applying industries and the position in a SCADA system.
  • Page 7 How to use this manual The following flow chart demonstrates a thought process that you can use when you plan your ADAM-5000/TCP system. System Design Flow Chart System Hardware Configuration Select I/O Module Install Utility Software Select Power Supply Selecting Your I/O Module Configuration Hardware Component Select Link Terminal &...
  • Page 8: Table Of Contents

    Contents Chapter 1 Understanding Your System ....1-1 1-1 Introduction ..............1-2 1-2 Major Features ............1-3 1-2-1 Communication Network ..........1-3 1-2-2 Modbus/TCP Protocol ............1-3 1-2-3 Hardware Capacity & Diagnostic.........1-3 1-2-4 Communicating Isolation..........1-4 1-2-5 Completed set of I/O modules for total solutions ...1-4 1-2-6 Built-in real-time OS and watchdog timer .......1-4 1-2-7 Software Support ............1-4 1-2-8 Security Setting .............1-5...
  • Page 9 3-3 Mounting ..............3-4 3-3-1 Panel mounting ............3-4 3-3-2 DIN rail mounting ............3-4 3-4 Wiring and Connections ...........3-6 3-4-1 Power supply wiring ............3-6 3-4-2 I/O modules wiring .............3-7 3-4-3 System Network Connections ........3-8 3-5 Assigning address for I/O Modules ......3-10 Chapter 4 I/O Module Introduction ......
  • Page 10 Appendix A Design Worksheets ......A-1 Appendix B Data Formats and I/O Ranges..B.1 Analog Input Formats ..........B-2 B.2 Analog Input Ranges - ADAM-5017 ......B-4 B.3 Analog Input Ranges - ADAM-5018/5018P....B-5 B.4 Analog Input Ranges - ADAM-5017H/5017UH....B-7 B.5 Analog Output Formats ..........B-8 B.6 Analog Output Ranges..........B-8 B.7 ADAM-5013 RTD Input Format and Ranges....B-9 Appendix C Grounding Reference......C-1...
  • Page 11 Figures Figure 1-1: Apply to System Application ..........1-2 Figure 1-2: ADAM-5000/TCP system & I/O module dimensions ………. 1-7 Figure 1-3: Function block diagram ............1-8 Figure 1-4: ADAM-5000/TCP LED Indicators ........... 1-8 Figure 2-1: ADAM-5000 I/O Module Selection Chart ....... 2-3 Figure 2-2: Ethernet Terminal and Cable Connection ......
  • Page 12 Figure 5-19: CJC Calibration ..............5-16 Figure 5-20: Analog Output Module Calibration ........5-16 Figure 5-21: Firmware Upgrade .............. 5-17 Figure 5-22: Password Setting ............... 5-18 Figure 5-23: Command Emulation ............5-19 Figure 5-24: Data Stream Configuration ..........5-20 Figure 5-25: Data Stream Monitoring ............. 5-21 Figure 5-26: RS-485 Modbus Network Setting ........
  • Page 13 Tables Table 2-1: I/O Selection Guidelines ............2-2 Table 2-2: I/O Modules Selection Guide ..........2-5 Table 2-3: Power Consumption of ADAM-5000 series ......2-6 Table2-4: Power Supply Specification Table .......... 2-7 Table 2-5: Ethernet RJ-45 port Pin Assignment ........2-8 Table 4-1: I/O module support List………..
  • Page 14 Chapter 1 Understanding Your System Using this Chapter If you want to read about Go to page Introduction Major Feature Technical Specification LED Status of ADAM-5000/TCP Series main unit...
  • Page 15: Chapter 1 Understanding Your System

    Obviously, it takes a lot of time and money. To meet user’s requirements, Advantech announces the new DA&C system, the ADAM-5000/TCP Series, the Ethernet I/O solution for people developing their eAutomation architecture.
  • Page 16: Major Features

    Major Features 1-2-1 Communication Network By adopting a 32-bit RISC CPU, the ADAM-5000/TCP Series has greatly ad- vanced data processing abilities for the user, especially for network com- munications (response time < 5ms). There is a standard RJ-45 modular jack Ethernet port on the ADAM-5000/TCP’S CPU...
  • Page 17: Communicating Isolation

    This feature greatly reduces the level of maintenance required and makes the ADAM-5000/TCP Series ideal for use in applications which require a high level of system performance and stability.
  • Page 18: Security Setting

    For this reason, a security protection design was built into the ADAM-5000/TCP Series. Once the user has set the password into the ADAM-5000/ TCP firmware, important system configurations (Network, Firmware, Pass- word) can only be changed through password verification.
  • Page 19: Technical Specification Of Adam-5000/Tcp System

    Chapter 1 Understanding Your System Technical specification of ADAM- 5000/TCP Series System 1-3-1 System • CPU: ARM 32-bit RISC CPU • Memory: 4 MB Flash RAM • Operating System: Real-time O/S • Timer BIOS: Yes • I/O Capacity: 8 slots (ADAM-5000/TCP) 4 slots (ADAM-5000L/TCP) •...
  • Page 20: Power

    Chapter 1 Understanding Your System 1-3-4 Power • Unregulated 10 to 30V • Protection: Over-voltage and power reversal 1-3-5 Isolation • Ethernet Communication: 1500 V • I/O Module: 3000 V 1-3-6 Mechanical • Case: KJW with captive mounting hardware • Plug-in Screw Terminal Block: Accepts 0.5 mm 2 to 2.5 mm 2 , 1 - #12 or 2 - #14 to #22 AWG 1-3-7...
  • Page 21: Basic Function Block Diagram

    Basic Function Block Diagram Figure 1-3: Function block diagram LED Status of ADAM-5000/TCP Series main unit There are eight LEDs on the ADAM-5000/TCP Series front panel. The LEDs indicate ADAM-5000/TCP’s system status, as explained below: Figure 1-4: ADAM-5000/TCP LED Indicators...
  • Page 22 5V: Red indicator. This LED is normal on when ADAM-5000/TCP Series system is powered on. Run: Green indicator. This LED is regularly blinks whenever the ADAM-5000/TCP Series system is running. Link: Green Indicator. This LED is normal on whenever the ADAM- 5000/TCP’s Ethernet wiring is connected.
  • Page 24: Chapter 2 Selecting Your Hardware Components

    Terminal Emulation Install Main Unit and Module UDP Data Stream Hardware Installation System Mounting Guide Modbus Data Gateway Wiring and Connecting Using ADAM-5000/TCP Series DLL Driver Planning Your I/O Address Mapping Application Program Using ADAM-5000/TCP Series Command Set I/O Modules...
  • Page 25: Selecting I/O Module

    Selecting Your Hardware Components Selecting I/O Module To organize an ADAM-5000/TCP Series data acquisition & control system, you need to select I/O modules to interface the main unit with field de- vices or processes that you have previously determined. There are sev- eral things should be considered when you select the I/O modules.
  • Page 26: Figure 2-1: Adam-5000 I/O Module Selection Chart

    Chapter 2 Selecting Your Hardware Components Advantech provides 15 types of ADAM-5000 I/O modules for various applications so far. The figure 2-1 and table 2-2 will help you to slect the ADAM-5000 I/O modules quickly and easily. 5051 Digital Input Module (16ch.) 5051D Digital Input Module With LED (16 ch.)
  • Page 27: Table 2-2: I/O Modules Selection Guide

    Chapter 2 Selecting Your Hardware Components Module ADAM- ADAM- ADAM- ADAM- ADAM- ADAM- ADAM- 5013 5017 5017H 5017UH 5018 5018P 5024 Resolution 16 bit 16 bit 12 bit 12 bit 16 bit 16 bit Input Channel Sampling 200K Rate ±15 mV ±15 mV ±150 mV ±250 mV...
  • Page 28 Chapter 2 Selecting Your Hardware Components ADAM- Module ADAM-5052 ADAM-5055S ADAM-5056 ADAM-5056D 5056S /5056SO Resolution Input Channel Sampling Rate Analog Voltage Input Input Current Input Direct Sensor Input Resolution Voltage Analog Output Output Current Output Digital Input Digital 8 W/LED Channels Input and Digital...
  • Page 29: Selecting Power Supply

    Chapter 2 Selecting Your Hardware Components Selecting Power Supply ADAM-5000/TCP S e r i e s system works under unregulated power source be- tween +10 and +30 VDC. When you arrange different I/O modules on ADAM-5000/TCP’s back plant, it may require comparable power supply.
  • Page 30: Table2-4: Power Supply Specification Table

    Chapter 2 Selecting Your Hardware Components ‚ Calculate the Summary of the whole system’s power consumption. For example, there are following items in your system. ADAM-5000/TCP * 3 & ADAM-5024 * 4 & ADAM-5017 * 6 & ADAM-5068 * 5 & ADAM-5050 * 5 & ADAM-5080 * 4 ò...
  • Page 31: Selecting Link Terminal And Cable

    (for10Mbps data rate) or Category 5 (for 100Mbps data rate) UTP/STP cable, which is compliant with EIA/TIA 586 specifications. Maximum length between the Hub and any ADAM-5000/TCP Series is up to 100 meters (approx. 300ft) Figure 2-2: Ethernet Terminal and Cable Connection...
  • Page 32: Figure 2-3 Rs-485 Terminal And Cable Connection

    Chapter 2 Selecting Your Hardware Components Serial Network The system uses screw terminal for RS-485 twisted pair connection as a data gateway between Ethernet Sever and serial Modbus devices. See Figure 2-3. The following information must be considered. 1. Twisted-pair wire compliant with EIA-422 or EIA-485 standards, which contains 24 AWG thin copper conductor with copper mesh and alumi- num foil for shielding.
  • Page 33: Selecting Operator Interface

    Adopting Modbus/TCP Protocol, ADAM-5000/TCP Series exhibits high ability in system integration for various applications. If you want to configure your ADAM-5000/TCP Series system, or monitor cur- rent status, Advantech offers free charge software: þ ADAM-5000/TCP Series Windows Utility If you want to integrate ADAM-5000/TCP Series with HMI (Human Machine Interface) software in a SCADA (Supervisory Control and Data Acquisi- tion) system.
  • Page 34: Chapter 3 Hardware Installation Guide

    Terminal Emulation Install Main Unit and Module UDP Data Stream Hardware Installation System Mounting Guide Modbus Data Gateway Wiring and Connecting Using ADAM-5000/TCP Series DLL Driver Planning Your I/O Address Mapping Application Program Using ADAM-5000/TCP Series Command Set I/O Modules...
  • Page 35: Determining The Proper Environment

    Chapter 3 Hardware Installation Guide Determining the proper environment Before you start to install the ADAM-5000/TCP Series system, there are some- thing needed to check. 3-1-1 Check the content of shipping box Unpack the shipping boxes and make sure that the contents include: •...
  • Page 36: Installing Your Main Unit And Module

    Chapter 3 Hardware Installation Guide Installing your main unit and module When inserting modules into the system, align the PC board of the mod- ule with the grooves on the top and bottom of the system. Push the module straight into the system until it is firmly seated in the back plane connector (see figure 3-1).
  • Page 37: Mounting

    Chapter 3 Hardware Installation Guide Mounting The ADAM-5000/TCP Series system can be installed on a panel or on a DIN rail. 3-3-1 Panel mounting Mount the system on the panel horizontally to provide proper ventila- tion. You cannot mount the system vertically, upside down or on a flat horizontal surface.
  • Page 38: Figure 3-4: Adam-5000/Tcp Din Rail Mounting

    Chapter 3 Hardware Installation Guide Figure 3-4: ADAM-5000/TCP DIN rail mounting Figure 3-5: Secure ADAM-5000/TCP System to a DIN rail ADAM-5000/TCP User’s Manual...
  • Page 39: Wiring And Connections

    3-4-1 Power supply wiring Although the ADAM-5000/TCP Series systems are designed for a standard industrial unregulated 24 V DC power supply, they accept any power unit that supplies within the range of +10 to +30 VDC. The power supply ripple must be limited to 200 mV peak-to-peak, and the immediate ripple voltage should be maintained between +10 and +30 VDC.
  • Page 40: I/O Modules Wiring

    Chapter 3 Hardware Installation Guide 3-4-2 I/O modules wiring The system uses a plug-in screw terminal block for the interface between I/O modules and field devices. The following information must be con- sidered when connecting electrical devices to I/O modules. 1.
  • Page 41: System Network Connections

    Hardware Installation Guide 3-4-3 System Network Connections Ethnet Network The ADAM-5000/TCP Series has an Ethernet communication port allowed you to program, configure, monitor, and integrate into the SCADA system. The figure 3-8 is a guideline to complete the system network connection.
  • Page 42: Figure 3-9 Serial Network Connection

    Modbus Device ADAM-5511 Figure 3-9 Serial Network Connection Note: The address of ADAM-5000/TCP Series on the RS-485 network will be always node 1. Any Modbus devices integrated in this network should be addressed from node 2 to 33. ADAM-5000/TCP User’s Manual...
  • Page 43: Assigning Address For I/O Modules

    Basing Modbus standard, addresses modules you place into the ADAM-5000/TCP Series system are defined by a simple rule. Please refer the figures 3-9 to map the I/O address. Figure 3-10: I/O Modules Address Mapping For example, if there is a ADAM-5024 (4-channel AO Module) in slot 2, the address of this module should be 40017~40020.
  • Page 44 I/O modules...
  • Page 45: Table 4-1 I/O Module Support List

    ADAM-5000 series and ADAM-5510 Series Controller, you need to select I/O modules to interface the main unit with field devices or processes that you have previously determined. Advantech provides 20 types of ADAM- 5000 I/O modules for various applications so far. Following table is the I/ O modules support list we provided for user’s choice.
  • Page 46: Chapter 4 I/O Module Introduction

    Terminal Emulation Install Main Unit and Module UDP Data Stream Hardware Installation System Mounting Guide Modbus Data Gateway Wiring and Connecting Using ADAM-5000/TCP Series DLL Driver Planning Your I/O Address Mapping Application Program Using ADAM-5000/TCP Series Command Set I/O Modules...
  • Page 47: Chapter 5 System Hardware Configuration

    • Two Ethernet Cable with RJ-45 connector • Power supply for ADAM-5000/TCP Series (+10 to +30 V unregulated) Make sure to prepare all of the items above, then connect the power and network wiring as figure 5-1. Figure 5-1: Hardware Configuration...
  • Page 48: Install Utility Software On Host Pc

    ADAM-5000/TCP Series Windows Utility Overview The Windows Utility offers a graphical interface that helps you config- ure the ADAM-5000/TCP Series main unit and I/O modules. It is also very convenient to test and monitor your DA&C System. The following guide- lines will give you some brief instructions on how to use this Utility.
  • Page 49 Chapter 5 System Hardware Configuration The top of the operation screen consists of a function menu and a tool bar for user’s commonly operating functions. Function menu Item File contents “Exit” Function, using to exit this Utility program. Item Tool contents functions as below: Add Remote 5000/TCP : Create a new ADAM-5000/TCP located in other Ethernet domination, both available to local LAN and Internet application.
  • Page 50: Ethernet Network Setting

    Chapter 5 System Hardware Configuration Tool Bar There are five push buttons in the tool bar. Figure 5-3: Tool Bar 5-3-2 Ethernet Network Setting As the moment you start up this Windows Utility, it will search all ADAM- 5000/TCP Series on the host PC’s domination Ethernet network automatically.
  • Page 51: Figure 5-5: Communication Testing Function

    Figure 5-5. Figure 5-5: Communication testing function Since Utility software detects the ADAM-5000/TCP Series, on the network, user can begin to setup each ADAM-5000/TCP Series station individually with following steps. Step1: Choose any one station, all I/O modules plugged in the main unit will be listed on the tree-structure display area.
  • Page 52: Figure 5-7: Tcp/Ip Network Setting

    ADAM-5000/TCP Series device on the global network. Each ADAM-5000/TCP has same default IP address 10.0.0.1. Therefore, please do not initial many ADAM-5000/TCP Series at the same time to avoid the Ethernet collision. If you want to configure the ADAM-5000/TCP Series in the host PC’s...
  • Page 53: Add Remote Station

    5000/TCP Series System does not only available to operate in local LAN, but also allowed to access from internet or intranet. Thus users would able to configure an ADAM-5000/TCP Series easily no matter how far it is. Select item Tool\Add 5000/TCP in function menu or click the button, the adding station screen will pop up as Figure 5-8.
  • Page 54: I/O Module Canfiguration

    Chapter 5 System Hardware Configuration 5-3-4 I/O Module Canfiguration Digital Input Output Module Selecting ADAM-5000 Digital Modules includes ADAM-5050/5051(D)/ 5051S/5052/5055S/5056(D)/5056S/5060/5068/5069, user can read following in- formation from the Utility. Figure 5-9: Digital I/O Module Configuration Location: Standard Modbus address.Windows Utility shows theModbus mapping address of each I/O channel.
  • Page 55: Figure 5-11: Current Analog Input Status

    Chapter 5 System Hardware Configuration Figure 5-10: Operating and Indicating Icons Note: 1. The indicator icons are only available to click for digital output channel. 2. The hexadecimal code will be calculated automatically for any status. Analog Input Module Selecting ADAM-5000 Analog Input Modules includes ADAM-5013/ 5017(H)/5018s, users can read following information from the Utility.
  • Page 56: Figure 5-12: Setting Range And Integration Time

    Chapter 5 System Hardware Configuration Type: Data type of the I/O channel. The data type of analog Input mod- ules is always “word”. Value: The current status on each channel of I/O modules. Windows Utility provides both decimal and hexadecimal values used for different applications.
  • Page 57: Figure 5-13: Analog Module Configuration Screen

    Chapter 5 System Hardware Configuration Figure 5-13: Analog Module Configuration Screen Note: Initial Setting function: Adjust a initial output value you want to set to the specified channel and click the set as initial button, the channel will output the same value each time when system is initial. Counter/Frequency Module Selecting an ADAM-5080 Counter/Frequency Module, users also can read the information about location, type, value, and description from...
  • Page 58: Figure 5-15: Location Of Counter/Frequency Module

    Chapter 5 System Hardware Configuration However, the ADAM-5080 is a special module. Each channel is com- posed of an unsigned long and four bits. For example, if there is a ADAM-5080 plugged in Slot 6 of ADAM-5000/ TCP system, the address locations should be: Figure 5-15: Location of Counter/Frequency Module Note:...
  • Page 59: Figure 5-16: Alarm Setting For Analog Input And Counter Modules

    5-3-5 Alarm Setting To satisfy the needs of various applications, ADAM-5000/TCP Series system provides Alarm setting function for Analog Input and Counter Module. Users can set High/Low limit value to identify the alarm status and trig- ger a digital output as an event handling function.
  • Page 60: I/O Module Calibration

    Chapter 5 System Hardware Configuration 5-3-6 I/O Module Calibration Calibration is to adjust the accuracy of ADAM module. There are several modes for module’s calibration: Zero calibration, Span calibration, CJC calibration, and Analog Output calibration. Only analog input and out- put modules can be calibrated, includes ADAM-5013, 5017, 5017H, 5018 and 5024.
  • Page 61: Figure 5-19: Cjc Calibration

    Chapter 5 System Hardware Configuration CJC Calibration 1. Prepare an accurate voltage source. 2. Run the zero calibration and span calibration function. 3. Use a temperature emulation device (such as Micro-10) to send a temperature signal to the ADAM module and then compare this sig- nal with the value from the ADAM module.
  • Page 62: Firmware Update

    Firmware Update ADAM-5000/TCP Series supports all ADAM-5000 series I/O modules and nec- essary operating function so far. But Advantech always provides better hardware and software functions to improve the perfect DA&C systems. Therefore, users will need to upgrade the firmware of ADAM-5000/TCP Series sometime.
  • Page 63: Security Setting

    Figure 5-22: Password Setting Note: The default password of ADAM-5000/TCP Series is “00000000”. Please make sure to keep the correct password by yourself. If you lose it, please contact to Advantech’s technical support center for help. 5-18 ADAM-5000/TCP User’s Manual...
  • Page 64: Terminal Emulation

    Chapter 5 System Hardware Configuration 5-3-9 Terminal Emulation You can issue commands and receive response by clicking the Terminal button on the tool bar. There are two kinds of command format supported by this emulating function. Users can choose ASCII or Hexadecimal mode as their communication base.
  • Page 65: 5-3-10 Data Stream

    5-3-10 Data Stream Data Stream Configuration In addition to TCP/IP communication protocol, ADAM-5000/TCP Series sup- ports UDP communication protocol to regularly broadcast data to spe- cific host PCs. Click the tip of Data stream, then configure the broadcasting interval and the specific IPs which need to receive data from the specific ADAM- 5000/TCP Series.
  • Page 66: Figure 5-25: Data Stream Monitoring

    Chapter 5 System Hardware Configuration Figure 5-25: Data Stream Monitoring Select the IP address of the ADAM-5000/TCP Series you want to read data, then click “Start” button. The Utility software will begin to receive the stream data on this operation display.
  • Page 67: 5-3-11 Data Gateway Setting

    Chapter 5 System Hardware Configuration 5-3-11 Data Gateway Setting ADAM-5000/TCP Series is designed with an RS-485 Modbus Interface. As a Data Gateway, It integrates serial Modbus devices into Ethernet applica- tion easily. Click the tip of “RS-485/Modbus” to configure the RS-485 network set- ting with following steps.
  • Page 68: Chapter 6 Planning Your Application Program

    Terminal Emulation Install Main Unit and Module UDP Data Stream Hardware Installation System Mounting Guide Modbus Data Gateway Wiring and Connecting Using ADAM-5000/TCP Series DLL Driver Planning Your I/O Address Mapping Application Program Using ADAM-5000/TCP Series Command Set I/O Modules...
  • Page 69: Introduction

    ADAM-5000/TCP systems communicate with a host computer through Ethernet, no additional driver needs to be installed. The DLL includes all necessary function calls to utilize the ADAM-5000/TCP Series systems to their fullest extent. In the same path with “ADAM 5000TCP Series”after completing S/W installa- tion, you’ll find the relational...
  • Page 70 Chapter 6 Planning Your Application Program Function Libraries Pages ADAM5KTCP_ReadCoil 6-16 ADAM5KTCP_WriteCoil 6-17 ADAM5KTCP_SendReceive5KTCPCmd 6-18 ADAM5KTCP_Add5KTCPForStream 6-19 ADAM5KTCP_ReadStreamData 6-20 ADAM5KTCP_ReadAlarmInfo 6-21 ADAM5KTCP_StartStream 6-22 ADAM5KTCP_StopStream 6-23 ADAM5KTCP_SetStreamAlarmState 6-24 ADAM5KTCP_Debug 6-25 ADAM5KTCP_UDPOpen 6-26 ADAM5KTCP_UDPClose 6-27 ADAM5KTCP_SendReceiveUDPCmd 6-28 ADAM-5000/TCP User’s Manual...
  • Page 71: 6-2-2 Programming Flow

    Chapter 6 Planning Your Application Program 6-2-2 Programming Flow * Send a command and receiving response by UDP ADAM5KTCP_Open( ) ADAM5KTCP_SendReceiveUDPCmd( ) ADAM5KTCP_UDPOpen( ) ADAM5KTCP_SendReceiveUDPCmd( ) ADAM5KTCP_UDPClose( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 72 Chapter 6 Planning Your Application Program * Send a command and receiving response by TCP ADAM5KTCP_Open( ) ADAM5KTCP_Connect( ) ADAM5KTCP_SendReceive5KTCPCmd( ) ADAM5KTCP_Disconnect( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 73 Chapter 6 Planning Your Application Program * To receive stream data coming from ADAM-5000/TCP Series (s) ADAM5KTCP_Open( ) ADAM5KTCP_Add5KTCPForStream( ) hEvent=CreateEvent( ) (A Win32 API) ADAM5KTCP_StartStream( &hEvent ) hEvent signaled ? ADAM5KTCP_ReadStreamData( ) quit ? ADAM5KTCP_StopStream( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 74 Chapter 6 Planning Your Application Program * To receive alarm information from ADAM-5000/TCP(s) ADAM5KTCP_Open( ) ADAM5KTCP_Add5KTCPForStream( ) hEvent=CreateEvent ( ) (A Win32 API) ADAM5KTCP_SetStreamAlarmState(ADAM5KTCP_ReceiveStreamWhenAlarm) ADAM5KTCP_StartStream( &hEvent ) hEvent signaled ? ADAM5KTCP_ReadStreamDatat( ) ADAM5KTCP_ReadAlarmInfo( ) Alarm info buffer is empty? quit ? ADAM5KTCP_StopStream( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 75 Chapter 6 Planning Your Application Program * To read coil values ADAM5KTCP_Open( ) ADAM5KTCP_Connect( ) ADAM5KTCP_ReadCoil( ) ADAM5KTCP_Disconnect( ) ADAM5KTCP_Close( ) * To write value to coil ADAM5KTCP_Open( ) ADAM5KTCP_Connect( ) ADAM5KTCP_WriteCoil( ) ADAM5KTCP_Disconnect( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 76 Chapter 6 Planning Your Application Program * To read holding register value ADAM5KTCP_Open( ) ADAM5KTCP_Connect( ) ADAM5KTCP_ReadReg( ) ADAM5KTCP_Disconnect( ) ADAM5KTCP_Close( ) * To write value to holding register ADAM5KTCP_Open( ) ADAM5KTCP_Connect( ) ADAM5KTCP_WriteReg( ) ADAM5KTCP_Disconnect( ) ADAM5KTCP_Close( ) ADAM-5000/TCP User’s Manual...
  • Page 77: 6-2-3 Function Descriptions

    Chapter 6 Planning Your Application Program 6-2-3 Function Descriptions ADAM5KTCP_Open Description: Initiate the “adam5ktcp.dll” for using. Syntax: int ADAM5KTCP_Open(void); Parameters: void Return: Please refer to Chapter6-2-4 “Return Codes” for more detail information 6-10 ADAM-5000/TCP User’s Manual...
  • Page 78 Chapter 6 Planning Your Application Program ADAM5KTCP_Close Description: Terminates using the “adam5ktcp.dll”. Syntax: void ADAM5KTCP_Close(void); Parameters: void Return: void ADAM-5000/TCP User’s Manual 6-11...
  • Page 79 Chapter 6 Planning Your Application Program ADAM5KTCP_Connect Description: Establish a Windows Sockets connection in a speci- fied ADAM-5000/TCP system. Syntax: int ADAM5KTCP_Connect(char szIP[ ], unsigned short port, int iConnectionTimeout, int iSendTimeout, int iReceiveTimeout); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected port[in]: the TCP/IP connection port used with Modbus/TCP,...
  • Page 80 Chapter 6 Planning Your Application Program ADAM5KTCP_Disconnect Description: Disconnect the Windows Sockets connection of the specified ADAM-5000/TCP Syntax: void ADAM5KTCP_Disconnect(void); Parameter: void Return: Please refer to Chapter 6-2-4 “Return Codes” for more detail information ADAM-5000/TCP User’s Manual 6-13...
  • Page 81 Chapter 6 Planning Your Application Program DAM5KTCP_GetDLLVersion Description: Read the version of ADAM-5000/TCP DLL driver Syntax: int ADAM5KTCP_GetDLLVersion(void); Parameter: void Return: 0x150 means Version 1.50 6-14 ADAM-5000/TCP User’s Manual...
  • Page 82 Chapter 6 Planning Your Application Program ADAM5KTCP_ReadReg Description: Reads the holding register value at a specified range described in parameters. Syntax: ADAM5KTCP_ReadReg(char szIP[], WORD wID, WORD wStartAddress, WORD wCount, WORD wData[]); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected wID[in]: the specific device ID for an Modbus/TCP device.
  • Page 83 Chapter 6 Planning Your Application Program ADAM5KTCP_WriteReg Description: Write the holding register value at a specified range described in parameters. Syntax: int ADAM5KTCP_WriteReg(char szIP[], WORD wID, WORD wStartAddress, WORD wCount, WORD wData[]); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected wID[in]: the specific device ID for an Modbus/TCP device.
  • Page 84 Chapter 6 Planning Your Application Program ADAM5KTCP_ReadCoil Description: Read the coils value at a specified range described in parameters. Syntax: ADAM5KTCP_ReadCoil(char szIP[], WORD wID, WORD wStartAddress, WORD wCount, BYTE byData[]); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected wID[in]: the specific device ID for an Modbus/TCP device.
  • Page 85 Chapter 6 Planning Your Application Program ADAM5KTCP_WriteCoil Description: Write the coils value at a specified range described in parameters. Syntax: int ADAM5KTCP_WriteCoil(char szIP[], WORD wID, WORD wStartAddress, WORD wCount, BYTE byData[]); Parameter: szIP[in]: the IP Address of the ADAM-5000/TCP that to be connected wID[in]: the specific device ID for an Modbus/TCP device.
  • Page 86 Chapter 6 Planning Your Application Program ADAM5KTCP_SendReceive5KTCPCmd Description: This function is designed for user’s convenience, accepting the ASCII format string as a command. Then transform it to meet the Modbus/TCP specifi- cation. Syntax: int ADAM5KTCP_SendReceive5KTCPCmd(char szIP[], char szSendToTCP[], char szReceiveFromTCP[], char szModbusSend[], char szModbusReceive[]);...
  • Page 87 Chapter 6 Planning Your Application Program ADAM5KTCP_Add5KTCPForStream Description: Assign a specified ADAM-5000/TCP to send stream data to the PC Syntax: ADAM5KTCP_Add5KTCPForStream(char szIP[]); Parameters: szIP[in]: the IP Address of the ADAM-5000/TCP that assign to send stream data to the PC Return: Please refer to Chapter 6-2-4 “Return Codes”...
  • Page 88 Chapter 6 Planning Your Application Program ADAM5KTCP_ReadStreamData Description: Receive stream data that comes from the specific ADAM-5000/TCP Syntax: int ADAM5KTCP_ReadStreamData(char szIP[], struct _StreamData *pStreamData); Parameters: szIP[in]: to specify the IP Address for a user to receive the stream data *pStreamData[out]: the stream data stored in _StreamData structure Please refer to Chapter 6-2-5 “Data Structure”...
  • Page 89 Chapter 6 Planning Your Application Program ADAM5KTCP_ReadAlarmInfo Description: Receive alarm information that comes from the spe- cific ADAM-5000/TCP Syntax: int ADAM5KTCP_ReadAlarmInfo (struct _AlarmInfo *pAlarmInfo); Parameters: *pAlarmInfo[out]: the alarm information stored in _AlarmInfo structure Please refer to Chapter 6-2-5 “Data Structure” for more detail information about _AlarmInfo structure.
  • Page 90 Chapter 6 Planning Your Application Program ADAM5KTCP_StartStream Description: Instruct the PC to start receiving stream data from the ADAM-5000/TCP Syntax: int ADAM5KTCP_StartStream (HANDLE *EventFromApp); Parameters: *EventFromApp: event object that would pass down to ADAM5KTCP.DLL This event object would be signaled either a stream data send to PC or an alarm status change in ADAM- 5000/TCP.Please refer to ADAM5KTCP_SetStream AlarmState for more detail information.
  • Page 91 Chapter 6 Planning Your Application Program ADAM5KTCP_StopStream Description: Instruct the PC to stop receiving stream data Syntax: int ADAM5KTCP_StopStream( ); Parameters: void Return: void 6-24 ADAM-5000/TCP User’s Manual...
  • Page 92 Chapter 6 Planning Your Application Program ADAM5KTCP_SetStreamAlarmState Description: Set the criterion to signal the event object Syntax: int ADAM5KTCP_SetStreamAlarmState(WORD wStreamAlarmState); Parameters: wStreamAlarmState[in]: When assigned to ADAM5KTCP_Receive StreamIngoreAlarm: means the ADAM5KTCP.DLL always signals event object when any stream data comes from an ADAM-5000/TCP.
  • Page 93 Chapter 6 Planning Your Application Program ADAM5KTCP_Debug Description: Trace the executive information about streaming data mechanism in ADAM5KTCP.DLL (It is convenient to troubleshooting of user’s appli- cations.) Syntax: int ADAM5KTCP_Debug(int *iMatchIndex, *iReceiveCount, int *iThreadRun, int *iTotalStream, char szFromIP[]); Parameters: *iMatchIndex[out]: indicating which ADAM-5000/TCP cause signaling the event object 0 means the first ADAM-5000/TCP, 1 means second, 2 means third, and so on.
  • Page 94 Chapter 6 Planning Your Application Program ADAM5KTCP_UDPOpen Description: Opens a UDP socket and sets the timeout of send/ receive interval prepare send command to ADAM-5000/TCP by UDP. Syntax: int ADAM5KTCP_UDPOpen(int iSendTimeout, int iReceiveTimeout); Parameters: iSendTimeout[in]: the specified timeout interval for sending a command string to the ADAM-5000/TCP by UDP.
  • Page 95 Chapter 6 Planning Your Application Program ADAM5KTCP_UDPClose Description: Closes the UDP socket that has been opened by “ADAM5KTCP_UDPOpen()”. Syntax: int ADAM5KTCP_UDPClose(); Parameters: Void Return: Please refer to Chapter 6-2-4 “Return Codes” for more detail information. 6-28 ADAM-5000/TCP User’s Manual...
  • Page 96 Chapter 6 Planning Your Application Program ADAM5KTCP_SendReceiveUDPCmd Description: Sends a command to ADAM-5000/TCP and receives the response by UDP Syntax: ADAM5KTCP_SendReceiveUDPCmd(char szIP[], char szSend[], char szReceive[]); Parameters: szIP[in]: the IP Address of the ADAM-5000/TCP that send/ receive the command/response szSend[in]: the string in ASCII format that send to the ADAM- 5000/TCP szReceive[out]:...
  • Page 97: Return Codes

    Chapter 6 Planning Your Application Program 6-2-4 Return Codes Using these function libraries, you can read the error message and the against response from the returning codes. ADAM5KTCP_NoError ADAM5KTCP_StartupFailure (-1) ADAM5KTCP_SocketFailure (-2) ADAM5KTCP_UdpSocketFailure (-3) ADAM5KTCP_SetTimeoutFailure (-4) ADAM5KTCP_SendFailure (-5) ADAM5KTCP_ReceiveFailure (-6) ADAM5KTCP_ExceedMaxFailure (-7) ADAM5KTCP_CreateWsaEventFailure...
  • Page 98 Chapter 6 Planning Your Application Program 6-2-5 Data Structure struct _StreamData WORD DIO[8]; // DI/DO data for Slot0, Slot1,.., Slot7 WORD Slot0[8]; // AI/AO data for slot0 WORD Slot1[8]; // AI/AO data for slot1 WORD Slot2[8]; // AI/AO data for slot2 WORD Slot3[8];...
  • Page 99: Adam-5000/Tcp Command

    Chapter 6 Planning Your Application Program ADAM-5000/TCP Command ADAM-5000/TCP system accepts a command/response form with the host computer. When systems are not transmitting they are in listen mode. The host issues a command to a system with a specified address and waits a certain amount of time for the system to respond.
  • Page 100: Modbus Function Code Introduction

    Chapter 6 Planning Your Application Program And the response should be: Figure 6-2: Response Comment Structure 6-3-2 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 Read Coil Status Read Discrete Output Bit...
  • Page 101 Chapter 6 Planning Your Application Program Example: Read coil number 1 to 8 (address number 10001 to 10008) from ADAM-5000/TCP 01 01 00 01 00 08 Response message format for function code 01: Command Body Station Function Byte Address Code Data Data …...
  • Page 102 Chapter 6 Planning Your Application Program Function Code 03/04 The function code 03 or 04 is used to read the binary contents of input registers Request message format for function code 03 or 04: Command Body Function Start Start Requested Requested Station Code...
  • Page 103 Chapter 6 Planning Your Application Program Response message format for function code 05: The normal response is an echo of the query, returned after the coil state has been forced. Command Body Station Function Force Force Data Coil Coil Address Address Address Code...
  • Page 104 Chapter 6 Planning Your Application Program Response message format for function code 08: Command Body StationAddress FunctionCode Data bytes received Example: 01 08 00 02 00 04 Function Code 15 (0F hex) Forces each coil in a sequence of coils to either ON or OFF. Request message format for function code 15: Command Body Requested Requested...
  • Page 105 Chapter 6 Planning Your Application Program Function Code 16 (10 hex) Preset values into a sequence of holding registers. Request message format for function code 16: Command Body Requested Requested Start Start Number of Byte Station Function Number of Address Address Data Register...
  • Page 106: Apply With Ascii Command For Adam-5000/Tcp System

    Planning Your Application Program Apply with ASCII Command for ADAM-5000/TCP System For users do not familiar to Modbus protocol, Advantech offers a func- tion library as a protocol translator, integrating ASCII command into Modbus/TCP structure. Therefore, users familiar to ASCII command can access ADAM-5000/TCP easily.
  • Page 107: System Command Set

    Chapter 6 Planning Your Application Program Every command set category starts with a command summary of the particular type of module, followed by datasheets that give detailed in- formation about individual commands. Although commands in different subsections sometime share the same format, the effect they have on a certain module can be completely differ- ent than that of another.
  • Page 108 Chapter 6 Planning Your Application Program %aannccff Name Configuration Description Sets RS-485 network baud rate and checksum status for a specified ADAM-5000/TCP system Syntax %aannccff(cr) % is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to configure.
  • Page 109: Table 6-3 Baud Rate Codes

    Chapter 6 Planning Your Application Program mal Modbus network address of an ADAM-5000/ TCP system. (cr) is the terminating character, carriage return (0Dh). Example command: %01000A40(cr) response: !01(cr) The ADAM-5000/TCP system with address 01h is configured to a baud rate of 115.2 Kbps and with checksum generation or validation.
  • Page 110 Chapter 6 Planning Your Application Program $aa2 Name Configuration Status Description Returns the configuration status for a specified sys- tem module. Syntax $aa2(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 111 Chapter 6 Planning Your Application Program Example command: $012(cr) response: !010600(cr) The command requests the ADAM-5000/TCP sys- tem at address 01h to send its configuration status. The ADAM-5000 system at address 01h responds with a baud rate of 9600 bps and with no checksum function or checksum generation.
  • Page 112 Chapter 6 Planning Your Application Program $aaM Name Read Module Name Description Returns the module name from a specified ADAM- 5000/TCP system. Syntax $aaM(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 113 Chapter 6 Planning Your Application Program $aaF Name Read Firmware Version Description Returns the firmware version code from a specified ADAM-5000/TCP system. Syntax $aaF(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 114 Chapter 6 Planning Your Application Program $aaT Name Read I/O Type Description Returns the I/O module no. of all slots for a specified ADAM-5000/TCP system. Syntax $aaT(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 115: Analog Input Command Set

    Chapter 6 Planning Your Application Program 6-4-3 Analog Input Command Set Before setting commands, the user needs to know the type of main unit being used. If ADAM-5000/485 is being used, the “i” in Si can be set at 0 to 3. If ADAM-5000E or ADAM-5000/TCP is being used, the “i” in Si can be set at 0 to 7.
  • Page 116: Table 6-4: Adam-5013 Rtd Input Command Set Table

    Chapter 6 Planning Your Application Program Command Syntax Command Name Description $aaSiER Initialize EEPROM Initializes all EEPROM Data data in a specified RTD input module to their default values Enables/disables $aaSi5mm Enable/Disable multiplexing Channels for simultaneously for Multiplexing separate channels of the specified input module $aaSi6...
  • Page 117 Chapter 6 Planning Your Application Program $aaSiArrff Name RTD Configuration Description Sets slot index, input range, data format and integra- tion time for a specified RTD input module in a speci- fied system. Syntax $aaSiArrff(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure.
  • Page 118 Chapter 6 Planning Your Application Program $aaSiB Name RTD Configuration Status Description Returns the configuration parameters for a specified RTD input module in a specified system. Syntax $aaSiB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 119 Chapter 6 Planning Your Application Program $aaSi Name All RTD Data In Description Returns the input values of all channels of a speci- fied RTD input module in a specified system in engi- neering units only. Syntax $aaSi(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 120 Chapter 6 Planning Your Application Program (cr) is the terminating character, carriage return (0Dh). Example command: $01S3(cr) response: >+80.01 +20.00 -40.12(cr) The command requests the RTD input module in slot 3 of the ADAM-5000/TCP system at address 01h to return the input values of all channels. The RTD in- put module responds with input values of all chan- nels in sequence from 0 to 2: +80.01°...
  • Page 121 Chapter 6 Planning Your Application Program $aaSiCj Name Specified RTD Data In Description Returns the input value of a specified channel for a specified RTD input module of a specified system in engineering units only. Syntax $aaSiCj(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 122 Chapter 6 Planning Your Application Program (cr) is the terminating character, carriage return (0Dh). Example command: $01S3C0(cr) response: >+80.01(cr) The command requests the RTD input module in slot 3 of the ADAM-5000/TCP system at address 01h to return the input value of channel 0. The RTD input module responds that the input value of channel 0 is +80.01°...
  • Page 123 Chapter 6 Planning Your Application Program $aaSiER Name Initialize EEPROM Data Description Initializes all EEPROM data in a specified analog in- put module to their default values. This command is sent following a failed attempt to calibrate a module (the module shows no effect from an attempted cali- bration).
  • Page 124 Chapter 6 Planning Your Application Program $aaSi5mm Name Enable/Disable Channels for multiplexing Description Enables/Disables multiplexing for separate channels of the specified input module Syntax $aaSi5mm(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. Si identifies the I/O slot of the system.
  • Page 125 Chapter 6 Planning Your Application Program $aaSi6 Name Read Channels Status Description Asks a specified input module to return the status of all channels Syntax $aaSi6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 126 Chapter 6 Planning Your Application Program $aaSi0 Name RTD Span Calibration Description Calibrates a specified RTD input module of a speci- fied system to correct for gain errors. Syntax $aaSi0(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- address of the ADAM-5000/TCP system which con- tains the RTD module.
  • Page 127 Chapter 6 Planning Your Application Program $aaSi1 Name RTD Zero Calibration Description Calibrates a specified RTD input module of a speci- fied system to correct for offset errors. Syntax $aaSi1(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which contains the module which is to be calibrated.
  • Page 128 Chapter 6 Planning Your Application Program $aaSi2 Name RTD Self Calibration Description Causes a specified RTD input module of a specified system to do a self- calibration. Note: This command is for use when RTD Zero and Span calibration commands have been tried and had no effect.
  • Page 129 Chapter 6 Planning Your Application Program aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system. (cr) is the terminating character, carriage return (0Dh). 6-62 ADAM-5000/TCP User’s Manual...
  • Page 130: Table 6-5: Adam-5017/5018 Analog Input Command Set Table

    Chapter 6 Planning Your Application Program ADAM-5017/5018 Analog Input Command Set Command Syntax Command Name Description $aaSiArrff Configuration Sets slot index, input range, data format and integration time for a specified analog input module in a specified system. $aaSiB Configuration Status Returns the configuration parameters for a specified analog input module of a...
  • Page 131: Figure 6-4: Data Format For 8-Bit Parameters

    Chapter 6 Planning Your Application Program $aaSiArrff Name Configuration Description Sets slot index, input range, data format and integra- tion time for a specified analog input module in a specified system. Syntax $aaSiArrff(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure.
  • Page 132 Chapter 6 Planning Your Application Program Response !aa(cr) if the command is valid. ?aa(cr) if an invalid operation was entered. There is no response if the module detects a syntax error or communication error or if the specified ad- dress does not exist.
  • Page 133 Chapter 6 Planning Your Application Program $aaSiB Name Configuration Status Description Returns the configuration status parameters for a specified analog input module of a specified system. Syntax $aaSiB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 134 Chapter 6 Planning Your Application Program $aaSi5mm Name Enable/Disable Channels for multiplexing Description Enables/Disables multiplexing for separate channels of the specified input module Syntax $aaSi5mm(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. Si identifies the I/O slot of the system.
  • Page 135 Chapter 6 Planning Your Application Program $aaSi6 Name Read Channels Status Description Asks a specified input module to return the status of all channels Syntax $aaSi6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 136 Chapter 6 Planning Your Application Program #aaSi Name All Analog Data In Description Returns the input value of all channels for a speci- fied analog input module of a specified system in engineering unit only. Syntax #aaSi(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 137 Chapter 6 Planning Your Application Program Example command: #01S1(cr) response: +1.4567 +1.4852 +1.4675 +1.4325 +1.4889 +1.4235 +1.4787 +1.4625 (cr) The command requests the analog input module in slot 1 of the ADAM-5000/TCP system at address 01h to return the input values of all channels. The analog input module responds that input values of all channels are in sequence from 7 to 0: +1.4567, +1.4852, +1.4675, +1.4325, +1.4889, +1.4235, +1.4787...
  • Page 138 Chapter 6 Planning Your Application Program #aaSiCj Name Specified Analog Data In Description Returns the input value of a specified channel for a specified analog input module of a specified system in engineering unit only. Syntax #aaSiCj(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 139 Chapter 6 Planning Your Application Program Example command: #01S2C2(cr) response: >+1.4567 The command requests the analog input module in slot 2 of the ADAM-5000/TCP system at address 01h to return the input value of channel 2. The analog input module responds that the input value of channel 2 is +1.4567.
  • Page 140 Chapter 6 Planning Your Application Program $aaSiER Name Initialize EEPROM data Description Initializes all EEPROM data in a specified analog in- put module to their default values. This command is sent following a failed attempt to calibrate a module (the module shows no effect from an attempted cali- bration).
  • Page 141 Chapter 6 Planning Your Application Program $aaSi0 Name Span Calibration Description Calibrates a specified analog input module to correct for gain errors Syntax $aaSi0(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrated.
  • Page 142 Chapter 6 Planning Your Application Program $aaSi1 Name Zero Calibration Description Calibrates a specified analog input module to correct for offset errors Syntax $aaSi1(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrated.
  • Page 143 Chapter 6 Planning Your Application Program $aaSi3 Name CJC Status Command (ADAM-5018 only) Description Returns the value of the CJC (Cold Junction Com- pensation) sensor for a specified analog input mod- Syntax $aaSi3(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 144 Chapter 6 Planning Your Application Program $aaSi9shhhh Name CJC Zero Calibration (ADAM-5018 only) Description Calibrates an analog input module to adjust for offset errors of its CJC (Cold Junction Compensation) sen- Syntax $aaSi9shhhh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 145 Chapter 6 Planning Your Application Program Note: An analog input module requires a maximum of 2 seconds to perform auto calibration and ranging after it receives a CJC Cali- bration command. During this interval, the module cannot be addressed to perform any other actions. 6-78 ADAM-5000/TCP User’s Manual...
  • Page 146 Chapter 6 Planning Your Application Program ADAM-5017H/5017UH Analog Input Command Set Command Command Description Syntax Name $aaSiCjArrFF Set Input Range Sets input range for a specified channel of an analog input module in a specified system Returns the input range for a $aaSiCjB Read Input specified channel of a...
  • Page 147 Chapter 6 Planning Your Application Program Command Command Description Syntax Name Returns the input value of all channels for a specified analog input module of a #aaSi All Analog Data In specified system in currently configured data format Returns the input value of a specified channel of a specified analog input module Specified Analog...
  • Page 149 Chapter 6 Planning Your Application Program $aaSiCjArrFF Name Set Input Range Description Sets the input range for a specified channel of a speci- fied analog input module in a specified system. Syntax $aaSiCjArrFF $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure.
  • Page 150 Chapter 6 Planning Your Application Program $aaSiCjB Name Read Input Range Description Returns the input range in engineering units for a specified channel of a specified analog input module in a specified system. Syntax $aaSiCjB $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 151 Chapter 6 Planning Your Application Program $aaSiAFFff Name Set Data Format Description Sets the data format in engineering units or in two’s complement format for a specified analog input mod- ule in a specified system. Syntax $aaSiAFFff $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure.
  • Page 152 Chapter 6 Planning Your Application Program $aaSiB Name Read Data Format Description Returns the data format for a specified analog input module in a specified system. Syntax $aaSiB $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 153 Chapter 6 Planning Your Application Program #aaSi Name All Analog Data In Description Returns the input value of all channels for a speci- fied analog input module of a specified system in engineering units or two’s complement data format Syntax #aaSi # is a delimiter character.
  • Page 154 Chapter 6 Planning Your Application Program (dddd) is the input value in two’s complement format of the interrogated module of the specified system. The (dddd) from all channels is shown in sequence from 7 to 0. If (dddd)=” “, it means the channel is invalid.
  • Page 155 Chapter 6 Planning Your Application Program #aaSiCj Name Specified Analog Data In Description Returns the input value of a specified channel of a specified analog input module in a specified ADAM- 5000/TCP system in engineering units or two’s complement data format Syntax #aaSiCj(cr) # is a delimiter character.
  • Page 156 Chapter 6 Planning Your Application Program (data) is the input value in engineering units of the specified channel of the specified analog input mod- ule. If (data)=” “, it means the channel is invalid. (dddd) is the input value in two’s complement format of the specified channel of the specified module.
  • Page 157: Table 6-7 Analog Input Alarm Command Set Table

    Chapter 6 Planning Your Application Program Analog Input Alarm Command Set Command Syntax Command Name Description Sets the High/Low alarm in either $aaSiCjAhs Set Alarm Mode Momentary or Latching mode Returns the alarm mode for $aaSiCjAh Read Alarm Mode the specified channel. Enables or Disables the High/Low Enable/Disable $aaSiCjAhEs...
  • Page 158 Chapter 6 Planning Your Application Program $aaSiCjAhs Name Set Alarm Mode Description Sets the High/Low alarm of the specified input chan- nel in the addressed ADAM-5000/TCP system to either Latching or Momentary mode. Syntax $aaSiCjAhs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of anADAM-5000/ TCP system.
  • Page 159 Chapter 6 Planning Your Application Program Example command: $01S0C1AHL(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to set its High alarm in Latching mode. The module confirms that the command has been received.
  • Page 160 Chapter 6 Planning Your Application Program $aaSiCjAh Name Read Alarm Mode Description Returns the alarm mode for the specified channel in the specified ADAM-5000/TCP system. Syntax $aaSiCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 161 Chapter 6 Planning Your Application Program Example command: $01S0C1AL(cr) response: !01M(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to return its Low alarm mode. The system responds that it is in Momentary mode. ADAM-5000/TCP User’s Manual 6-93...
  • Page 162 Chapter 6 Planning Your Application Program $aaSiCjAhEs Name Enable/Disable Alarm Description Enables/Disables the High/Low alarm of the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 163 Chapter 6 Planning Your Application Program Example command: $01S0C1ALEE(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to enable its Low alarm function. The module confirms that its Low alarm function has been enabled. Note: An analog input module requires a maximum of 2 seconds after it receives an Enable/Disable Alarm command to let the setting...
  • Page 164 Chapter 6 Planning Your Application Program $aaSiCjCh Name Clear Latch Alarm Description Sets the High/Low alarm to OFF (no alarm) for the specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 165 Chapter 6 Planning Your Application Program Example command: $01S0C1CL(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to set its Low alarm state to OFF. The system confirms it has done so accordingly.
  • Page 166 Chapter 6 Planning Your Application Program $aaSiCjAhCSkCn Name Set Alarm Connection Description Connects the High/Low alarm of the specified input channel to the specified digital output in the ad- dressed ADAM-5000/TCP system Syntax $aaSiCjAhCSkCn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 167 Chapter 6 Planning Your Application Program Example command: $01S0C1ALCS1C0(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 168 Chapter 6 Planning Your Application Program $aaSiCjRhC Name Read Alarm Connection Description Returns the High/Low alarm limit output connection of a specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus address of an ADAM-5000/TCP sys- tem.
  • Page 169 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1RLC(cr) response: !01S1C0(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to read its Low alarm output connection. The system responds that the Low alarm output con- nects to the digital output at point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 170 Chapter 6 Planning Your Application Program $aaSiCjAhU(data) Name Set Alarm Limit Description Sets the High/Low alarm limit value for the specified input channel of a specified ADAM-5000/TCP sys- tem. Syntax $aaSiCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 171 Chapter 6 Planning Your Application Program Example command: $01S0C1AHU+080.00(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is configured to accept type-T ther- mocouple input. The command will set its High alarm limit to +80°C. The system confirms the command has been re- ceived.
  • Page 172 Chapter 6 Planning Your Application Program $aaSiCjRhU Name Read Alarm Limit Description Returns the High/Low alarm limit value for the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 173 Chapter 6 Planning Your Application Program Example command: $01S0C1RHU(cr) response: !01+2.0500(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is configured to accept 5V input. The command instructs the system to return the High alarm limit value for that channel. The system responds that the High alarm limit value in the desired channel is 2.0500 V.
  • Page 174 Chapter 6 Planning Your Application Program $aaSiCjS Name Read Alarm Status Description Reads whether an alarm occurred for the specified input channel in the specified ADAM-5000/TCP sys- Syntax $aaSiCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 175 Chapter 6 Planning Your Application Program Example command: $01S0C1S(cr) response: !0101(cr) The command instructs the system at address 01h to return its alarm status for channel 1 of slot 0. The system responds that a High alarm has not oc- curred and that a Low alarm has occurred.
  • Page 176: Table 6-8 Analog Input Alarm Command Set Table

    Chapter 6 Planning Your Application Program Analog Input Alarm Command Set Command Command Description Syntax Name $aaSiCjAhs Set Alarm Mode Sets the High/Low alarm in either Momentary or Latching mode Returns the alarm mode for the $aaSiCjAh Read Alarm specified channel. Mode Enables or Disables the High/Low $aaSiCjAhEs...
  • Page 177 Chapter 6 Planning Your Application Program $aaSiCjAhs Name Set Alarm Mode Description Sets the High/Low alarm of the specified input chan- nel in the addressed ADAM-5000/TCP system to either Latching or Momentary mode. Syntax $aaSiCjAhs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of anADAM- 5000/ TCP system.
  • Page 178 Chapter 6 Planning Your Application Program Example command: $01S0C1AHL(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to set its High alarm in Latching mode. The module confirms that the command has been received. 6-110 ADAM-5000/TCP User’s Manual...
  • Page 179 Chapter 6 Planning Your Application Program $aaSiCjAh Name Read Alarm Mode Description Returns the alarm mode for the specified channel in the specified ADAM-5000/TCP system. Syntax $aaSiCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 180 Chapter 6 Planning Your Application Program Example command: $01S0C1AL(cr) response: !01M(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to return its Low alarm mode. The system responds that it is in Momentary mode. 6-112 ADAM-5000/TCP User’s Manual...
  • Page 181 Chapter 6 Planning Your Application Program $aaSiCjAhEs Name Enable/Disable Alarm Description Enables/Disables the High/Low alarm of the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 182 Chapter 6 Planning Your Application Program Example command: $01S0C1ALEE(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to enable its Low alarm function. The module confirms that its Low alarm function has been enabled. Note: An analog input module requires a maximum of 2 seconds after it receives an Enable/Disable Alarm command to let the setting...
  • Page 184 Chapter 6 Planning Your Application Program $aaSiCjCh Name Clear Latch Alarm Description Sets the High/Low alarm to OFF (no alarm) for the specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 185 Chapter 6 Planning Your Application Program Example command: $01S0C1CL(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to set its Low alarm state to OFF. The system confirms it has done so accordingly.
  • Page 186 Chapter 6 Planning Your Application Program $aaSiCjAhCSkCn Name Set Alarm Connection Description Connects the High/Low alarm of the specified input channel to the specified digital output in the ad- dressed ADAM-5000/TCP system Synta $aaSiCjAhCSkCn (cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 187 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1ALCS1C0(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 188 Chapter 6 Planning Your Application Program $aaSiCjRhC Name Read Alarm Connection Description Returns the High/Low alarm limit output connection of a specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus address of an ADAM-5000/TCP sys- tem.
  • Page 189 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1RLC(cr) response: !01S1C0(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is instructed to read its Low alarm output connection. The system responds that the Low alarm output connects to the digital output at point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 190 Chapter 6 Planning Your Application Program $aaSiCjAhU(data) Name Set Alarm Limit Description Sets the High/Low alarm limit value for the specified input channel of a specified ADAM-5000/TCP sys- tem. Syntax $aaSiCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 191 Chapter 6 Planning Your Application Program Example command: $01S0C1AHU+080.00(cr) response: !01(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is configured to accept type-T ther- mocouple input. The command will set its High alarm limit to +80°C. The system confirms the command has been re- ceived.
  • Page 192 Chapter 6 Planning Your Application Program $aaSiCjRhU Name Read Alarm Limit Description Returns the High/Low alarm limit value for the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 193 Chapter 6 Planning Your Application Program Example command: $01S0C1RHU(cr) response: !01+2.0500(cr) Channel 1 of slot 0 in the ADAM-5000/TCP system at address 01h is configured to accept 5V input. The command instructs the system to return the High alarm limit value for that channel. The system responds that the High alarm limit value in the desired channel is 2.0500 V.
  • Page 194 Chapter 6 Planning Your Application Program $aaSiCjS Name Read Alarm Status Description Reads whether an alarm occurred for the specified input channel in the specified ADAM-5000/TCP sys- Syntax $aaSiCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 195 Chapter 6 Planning Your Application Program Example command: $01S0C1S(cr) response: !0101(cr) The command instructs the system at address 01h to return its alarm status for channel 1 of slot 0. The system responds that a High alarm has not oc- curred and that a Low alarm has occurred.
  • Page 196: Analog Output Command Set

    Chapter 6 Planning Your Application Program 6-4-4 Analog Output Command Set Command Syntax Command Name Description "Sets the output range, data format and slew rate for a specified channel in $aaSiCjArrff Configuration a specified analog output module in a specified system." "Returns the configuration parameters of a specified channel in a specified Configuration...
  • Page 197 Chapter 6 Planning Your Application Program $aaSiCjArrff Name Configuration Description Sets the output range, data format and slew rate for a specified channel of a specified analog output mod- ule in a specified system. Syntax $aaSiCjArrff(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure.
  • Page 198 Chapter 6 Planning Your Application Program Response !aa(cr) if the command is valid. ?aa(cr) if an invalid operation was entered. There is no response if the module detects a syntax error or communication error or if the specified ad- dress does not exist.
  • Page 199 Chapter 6 Planning Your Application Program $aaSiCjB Name Configuration Status Description Returns the configuration parameters of a specified channel specified analog output module of a specified system. Syntax $aaSiCjB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 200 Chapter 6 Planning Your Application Program #aaSiCj(data) Name Analog Data Out Description Sends a digital value from the host computer to a specified channel of a specified slot in a specified ADAM-5000/TCP system for output as an analog signal. Upon receipt, the analog output module in the specified slot will output an analog signal corre- sponding to the digital value received.
  • Page 201 Chapter 6 Planning Your Application Program > is a delimiter character indicating a valid command was received. ? delimiter character indicating the command was invalid. (cr) is the terminating character, carriage return (0Dh) Example command: #01S1C106.000(cr) response: >(cr) The command instructs the module in slot 1 of the ADAM-5000/TCP system at address 01h to output a value of 6 mA from it’s channel 1.
  • Page 202 Chapter 6 Planning Your Application Program $aaSiCj4 Name Start-Up Output Current/Voltage Configuration Description Stores a default output value in a specified channel. The output value will take effect upon startup or re- set. Syntax $aaSiCj4(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 203 Chapter 6 Planning Your Application Program The response from the ADAM-5000/TCP system at address 01h indicates the command has been re- ceived. Note: An analog output module requires a maximum of 6 milliseconds after it receives a Startup Output Current/Voltage Configuration command to let the settings take effect.
  • Page 204 Chapter 6 Planning Your Application Program $aaSiCj0 Name 4 mA Calibration Description Directs the specified channel to store parameters fol- lowing a calibration for 4 mA output Syntax $aaSiCj0(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 205 Chapter 6 Planning Your Application Program $aaSiCj1 Name 20 mA Calibration Description Directs the specified channel to store parameters fol- lowing a calibration for 20 mA output Syntax $aaSiCj1(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 206 Chapter 6 Planning Your Application Program $aaSiCj3hh Name Trim Calibration Description Trims the specified channel a specified number of units up or down Syntax $aaSiCj3hh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. SiCj identifies the I/O slot i (i : 0 to 7) and the chan- nel j (j : 0 to 3) of the module you want to calibrate.
  • Page 207 Chapter 6 Planning Your Application Program (cr) is the terminating character, carriage return (0Dh) Example command: $01S1C2314(cr) response: !01(cr) The command tells channel 2 of the analog output module in slot 1 of the ADAM- 5000/TCP system at address 01h to increase its output value by 20 (14h) counts which is approximately 30 µA.
  • Page 208 Chapter 6 Planning Your Application Program $aaSiCj6 Name Last Value Readback Description Returns either the last value sent to the specified channel by a #aaSiCj(data) command, or the start-up output current/voltage. Syntax $aaSiCj6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 209 Chapter 6 Planning Your Application Program (cr) is the terminating character, carriage return (0Dh) Example command: $01S2C16(cr) response: !0103.000(cr) The command tells channel 1 of the analog output module in slot 2 of the ADAM-5000/TCP system at address 01h to return the last output value it received from an Analog Data Out command, or its start-up output current /voltage.
  • Page 210: Digital Input/Output Command Set

    Chapter 6 Planning Your Application Program 6-4-5 Digital Input/Output Command Set Description Command Syntax Command Name "Returns the values of digital I/O $aaSi6 Digital Data In channels for a specified module" "Sets output values of a single digital output channel or of all digital output #aaSiBB(data)Digital Data Out channels simultaneously for a specified module."...
  • Page 211 Chapter 6 Planning Your Application Program !aa(dataoutput)(dataoutput)00(cr) if the command is valid. (ADAM-5050/5055/5056) !aa(dataoutput)0000(cr) if the command is valid. (ADAM-5060, ADAM-5068, ADAM-5069) ?aa(cr) if an invalid operation was entered. There is no response if the module detects a syntax error or communication error or if the specified ad- dress does not exist.
  • Page 212 Chapter 6 Planning Your Application Program #aaSiBB(data) Name Digital Data Out Description This command either sets a single digital output chan- sets digital output channels simultaneously. Syntax #aaSiBB(data)(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 213 Chapter 6 Planning Your Application Program Note that the number of channels on the ADAM- 5056 and ADAM-5060/5068/5069 differ. A 4-character hexadecimal value is used to set the channels, from 15 thru 0, of the ADAM-5056. A 2 character hexadecimal value is used to set the chan- nels, from 5 thru 0, of the ADAM-5060.
  • Page 214 Chapter 6 Planning Your Application Program 01h. Channels 2, 4, 5, 9 and 12 will be set to ON, and all other channels are set to OFF. command: #01S0003A(cr) response: >(cr) An output byte with value 3Ah (00111011) is sent to the digital output module (ADAM-5060) in slot 0 of the ADAM-5000/TCP system at address 01h.
  • Page 215 Chapter 6 Planning Your Application Program Read Channel Masking Status of ADAM-5050/5051/5052/5056/5060/ 5068/5069 Command Set $aaSiM Name Read Channel Masking Status Description Asks the specified module to return the masking sta- tus of digital output channels Syntax $aaSiM(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system.
  • Page 216 Chapter 6 Planning Your Application Program (cr) is the terminating character, carriage return (0Dh) Example command: $01S1M(cr) response: !011322(cr) The command asks the digital output module in slot 1 of the ADAM- 5000/TCP system at address 01h to return the masking status of all of its channels.
  • Page 217 $AASi7 (ADAM-5050 only) Name Read 5050 channel status Description The command requests to read 5050 channel status. Syntax $AASi7(cr) $ is a delimiter character. AA (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system. Si identifies the I/O slot i (i : 0 to 3). 7 is the command for the last value readback.
  • Page 219 Chapter 6 Planning Your Application Program ADAM-5080 Counter/Frequency Command Set Command Syntax Command Name Description Returns the module name from a specified $aaT Read Module Name ADAM-5000 system. Returns the firmware version code from a Read Firmware $aaF specified ADAM-5000 Version system Set slot index and...
  • Page 220: Table 6-10: Counter/Frequency Command Set Table

    Chapter 6 Planning Your Application Program Command Syntax Command Name Description Clear the counters of the specified $aaSiCj6 Clear Counter counter/frequency module The command requests the Read Overflow addressed module to return the status of the $aaSi7 Flag overflow flag of counter. Set initial counter value for counter of the Set Initial Counter @aaSiCjP(data)
  • Page 221 Chapter 6 Planning Your Application Program $aaT Name Read Module Name Description Returns the module name from a specified ADAM- 5000/TCP system. Syntax $aaT (cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 222 Chapter 6 Planning Your Application Program $aaF Name Read Firmware Version Description Returns the firmware version code from a specified ADAM-5000/TCP system. Syntax $aaF(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 223 Chapter 6 Planning Your Application Program $aaSiArrff Name Set Configuration Description Set slot index and counter mode. Syntax $aaSiArrff(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure. Si identifies the I/O slot i you want to configure.
  • Page 224 Chapter 6 Planning Your Application Program $aaSiB Name Read Configuration. Description The command requests the Configuration of slot Syntax $aaSiB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate. Si identifies the desired slot i B represents the configuration status command (cr) is the terminating character, carriage return (0Dh).
  • Page 225 Chapter 6 Planning Your Application Program #aaSi Name Read All Channel Counter (Frequency) Data Description Return the input value of all channels for the speci- fied input module for a specified system in engineer- ing unit only. Syntax #aaSi(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 226 Chapter 6 Planning Your Application Program Example command: #01S2(cr) response: If the response you got is in Counter mode, you’ll see one similar to the example below: >1235458013267521306934521463051832106549(cr) What you see here is actually the input values of all channels that is returned from slot 2 of the ADAM- 5000/TCP system at address 01h.
  • Page 227 Chapter 6 Planning Your Application Program Each actual frequency can be obtained by dividing the response value by 100. Therefore, taking an ex- ample of the value above, the actual frequency should be: actual frequency = 98700/100 = 987 If the response is: >0000F1000002000000031000000DD400(cr) The command requests the module in slot 2 of the ADAM-5000/TCP system at address 01h to return...
  • Page 228 Chapter 6 Planning Your Application Program #aaSiCj Name Read One Channel Counter (Frequency) Data Description The command will return the input value from one of the four channels of a specified module. Syntax #aaSiCj(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus address of the ADAM-5000/TCP sys- tem you want to interrogate.
  • Page 229 Chapter 6 Planning Your Application Program Example command: $01S3C2(cr) response: >0000000451(cr) The command requests the ADAM-5080 module in slot 3 of the ADAM-5000/TCP system at address 01h to return the input value of channel 2. The counter module responds that the input value of channel 2 is 451.
  • Page 230 Chapter 6 Planning Your Application Program $aaSi0(data) Name Set Digital filter Scale Description Set the filter seconds to start to measure the input signal. Syntax $aaSi0(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrate.
  • Page 231 Chapter 6 Planning Your Application Program $aaSi0 Name Read Digital filter scale Description Read the filter seconds to start to measure the input signal. Syntax $aaSi0(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrate.
  • Page 232 Chapter 6 Planning Your Application Program $aaSiCj5s Name Set Counter Start/Stop Description Request the addressed counter/frequency module to start or stop the counting. Syntax $aaSiCj5s(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 233 Chapter 6 Planning Your Application Program Example command: $01S3C251(cr) response: !01(cr) The command requests channel 2 of ADAM-5080 in slot 3 in ADAM-5000/TCP system at address 01h to start counter. 6-162 ADAM-5000/TCP User’s Manual...
  • Page 234 Chapter 6 Planning Your Application Program $aaSiCj5 Name Read counter Start/Stop Description Requests the addressed counter/frequency module to indicate whether counters are active. Syntax $aaSiCj5(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 235 Chapter 6 Planning Your Application Program Example command: $01S3C25(cr) response: !011(cr) The channel 2 of ADAM-5080 in slot 3 in ADAM- 5000/TCP system at address 01h is instructed to re- turn its counter status. The counter status is in start status.
  • Page 236 Chapter 6 Planning Your Application Program $aaSiCj6 Name Clear Counter Description Clear the counters of the specified counter/frequency module Syntax $aaSiCj6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 237 Chapter 6 Planning Your Application Program Example command: $01S3C26(cr) response: !01(cr) The command requests the channel 2 of ADAM- 5080 in slot 3 in ADAM-5000/TCP system at address 01h to clear counter value. 6-166 ADAM-5000/TCP User’s Manual...
  • Page 238 Chapter 6 Planning Your Application Program $aaSi7 Name Read Overflow Flag Description The command requests the addressed module to re- turn the status of the overflow flag of counter. Syntax $aaSi7(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 239 Chapter 6 Planning Your Application Program Example command: $01S37(cr) response: !0100000001(cr) The command requests the ADAM-5080 of slot 3 in ADAM- 5000/TCP system at address 01h to return the overflow value. The overflow value in channel 3 is The others are 00. 6-168 ADAM-5000/TCP User’s Manual...
  • Page 240 Chapter 6 Planning Your Application Program @aaSiCjP(data) Name Set Initial Counter Value Description Set initial counter value for counter of the specified counter module. Syntax @aaSiCjP(data)(cr) @ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
  • Page 241 Chapter 6 Planning Your Application Program @aaSiCjG Name Read Initial Counter Description Read initial counter value of specified module. Syntax @aaSiCjG(cr) @ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
  • Page 242 Chapter 6 Planning Your Application Program $aaSiCjAhEs Name Set Alarm Disable/Latch Description The addressed counter module is instructed to set alarm disable or latch. Syntax $aaSiCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 243 Chapter 6 Planning Your Application Program Example command: $01S0C1ALED(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to disable its Low alarm function. The module confirms that its Low alarm function has been disabled. 6-172 ADAM-5000/TCP User’s Manual...
  • Page 244 Chapter 6 Planning Your Application Program $aaSiCjAh Name Read Alarm Disable/Latch Description Return the alarm mode for the specified channel. Syntax $aaSiCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 245 Chapter 6 Planning Your Application Program Example command: $01S0C1AL(cr) response: !01L(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to return its Low alarm mode. The system responds that it is latched. 6-174 ADAM-5000/TCP User’s Manual...
  • Page 246 Chapter 6 Planning Your Application Program $aaSiCjCh Name Clear Alarm Status Description Returns the alarm status to normal Syntax $aaSiCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system. SiCj identifies the desired slot i and the desired chan- nel j.
  • Page 247 Chapter 6 Planning Your Application Program Example command: $01S0C1CL(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 01h is instructed to set its Low alarm state to normal. The system confirms it has done so accordingly. 6-176 ADAM-5000/TCP User’s Manual...
  • Page 248 Chapter 6 Planning Your Application Program $aaSiCjAhCSkCn Name Set Alarm Connection Description Connect the High/Low alarm of the specified input channel to the specified digital output in the ad- dressed ADAM-5000/TCP system Syntax $aaSiCjAhCSkCn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 249 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1ALCS1C0(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 250 Chapter 6 Planning Your Application Program $aaSiCjRhC Name Read Alarm Connection Description Return the High/Low alarm limit output connection of a specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 251 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1RLC(cr) response: !01SØC1(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to read its Low alarm output connection. The system responds that the Low alarm output con- nects to the digital output at point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 252 Chapter 6 Planning Your Application Program $aaSiCjAhU(data) Name Set Alarm Limit Description Set the High/Low alarm limit value for the specified input channel of a specified ADAM-5000/TCP sys- tem. Syntax $aaSiCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 253 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01SØC1AHU0000000020(cr) response: !01(cr) The channel 1 of slot 0 of ADAM-5080 in ADAM- 5000/TCP system at address 01h is configured to set High alarm limit value to 20. 6-182 ADAM-5000/TCP User’s Manual...
  • Page 254 Chapter 6 Planning Your Application Program $aaSiCjRhU Name Read Alarm Limit Description Return the High/Low alarm limit value for the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 255 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01SØC1RHU(cr) response: !010000000026(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM-5000/TCP system at address 01h is config- ured to return the High alarm limit value. The High alarm limit value is 26.
  • Page 256 Chapter 6 Planning Your Application Program $aaSiCjS Name Read Alarm Status Description Read whether an alarm occurred for the specified input channel in the specified ADAM-5000/TCP sys- Syntax $aaSiCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 257 Chapter 6 Planning Your Application Program Example command: $01SØC1S response: !0111(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM-5000/TCP system at address 01h is config- ured to read alarm status. The High alarm has occurred and low alarm has oc- 6-186 ADAM-5000/TCP User’s Manual...
  • Page 258 Chapter 6 Planning Your Application Program 6-4-6 WatchDog Timer Command Set $AAXdddd Description Set WDT timeout value $AAXdddd(cr) Syntax dddd is the WDT timeout value in engineering units. (seconds) Response Success: !AA(cr) Fail: ?AA(cr) Example Command: $01X1234 Response:!01...
  • Page 259 Planning Your Application Program Chapter 6 Chapter 6 $AAXR Description Get WDT timeout value $AAXR(cr) Syntax dddd is the WDT timeout value in engineering units. (seconds) Response Success: !AA(cr) Fail: ?AA(cr) Example Command: $01XR Response: !011234 $AAXEWmm Description Set WDT timeout slot enable mask $AAXEWmm(cr) Syntax mm indicates a 2-character...
  • Page 260 Planning Your Application Program Chapter 6 $AAXER Description Get WDT timeout slot enable mask $AAXER(cr) Syntax mm indicates a 2-character hexadecimal value representing the WDT timeout slot enable mask of the ADAM-5000. Response Success: !AAmm(cr) Fail: ?AA(cr) Example Command: $01XER Response: !01FF $AAXSiDmmmm Description...
  • Page 261 Planning Your Application Program ADAM-5081 Counter/Frequency Command Set Command Syntax Command Name Description Returns the module name from a specified $aaT Read Module Name ADAM-5000 system. Returns the firmware version code from a Read Firmware $aaF specified ADAM-5000 Version system Set slot index and $aaSiArrff Set Configuration...
  • Page 262 Chapter 6 Planning Your Application Program Command Syntax Command Name Description Clear the counters of the specified $aaSiCj6 Clear Counter counter/frequency module The command requests the Read Overflow addressed module to return the status of the $aaSi7 Flag overflow flag of counter. Set initial counter value for counter of the Set Initial Counter @aaSiCjP(data)
  • Page 263 Chapter 6 Planning Your Application Program $aaT Name Read Module Name Description Returns the module name from a specified ADAM- 5000/TCP system. Syntax $aaT (cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 264 Chapter 6 Planning Your Application Program $aaF Name Read Firmware Version Description Returns the firmware version code from a specified ADAM-5000/TCP system. Syntax $aaF(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate.
  • Page 265 Chapter 6 Planning Your Application Program $aaSiArrff Name Set Configuration Description Set slot index and counter mode. Syntax $aaSiArrff(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to configure. Si identifies the I/O slot i you want to configure.
  • Page 266 Chapter 6 Planning Your Application Program $aaSiB Name Read Configuration. Description The command requests the Configuration of slot Syntax $aaSiB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system you want to interrogate. Si identifies the desired slot i B represents the configuration status command (cr) is the terminating character, carriage return (0Dh).
  • Page 267 Chapter 6 Planning Your Application Program #aaSi Name Read All Channel Counter (Frequency) Data Description Return the input value of all channels for the speci- fied input module for a specified system in engineer- ing unit only. Syntax #aaSi(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system you want to interrogate.
  • Page 268 Chapter 6 Planning Your Application Program Example command: #01S2(cr) response: If the response you got is in Counter mode, you’ll see one similar to the example below: >1235458013267521306934521463051832106549(cr) What you see here is actually the input values of all channels that is returned from slot 2 of the ADAM- 5000/TCP system at address 01h.
  • Page 269 Chapter 6 Planning Your Application Program Each actual frequency can be obtained by dividing the response value by 100. Therefore, taking an ex- ample of the value above, the actual frequency should be: actual frequency = 98700/100 = 987 If the response is: >0000F1000002000000031000000DD400(cr) The command requests the module in slot 2 of the ADAM-5000/TCP system at address 01h to return...
  • Page 270 Chapter 6 Planning Your Application Program #aaSiCj Name Read One Channel Counter (Frequency) Data Description The command will return the input value from one of the four channels of a specified module. Syntax #aaSiCj(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus address of the ADAM-5000/TCP sys- tem you want to interrogate.
  • Page 271 Chapter 6 Planning Your Application Program Example command: $01S3C2(cr) response: >0000000451(cr) The command requests the ADAM-5080 module in slot 3 of the ADAM-5000/TCP system at address 01h to return the input value of channel 2. The counter module responds that the input value of channel 2 is 451.
  • Page 272 Chapter 6 Planning Your Application Program $aaSi0(data) Name Set Digital filter Scale Description Set the filter seconds to start to measure the input signal. Syntax $aaSi0(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrate.
  • Page 273 Chapter 6 Planning Your Application Program $aaSi0 Name Read Digital filter scale Description Read the filter seconds to start to measure the input signal. Syntax $aaSi0(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system which is to be calibrate.
  • Page 274 Chapter 6 Planning Your Application Program $aaSiCj5s Name Set Counter Start/Stop Description Request the addressed counter/frequency module to start or stop the counting. Syntax $aaSiCj5s(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 275 Chapter 6 Planning Your Application Program Example command: $01S3C251(cr) response: !01(cr) The command requests channel 2 of ADAM-5080 in slot 3 in ADAM-5000/TCP system at address 01h to start counter. 6-162 ADAM-5000/TCP User’s Manual...
  • Page 276 Chapter 6 Planning Your Application Program $aaSiCj5 Name Read counter Start/Stop Description Requests the addressed counter/frequency module to indicate whether counters are active. Syntax $aaSiCj5(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 277 Chapter 6 Planning Your Application Program Example command: $01S3C25(cr) response: !011(cr) The channel 2 of ADAM-5080 in slot 3 in ADAM- 5000/TCP system at address 01h is instructed to re- turn its counter status. The counter status is in start status.
  • Page 278 Chapter 6 Planning Your Application Program $aaSiCj6 Name Clear Counter Description Clear the counters of the specified counter/frequency module Syntax $aaSiCj6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 279 Chapter 6 Planning Your Application Program Example command: $01S3C26(cr) response: !01(cr) The command requests the channel 2 of ADAM- 5080 in slot 3 in ADAM-5000/TCP system at address 01h to clear counter value. 6-166 ADAM-5000/TCP User’s Manual...
  • Page 280 Chapter 6 Planning Your Application Program $aaSi7 Name Read Overflow Flag Description The command requests the addressed module to re- turn the status of the overflow flag of counter. Syntax $aaSi7(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of the ADAM-5000/ TCP system.
  • Page 281 Chapter 6 Planning Your Application Program Example command: $01S37(cr) response: !0100000001(cr) The command requests the ADAM-5080 of slot 3 in ADAM- 5000/TCP system at address 01h to return the overflow value. The overflow value in channel 3 is The others are 00. 6-168 ADAM-5000/TCP User’s Manual...
  • Page 282 Chapter 6 Planning Your Application Program @aaSiCjP(data) Name Set Initial Counter Value Description Set initial counter value for counter of the specified counter module. Syntax @aaSiCjP(data)(cr) @ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
  • Page 283 Chapter 6 Planning Your Application Program @aaSiCjG Name Read Initial Counter Description Read initial counter value of specified module. Syntax @aaSiCjG(cr) @ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal address of the ADAM-5000/TCP system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
  • Page 284 Chapter 6 Planning Your Application Program $aaSiCjAhEs Name Set Alarm Disable/Latch Description The addressed counter module is instructed to set alarm disable or latch. Syntax $aaSiCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 285 Chapter 6 Planning Your Application Program Example command: $01S0C1ALED(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to disable its Low alarm function. The module confirms that its Low alarm function has been disabled. 6-172 ADAM-5000/TCP User’s Manual...
  • Page 286 Chapter 6 Planning Your Application Program $aaSiCjAh Name Read Alarm Disable/Latch Description Return the alarm mode for the specified channel. Syntax $aaSiCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 287 Chapter 6 Planning Your Application Program Example command: $01S0C1AL(cr) response: !01L(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to return its Low alarm mode. The system responds that it is latched. 6-174 ADAM-5000/TCP User’s Manual...
  • Page 288 Chapter 6 Planning Your Application Program $aaSiCjCh Name Clear Alarm Status Description Returns the alarm status to normal Syntax $aaSiCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system. SiCj identifies the desired slot i and the desired chan- nel j.
  • Page 289 Chapter 6 Planning Your Application Program Example command: $01S0C1CL(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 01h is instructed to set its Low alarm state to normal. The system confirms it has done so accordingly. 6-176 ADAM-5000/TCP User’s Manual...
  • Page 290 Chapter 6 Planning Your Application Program $aaSiCjAhCSkCn Name Set Alarm Connection Description Connect the High/Low alarm of the specified input channel to the specified digital output in the ad- dressed ADAM-5000/TCP system Syntax $aaSiCjAhCSkCn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 291 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1ALCS1C0(cr) response: !01(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 292 Chapter 6 Planning Your Application Program $aaSiCjRhC Name Read Alarm Connection Description Return the High/Low alarm limit output connection of a specified input channel in the addressed ADAM- 5000/TCP system Syntax $aaSiCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 293 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01S0C1RLC(cr) response: !01SØC1(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000/ TCP system at address 01h is instructed to read its Low alarm output connection. The system responds that the Low alarm output con- nects to the digital output at point 0 of slot 1 in the same ADAM-5000/TCP system.
  • Page 294 Chapter 6 Planning Your Application Program $aaSiCjAhU(data) Name Set Alarm Limit Description Set the High/Low alarm limit value for the specified input channel of a specified ADAM-5000/TCP sys- tem. Syntax $aaSiCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 295 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01SØC1AHU0000000020(cr) response: !01(cr) The channel 1 of slot 0 of ADAM-5080 in ADAM- 5000/TCP system at address 01h is configured to set High alarm limit value to 20. 6-182 ADAM-5000/TCP User’s Manual...
  • Page 296 Chapter 6 Planning Your Application Program $aaSiCjRhU Name Read Alarm Limit Description Return the High/Low alarm limit value for the speci- fied input channel in the addressed ADAM-5000/ TCP system Syntax $aaSiCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 297 Chapter 6 Planning Your Application Program (cr) represents terminating character, carriage return (0Dh) Example command: $01SØC1RHU(cr) response: !010000000026(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM-5000/TCP system at address 01h is config- ured to return the High alarm limit value. The High alarm limit value is 26.
  • Page 298 Chapter 6 Planning Your Application Program $aaSiCjS Name Read Alarm Status Description Read whether an alarm occurred for the specified input channel in the specified ADAM-5000/TCP sys- Syntax $aaSiCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadeci- mal Modbus network address of an ADAM-5000/ TCP system.
  • Page 299 Chapter 6 Planning Your Application Program Example command: $01SØC1S response: !0111(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM-5000/TCP system at address 01h is config- ured to read alarm status. The High alarm has occurred and low alarm has oc- 6-186 ADAM-5000/TCP User’s Manual...
  • Page 300: Appendix A Design Worksheets

    Appendix A Design Worksheets...
  • Page 301 Appendix A Design Worksheets An organized system configuration will lead to efficient performance and reduce engineer effort. This Appendix provides the necessary worksheet, helping users to configure their DA&C system in order. Follow these working steps to build up your system relational document: Step 1: Asking questions and getting answers for your control strat- egy.
  • Page 302: Table A-1: I/O Data Base

    Appendix A Design Worksheets Module Voltage of Function Input or Current of Special Module Equipment Output Area Type Product Range Range Requirements Table A-1: I/O Data Base ADAM-5000/TCP User’s Manual...
  • Page 303 Appendix A Design Worksheets Step 3: Mapping the I/O data base into ADAM-5000/TCP system. 1) In column A, note the ADAM-5000/TCP IP addresses mapped for individual function areas. 2) In column B, list the I/O module’s product number. 3) In column C, enter the maximum number of I/O points available per module.
  • Page 304: Table A-2: Summary Required Modules

    Appendix A Design Worksheets <A> <B> <C> <D> <E> <F> <G> Total I/O ADAM-5000/TCP I/O Module I/O Points I/O Module Spare I/O Total I/O Points IP Address Product No. per Module Required Modules Modules Required Table A-2: Summary Required Modules ADAM-5000/TCP User’s Manual...
  • Page 305: Table A-3: Table For Programming

    Appendix A Design Worksheets Step 4: Implement the Modbus address in to the I/O table. ADAM-5000/TCP I/O Module Channel Equipment & IP Address I/O Type I/O Address Tag Name Description Slot No. Number Table A-3: Table for Programming ADAM-5000/TCP User’s Manual...
  • Page 306 Appendix A Design Worksheets These several worksheets are very useful to hardware wiring and software integration, please make copies to establish your own system configuration documentation. ADAM-5000/TCP User’s Manual...
  • Page 307 Appendix A Design Worksheets ADAM-5000/TCP User’s Manual...
  • Page 308: Appendix B Data Formats And I/O Ranges

    Appendix B Data Formats and I/O Ranges...
  • Page 309: B.1 Analog Input Formats

    Appendix B Data Formats and I/O Ranges B.1 Analog Input Formats The ADAM analog input modules can be configured to transmit data to the host in Engineering Units. Engineering Units Data can be represented in Engineering Units by setting bits 0 and 1 of the data format/checksum/integration time parameter to 0.
  • Page 310 Appendix B Data Formats and I/O Ranges Example 1 The input value is -2.65 V and the corresponding analog input module is configured for a range of ±5 V. The response to the Analog Data In command is: -2.6500(cr) Example 2 The input value is 305.5ºC.
  • Page 311: Analog Input Ranges - Adam-5017

    Appendix B Data Formats and I/O Ranges B.2 Analog Input Ranges - ADAM-5017 Input Range Data Displayed Actual Module Range +F.S. Zero -F.S. Code Formats Resolution Value Description Engineering +10.000 ±00.000 1 mV Units 10.000 Reading/ ±10 V % of FSR +100.00 ±000.00 0.01%...
  • Page 312: Analog Input Ranges - Adam-5018/5018P

    Appen Data Formats and I/O Ranges dix B Analog Input Ranges - ADAM-5018 Input Range Data Displayed Actual Module Range +F.S. Zero -F.S. Code Formats Resolution Value Description Engineering +15.000 ±00.000 -15.000 1 µV Units Reading/ ±15 mV % of FSR +100.00 ±000.00 -100.00...
  • Page 313 Appendix B Data Formats and I/O Ranges Maximum Minimum Range Input Range Displayed Actual Module Data Formats Specified Specified Code Description Resolution Value Signal Signal Engineering +760.00 +000.00 0.1°C Units Type J Reading/ Thermocouple % of FSR +100.00 +000.00 0.01% 0°C to 760°C Two's 7FFF...
  • Page 314 Maximum Minimum Range Input Range Data Displayed Actual Module Specified Specified Code Description Formats Resolution Value Signal Signal Engineering +760.00 +000.00 0.1°C Units Type J Reading/ Thermocouple % of FSR +100.00 +000.00 0.01% 0°C to 760°C Two's 7FFF 0000 1 LSB Complement Engineering +1370.0...
  • Page 315 Displa Input Range Data Actual Module Range +F.S. Zero -F.S. Code Formats Resol Value Description ution Engineering +15.000 ±00.000 1 µV Units 15.000 Reading/ ±15 mV % of FSR +100.00 ±000.00 0.01% 100.00 1000 Two's 7FFF 0000 8000 1 LSB Complement Engineering +50.000...
  • Page 316 Maximum Minimum Range Input Range Data Displayed Actual Module Specified Specified Code Description Formats Resolution Value Signal Signal Engineering +760.00 +000.00 0.1°C Units Type J Reading/ Thermocouple % of FSR +100.00 +000.00 0.01% 0°C to 760°C Two's 7FFF 0000 1 LSB Complement Engineering +1370.0...
  • Page 317: Analog Input Ranges - Adam-5017H/5017Uh

    Appendix B Data Formats and I/O Ranges B.4 Analog Input Ranges - ADAM-5017H Range code Input Range Data Formats +Full Scale Zero -Full Scale Displayed Resolution ±10 V Engineering 2.7 mV Two's Comp 0FFF EFFF 0 ~ 10 V Engineering Don't care 2.7 mV Two's Comp...
  • Page 318 Appendix B Data Formats and I/O Ranges B.4.1 Analog Input Ranges - ADAM-5017UH Range Input +Full -Full Displayed Data Formats Zero Code Range Scale Scale Resolution ±10 V Engineering +10.000 +00.000 -10.000 1 mV Two's Comp 0FFF 7FFF 0 ~ 10 V Engineering +10.000 +00.000...
  • Page 319: B.5 Analog Output Formats

    Appendix B Data Formats and I/O Ranges B.5 Analog Output Formats You can configure ADAM analog output modules to receive data from the host in Engineering Units. Engineering Units Data can be represented in engineering units by setting bits 0 and 1 of the data format/checksum/integration time parameter to 0.
  • Page 320: B.7 Adam-5013 Rtd Input Format And Ranges

    Appendix B Data Formats and I/O Ranges B.7 ADAM-5013 RTD Input Format and Ranges Maximum Minimum Input Range Range Displayed Specified Specified Description Data Formats Code (hex) Resolution Signal Signal 100 Ohms Platinum Engineering RTD -100 to 100° C +100.00 -100.00 ±0.1°...
  • Page 321 Appendix B Data Formats and I/O Ranges Note: This table continued from previous page. 100 Ohms Platinum Engineering RTD 0 to 600° C +600.00 +000.00 ±0.6° C Units a=0.00392 120 Ohms Nickel Engineering +100.00 -80.00 ±0.1° C -80 to Units 100°...
  • Page 322 Appendix B Data Formats and I/O Ranges ADAM 5000 AI/AO Scaling Module Type Range Low Range High Scale Low Scale High Data Format -100 65535 U16B 65535 U16B 385(IEC) 65535 U16B 65535 U16B -100 65535 U16B 5013RTD 65535 U16B 395(JIS) 65535 U16B 65535...
  • Page 323 Appendix B Data Formats and I/O Ranges B-13 ADAM-5000/TCP User’s Manual...
  • Page 324: Appendix C Grounding Reference

    Appendix C Grounding Reference...
  • Page 325 Appendix C Grounding Reference Field Grounding and Shielding Application Overview Unfortunately, it’s impossible to finish a system integration task at one timC. We always meet some trouble in the field. A communication net- work or system isn’t stable, induced noise or equipment is damaged or there are storms.
  • Page 326: C.1 Grounding

    Appendix C Grounding Reference C.1 Grounding The ‘Earth’ for reference Figure C-1: Think the EARTH as GROUND. As you know, the EARTH cannot be conductivC. However, all buildings lie on, or in, the EARTH. Steel, concrete and associated cables (such as lighting arresters) and power system were connected to EARTH.
  • Page 327: Figure C-2: Grounding Bar

    Appendix C Grounding Reference The ‘Frame Ground’ and ‘Grounding Bar’ Single Phase, Three Line 110V 220V 110V Neutral is the physical cable from Generator. Ground is the local physical cable that connected to Ground Bar . Figure C-2: Grounding Bar Grounding is one of the most important issues for our system.
  • Page 328: Figure C-3: Normal Mode And Common Modc

    Appendix C Grounding Reference Figure C-3: Normal mode and Common modC Normal Mode and Common Mode Have you ever tried to measure the voltage between a live circuit and a concrete floor? How about the voltage between neutral and a concrete floor? You will get nonsense values.
  • Page 329: Figure C-4: Normal Mode And Common Modc

    Appendix C Grounding Reference Figure C-4: Normal mode and Common modC • Ground-pin is longer than others, for first contact to power system and noise bypass. • Neutral-pin is broader than LivC-pin, for reducing contact impedancC. ADAM-5000/TCP User’s Manual...
  • Page 330: Figure C-5: The Purpose Of High Voltage Transmission

    Appendix C Grounding Reference Wire impedance Figure C-5: The purpose of high voltage transmission • What’s the purpose of high voltage transmission? We have all seen high voltage transmission towers. The power plant raises the voltage while generating the power, then a local power station steps down the voltagC.
  • Page 331: Figure C-6: Wire Impedancc

    Appendix C Grounding Reference Figure C-6: wire impedancC ADAM-5000/TCP User’s Manual...
  • Page 332 Appendix C Grounding Reference Single Point Grounding Single Point Grounding ADAM ADAM ADAM ADAM 401 3 401 4 401 7 402 1 Power Supply Those devices will influence each other with swiftly load change. Figure C-7: Single point grounding (1) •...
  • Page 333: Figure C-8: Single Point Grounding (2

    Appendix C Grounding Reference Single Point Grounding +24 V A D A M A D A M A D A M A D A M 401 3 401 4 401 7 402 1 Power Supply +16V +18V +20V +22V +22V +22V A D A M A D A M...
  • Page 334: C.2 Shielding

    Appendix C Grounding Reference C.2 Shielding 2-1 Cable Shield Figure C-9: Single isolated cable • Single isolated cable The diagram shows the structure of an isolated cablC. You see the iso- lated layer which is spiraled Aluminum foil to cover the wires. This spi- raled structure makes a layer for shielding the cables from external noisC.
  • Page 335: Figure C-10: Double Isolated Cable

    Appendix C Grounding Reference Figure C-10: Double isolated cable • Double isolated cable Figure 10 is an example of a double isolated cablC. The first isolating layer of spiraled aluminum foil covers the conductors. The second isola- tion layer is several bare conductors that spiral and cross over the first shield layer.
  • Page 336: Figure C-11: System Shielding

    Appendix C Grounding Reference System Shielding ADA M ADA M ADA M ADA M 4520 4013 4017 4021 RS-232 Termi nal Block +24V Never stripping too long of the plastic cable cover. Power * Cascade those shields together by Soldering Supply Connect the shield to Frame-Ground of DC Power Supply.
  • Page 337: Figure C-12: The Characteristic Of The Cable

    Appendix C Grounding Reference Figure C-12: The characteristic of the cable • The characteristic of the cable Don’t strip off too much insulation for soldering. This could change the effectiveness of the Shielded- Twisted-Pair cable and open a path to in- troduce unwanted noise. C-14 ADAM-5000/TCP User’s Manual...
  • Page 338: Figure C-13: System Shielding (1

    Appendix C Grounding Reference Figure C-13: System Shielding (1) • Shield connection (1) If you break into a cable, you might get in a hurry to achieve your goal. As in all electronic circuits, a signal will use the path of least resistancC. If we make a poor connection between these two cables we will make a poor path for the signal.
  • Page 339: Figure C-14:System Shielding (2

    Appendix C Grounding Reference Figure C-14:System Shielding (2) • Shield connection (2) The previous diagram shows you that the fill soldering just makes an easier way for the signal. C-16 ADAM-5000/TCP User’s Manual...
  • Page 340: C.3 Noise Reduction Techniques

    Appendix C Grounding Reference C.3 Noise Reduction Techniques • Isolate noise sources in shielded enclosures. • Place sensitive equipment in shielded enclosure and away from com- puter equipment. • Use separate grounds between noise sources and signals. • Keep ground/signal leads as short as possiblC. •...
  • Page 341: C.4 Check Point List

    Appendix C Grounding Reference C.4 Check Point List • Follow the single point grounding rule? • Normal mode and common mode voltage? • Separate the DC and AC ground? • Reject the noise factor? • The shield is connected correctly? •...

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents

Save PDF