Home
Manual
Contents
1. WB ADAM 5000 TCP User s Manual Planning Your Application Program KALETA Cia Send a command and receiving response by TCP ADAMSKTCP Open v ADAMSKTCP Connect v lt ADAMSKTCP SendReceiveSKTCPCmd v ADAMSKTCP_Disconnect v ADAMSKTCP_Close ADAM 5000 TCP User s Manual 6 5 Chapter 6 Og Planning Your Application Program To receive stream data coming from ADAM 5000 TCP Series s ADAMSKTCP Open v ADAMSKTCP Add5KTCPForStream v hEvent CreateEvent A Win32 API v ADAMSKTCP StartStream amp hEvent v lt N hEvent signaled Y ADAMSKTCP ReadStreamData v lt gt ADAMSKTCP StopStream v ADAMS5KTCP_Close KXMADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 To receive alarm information from ADAM 5000 TCP s ADAMSKTCP_Open v ADAMSKTCP Add5KTCPForStream y hEvent CreateEvent A Win32 API Vv IADAMSKTCP SetStreamAlarmState ADAMSKTCP ReceiveStreamWhenAlarm v lt A ADAMSKTCP _StartStream amp hEvent v hEvent signaled ADAMSKTCP_ReadStreamDatat v lt ADAMSKTCP_ReadAlarmInfo Y y
2. SDRAM ROM N Vv e D A i 25MHZ l AD LJ gt Network Component lt gt CPU lt gt Ul a 10MHZ Local DO RJA5 Bus e COUNTER A A 5V GND e Power Converter 10V 30V e Figure 1 3 Function block diagram 1 4 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 ADAM 3 3V 5V Run Link Tx Rx Collide Speed Reset o 0000 LAN Rx Tx Bas Figure 1 4 ADAM 5000 TCP LED Indicators EEJ ADAM 5000 TCP User s Manual Understanding Your System Chapter 1 D Q G 4 6 Q 8 3 3V Red indicator This LED is normal on when ARM CPU is pow ered on 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 Tx Green indicator This LED is designed for the spare function COM port transit indicator in the future Rx Green indicator This LED is designed for the spare function COM port receive indicator in the future Collide Green indicator This LED blinks
3. Using ADAM 5000 TCP Series DLL Driver Planning Your Using ADAM 5000 TCP Series Command Set Application Program Appendix Relational Document amp Technical Information If you want to read about Go to page DLL Driver 6 2 Programming Flow6 4 Programming Flow 6 32 Command Structure 6 33 Modbus Function Code Introduction 6 39 Apply with ASCII Command 6 40 System Command Set 6 48 Analog Input Command Set 6 127 Analog Output Command Set 6 140 Chapter 6 Og Planning Your Application Program 6 1 6 2 Introduction After completing the system configuration you can begin to plan the application program This chapter introduces two programming tools for users to execute system data acquisition and control The DLL drivers and command sets provide a friendly interface between your applica tions and ADAM 5000 TCP Series system DLL Dynamic Link Library Driver The Dynamic Link Library DLL enables you to quickly and easily write Windows applications for ADAM 5000 TCP Series systems The library sup ports Borland C Delphi Visual C and Visual Basic Since 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 pat
4. Range Input Range a a Displayed Actual Module Code Description Data Formats Sear eet Resolution Value Gpgineering 4760 00 000 00 01 Type J OEh Thermocouple of FSR 100 00 000 00 0 01 ad 0 C to 760 C Comp ment 7FFF 0000 1 LSB Gpgineering 443700 00000 01 Type K OFh Thermocouple of FSR 4100 00 000 00 0 01 bd 0 C to 1370 Complement 7FFF 0000 1 LSB Engineering 4400 00 100 00 04 Type T Thermocouple g 5 Reading 10h oet of FSR 100 00 025 00 0 01 i0 400 TE Gornpleimeni 7FFF E000 1 LSB Engineering 41000 00 0000 0 01 Type E A ADAM 5018 11h Thermocouple of FSR 100 00 000 00 0 01 Goo OC to 1000 _ Gorplsnsn 7FFF 0000 1 LSB neon 1750 0 0500 0 0 1 Type R Thermocouple Reading 12h scree of FSR 100 00 028 57 0 01 i 750 C eer Gam ert 7FFF 2492 1 LSB Engineering 1750 0 0500 00 01 Type S Thermocouple 5 a Reading 13h um of FSR 100 00 028 57 0 01 i 750 C Complement 7FFF 2492 1 LSB Engineering 1800 0 0500 0 01 Type B Thermocouple a Reading 14h SOCIS of FSR 100 00 027 77 0 01 To 800 C PA Complement 7FFF 2381 1 LSB EXS ADAM 5000 TCP User s Manual Maximum Minimum Range Input Range Data p es Displayed Actual Module Code Description Formats Specified Specified Resolution Value Signal Signal Engineering 4760 00
5. r 15 Zero Calb rv co ENE v cH EN Bono Bue Figure 5 12 setting range and integration time Note Windows Utility allows user to Enable Disable the current sta tus display Analog Output Module Selecting an ADAM 5024 Analog Output Module users can certainly read the information about location type value and Description Actu ally ADAM 5024 is designed with four different outputs channel so there are four channel configuration screens for signal range and output value setting in the Utility Once the setting value sends out the system will read back the value immediately to guarantee a correct analog output signal ADAM 5000 TCP User s Manual 5 11 Chapter 5 System Hardware Configuration PEN EE bare wang iad eke SOOTY Gat 172 MLE NL tints rere Coa Orr Chart secure napeee h ne thae oo inng Deh an NE meen omme OE 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 four individual channel configuration screens AOE Fr o TTT DE Oral raet Orsa Ort a Ogden 25
6. Using this Chapter System Hardware Configuration Install Utility Software T O Module Configuration Network Setting V O Module Calibration System Configuration Guide Security Setting Terminal Emulation UDP Data Stream Modbus Data Gateway Using ADAM 5000 TCP Seri s DLL Driver Planning Your Using ADAM 5000 TCP Series Command Set Application Program Appendix Relational Document amp Technical Information If you want to read about Go to page Determining the proper environment 3 2 Installing your main unit and module 3 3 System Mounting 3 4 Wiring and Connection 3 6 System Network Connection 3 8 Assigning address for I O modules 3 10 Chapte EI Hardware Installation Guide 3 1 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 e ADAM 5000 TCP Series main unit with two blank slot covers e ADAM 4000 5000 Products Utility CD 3 1 2 System Requirement e Host computer IBM PC compatible computer with 486 CPU Pentium is recom mended Microsoft 95 98 2000 NT 4 0 SP3 or SP4 or higher versions Atleast 32 MB RAM 20MB of hard disk space available
7. EEJ ADAM 5000 TCP User s Manual Understanding Your System Chapi er 1 1 3 4 Power e Unregulated 10 to 30V c e Protection Over voltage and power reversal 1 3 5 Isolation Ethernet Communication 1500 V e T O Module 3000 V e 1 3 6 Mechanical e Case KJW with captive mounting hardware e Plug in Screw Terminal Block Accepts 0 5 mm 2 to 2 5 mm 2 I 12 or 2 14 to 22 AWG 1 3 7 Environment e Operating Temperature 10 to 70 C 14 to 158 F e Storage Temperature 25 to 85 C 13 to 185 F e Humidity 5 to 95 non condensing e Atmosphere No corrosive gases NOTE Equipment will operate below 30 humidity However static electricity problems occur much more frequently at lower hu midity levels Make sure you take adequate precautions when you touch the equipment Consider using ground straps anti static floor coverings etc if you use the equipment in low humidity environments 1 3 8 Dimensions The following diagrams show the dimensions of the system unit and an I O unit All dimensions are in millimeters 355 0 331 5 309 5 TH redd dd dl Dom 51 tm 31 0 510 2 k RT kT HT io 6000 Figure 1 2 ADAM 5000 TCP system amp I O module dimensions ADAM 5000 TCP User s Manual 1 7 Chapt er 1 Understanding Your System 1 3 9 Basic Function Block Diagram
8. Function Code 08 Echoes received query message Message can be any length up to half the length of the data buffer minus 8 bytes Request message format for function code 08 Command Body Any data length limited to approximately half the length of the data buffer Station Address Function Code ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Response message format for function code 08 Command Body StationAddress FunctionCode Data bytes received Example 01 08 00 02 00 04 Function Code 15 OF hex Forces each coil in a sequence of coils to either ON or OFF Request message format for function code 15 Station Function Address Address Byte Example Request to force a series of 10 coils starting at address 00020 14 hex in ADAM 5000 TCP 01 OF 00 14 000A 02 CD01 The query data contents are two bytes CD 01 hex equal to 1100 1101 0000 0001 binary The binary bits are mapped to the addresses in the following way Btl 1 0 O 1 10 1 00000 001 Address 000XX 27 26 25 24 23 2221 20 2928 Response message format for function code 15 The normal responses return the station address function code start address and requested number of coil forced Command Body Start Start Requested Requested Station Function Address Code Address Address Numberof Coill Numberof Coil High Byte Low Byte High Byte Low Byte Example
9. data it means the channel is invalid ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 cr is the terminating character carriage return ODh Example command 01S3 cr response gt 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 O1h 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 C 20 00 C 40 12 C ADAM 5000 TCP User s Manual 6 53 Chapter 6 Og 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 SiCj identifies the desired slot i 1 0 to 7 and the desired channel j j 0 to 2 of the module you want to interrogate cr is the terminating character carriage return ODh Response gt data 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 gt delimiter character indicating a valid command was received
10. data is initial value from 0 to 4294967295 Be aware that data has 10 characters cr is the terminating character carriage return ODh Example command 01S3C2G cr response 010000004369 cr The channel 2 of ADAM 5080 in slot 3 in ADAM 5000 TCP system at address Oth is instructed to re turn counter initial value The initial counter value is 4369 eit ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAhEs Name Description Syntax Response Set Alarm Disable Latch The addressed counter module is instructed to set alarm disable or latch 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 SiCj identifies the desired slot i and the desired chan nel j AhEs is the command for setting Alarm Disable Latch Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates alarm enable disable and can have the value D Disable E Enable cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system
11. ADAM 5000 TCP User s Manual 6 83 Chapter 6 Og Planning Your Application Program aaSiB Name Description Syntax Response Example Read Data Format Returns the data format for a specified analog input module in a specified system 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 Si identifies the I O slot of the ADAM 5000 TCP sys tem containing the ADAM 5017H 5017UH module you want to interrogate B represents the read data format command cr is the terminating character carriage return ODh aaFFff 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system ff represents the 2 character hexadecimal code of the data format 00 is for engineering unit format 02 is for two s complement format cr is the terminating character carriage return ODh command 01S3B cr response 01FF00 cr The ADAM 5017H 5017UH module in slot 3 of the ADAM 5000 TCP system at address 01h responds that it is configured for engineering unit data format AD
12. h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aap cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus address of the corresponding ADAM 5000 TCP sys tem p indicates alarm mode p D if alarm is Disable P L if alarm is Latch cr represents terminating character carriage return ODh 6 173 ADAM 5000 TCP User s Manual Chapter 6 Og 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 O1h is instructed to return its Low alarm mode The system responds that it is latched WZ ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjCh Name Description Syntax Response Clear Alarm Status Returns the alarm status to normal 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 C is the clear Alarm Mode command h indicates alarm type and can have the value H High alarm L Lowalarm cr represen
13. ADAM SO08TCP Usikty Vert Bb Tool ip Help inl ADAN 5080 She6 CHI Genad Setting In Range TT gai T Low Alan Setting Rest I cn ean Sen Rc tiam Statue DO Mapping balle 5 ot Chernet EAA imate F 34 fo vn Tee ES te High Abend Sett Reading Vote TN C tam oe Dames Unda en nt Sr M tn harpe As Stu po G Dnie Skt Chernet eS ES ec ar gt Beading dom frome 5060 saccestel cent 0000F Figure 5 16 Alarm Setting for Analog Input and Counter Modules There are three alarm types in Analog Input Modules Disable ADAM 5000 TCP Series dose not executive alarm diagnosing func tion Momentary When the Input value is over or under the High Low limit the alarm signal will be sent only once Latch When the input value is over or under the High Low limit the alarm signal will be latched till clicking the Clear Latch button Note The alarm types of ADAM 5080 include Disable and Latch only ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 5 3 6 1 0 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 Zero Calibration 1 Apply power to the module and let it warm up for 30 minutes 2 Make sure t
14. Chapter 6 Og 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 Si is the I O slot of ADAM 5000 system you want to read cr is the terminating character carriage return ODh Response gt data data data data 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 exists gt is a delimiter character is a delimiter character indicating the command being invalid data is the input value in engineering units of the interrogated module of the specified system If the numbers of data are ten counter frequency mode is in decimal format If the numbers of data are eight counter frequency mode is in hexadecimal format If data it means the channel is invalid cr is the terminating character carriage return ODh aby ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S2 cr response If the response you got is in Counter mode you ll see one similar to t
15. IESMADAM 5000 TCP User s Manual System Hardware Configuration Chapte 5 5 3 4 1 0 Module Canfiguration Digital Input Output Module Selecting ADAM 5000 Digital Modules includes ADAM 5050 505 I D 50518 5052 50558 5056 D 50568 5060 5068 5069 user can read following in formation from the Utility aiei Figure 5 9 Digital I O Module Configuration Location Standard Modbus address Windows Utility shows theModbus mapping address of each I O channel Please refer to chapter 3 5 Assigning address for I O Modules And the addresses will be the indexes for applying into the data base of HMI or OPC Server Type Data Type of the I O channel The data type of Digital I O modules is always Bit Value The current status on each channel of I O Module The value of digital I O modules could be 0 OFF or oe 1 ON Description Describes the channel numbers and I O types of the spe cific module In addition to monitor the current DI DO status the Windows Utility offers a graphical operating interface as figure 5 10 You can read the Digital input status through the change of the indicator icons Oppo sitely you can write the digital output status through clicking the indica tor icons ADAM 5000 TCP User s Manual 5 9 Chapter 5 System Hardware Configuration Universal DI DO Low Byte Value Hex f DI3 p02 DI1 poo AKK AE e DI DO6 DIS DO 4 ge Unive
16. s needs CS el it oe Kos Ose Ch 2 Figure 5 6 Define Device Name and Description EJ A DAM 5000 TCP_ User s Manual System Hardware Configuration Chapte r5 Step2 Click the Network tip to configure the TCP IP network setting I 2 Figure 5 7 TCP IP Network setting MAC Address This is also called Ethernet address and needs no fur ther configuration Link Speed This function will show the current linking speed to be either 10Mbps or 100Mbps However the utility will auto detect the current transmission speed on the network segment and set the transmission speed for the device accordingly without your further efforts DuplexMode The utility will detect the current transmission mode half duplex or full duplex on the network segment and set the transmission mode for the device accordingly without your further efforts IP Address Subnet Mask Default Gateway The IP address identifies your 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 dominat ing network only the IP address and Subnet Mask will need to set host PC and ADAM 5000 TCP Series must belong to same subnet Mask If you want to configure the ADAM 5000 TCP Series via Internet or
17. 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM 5000 TCP system The system confirms it has done so accordingly ADAM 5000 TCP User s Manual 6 99 Chapter 6 Og Planning Your Application Program aaSiCjRhC Name Description Syntax Response Read Alarm Connection Returns the High Low alarm limit output connection of a specified input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i i O to 7 and the desired analog input channel j j 0 to 7 RhC is the Read Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return 0Dh taaSkCn cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system SkCn identifies the desired slot k k 0 to 7 and the desired digital output point n n 0 to F to which the input alarm is connected If the values of
18. 01 cr Channel 1 of slot 0 of ADAM 5080 in ADAM 5000 system at address Olh is instructed to set its Low alarm state to normal The system confirms it has done so accordingly ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 SiCj identifies the desired slot i and the desired chan nelj AhC is the command for setting Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm SkCn identifies the desired slot k and the desired digital output point n n 0 to F To disconnect the digital output k and n should be set as cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system ADAM 5000 TCP User s Manual 6 177 Chapter 6 Og Planning Your Application P
19. 1 4 max 25 A110 V 50 A 220 Vy Inrush current Short Protection Yes Yes Yes Output Output Voltage 24 Vig 24 Vi Output Current 3A 42A Overload Protection Yes Yes General Dimension 181 mm x 113 mmx 60 mm LxWxH 181 mm x 113 mm x 60 mm Lx W x H 181 mm x 113 mm x 60 mm Lx W x H Operating Temperature 0 50 C 32 122 F 0 50 C 32 122 F 0 50 C 32 122 F DIN rail Mountable Yes No No Table2 4 Power Supply Specification Table ADAM 5000 TCP User s Manual 2 7 Chapter 2 Selecting Your Hardware Components 2 3 Selecting Link Terminal and Cable Ethernet Network Use the RJ 45 connector to connect the Ethernet port of the ADAM 5000 TCP Series to the Hub The cable for connection should be Category 3 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 RJ 45 Connector Category 3 or Cable Category 5 Figure 2 2 Ethernet Terminal and Cable Connection Table 2 5 Ethernet RJ 45 port Pin Assignment EN ADAM 5000 TCP User s Manual Selecting Your Hardware Components Chapter 2 Serial Network The system uses screw terminal for RS 485 twisted pair connect
20. 100 00 000 00 100 00 0 01 FA Gr 7FFF 0000 8000 LSB Engineering A Unite 100 00 000 00 100 00 10 HV 3 3 Reading 02h 100 mV of FSR 100 00 000 00 100 00 0 01 n est ent 7EFF 0000 8000 LSB Engineering R Unite 500 00 000 00 500 00 10 HV 5 5 Reading 03h 500 mV of FSR 100 00 000 00 400 00 0 01 10 eaten ent 7EFF 0000 8000 1LSB ADAM 5018P Engineering 1 0000 0 0000 100 Units ard 1 0000 pV f k Reading 04h V of FSR 100 00 000 00 100 00 0 01 10000 es ent 7EFF 0000 8000 LSB Engineering 00 nig 2 5000 0 0000 2 5000 uv o a R Reading 05h 42 5 V of FSR 100 00 000 00 400 00 0 01 10000 dre a 7FFF 0000 8000 LSB Engineering A Das 20 000 00 000 20000 uA 3 5 Reading 06h 20 mA of FSR 100 00 000 00 400 00 0 01 1000 banner ent 7EFF 0000 8000 LSB Engineering 420 000 404 000 07h 4 20MA ofFSR 100 00 000 00 tra Twos 7999 1999 Complement Maximum Minimum 5 Range Input Range Data af gs Displayed Actual Module aes Specified Specified Code Description Formats Signal Signal Resolution Value Engineering 4760 00 000 00 0 1 Type J A OEh Thermocouple of FSR 100 00 000 00 0 01 Seed O to 760 C Aa mene FREE 0000 1LSB Engineering 413700 0000 0 04 Type K A OFh Thermocouple of
21. During this interval the module cannot be addressed to perform any other actions ADAM 5000 TCP User s Manual 6 95 Chapter 6 Og 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 aaSiCjChi 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 i 0 to 7 and the desired channel j j 0 to 7 Chis the Clear Latch Alarm command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 system cr represents terminating character carriage return ODh EIJ ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1CL cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to set its Low alarm state to OFF The system confirms it has done so accor
22. VGA color monitor 2xor higher speed CD ROM Mouse or other pointing devices 10 or 100 Mbps Ethernet Card 10 or 100 Mbps Ethernet Hub at least 2 ports Two Ethernet Cable with RJ 45 connector e Power supply for ADAM 5000 TCP Series 10 to 30 V unregulated 3 1 3 I O modules At least one I O module is needed to use the system Prepare the re quired I O modules as the interface for a variety of field singles E ADAM 5000 TCP User s Manual Hardware Installation Guide Chapter 3 3 2 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 Once the module is inserted into the system push in the retaining clips located at the top and bottom of the module to firmly secure the module to the system see figure 3 2 o2nrbooeono02r V annars V managhooesasnad V monnoboonason DY Figure 3 1 Module alignment and installation Figure 3 2 Secure the module to the system ADAM 5000 TCP User s Manual 3 3 Chapte EI Hardware Installation Guide 3 3 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 upsi
23. along with a description of the effect the command has on the given module 6 4 2 System Command Set Command Syntax Command Name Description Set the baudrate and checksum status for a specified ADAM 5000 system aannccff Configuration Returns the configuration status for a specified ADAM 5000 system aaM Read Module Name ADAM 5000 TCP system Returns the firmware version code from a specified ADAM aa2 Configuration Status aaF Read Firmware 5000 TCP system Version aaT Read O Type Returns the 1 0 model number of all slots for a specified ADAM 5000 TCP system Table 6 2 CPU Command Set Table ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aannccff Name Description Syntax Response Configuration Sets RS 485 network baud rate and checksum status for a specified ADAM 5000 TCP system 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 nn is reserved for system use Its default value is 00h cc represents the baud rate code ff is a hexadecimal number that equals the 8 bit pa rameter representing checksum status The sixth bit represents the checksum status 1 means enabled while 0 means disabled The other bits are not used and are set to 0 cr is the terminating character carriage return ODh taa
24. to configure the RS 485 network set ting with following steps Daa Sisan Change Ptsmond I Faresa I Skeletomaton Meek Spion RS Sad Contagion Type Posty Flow Cort f Even f Dota ber Stop te Badate f 1 lt mo a Modbus Sesal Frame Timeout ATU Frame Timeout E005 Xn Ot ls 4 Figure 5 26 RS 485 Modbus Network Setting 1 Define the parameter of the network includes Parity stop bit Baud Rate 300 115200bps and Timeout 2 Click the Apply button the password verification dialog block will pop up 3 Key in your specific password and click OK The setting is done ADAM 5000 TCP User s Manual Chapter 6 Planning Your Application Program System Design Flow Chart Select I O Module I Select Power Supply de Selecting Your Hardware Component Select Link Terminal amp Cable Select Operator Interface F Determine Proper Environment Install Main Unit and Module gt Hardware Installation System Mounting Guide Wiring and Connecting I O Address Mapping Individual I O Module TO Modules Introduction J Introduction Using this Chapter System Hardware Configuration Install Utility Software T O Module Configuration Network Setting T O Module Calibration Security Setting Terminal Emulation System Configuration Guide UDP Data Stream Modbus Data Gateway
25. 100 C a 0 00392 100 Ohms Platinum RTD 0 to 100 C a 0 00392 100 Ohms Platinum RTD 0 to 200 C a 0 00392 Engineering Units 100 00 000 00 Engineering Units 200 00 000 00 Engineering Units 600 00 000 00 Engineering Units 100 00 Engineering Units 100 00 000 00 Engineering Units Note See next page for table continuation ADAM 5000 TCP User s Manual B 10 Appendix B EJ Data Formats and I O Ranges Note This table continued from previous page 100 Ohms Platinum RTD 0 to 600 C a 0 00392 Engineering Units 600 00 000 00 120 Ohms Nickel RTD Engineering 80 to Units 100 00 100 C Engineering 120 Ohms Nickel RTD 0 to 100 C Units ADAM 5000 TCP User s Manual Appendix B Data Formats and I O Ranges d T O o O lt o r D lt x Q lt x E 5 S A 2 3 9 n z 3 2 Ss 3 n amp x n 5 2 z 3 Q 5 p Type 395 JIS 5013RTD U16B U16B 65535 6535 6535 et ee el el a re Nede ae 5017H AI 5024 AO i B 12 ADAM 5000 TCP User s Manual Appendix B EJ Data Formats and I O Ranges ADAM 5000 TCP User s Manual Appendix C Grounding Reference Appendix C leg Grounding Reference Field Grounding and Shielding Application Overview Unfortunately it s impossible
26. 5000 TCP which cause the alarm change zero based char szIP 20 the IP address which cause the alarm change char szDateTime 48 e x 2001 09 23 10 12 34 567 Year Month Day Hour Minute Second mSecond ADAM 5000 TCP User s Manual 6 31 Chapter 6 Og Planning Your Application Program 6 3 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 If no response arrives a time out aborts the sequence and returns control to the host This chapter explains the structure of the commands with Modbus TCP protocol and guides to use these command sets to implement user s programs 6 3 1 Command Structure It is important to understand the encapsulation of a Modbus request or response carried on the Modbus TCP network A complete command is consisted of command head and command body The command head is prefixed by six bytes and responded to pack Modbus format the command body defines target device and requested action Following ex ample will help you to realize this structure quickly Example If you want to read the value of ADAM 5017 in ADAM 5000 TCP s slot 0 2 channels address 40001 40002 the request command should be Byte 0 transaction Identifler 0 Byte 1 transactlon Identlfler 0 Byte 2 pr
27. 6 129 Chapter 6 Og Planning Your Application Program aaSiCjB Name Description Syntax Response Example Configuration Status Returns the configuration parameters of a specified channel in a specified analog output module of a specified system 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 SiCj identifies the I O sloti i 0 to 7 and the channel j j 0 to 3 you want to read B is configuration status command cr is the terminating character carriage return ODh taarrff er 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system rr represents the 2 character hexadecimal code of the output range ff is a hexadecimal number that equals the 8 bit pa rameter representing the status of data format and slew rate Bits 0 and 1 represent data format Bits 2 3 4 and 5 represent slew rate The other bits are not used and are set to 0 See Configuration command aaSiCjArrff cr is the terminating character carriage return ODh command 01S1C1B response
28. ADAMSKTCP_WriteCoil char szIP WORD wID WORD wStartAddress WORD wCount BYTE byData the IP Address of the ADAM 5000 TCP that to be connected the specific device ID for an Modbus TCP device The ADAM 5000 TCP is always assigned as I the starting address that to be written how many coils to be written an unsigned 8 bit array that stored values written to coil Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_SendReceiveS5KTCPCmd 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 ADAMSKTCP_SendReceiveSKTCPCmd char szIP char szSendToTCP char szReceiveFromTCP char szModbusSend char szModbusReceive Parameter szIP in the IP Address of the ADAM 5000 TCP that to be connected szSendToTCPl in the ASCII format string that send toa ADAM 5000 TCP szReceiveFromTCP out the ASCII format string that response from a ADAM 5000 TCP szModbusSend out the Modbus TCP format string that send to a ADAM 5000 TCP szModbusReceive out the Modbus TCP format string that response from a ADAM 5000 TCP Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 19 Chapter 6 Og Planning Your Applicatio
29. Alarm info buffer is empty quit Vv ADAMSKTCP StopStream v ADAMSKTCP Close ADAM 5000 TCP User s Manual 6 7 Chapter 6 Og Planning Your Application Program To read coil values ADAMSKTCP Open v ADAMSKTCP Connect vy lt ADAMSKTCP_ReadCoil v ADAMSKTCP Disconnect v ADAMSKTCP Close To write value to coil ADAMSKTCP Open v ADAMSKTCP Connect v lt ADAMSKTCP_WriteCoil v ADAMSKTCP Disconnect v ADAMSKTCP Close K MADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 To read holding register value ADAMSKTCP Open v ADAMSKTCP Connect vy lt ADAMSKTCP ReadReg v ADAMSKTCP_Disconnect v ADAMSKTCP Close To write value to holding register ADAMSKTCP Open v ADAMSKTCP Connect vy lt ADAMSKTCP WriteReg v ADAMSKTCP_Disconnect v ADAMSKTCP Close ADAM 5000 TCP User s Manual 6 9 Chapter 6 Og Planning Your Application Program 6 2 3 Function Descriptions ADAM5KTCP Open Description Initiate the adam5ktep dII for using Syntax int ADAMSKTCP_Open void Parameters void Return Please ref
30. Analog Input Ranges ADAM 5018 Module Rangs Range Dala F S Zero F S Displayed Ketua Code Description Formats Resolution Value Engineering 415 000 00 000 15 000 1 pV ooh 15 mV ofFSR 100 00 000 00 100 00 0 01 ond fa 7FFF 0000 8000 1LSB Engineering 50 000 00 000 50 000 1 uv Oth 50 mV ofFSR 100 00 4000 00 100 00 0 01 eo Complement 7FFF 0000 8000 1LSB Engineering 4100 00 000 00 100 00 10 pv o2h 100mV ofFSR 100 00 000 00 100 00 0 01 als Complement 7FFF 0000 8000 1LSB Engineering 4500 00 000 00 500 00 10 uv 03h 500mV ofFSR 100 00 000 00 100 00 0 01 one ADAM 5018 c Ta Sent 7FFF 0000 8000 1 LSB Engineering 1 0000 0 0000 1 0000 100 pv 04h HV ofFSR 100 00 000 00 100 00 0 01 Ed Pt 7FFF 0000 8000 1 LSB Engineering 2 5000 0 0000 2 5000 100 uv 05h 42 5V Of FSR 100 00 000 00 100 00 0 01 ors Eie att 7FFF 0000 8000 1LSB Engineering 20 000 00 000 20 000 1 yA o6h 20 mA otFSR 100 00 4000 00 100 00 0 01 ne Cannemedt 7FFF 0000 8000 1 LSB 07h Not Used ADAM 5000 TCP User s Manual B 5 Appendix B Data Formats and I O Ranges Maximum Minimum
31. Assigning address for I O Modules Basing on Modbus standard the addresses of the I O 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 Analog Mapping Table 40001 40008 40009 40016 40017 40024 40025 40032 40033 40040 40041 40048 40049 40056 40057 40064 NOOR OM O 1 Analog 0 Deslgnatlon ADAM 5000 TCP Containing 8 Modules Digital 1 0 Designation Digital Mapping Table 00001 00016 00017 00032 00033 00048 00049 00064 00065 00080 00081 00096 00097 00112 00113 00128 00000 eae v vy vy y y v yY NOOR OM O 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 Note ADAM 5080 is a special 4 channel counter module The data type is designed as unsigned long When you insert an ADAM 5080 in slot 0 the address should be 40001 40003 40005 and 40007 ADAM 5000 TCP User s Manual 4 I O modules This manual introduces the detail specifications functions and application wiring of each ADAM 5000 I O modu
32. Digital Input Module 0 53 W ADAM 5051D 6 Channel Digital Input wLED Module 0 84 W ADAM 5056S 6 Channel Isolated Digital Input wLED Module 0 8 W ADAM 5056SO 6 Channel Digital Input wLED Module 0 84 W ADAM 5052 8 Channel Isolated DI 0 27W ADAM 5055S 6 Channel Isolated DIO w LED Module 0 68 W ADAM 5056 6 Channel Digital Output Module 0 53 W ADAM 5056D 6 Channel Digital Output w LED Module 0 84 W ADAM 5056S 6 Channel Isolated Digital Output w LED Module 0 6 W ADAM 5060 6 Channel Relay Output Module 2 of Form A 4 of Form C 1 8 W ADAM 5068 8 Channel Relay Output Module 8 of Form A 1 8 W ADAM 5080 4 Channel Counter Frequency Input Module 1 5 W ADAM 5090 4 Port RS232 Module 0 6 W Table 2 3 Power Consumption of ADAM 5000 series ADAM 5000 TCP User s Manual Selecting Your Hardware Components Chapter 2 Calculate the Summary of the whole system s power consumption For example there are following items in your system ADAM 5000 TCP 3 amp ADAM 5024 4 amp ADAM 5017 6 amp ADAM 5068 5 amp ADAM 5050 5 amp ADAM 5080 4 O The power consumption is 5W 3 290W 4 1 25 6 1 8W 5 1 2W 5 1 5W 4 55 1W f Seleta suitable power supply from Table2 4 or other comparable power resource for system operation PWR 242 PWR 244 Input Voltage 90 264 V C 85 132 Vy 170 264 Vy 100 240 V Input Frequency 47 63 Hz 47 63 Hz 47 63 Hz Input Current 1 2 max
33. Disable Latch Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates alarm enable disable and can have the value D Disable E Enable cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh 6 171 ADAM 5000 TCP User s Manual Chapter 6 Og Planning Your Application Program Example command 01S0C1IALED cr response 01 cr Channel I of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh is instructed to disable its Low alarm function The module confirms that its Low alarm function has been disabled WEA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAh Name Description Syntax Response Read Alarm Disable Latch Return the alarm mode for the specified channel 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 SiCj identifies the desired slot i and the desired chan nel j A is the Read Alarm Mode command
34. FSR 100 00 000 00 0 01 re O to 1370 Ce 7FFF 0000 1 LSB Engineering 4400 00 100 00 01 Type T Thermocouple 6 Reading 10h mormons of FSR 100 00 025 00 0 01 400 ae 7FFF E000 1LSB eee 1000 00 0000 0 0 1 i Type E I oo 11h Thermocouple of FSR 100 00 000 00 0 01 Poeng O to 1000 C er 7FFF 0000 1 LSB Engineering 1750 0 0500 0 01 Type R Thermocouple 3 Reading 12h ene of FSR 100 00 028 57 0 01 750 C r Le 7FFF 2492 1LSB re 1750 0 0500 00 0 1 Type S Thermocouple 5 5 Reading 13h Meta of FSR 100 00 028 57 0 01 an 750 C 5 ER 7FFF 2492 1LSB Engineering 1800 0 0500 0 01 Type B Thermocouple 6 Reading 14h Adil of FSR 100 00 027 77 0 01 r 800 C ee 7FFF 2381 1LSB BEEZ ADAM 5000 TCP User s Manual Data Formats and I O Ranges Appendix B B B 4 Analog Input Ranges ADAM 5017H Range code Input Range Data Formats Full Scale Full Scale Displayed Resolution 00h 10 V Engineering 11 H 2 7 mV Two s Comp EFFF Engineering Don t care Two s Comp Don t care Engineering mV Two s Comp EFFF Engineering Don t care Wo s Comp Don t care Engineering 2 75 Wo s Comp EFFF Engineering Don t care Wwo s Comp Don t care Engineering 1 375 Wwo s Comp Fi EFFF Engineering Don t care wo s Comp Fi Don t care Engineering 687 5 Wwo
35. Modbus TCP is one of the most popular standards for industrial Ethernet networks Following this communication protocol the ADAM 5000 TCP Series is easy to integrate with any HMI software packages or user developed applications that support Modbus Users do not have to prepare a specific driver for the ADAM 5000 TCP Series when they install the DA amp C sys tem with their own operating application It will certainly reduce engineer effort Moreover the ADAM 5000 TCP Series works as a Modbus data server It allows eight PCs or tasks to access its current data simultaneously from anywhere LAN Intranet or Internet 1 2 3 Hardware Capacity amp Diagnostic Advantech s ADAM 5000 TCP Series is designed with a high I O capacity and supports all types of ADAM 5000 I O modules Providing eight slots for any mixed modules this DA amp C system handles up to 128 I O points four ADAM 5024s allowed Different from other main units the ADAM 5000 TCP Series not only has a higher I O capacity but it also has a smarter diagnostic ability There are eight indicators on the front case of the CPU module Users can read the system status clearly including power CPU Ethernet link Communication active communication rate and more In addition there are also Tx and Rx LEDs on the Ethernet port indicating data transfer and reception ADAM 5000 TCP User s Manual 1 3 Chapt er 1 Understanding Your System 1 2 4 Communicating Isolation High spee
36. Voltage Transmission Generator End User Raise Voltage Down Voltage Referring to OHM rule above dlagram shows that how to reduce the power loss on cable Figure C 5 The purpose of high voltage transmission e 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 What is the purpose of high voltage transmis sion wires According to the energy formula P V I the current is reduced when the voltage is raised As you know each cable has imped ance because of the metal it is made of Referring to Ohm s Law V I R this decreased current means lower power losses in the wirC So high voltage lines are for reducing the cost of moving electrical power from one place to another ADAM 5000 TCP User s C 7 Manual pool bee Grounding Reference Wire Impedance 1v0 Q 8v mod Device jaw an 0 O 2v The wire Impedance willl consume the power Figure C 6 wire impedancC ADAM 5000 TCP User s Manual Grounding Reference Appendix C C 1 5 Single Point Grounding Single Point Grounding 0 6 0 6 Those devices will influence each other with swiftly load change Figure C 7 Single point grounding 1 e What s Single Point Grounding Maybe you have had an unpleasant experience while taking a hot shower in Winte
37. carriage return ODh 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S3000765 cr response 01 cr The ADAM 5080 in slot 3 of the ADAM 5000 TCP system at address Olh needs 765m seconds to start to measure the input ADAM 5000 TCP User s Manual 6 159 Chapter 6 Og Planning Your Application Program aaSiO 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 Si identifies the I O slot which is to be accessed 0 is the command for reading digital filter scale cr is the terminating character carriage return ODh Response aa data 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 exists delimiter character indicatin
38. character aa range 00 FF represents the 2 character hexadeci mal address of the ADAM 5000 TCP system you want to interrogate SiCj identifies the slot i 1 0 to 7 of the ADAM 5000 TCP system and the channel j G 0 to 7 of the ADAM 5017H 5017UH module you want to interrogate B represents the read input range command cr is the terminating character carriage return ODh Response aarr00 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system rr represents the 2 character hexadecimal code of the input range See Appendix B cr is the terminating character carriage return ODh Example command 01S3C1B cr response 010b00 cr Channel 1 of the ADAM 5017H 5017UH module in slot 3 of the ADAM 5000 TCP system at address 01h responds with an input range 0 20 mA engineering unit data format ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiAFFff Name Description Syntax Set Data Format Sets the data format in engineering units or in two s complement format for a specified analog input mod ule in a specified system aa
39. 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 F is the Firmware Version command cr is the terminating character carriage return ODh aa version 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 communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system version represents the firmware version of the ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01F cr response 01A1 01 cr The command requests the system at address O1h to send its firmware version The system responds with firmware version A1 01 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaT Name Description Syntax Response Example Read I O Type Returns the I O module no of all slots for a specified ADAM 5000 TCP system 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 T is the I O Module Types command cr is the terminating character carriage
40. cr if the command is valid aa cr if an invalid parameter was entered or if the INIT terminal was not grounded when attempting to change baud rate or checksum settings There is no response if the module detects a syntax error communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci ADAM 5000 TCP User s Manual 6 41 Chapter 6 Og Planning Your Application Program mal Modbus network address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01000A40 cr response 01 cr The ADAM 5000 TCP system with address Olh is configured to a baud rate of 115 2 Kbps and with checksum generation or validation The response indicates that the command was re ceived Wait 7 seconds to let the new configuration setting take effect before issuing a new command to the system Note All configuration parameters can be changed dynami cally except checksum and baud rate parameters They can only be altered when the INIT terminal is grounded 38 4 Kbps 57 6 Kops 115 2 Kbps Table 6 3 Baud rate codes ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aa2 Name Description Syntax Response Configuration Status Returns the configurati
41. cr if the command is valid Two s Comple ment Data Format 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid ADAM 5000 TCP User s Manual 6 87 Chapter 6 Og Planning Your Application Program Example 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 If dddd it means the channel is invalid cr is the terminating character carriage return ODh command 01S3C2 cr response 9 750 cr The command requests the ADAM 5017H 5017UH module in slot 3 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 9 750 ADAM 5000 TCP User s Manual Planning Your Application Program EE 6 Note This command set applies to the ADAM 5013 ADAM 5017 ADAM 5017H 5017UH and the ADAM 5018 ADAM 5000 TCP User s Manual 6 89 Chapter 6 Og Planning Your Application Program aaSiCjAhs Name Description Syntax Response Set Alarm Mode Sets the H
42. cr represents terminating character carriage return ODh 6 171 ADAM 5000 TCP User s Manual Chapter 6 Og Planning Your Application Program Example command 01S0C1IALED cr response 01 cr Channel I of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh is instructed to disable its Low alarm function The module confirms that its Low alarm function has been disabled WEA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAh Name Description Syntax Response Read Alarm Disable Latch Return the alarm mode for the specified channel 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 SiCj identifies the desired slot i and the desired chan nel j A is the Read Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aap cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus address of the corresponding ADAM 5000 TCP sys tem p indicates alarm mode p D if alarm is Disable P L if alarm is Latch cr represents terminating charac
43. exists gt is a delimiter character delimiter character indicating the command was invalid data is the input value in engineering units of the interrogated module of the specified system If the numbers of data are ten counter frequency mode is in decimal format If the numbers of data are eight counter frequency mode is in hexadecimal format If data it means the channel is invalid cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 157 Chapter 6 Og Planning Your Application Program Fxample command 01S3C2 cr response gt 0000000451 cr The command requests the ADAM 5080 module in slot 3 of the ADAM 5000 TCP system at address O1h to return the input value of channel 2 The counter module responds that the input value of channel 2 is 451 ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi0 data Name Description Syntax Response Example Set Digital filter Scale Set the filter seconds to start to measure the input signal 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 Si identifies the specified slot 0 is the command for setting digital filter scale data represents filter seconds from 8us 65000 us Be aware that data has 5 characters cr is the terminating character
44. for 5000 TCP Kerrem e TIGE Monitoring steam data Terminal 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 Search for 5000 TCP Search all ADAM 5000 TCP units in the spe cific Ethernet domination the same with host PC s Ethernet domination Refresh 5000 TCP Refresh the specific ADAM 5000 TCP unit to verify the system status Terminal Call up the operation screen of Terminal emulation to do the request response command execution Monitor Data Stream Call up the monitoring screen of stream data from specific ADAM 5000 TCP File Tool Setup Help ol Timeout Scan Rate Item Setup contents Timeout and Scan Rate setting functions Please be aware of the time setting for other Ethernet domination usually longer than local network Ee Tool Setup Help Dl Q al Demo program listing EP Advantech Home Page MN 17218 About Item About contents information about software version released date and support modules EZE ADAM 5000 TCP User s Manual System Hardware Configuration Tool Bar There are five push buttons in the tool bar D S al s le Vers Emulatlon Monitoring Stream Data Refresh ADAM 5000 TCP Search ADAM 5000 TCP e Add Remote ADAM 5000 TCP Unlt e Exit Utility Program Figure 5 3 Tool Bar 5 3 2 Ethernet N
45. for more detail information ADAM 5000 TCP User s Manual 6 13 Chapter 6 Og Planning Your Application Program DAM5KTCP_GetDLLVersion Description Read the version of ADAM 5000 TCP DLL driver Syntax int ADAMSKTCP GetDLLVersion void Parameter void Return 0x150 means Version 1 50 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_ReadReg Description Syntax Parameter szIP in wIDI in Reads the holding register value at a specified range described in parameters int ADAMSKTCP_ReadReg char szIP WORD wID WORD wsStartAddress WORD wCount WORD wData the IP Address of the ADAM 5000 TCP that to be connected the specific device ID for an Modbus TCP device The ADAM 5000 TCP is always assigned as 1 wStartAddress in the starting address that to be read wCount in wData out Return how many holdings register to be read a unsigned 16 bits array that stored the read holding register Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual oes be Chapter 6 Og Planning Your Application Program ADAMS5KTCP_WriteReg Description Syntax Parameter szIP in wID in wStartAddress in wCount in wData out Return Write the holding register value at a specified range described in parameters int ADAMSKTCP_WriteReg char szIP WORD wID WORD wStartAdd
46. hexadeci mal Modbus network address of the ADAM 5000 TCP system SiCj identifies the I O slot i and the channel j of the module you want to set 5 is the command for setting counter Start Stop s represents start stop command s 0 indicate stop counter s 1 indicate start counter cr is the terminating character carriage return ODh 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was invalid 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 ODh ADAM 5000 TCP User s Manual 6 161 Chapter 6 Og 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 ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj5 Name Description Syntax Response Read counter Start Stop Requests the addressed counter frequency module to indicate whether counters are active aaSiCj5 cr is a delimiter character aa range 00 FF represents the 2 character hex
47. input module in slot 2 of the system at ad dress 01h with 66 counts 42 hex which equals about 0 6 C ADAM 5000 TCP User s Manual 6 77 Chapter 6 Og 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 ADAM 5000 TCP User s Manual Planning Your Application Program KAETI Cig ADAM 5017H 5017UH Analog Input Command Set Command Command Description Syntax Name aaSiCjArFF Set Input Range Sets input range for a specified chamel of an analog input module in a specified system aaSiCjB Read Inout Returns the input range for a Range specified channel of a specified analog input modue ina specified system aaSiAFFff Set Data Format Sets data format in engineering units or two s complement for a specified analog input modue ina specified system aaSiB Read Data Retums the data format for a Format specified analog input module in a specified system Enables Disables aaSi5Smm Enable Disable multiplexing for separate Chamels for chamels of the specified Multiplexing input module Asks the specified inout aaSi6 Read Chamels modue to retun the status of Status all chamels ADAM 5000 TCP User s Manual 6 79 end Planning Your Application Program Command Command Description Syntax Nam
48. input value in engineering units of the specified channel for a specified analog input mod ule of the specified system If data it means the channel is invalid cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 71 Chapter 6 Og Planning Your Application Program Example command 01S2C2 cr response gt 1 4567 The command requests the analog input module in slot 2 of the ADAM 5000 TCP system at address O1h to return the input value of channel 2 The analog input module responds that the input value of channel 2 is 1 4567 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiER Name Description Syntax Response Initialize EEPROM data 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 Following initialization the problem mod ule should readily accept calibration aaSiER cr is a delimiter character aa range 00 FF represents the 2 character hexadeci mal Modbus network address of the ADAM 5000 TCP system Si identifies the I O slot for which you wish to initial ize all EEPROM data ER is Initialize all EEPROM data command cr is the terminating character carriage return ODh aa cr if the command is valid aa cr if an invalid oper
49. lt D gt Total I O Points Required lt E gt 1 0 Module Required lt F gt Spare I O Modules lt G gt Total I O Modules Table A 2 Summary Required Modules ADAM 5000 TCP User s Manual A 5 Appendix A PN Design Worksheets Step4 Implement the Modbus address in to the I O table ADAM 5000 TCP 1 0 Module Channel Equipment amp IP Address Slot No I O Type Number I O Address Tag Name Description Table A 3 Table for Programming ADAM 5000 TCP User s Manual Design Worksheets Appendix A A 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 A 7 Appendix A PN Design Worksheets ADAM 5000 TCP User s Manual Appendix B Data Formats and I O Ranges Appendix B sq 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 This format presents data in natural units such as degrees volts milli volts and milliamps The Engineerin
50. nran TAREE e KAREE 3 4 3 3 2 DIN rail MOUNTING ressas aaraa a n 3 4 3 4 Wiring and Connections swrrnnnnnnnnnnnnnnnvnnnnnnnnnnnnnnnnenn 3 6 3 4 1 Power supply Wiring sssssssssssssisssirssrnssrnsrsnsrrrsrnssenss 3 6 3 4 2 I O modules wiring neenrveronrvvnnnrnnnnrnnrrrerrrrrernnrnnernnn 3 7 3 4 3 System Network Connections n e e 3 8 3 5 Assigning address for I O Modules 0 3 10 Chapter 4 I O Module Introduction 0 0 4 1 Chapter 5 System Hardware Configuration 5 1 5 1 System Hardware Configuration rrrrrsevvnnnnnnnnnnner 5 2 5 2 Install Utility Software on Host PC sess 5 3 5 3 ADAM 5000 TCP Windows Utility Overview 5 3 5 31 Main ManU asiaasi ceeded thes nai iii 5 3 5 3 2 Ethernet Network Setting ecsceeeesceseeeeeseeeeseeeeeaes 5 5 5 3 3 Add Remote Station mrsrranronnv vnr vnr rnnnrrnnrnnnrvnrrenrrennnrnn 5 8 5 3 4 I O Module Canfiguration mmerrrenorrrernrrrnnrrnnrnrerennen 5 9 5 3 5 Alarm Setting ccccecceececeeceeeeeeeeeseeeseeeeseeeseeeeeeeeeeeees 5 14 5 3 6 I O Module Calibration rervranrrnnr vnr rnrrrrrnrrrnrrnnrrnnrennr 5 15 5 3 7 Firmware Update rrnanvnnnnvrnnnvrnnnnrnnnvrnnnnrnnrnrnnvnrnrnrneennr 5 17 5 3 8 Security Setting rmmmmrrerrrrerrrerrrrerrrrrnrrrnnrenrnrenennenenne 5 18 5 3 9 Terminal Emulation esrornnrrnnrronrvrrrrrrrrrrnrernrerrnrerrrennr 5 19 5 3 10 Data Stream marrnnnvnnnvvnnvrvrrrvnnvenvrvnrrre
51. 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S83A0000 cr response 01 cr The analog input module in slot 3 of the ADAM 5000 TCP system at address Olh is configured to an input range 15mV engineering units data format and integration time 50ms 60Hz The response indicates that the command has been received Note An analog input module requires a maximum of 7 seconds to perform auto calibration and ranging after it is reconfigured During this time span the module cannot be addressed to per form any other actions ADAM 5000 TCP User s Manual 6 65 Chapter 6 Og 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 Si identifies the I O slot you want to read B is configuration status command cr is the terminating
52. other net work domination you have to ask your network administrator to obtain a specific IP and Gateway addresses then configure each ADAM 5000 TCP Series with the individual setting ADAM 5000 TCP User s Manual 5 7 Chapter 5 System Hardware Configuration 5 3 3 Add Remote Station To meet the remote monitoring and maintenance requirements ADAM 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 amp button the adding station screen will pop up as Figure 5 8 Then key in the specific IP address and click the Add button If the communication suc cess the added ADAM 5000 TCP Series unit should appeal on the tree struc ture display area Enter the IP Address of remote 5000 TCP module fisssaszd BING Add x Figure 5 8 Adding ADAM 5000 TCP screen Note There are several conditions need to be sure before adding a remote ADAM 5000 TCP Series system in the windows Utility 1 Be sure the specific IP is existed and available 2 Be sure to complete the network linkage for both sides 3 Be sure to adjust the best timing of timeout setting 4 Even you are not sure whether the communication is work able or not there is also a PING function for testing the network connection
53. output point n n 0 to F to which the input alarm is connected If the values of k and n are the analog input has no connection with a digital output point ADAM 5000 TCP User s Manual 6 179 Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S0C1IRLC cr response 01S C1 cr Channel 1 of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh 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 WR ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAhU data Name Set Alarm Limit Description Set the High Low alarm limit value for the specified Syntax Response input channel of a specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i and the desired chan nel j AhU is the Set Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm data represents the desired alarm limit setting The value is from 0 to 4294967295 Be aware that data has 10 characters cr represents terminating character carriage return ODh aa cr if the
54. output terminal of the module Trim Startup output value 4 00 m a Execute Exit Figure 5 20 Analog Output Module Calibration ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 5 3 7 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 amp C systems Therefore users will need to upgrade the firmware of ADAM 5000 TCP Series sometime Select the Firmware Upgrade tab and click Browsing to find the specific firmware bin for upgrade ft 2 Figure 5 21 Firmware Upgrade Click the upgrade button then the new firmware will be downloaded into the ADAM 5000 TCP Series system ADAM 5000 TCP User s Manual 5 17 Chapter 5 System Hardware Configuration 5 3 8 Security Setting Though the technology of Ethernet discovered with great benefits in speed and integration there also exist risk about network invading form anywhere For the reason the security protection design has built in ADAM 5000 TCP Series system Once user setting the password into the ADAM 5000 TCP Series firmware the important system configurations Net work Firmware Password are only allowed to be changed by password verification i Dae tamer Ooprant Enter od peter Oras f Ont C 2 Figure 5 22 Password Set
55. return ODh aabbccddee 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 communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system bb cc dd ee represent the I O Module No of all slots from slot 0 thru 3 of the ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01T cr response 0118245160 cr The command requests the ADAM 5000 TCP sys tem at address Oth to send all existing I O module numbers The system at address 01h responds with I O module numbers 18 24 51 and 60 in slots 0 3 This means that the ADAM 5000 TCP system contains an ADAM 5018 ADAM 5024 ADAM 5051 and ADAM 5060 in slots 0 thru 3 ADAM 5000 TCP 6 47 User s Manual Chapter 6 Og 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 ADAM 5013 RTD Input Command Set Command Syntax Command Name Description RTD Configuration Sets slot index input ran
56. s Comp Fi EFFF Ingineering Don t care Wwo s Com Fi Don t care gineering Don t care Wwo s Com Don t care gineering Don t care Wwo s Com Don t care Note The full scale values in this table are theoretical values for your reference actual values will vary ADAM 5000 TCP User s Manual B 7 Appendix B sq Data Formats and I O Ranges B 4 1 Analog Input Ranges ADAM 5017UH cae Race Data Formats Sole Ee Scale i ne 08h 10 V Engineering 10 000 00 000 10 000 mV Two s Comp OFFF 0 7FFF 48h 0 10V Engineering 10 000 00 000 mV Two s Comp OFFF 0 Don t care 46h 0 20mA Engineering 20 000 00 000 uN Two s Comp OFFF 0 Don t care 07h 4 20mA Engineering 20 000 00 000 uv Two s Comp OFFF 0 Don t care Note The full scale values in this table are theoretical values for your reference actual values will vary ADAM 5000 TCP User s Manual B 8 ppendix B SM 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 This format presents data in natural units such as milliamps The Engineering Units format is readily parsed by the majority of compu
57. 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 Think of them as resistors All of those infinite parallel resistors make the EARTH as a single reference point ADAM 5000 TCP User s Manual C 3 Appendix C eg Grounding Reference 1 2 The Frame Ground and Grounding Bar ia Phase Three Line N L gt 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 Just like Frame Ground of the computer this signal offers a reference point of the electronic circuit inside the computer If we want to communicate with this computer both Signal Ground and Frame Ground should be con nected to make areference point of each other s electronic circuit Gener ally speaking it is necessary to install an individual grounding bar for each system such as computer networks power systems telecommuni cation networks etc Those individual grounding bars not only provide the individual reference point but also make the earth a our ground ADAM 5000 TCP User s Manual Grounding Reference Appendix C C Normal Mode amp Common Mode 110V lt 1V 110V Neutral LIve Hot Ground Normal Mode refers
58. the initialize EEPROM data command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid 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 ODh ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi5smm Name Description Syntax Response Example Enable Disable Channels for multiplexing Enables Disables multiplexing for separate channels of the specified input module 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 5 represents the enable disable channels command mm are two hexadecimal values Each value is inter preted by the module as 4 bits The first 4 bit value is 0 The second 4 bit value represents the status of channels 0 to 3 A value of 0 means the channel is disabled while a value of 1 means the channel is en abled See the Read Channel Status Command aaSi6 Note Bit 4 can not enable a cha
59. the speci fied input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i and the desired chan nel j RhU is the Read Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aa data cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system data represents the desired alarm limit setting The format is always in engineering units Be aware that data has 10 characters ADAM 5000 TCP 6 183 User s Manual Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S C1IRHU cr response 010000000026 cr The channel 1 of slot 0 of ADAM 5080 in the ADAM 5000 TCP system at address Olh is config ured to return the High alarm limit value The High alarm limit value is 26 kN ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjS Name Description
60. time and money To meet user s requirements Advantech announces the new DA amp C system the ADAM 5000 TCP Series the Ethernet I O solution for people developing their eAutomation architecture It can be applied to various applications such as traffic building telecom water treatment and others ADAM 5000 TCP Series include the following 2 products ADAM 5000 TCP 8 slot Distributed DA amp C System for Ethernet ADAM 5000L TCP 4 slot Distributed DA amp C System for Ethernet B MADAM 5000 TCP User s Manual Understanding Your System Chapter 1 1 2 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 lt 5ms There is a standard RJ 45 modular jack Ethernet port on the ADAM 5000 TCP S CPU board and I O mod ules field signals would be able to link with the Ethernet directly without assistance from other hardware devices such as converters or data gate ways The communication speeds can be auto switched between 10 M and 100 Mbps data transfer rate depending upon the network environ ment Through an Ethernet network your DA amp C systems computer workstations and higher level enterprise MIS servers can access plant floor data Such data can be used in system supervising product sched uling statistical quality control and more 1 2 2 Modbus TCP Protocol
61. to 0100 0010 binary Function Code 02 The function code 02 is used to read the discrete input s ON OFF status of ADAM 5000 TCP in a binary data format Request message format for function code 02 Command Body Start Start Requested Requested Station Function Address Address High Byte Example Read coil number to 8 address number 10001 to 10008 from ADAM 5000 TCP 010100010008 Response message format for function code 02 Station Function Address Code Example input number 2 and 3 are on all others are off 01010160 In the response the status of input I to 8 is shown as the byte value 60 hex equal to 0110 0000 binary ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 Requested Requested Station Code Address High Byte Low Byte High Byte Low Byte Example Read Analog inputs 1 and 2 in addresses 40001 to 40004 as floating point value from ADAM 5000 TCP 010400010004 Response message format for function code 03 or 04 Command Body Station Function Address Code Example Analog input 1 and 2 as floating point values where AT 1 100 0 and AI 2 55 32 01 04 08 42 C8 00 00 47 AE 42 5D Function Code 05 Force a single coil to either ON or OFF The req
62. to defects occurring between the Ilve and neutral conductors Normal mode is sometimes abbreviated as NM or L N for live to neutral Common Mode refers to defects occurring between elther conductor and ground It Is sometimes abbreviated as CM or N G for neutral to ground Figure C 3 Normal mode and Common modC 1 3 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 Hot and Neutral are just rela tional signals you will get 110VAC or 220VAC by measuring these sig nals Normal mode and common mode just show you that the Frame Ground is the most important reference signal for all the systems and equipments ADAM 5000 TCP User s Manual C 5 Appendix C leg Grounding Reference Normal Mode amp Common Mode Neutral Live Hot Ground Ground pin Is longer than others for flrst contact to power system and nolse bypass Neutratpin is broader thanLive pin for reduce contacted impedance Figure C 4 Normal mode and Common modC e Ground pin is longer than others for first contact to power system and noise bypass e Neutral pin is broader than LivC pin for reducing contact impedancC ADAM 5000 TCP User s Manual Grounding Reference iNe 1 4 Wire impedance Whats the purpose of High Voltage Transmission High
63. whenever there is the Ethernet data pack collision Speed Green indicator This LED is on when the Ethernet communi cation speed is 100 Mbps Rx RJ 45 Green indicator This LED blinks whenever the ADAM 5000 TCP Series transmitting data to Ethernet 10 Tx RJ 45 Yellow indicator This LED blinks whenever the ADAM 5000 TCP Series receiving data from Ethernet ADAM 5000 TCP User s Manual 1 9 System Design Flow Chart Select I O Module Select Power Supply Select Link Terminal amp Cable Select Operator Interface Determine Proper Environment Install Main Unit and Module System Mounting Wiring and Connecting I O Address Mapping Individual I O Module Introduction Selecting Your Hardware Component Hardware Installation Guide T O Modules Introduction Chapter 2 Selecting Your Hardware Components System Hardware Configuration Install Utility Software I O Module Configuration Network Setting 1 O Module Calibration Security Setting Terminal Emulation UDP Data Stream Modbus Data Gateway DLL Driver Using ADAM 5000 TCP Series Command Set Appendix Using this Chapter Using ADAM 5000 TCP Seri s System Configuration Guide Planning Your Application Program Relational Document amp Technical Information If you wa
64. 000 00 0 1 Type J 5 OEh Thermocouple of FSR 100 00 000 00 0 01 ee O to 760 C a Rises Ere 0000 1 LSB Engineering 413700 0000 0 04 Type K oFn Thermocouple of FSR 100 00 000 00 0 01 Reading O to 1370 Ce 7FFF 0000 1LSB Engineering 400 00 100 00 04 Type T nus Thermocouple a 6 Reading 10h emoe of FSR 100 00 025 00 0 01 j 400 Ft 7FFF E000 1LSB Engineering 41000 00 0000 0 0 1 Type E l ADAM 5018 11h Thermocouple of FSR 100 00 000 00 0 01 ald O to 1000 C Fe 7FFF 0000 1LSB Engineering 447500 0500 0 0 1 Type R Thermocouple o Reading 12h ane of FSR 100 00 028 57 0 01 7 750 C 5 eee 7FFF 2492 1LSB ee 1750 0 0500 00 0 1 Type S if Thermocouple a Reading 13h dl of FSR 100 00 028 57 0 01 i 750 C nee ment 7FFF 2492 1LSB ieee 1800 0 0500 0 0 1 Type B Thermocouple i Reading 14h Le of FSR 100 00 027 77 0 01 i 800 C Twos 7FFF 2381 1 LSB Complement R Input Dat p Actual ange ata ye ctual Module Range F S Zero F S Code Description Formats Resol Value ution Engineering A Units 15 000 00 000 i600 uV o Reading 00h 15 mV of FSR 100 00 000 00 100 00 01 1000 Ene an 7FFF 0000 8000 LSB Engineering Units 50 000 00 000 0000 uV Reading Oth 50 mV of FSR
65. 000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiB Name Description Syntax Response Example Read Configuration The command requests the Configuration of slot 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 ODh taarrff er 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 delimiter character indicating a valid command is received delimiter character indicating the command is in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system rr 00 represents Bi direction counter mode rr 01 represenrs UP DOWN counter mode rr 02 represents Frequency mode ff indicates which format is ff 00 represents the engineer format ff 02 represents the hexdecimal format cr is the terminating character carriage return ODh command 01S3B cr response 010100 cr The ADAM 5080 in Slot 3 of ADAM 5000 TPC sys tem at address Olh responds that it is configured in UP DOWN counter mode and for engineering unit data format ADAM 5000 TCP User s Manual 6 153
66. 01 0F0014000A ADAM 5000 TCP User s Manual 6 37 Chapter 6 Og 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 Station Function File Paes Number of Number of Address Code Register Register High Byte Low Byte High Byte Low Byte Example Preset constant 1 address 40009 to 100 0 in ADAM 5000 TCP 01 100009 00 02 04 42 C8 00 00 Response message format for function code 16 The normal responses return the station address function code start address and requested number of registers preset Command Body Requested Requested Station Function Start Start Numberof Numberof Address Code Address Address Register High Register Low High Byte Low Byte Byte Byte Example 01 1000090002 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 6 4 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 Before explaining the structure of ASCII command packed with Modbus TCP format Let s see how to use an ASCII command and how many commands are available for your pro gram TCP Format Modbus Format
67. 101321 0 The analog output channel I in slot 1 of the ADAM 5000 TCP system at address Olh responds with an output range 0 to 10V engineering units data format and a slew rate of 1 0mA sec Gel ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj data Name Description Syntax Response Analog Data Out 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 aaSiCj 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 SiCj identifies the I O slot i i 0 to 7 and the chan nel j j 0 to 3 of the analog output module that is to output an analog signal data is a digital value incoming to the module which corresponds to the desired analog output value al ways in engineering units to be output from the module The analog value output will depend on the module s range configuration See also Appendix B Data Formats and I O Ranges cr is the terminating character carriage return ODh gt cr if the command is valid aa cr if a value was sent that is out of range Note that when the analog output module receives such a value it
68. 3 ADAM 5000 TCP panel mounting screw placement 3 4 Figure 3 4 ADAM 5000 TCP DIN rail MOUNTING sseenvrnvnnvnnvnnnnnnnnnvnnvnnenn 3 5 Figure 3 5 Secure ADAM 5000 TCP System to a DIN rail sernnnennnernn 3 5 Figure 3 6 ADAM 5000 TCP power wiring rrsennnennnvnnnvnnnnnnnnnnvnnnvnnnvnnnennnnn 3 6 Figure 3 7 ADAM 5000 I O Module Terminal Block wiring 0 3 7 Figure 3 8 System network connection usernvnnvnnnvnnennennvnnennnnnnnnnennennene 3 8 Figure 3 9 Serial Network Connection rusensennvnnvnnnnnnvnnennvnnvnnennennnennennen 3 9 Figure 3 10 I O Modules Address Mapping rrsvrnnvvnnnvnnnvnnnvnnnnnnnnvnnnvnnner 3 10 Figure 5 1 Hardware Configuration rsernavnnnvnnnvnnnvnnnvnnvnnnnnnnnnnnvnnnnnnnennnnn 5 2 Figure 5 2 operation Screen nsensvnnennnnnenvnnnvnnennennnnnnnnnennennvnnennennnnnnennennen 5 3 Figure 5 4 Network Setting rernvnnvnnnvnnvnnvnnvnnennennnnnnnnnnnnnnnennnnnennennennennnnnnnn 5 5 Figure 5 3 Tool Bar rusvnnnvnnvnnnnnnnnnnnnnnnvnnnvnnnnnnnnnnvnnnennnnnnnennnennnvnnnnnnvnnnennnennn 5 5 Figure 5 5 Communication testing function useranrnnnnnvnvnnnvnnennennernennenn 5 6 Figure 5 6 Define Device Name and Description rasrnsnnanvnnvennnvnnnvnnnvnnn 5 6 Figure 5 7 TCP IP Network setting rrrnnnnnnvnnnvnnnvnnnvnnnnnnvnnnvnnnvnnnennvnnnvnnner 5 7 Figure 5 8 Adding ADAM 5000 TCP screen sennnvnnvnnvnnnvnnennvnnnennvnnnnnnenne 5 8 Figure 5 9 Digital I O Module
69. A amp C system via Windows Utility integrate with HMI software pack age via Modbus TCP driver or Modbus TCP OPC Server Even more you can use the DLL driver or OCX component to develop your own applications EZS ADAM 5000 TCP User s Manual Understanding Your System Chapter 1 1 2 8 Security Setting Though Ethernet technology comes with great benefits in speed and integration there also exist risks about network invasion from outside For this reason a security protection design was built into the ADAM 5000 TCP Seres 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 1 2 9 UDP Data Stream Most of time each host PC in a DA amp C system needs to regularly request the I O devices via TCP IP packs to update current data It may cause to data collision and lower performance on the network especially when there are frequent communication between multi servers and I O devices To reduce the communication loading of the host computer on your Ethernet network the ADAM 5000 TCP Seriesalso supports UDP User Datagram Protocol protocol to broadcast the data packs to specific IPs without requesting commands Users can apply this great feature to implement Data Stream Event Trigger and other advanced functions 1 2 10 Modbus Ethernet Data Gateway Much more than an I O system ADAM 5000 TCP Series provid
70. AM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi Name Description Syntax Response All Analog Data In 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 aaSi 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 Si identifies the I O slot i 0 to 7 of ADAM 5000 TCP system you want to read cr is the terminating character carriage return ODh data data data data data data data data cr if the command is valid Engineering Unit Data For mat dddd dddd dddd dddd dddd dddd dddd dddd cr if the command is valid Two s Complement Data Format 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid data is the input value in engineering units of the interrogated module of the specified system The data from all channels is shown in sequence from 7 to 0 If data it means the channel is invalid ADAM 5000 TCP User s Manual 6 85 Chapter 6 Og Planning Your Application Program dddd is the i
71. AM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjo Name 4 mA Calibration Description Directs the specified channel to store parameters fol lowing a calibration for 4 mA output Syntax aaSiCjO er 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 channel j j 0 to 3 of the module you want to calibrate 0 is the 4 mA calibration command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Note Before issuing the 4 mA Calibration command the analog out put module should be trimmed to the correct value using the Trim Calibration command Either a mA meter or a resistor and voltmeter should be connected to the module s output ADAM 5000 TCP User s Manual 6 135 Chapter 6 Og Planning Your Application Program aaSiCj1 Name 20 mA Calibration Description D
72. ASCII Command Figure 6 3 ASCII Command Structure in ADAM 5000 TCP 6 4 1 Sytax of ASCII Command Syntax delimiter character address slot channel command data checksum carriage return Every command begins with a delimiter character There are four valid characters and O The delimiter character is followed by a two character address hex deci mal that specifies the target system The two characters following the address specified the module slot and channel Depending on the command an optional data segment may follow the command string An optional two character checksum may also be ap pended to the command string Every command is terminated with a carriage return cr Note All commands should be issued in UPPERCASE characters only The command set is divided into the following four categories System Command Set Analog Input Command Set Analog Output Modules Command Set Digital I O Modules Command Set ADAM 5000 TCP User s Manual Chapter 6 Og 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 ona certain module can be completely differ ent than that of another Therefore the full command sets for each type of modules are listed
73. C ADAM 5000 TCP User s Manual pool bee Grounding Reference Double Isolated Cable Second Layer First Layer Reduce wire Impedance and Use Aluminum foll to enhance cable Intensity by cover those wires for those parallel nude conductors Isolating the external nolse Figure C 10 Double isolated cable e 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 This spiraled structure makes an isolated layer for reducing external noisC Additionally follow these tips just for your referencC e The shield of a cable cannot be used for signal ground The shield is designed for carrying noise so the environment noise will couple and interfere with your system when you use the shield as signal ground e The higher the density of the shield the better especially for commu nication network e Use double isolated cable for communication network AI AO e Both sides of shields should be connected to their frame while inside the devicC for EMI consideration e Don t strip off too long of plastic cover for soldering ADAM 5000 TCP User s Manual Grounding Reference Appendix C C 2 2 System Shielding Never stripping too long of the plastic cable cover Cascade those shields together by
74. Configuration rrsernnnvnnvnnnvnnnvnnnvnnnvnnnvnnnen 5 9 Figure 5 11 Current Analog Input Status rrrnnnvnnnnnnnnnnvnnvnnnnvnnnennvnnnennn 5 10 Figure 5 10 Operating and Indicating ICONS rrsvrnnvnnnennvnnnnnnnennvnnnvnnnnnnnr 5 10 Figure 5 12 setting range and integration time rrsnvnrnnvrnnnvnnnnnvnnnnenn 5 11 Figure 5 13 Analog Module Configuration Screen rrsrnsvnnnvnnnvnnnvnnnvnnn 5 12 Figure 5 14 Counter Frequency Module Configuration rrxennnvnnnennnr 5 12 Figure 5 15 Location of Counter Frequency Module rsvnnnvrnnvnnnvnnnennn 5 13 Figure 5 16 Alarm Setting for Analog Input and Counter Modules 5 14 Figure 5 17 Zero Calibration rssvnnnvnnnvnnvnnnvnnnennnvnnnvnnnvnnvnnnvnnnnnnnvnnennnen 5 15 Figure 5 18 Span Calibration rernsnvnnvnnnvnnnvnnnnnnnvnnnennnennnnnnvnnnvnnnennnennennn 5 15 Figure 5 19 CJC Calibration rssvnnnvnnvnnnvnnnvnnnvnnnnnnvnnnvnnnennvnnnnvnnnnnnnnnnvnnnn 5 16 Figure 5 20 Analog Output Module Calibration rsrnnvrnnvnnnvnnnvnnnennnvnner 5 16 Figure 5 21 Firmware Upgrade usnnennnnvnnnvnnnnnnnnnnvnnnnvnnnnnnnnnnnnnnvnnnnennnnenne 5 17 Figure 5 22 Password Setting musensvnnvnnennvnnnnnvnnnnnnvnnennennennennnnnnnnnnnnenne 5 18 Figure 5 23 Command Emulation ravrnnvnnnvnnnvnnnvnnvnnnvnnnnvnvnnnnvnnnnnnennnennn 5 19 Figure 5 24 Data Stream Configuration snrnnrnnvnnvnnvnnvnnnenvnnnennennvenennenn 5 20 Figure 5 25 Data Stream Monitoring rrnnnvn
75. Fail AA cr Example Command 01XR Response 011234 AAXEWmm Description Set WDT timeout slot enable mask Syntax AAXEWmm cr mm indicates a 2 character hexadecimal value representing the WDT timeout slot enable mask of the ADAM 5000 Response Success AA cr Fail AA cr Example Command 01 XEWFF Response 01 Planning Your Application Program Chapter 6 6 AAXER Description Get WDT timeout slot enable mask Syntax AAXER cr mm indicates a 2 character hexadecimal value representing the WDT timeout slot enable mask of the ADAM 5000 Response Success AAmm lt cr Fail AA cr Example Command 01XER Response 01FF AAXSiIDmMmmm Description Set WDT timeout channel enable mask Syntax AAXSiDmmmm er mmmm indicates a 4 character hexadecimal value representing the WDT timeout channel enable mask of the DIO module Response Success AA cr Fail AA cr Example Command 01 XSODFFFF Response 01 ADAM 5081 Counter Frequency Command Set Planning Your Application Program Command Syntax aaT aaF aaSiArrff aaSiB aaSi aaSiCj aaSi data aaSi aaSiCj5s Command Name Read Module Name Read Firmware Version Set Configuration Read Configuration Read All Channel Counter Frequency Data Read One Channel Counter Frequency Data Set Digital filter Scale Read Digital filter scale Set Counter Start Stop Description Returns t
76. LL AVM OR On ie Se DR Fyveve ex Ses MOE eee VN EMV ON EV EYES ORES CIPS oq s y EN BREUER EEN EVES Es ll a i Ethernet AD ANTECH Industrial Automation 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 Information provided in this manual is intended to be accurate and reliable However Advantech Co Ltd assumes no responsibility for its use nor for any infringements upon the rights of third parties which may result from its use Acknowledgments IBM and PC are trademarks of International Business Machines Corporation Edition 4 0 Aug 2007 Product Warranty Advantech warrants to you the original purchaser that each of its products will be free from defects in materials and workmanship for two year from the date of purchase This warranty does not apply to any product which have been repaired or altered by other than repair personnel authorized by Advantech or which have been subject to misuse abuse accident or improper installation Advantech assumes no liability as a consequence of such events under the terms of this Warranty Because of Adva
77. Program Chapter 6 6 6 4 6 WatchDog Timer Command Set Command Syntex Command Response Syntex Command Description SAAXdddd cr Set WDT timeout value Success AA cr Fail AA cr dddd is the WDT timeout value in engineering units seconds SAAXR cr Get WDT timeout value Success AAdddd cr Fail AA cr The same as AAXdddd cr SAAXEWmm cr Set WDT timeout slot enable mask Success AA cr Fail AA cr mm indicates a 2 character hexadecimal value representing the WDT timeout slot enable mask of the ADAM 5000 SAAXER cr Get WDT timeout slot enable mask Success AAmm cr Fail AA cr The same as SAAXEWmni cr SAAXSiDmmmni cr Set WDT timeout channel enable mask Success AA cr Fail AA cr mmmm indicates a 4 character hexadecimal value representing the WDT timeout channel enable mask of the DIO module SAAXSi cr Get WDT timeout channel enable mask AAXdddd Description Syntax Response Example Success AAmmmni cr Fail AA cr The same as SAAXSiDmmmm cr Set WDT timeout value AAXdddd cr dddd is the WDT timeout value in engineering units seconds Success AA cr Fail AA cr Command 01X1234 Response 01 Planning Your Application Program Chapter 6 6 AAXR Description Get WDT timeout value Syntax AAXR cr dddd is the WDT timeout value in engineering units seconds Response Success AA cr
78. RhC is the command for reading Alarm Connection h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aaSkCn cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system SkCn identifies the desired slot k and the desired digital output point n n 0 to F to which the input alarm is connected If the values of k and n are the analog input has no connection with a digital output point ADAM 5000 TCP User s Manual 6 179 Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S0C1IRLC cr response 01S C1 cr Channel 1 of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh 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 WR ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAhU data Name Set Alarm Limit Description Set the High Low alarm limit value for the specified Syntax Response input channel o
79. SiAFFff 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 of the ADAM 5000 TCP sys tem containing the ADAM 5017H 5017UH module you want to configure AFF represents the set data format command ff represents the 2 character hexadecimal code of the data format 00 is for engineering unit format 02 is for two s complement format cr is the terminating character carriage return ODh Note Each channel in an ADAM 5017H 5017UH module may be set to a differ ent range but the data formats of all channels in this module must be the same Response Example 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S3AFF00 cr response 01 cr The data format of the ADAM 5017H 5017UH module in slot 3 of the ADAM 5000 TCP system at address O1h is configured for engineering unit format The response indicates that the command has been received as a valid command
80. SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 S is the Read Alarm Status command cr represents terminating character carriage return ODh Response taahl er if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address Modbus of the corresponding ADAM 5000 TCP system h represents the status of High alarm 1 means the High alarm occurred 0 means it did not occur I represents the status of Low alarm 1 means the Low alarm occurred 0 means it did not occur cr represents terminating character carriage return ODh HJ ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1S cr response 0101 cr The command instructs the system at address O1h to return its alarm status for channel I of slot 0 The system responds that a High alarm has not oc curred and that a Low alarm has occurred ADAM 5000 TCP User s Manual 6 107 Chapter 6 Og Planning Your Application Program Analog Input Alarm Command Set Command Name Description Set Alarm Mode Sets the High Low alarm in either Momentary or Latching mode Read Alarm Mode Returns the alarm mode for the specified c
81. Soldering Bi E ka ER the shield to Frame Ground of DC Power Supply j Figure C 11 System Shielding Never stripping too much of the plastic cable cover This is improper and can destroy the characteristics of the Shielded Twisted Pair cablC Besides the bare wire shield easily conducts the noisC Cascade these shields together by soldering Please refer to following page for further detailed explanation Connect the shield to Frame Ground of DC power supply to force the conducted noise to flow to the frame ground of the DC power supply The frame ground of the DC power supply should be connected to the system ground ADAM 5000 TCP User s Manual C 13 Appendix C leg Grounding Reference Characteristic of Cable This will destroy the twist rule Dont strip off too long of plastic cover for soldering or will Influence the characteristic of twistedpalr cable Figure C 12 The characteristic of the cable e 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 ADAM 5000 TCP User s Manual Grounding Reference WiN ge System Shielding I EN A difficult way for signal Figure C 13 System Shielding 1 e Shield connection 1 If you break into a cable you might get in a hurry to achieve your goal As in all electroni
82. Syntax Response Read Alarm Status Read whether an alarm occurred for the specified input channel in the specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i and the desired chan nel j S is the Read Alarm Status command cr represents terminating character carriage return ODh taahl er if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system h represents the status of High alarm 1 means the High alarm occurred 0 means it did not occur represents the status of Low alarm 1 means the Low alarm occurred 0 means it did not occur cr represents terminating character carriage return ODh 6 185 ADAM 5000 TCP User s Manual Chapter 6 Og 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 O1h is config ured to read alarm status The High alarm has occurred and low alarm has oc RI ADAM 5000 TCP User s Manual Planning Your Application
83. TD Configuration Sets slot index input range data format and integra tion time for a specified RTD input module in a speci fied system 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 desired slot i 1 0 to 7 A represents the I O module configuration command rr represents the 2 character hexadecimal code of the input range See Appendix B ff is a hexadecimal number that equals the 8 bit pa rameter representing data format Bits 0 and 1 repre sent data format Bit 7 represents integration time The layout for the 8 bit parameter is shown in Figure 6 4 The other bits are not used and are set to 0 cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S3A2000 cr response 35 cr The RTD input module in slot 3 of the ADAM 5000 TCP system at address O1h is configured to an RTD type Pt 100 to 100 C engi
84. XXXX represents 0 3 channels each of which is represented by one XX cr is the terminating character carriage return ODh Chapter 6 Og Planning Your Application Program ADAM 5080 Counter Frequency Command Set Command Syntax Command Name Description Returns the module aaT Read Module Name name from a specified ADAM 5000 system Returns the firmware Read Firmware version code from a specified ADAM 5000 system aaSiAntt Set Configuration Set slot index and Counter mode The command requests aaSiB Read Configuration the Configuration of slot aaF Version Returns the input value of all channels for the specified input module aaSi Read All Channel for a specified system in Counter Frequency engineering unit only Data The command will return Read One Channel the input value from one aaSiCj Counter Frequency of the four channels of a Data specified module Set the filter seconds to aaSi data Set Digital filter Scale ffi measure the input Read the filter seconds Read Digital filter to start to measure the ae sal input signal Request the addressed aaSiCj5s Set Counter counter frequency Start Stop module to start or stop the counting ERI ADAM 5000 TCP User s Manual Planning Your Application Program RAEI G seascs Clear Counter Clear the counters of the specified The command requests the Read Overflow addressed module to return the status of the Flag
85. a function When assigned to ADAMSKTCP Receive Stream WhenAlarm means ADAMSKTCP DLL only signals event object when a alarm status is triggered Then the application can receive the alarm informa tion about the ADAM 5000 TCP by calling ADAMSKTCP_ReadAlarmInfo function Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 25 Chapter 6 Og Planning Your Application Program ADAMSKTCP Debug Description Trace the executive information about streaming data mechanism in ADAMSKTCP DLL It is convenient to troubleshooting of user s appli cations Syntax int ADAMSKTCP_Debug int iMatchIndex int 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 I means second 2 means third and so on The ordinal is implied when calling ADAMSKTCP_AddSKTCPForStream function iReceiveCount out counts how many stream data have arrival iThreadRun out indicating the working thread status in ADAMSKTCP DLL iTotalStream out reserved szFromIP out specify the IP Address of ADAM 5000 TCP which sends the stream data Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_UDPOp
86. ach ADAM 5000 1 0 modules System Configuration Guide Guides users to use Windows Utility for network amp security setting I O range configuration accuracy calibration command setting and so on Planning Your Application Program Introduces the functions and structure of DLL drivers and command sets Explain how to integrate these programming tools to plan your application program Design Worksheets Provides organized worksheets for users to establish system configuration document in order Data Formats and I O Range Provides detail information about Data formats and I O Range of Analog Module Grounding Reference Explains the concepts about fietc grounding and shielding 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 De Flow Chart Select I O Module Select Power Supply Select Link Terminal amp Cable Select Operator Interface Determine Proper Environment Install Main Unit and Module System Mounting Wiring and Connecting I O Address Mapping Individual I O Module Introduction Selecting Your Hardware Component Hardware Installation Guide T O Modules i Introduction System Hardware Configuration Install Utility Software T O Module Configuration l Network Setting T O Mod
87. adeci mal Modbus network address of the ADAM 5000 TCP system SiCj identifies the I O slot i and the channel j of the module you want to set 5 is the command for reading counter Start Stop cr is the terminating character carriage return ODh taas 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system s represents start stop command s 0 indicate stop counter s 1 indicate start counter cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 163 Chapter 6 Og 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 O1h is instructed to re turn its counter status The counter status is in start status eke ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj6 Name Description Syntax Response Clear Counter Clear the counters of the specified counter frequency module aaSiCj6 cr is a delimiter character aa range 00 FF represents th
88. alarm enable disable and can have the value E Enable D Disable cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 113 Chapter 6 Og Planning Your Application Program Example command 01S0C1ALEK cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h 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 take effect During this interval the module cannot be addressed to perform any other actions eel ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjCh Name Description Syntax Response Clear Latch Alarm Sets the High Low alarm to OFF no alarm for the specified input channel in the addressed ADAM 5000 TCP system aaSiCjCh cr is a delimiter character aa range 00 FF represents the 2 character hexadeci mal Modbus netwo
89. alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh Response aa data cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system data represents the desired alarm limit setting The format is always in engineering units cr represents terminating character carriage return ODh HUZI ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1RHU cr response 01 2 0500 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h 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 ADAM 5000 TCP User s Manual 6 105 Chapter 6 Og 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 tem 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
90. am aaSi6 Name Description Syntax Response Example Read Channels Status Asks a specified input module to return the status of all channels 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 Si identifies the I O slot of the system you want to read channels status The channel status defines whether a channel is enabled or disabled 6 is the read channels status command cr is the terminating character carriage return ODh aamm lt 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system mm are two hexadecimal values Each value is inter preted as 4 bits The first 4 bit value represents the status of channels 4 7 the second 4 bits represents the status of channels 0 3 A value of 0 means the channel is disabled while a value of 1 means the chan nel is enabled cr is the terminating character carriage return ODh command 01S16 cr response 01FF cr The command asks the analog input module in slot 1 of the system at address Olh to send
91. arm mode and can have the value M Momentary mode L Latching mode cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 109 Chapter 6 Og Planning Your Application Program Example command 01S0C1A HL cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to set its High alarm in Latching mode The module confirms that the command has been received WE ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAh Name Description Syntax Response Read Alarm Mode Returns the alarm mode for the specified channel in the specified ADAM 5000 TCP system 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 SiCj identifies the desired slot i 1 0 to 7 and the desired channel j j 0 to 7 Ah is the Read Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm cr represents t
92. as entered There is no response if the module detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh aA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 A user first issues an RTD self calibra tion command and then issues zero and span cali bration commands Syntax aaSi2 cr is a delimiter character aa range 00 FF represents the 2 character hexa decimal Modbus network address of the ADAM 5000 TCP system which contains the module to be calibrated Si identifies the desired slot 1 1 0 to 7 containing the module to be calibrated 2 represents the self calibration command cr is the terminating character carriage return Dh Response taa 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 d
93. at address Olh 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 Note An analog input module requires a maximum of 2 seconds after it receives a Set Alarm Limit command to let the settings take effect During this interval the module cannot be addressed to perform any other actions WPA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhU Name Description Syntax Response Read Alarm Limit Returns the High Low alarm limit value for the speci fied input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 RhU is the Read Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh taa data cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system data rep
94. ated into one numerical string such as above we can still easily discern the values of 4 channels specifically as 0000098700 0000064900 0000076200 0000011600 What you see here is actually the input values of all channels returned from slot 2 of the ADAM 5000 TCP system at address Olh and in decimal format However it is not the actual frequency ADAM 5000 TCP User s Manual 6 155 Chapter 6 Og 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 gt 0000F 1000002000000031000000DD400 cr The command requests the module in slot 2 of the ADAM 5000 TCP system at address 01h to return the input values of all channels The module response that input values if all chan nels are hexadecimal 0000F 100 00020000 00031000 000DD400 The actual frequency can be obtained by transfer ring hexadecimal format to decimal format Then di vide the response value by 100 Therefore taking an example of the value above the actual frequency should be F100 hexdecimal 24100 decimal actual frequency 24100 100 241 ely ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 HaaSiCj Name Description Syntax Response Read One Channel Counter Frequency Data The command will return the input value
95. ation 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus address of an ADAM 5000 TCP sys tem cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 73 Chapter 6 Og Planning Your Application Program aaSiO 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 Si identifies the I O slot which is to be calibrated 0 represents the span calibration command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Note In orde
96. by ADAM 5000 TCP List the target equipment in different function areas Step2 Identify the I O types of each equipment and full fill Table A 1 to establish the I O data base ADAM 5000 TCP User s Manual Design Worksheets Appendix A A VO Function Input or Module Voltage of Current off Special Area Fduipment Output Product Range Range Requirements No Table A 1 I O Data Base ADAM 5000 TCP User s Manual A 3 Appendix A PN Design Worksheets Step3 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 4 In column D total the number of the I O point you need 5 In column E calculate the total number of these modules that you will need for these ADAM 5000 TCP systems 6 Incolumn F enter the number of spare modules that you may need for future expansion in these ADAM 5000 TCP systems 7 In column G enter the total number Required Spare of these mod ules that you need for these ADAM 5000 TCP systems ADAM 5000 TCP User s Manual Design Worksheets Appendix A A lt A gt ADAM 5000 TCP IP Address lt B gt 1 0 Module Product No lt gt I O Points per Module
97. c 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 The noise will try to find another path for easier flow ADAM 5000 TCP User s Manual C 15 Appendix C leg Grounding Reference System Shielding more easy way for signal Figure C 14 System Shielding 2 e Shield connection 2 The previous diagram shows you that the fill soldering just makes an easier way for the signal ADAM 5000 TCP User s Manual Grounding Reference Appendix C C 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 possibIC Use Twisted and Shielded signal leads Ground shields on one end ONLY while the reference grounds are not the same Check for stability in communication lines Add another Grounding Bar if necessary The diameter of power cable must be over 2 0 mm Independent grounding is needed for A I A O and communication network while using a jumper box Use noise reduction filters if necessary TVS etc You can also refer to FIPS 94 Standard FIPS 94 recommends that the computer system should be placed closer to its power source to elimi nate load induced common mode noisC Noise Reduction Techniques Ext
98. cating a valid command was received delimiter character indicating the command was invalid 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 ODh ADAM 5000 TCP User s Manual 6 161 Chapter 6 Og 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 ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj5 Name Description Syntax Response Read counter Start Stop Requests the addressed counter frequency module to indicate whether counters are active 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 SiCj identifies the I O slot i and the channel j of the module you want to set 5 is the command for reading counter Start Stop cr is the terminating character carriage return ODh taas 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was
99. ceive data from the specific ADAM 5000 TCP Series This UDP Data Stream function broadcasts up to 8 host PCs simultaneously and the interval is user defined from 50ms to 7 Days ADAM SOOO TCP Utiker Vi Bb Tool dete Help Nak Sma Charge Patsani Pionie Erdes the dala sheareng rderval Das Howes Mimes Secondr Seconds m am om se To ae hosts to acca the toa data OW EE Update aF F Update HV AEE Update BF fader Update SR frites vows GF fiooor Update ar foer Wesss 7 frode pdas RS 4 Modbus Form Skotbakonanen Date Shean ner Figure 5 24 Data Stream Configuration Data Stream Monitoring After finishing the configuration of Data Stream you can select the item Monitor Data Stream in the function bar or click icon to call up opera tion display as Figure 5 25 ADAM 5000 TCP User s Manual System Hardware Configuration Chapter 5 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 ADAM 5000 TCP User s Manual 5 21 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
100. character carriage return ODh Response taarrff er 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system rr represents the 2 character hexadecimal code of the input range ff is a hexadecimal number that equals the 8 bit pa rameter representing data format Bit O and 1 repre sent data format Bit 7 represents integration time See Configuration Command aaSiArrff cr is the terminating character carriage return ODh Example command 01S1B TRPIN 101000 The ADAM 5018 analog input module in slot 1 of the ADAM 5000 TCP system at address Olh responds with an input range 15mV engineering units data format and integration time 50ms 60Hz 74 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi5smm 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 syste
101. ci mal Modbus network address of the ADAM 5000 TCP system Si identifies the I O slot of the system you want to read 6 is the Digital Data In command cr is the terminating character carriage return ODh Response aa datainput datainput 00 cr if the command is valid ADAM 5051 5050 5055 6 141 ADAM 5000 TCP User s Manual Chapter 6 og Planning Your Application Program Example 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system datainput a 2 character hexadecimal value represent ing the input values of the digital input module dataoutput a 2 character hexadecimal value which is the read back of a digital output channel or relay cr is the terminating character carriage return ODh command 01S26 cr response 01112200 cr The command asks the digital input module in slot 2 of the ADAM 5000 TCP system at address O1h to return the values of all of its channels The first 2 character porti
102. code standard for user s reference Name Usage Read Coil Status Read Discrete Output Bit Read Input Status Read Discrete Input Bit Read Holding Registers Read 16 bit register Used to read integer or Read Input Registers floating point process data Force Single Coil Write data to force coil ON OFF Preset Single Register Write data in 16 bit integer format Loopback Diagnosis Diagnostic testing of the communication port Force Multiple Coils Write multiple data to force coil ON OFF Preset Multiple Registers Write multiple data in 16 bit integer format Table 6 1 Response Comment Structure Function Code 01 The function code 01 is used to read the discrete output s ON OFF sta tus of ADAM 5000 TCP in a binary data format Request message format for function code 01 Command Body Start Start Requested Requested Address Address Number of Coil Number of High Byte Low Byte High Byte Coil Low Byte Station Function Address Code ADAM 5000 TCP User s Manual 6 33 Chapter 6 Og Planning Your Application Program Example Read coil number to 8 address number 10001 to 10008 from ADAM 5000 TCP 010100010008 Response message format for function code 01 Command Body Station Function Address Code Example Coils number 2 and 7 are on all others are off 01010142 In the response the status of coils 1 to 8 is shown as the byte value 42 hex equal
103. command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system ADAM 5000 TCP 6 181 User s Manual Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh 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 RY ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhU Name Description Syntax Response Read Alarm Limit Return the High Low alarm limit value for the speci fied input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i and the desired chan nel j RhU is the Read Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aa data cr if the command was valid There is no response if the system detects a syntax error or communication e
104. d block I O module Discrete output module and block I O module Alarms control relays fans lights horns Output module signals interface valves motor starters solenoids with ON OFF or OPENED CLOSED devices Discrete signals can be either ac or de Analog input module Thermocouple signals RTD signals temperature transducers pressure transducers load cell transducers humidity transducers flow transducers potentiometers Convert continuous analog signals into input values for ADAM 5000 TCP Analog output module Analog valves actuators chart recorders electric motor drives analog meters Interpret ADAM 5000 TCP Series output to analog signals generally through transducers for field Cevices Table 2 1 I O Selection Guidelines RN ADAM 5000 TCP User s Manual Selecting Your Hardware Components Chapter 2 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 F Digital Input Digital Module Analog Module Analog Output Communication Module for ADAM 5510 amp ADAM 5511 only Analog Input T TT Digital Output Counter Mixed I O lt 5051 Digital Input Module 16ch 5051D Digital Input Module With LED 16 ch 051S Isolated DI Module with LED 16 ch 5052 Isolated DI Module 8ch 5056 D
105. d input channel in the addressed ADAM 5000 system Read Alarm Connection Sets the High Low alarm limit value for the specified input channel of a specified ADAM 5000 system Set Alarm Limit Returns the High Low alarm limit value for aaSiCjRhU Read Alarm Limit the specified input channel in the addressed ADAM 5000 system Reads whether an alarm occurred for the aaSiCjs Read Alarm specified input channel in the specified Status ADAM 5000 system Table 6 10 Counter Frequency Command Set Table ADAM 5000 TCP User s Manual 6 149 Chapter 6 Og 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 T is the command for reading Module Name cr is the terminating character carriage return ODh Response taaFFFFFFFF Ccr if the command is valid aa cr if an invalid operation was entered There is no response if the module detects a syntax error communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system FFFFFFFF indica
106. d transient suppressors isolate ADAM 5000 TCP Series Ethernet port from dangerous voltage up to 1500V e power spikes and avoid surge damage to whole system 1 2 5 Completed set of I O modules for total solutions The ADAM 5000 TCP Series uses a convenient backplane system common to the ADAM 5000 series Advantech s complete line of ADAM 5000 mod ules integrates with the ADAM 5000 TCP Series to support your applications not include ADAM 5090 Full ranges of digital module supports 10 to 30 V c input and outputs A set of analog modules provide 16 bit resolution and programmable input and output including bipolar signal ranges For details refer to Chapter 4 I O Modules 1 2 6 Built in real time OS and watchdog timer The microprocessor also includes a real time OS and watchdog timer The real time OS is available to handle several tasks at the same time The watchdog timer is designed to automatically reset the microprocessor if the system fails 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 1 2 7 Software Support Based on the Modbus standard the ADAM 5000 TCP Seriesfirmware is a built in Modbus TCP server Therefore Advantech provides the neces sary DLL drivers OCX component OPC Server and Windows Utility for users for client data for the ADAM 5000 TCP Series Users can configure this D
107. de down or on a flat horizontal surface A standard 7 tatting screw 4 mm diameter should be used Figure 3 3 ADAM 5000 TCP panel mounting screw placement 3 3 2 DIN rail mounting The system can also be secured to the cabinet by using mounting rails see figure 3 4 If you mount the system on a rail you should also consider using end brackets at each end of the rail The end brackets help keep the system from sliding horizontally along the rail This mini mizes the possibility of accidentally pulling the wiring loose If you exam ine the bottom of the system you will notice two small retaining clips To secure the system to a DIN rail place the system on to the rail and gently push up on the retaining clips see figure 3 5 The clips lock the system on the rail To remove the system pull down on the retaining clips lift up on the base slightly and pull it away from the rail EZE ADAM 5000 TCP User s Manual Hardware Installation Guide Figure 3 4 ADAM 5000 TCP DIN rail mounting Figure 3 5 Secure ADAM 5000 TCP System to a DIN rail 3 5 Manual ADAM 5000 TCP User s Chaptei EI Hardware Installation Guide 3 4 Wiring and Connections This section provides basic information on wiring the power supply I O units and network connection 3 4 1 Power supply wiring Although the ADAM 5000 TCP Series systems are designed for a standard industrial unregulated 24 V DC power sup
108. delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S3C2P0000004369 cr response 01 cr The channel 2 of ADAM 5080 in slot 3 in ADAM 5000 TCP system at address O1h is instructed to set initial counter value The initial counter value is 4369 ADAM 5000 TCP User s Manual 6 169 Chapter 6 Og 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 G is the last value readback command cr is the terminating character carriage return ODh Response aa data 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system
109. delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system data is the input value in engineering units of the specified channel for the specified RTD input mod ule of the specified system If data it means the channel is invalid ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 cr is the terminating character carriage return ODh Example command 01S3C0 cr response gt 80 01 cr The command requests the RTD input module in slot 3 of the ADAM 5000 TCP system at address O1h to return the input value of channel 0 The RTD input module responds that the input value of channel 0 is 80 01 C ADAM 5000 TCP User s Manual 6 55 Chapter 6 Og 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 Following initialization the problem module should readily accept calibration Syntax aaSiER cr is a delimiter character aa range 00 FF represents the 2 character hexadeci mal Modbus network address of the ADAM 5000 TCP system Si identifies the I O slot in which you wish to initial ize all EEPROM data ER represents
110. digital output value s When writing to a single channel bit the first char acter is always 0 The value of the second character is either 0 or I When writing to all channels byte 2 or 4 charac ters are significant The digital equivalent of these hexadecimal characters represent the channels val ues ADAM 5000 TCP User s Manual Chapter 6 og 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 Bits 6 and 7 always default to 0 in the ADAM 5060 A 2 charac ter hexadecimal value is used to set the channels from 7 thru 0 of the ADAM 5055 5068 5069 Response gt cr if the command was valid aa cr if an invalid command has been issued There is no response if the module detects a syntax error or communication error or if the specified ad dress does not exist gt delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system that is responding cr is the terminating character carriage return ODh Example command 15811201 cr response gt cr An output bit with value 1 is sent
111. digital output at point 0 of slot 1 in the same ADAM 5000 TCP system 40 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 AhU is the Set Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm data represents the desired alarm limit setting The format is always in engineering units cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 121 Chapter 6 Og Planning Your Application Program Example command 01S0C1AHU 080 00 cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system
112. dingly ADAM 5000 TCP User s Manual 6 97 Chapter 6 Og Planning Your Application Program aaSiCjAhCSkCn Name Description Syntax Response Set Alarm Connection Connects the High Low alarm of the specified input channel to the specified digital output in the ad dressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 AhC is the Set Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm SkCn identifies the desired slot k k 0 to 7 and the desired digital output point n n 0 to F To discon nect the digital output k and n should be set as cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1ALCS1C0 cr response
113. dule s configuration data format ADAM 5000 TCP User s Manual 6 139 Chapter 6 Og Planning Your Application Program cr is the terminating character carriage return ODh Example command 01S2C16 cr response 0103 000 cr The command tells channel 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 The analog output module returns the value 3 000 mA this assumes that the module was configured for the range 0 20 mA ee ADAM 5000 TCP User s Manual Planning Your Application Program RAETIA 6 4 5 Digital Input Output Command Set Kokk kjen i igi Returns the values of digital VO Digital Data In channels for a specified Module Sets output values of a single digital Ar output channel or of all digital output aaSiBB data Digitaj Data Out channels simultaneously for a specified module Asks the specified module to return i Read Channel the masking status of all digital output M aaSi Masking Status channels aaSi6 Name Digital Data In Description This command requests that the specified module in an ADAM 5000 TCP system at address aa return the status of its digital input channels and a read back value of its digital output channels Syntax aaSi6 cr is a delimiter character aa range 00 FF represents the 2 character hexade
114. e Returns the input value of all channels for a specified aaSi All Analog Data In analog input module of a specified system in currently configured data format Returns the input value of a specified channel ofa ae ified Anal specified analog input module HaaSiCj Bees iio 1200 lof a specified system in currently configured data format Lode Initializes all EEPROM data in aaSiER Initialize EEPROM 2 specified analog input Data module to their default values Calibrates a specified analog rn input module to correct for aaSiO Span Calibration asi Siors Calibrates a specified analog en input module to correct for aasSi1 Zero Calibration offset errors Table 6 6 ADAM 5017H 5017UH Analog Input command Set Table Note The command sets aasismm aasi6 aasiO aasi1 for ADAM 5017H 5017UH are the same with ADAM 5017 Please refer the preceding pages to learn the detail ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjArrFF Name Description Syntax Set Input Range Sets the input range for a specified channel of a speci fied analog input module in a specified system 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 SiCj identifies the slot i 1 0 to 7 of the ADAM 5000 TCP system and the channel j j 0 to 7 of the ADAM 5017H 5017UH whose ran
115. e 2 character hexadeci mal Modbus network 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 6 is the command for clearing counter cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid 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 ODh ADAM 5000 TCP User s Manual 6 165 Chapter 6 Og 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 Olh to clear counter value ete ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi7 Name Description Syntax Response Read Overflow Flag The command requests the addressed module to re turn the status of the overflow flag of counter aaSi7 cr is a delimiter character aa range 00 FF represents the 2 character hexadeci mal Modbus network address of the ADAM 5000 TCP sy
116. eci mal address of the ADAM 5000 TCP system which con tains the RTD module Si identifies the slot i 1 0 to 7 containing the RTD module to be calibrated 0 represents the span calibration command cr is the terminating character carriage return ODh 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 gt delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 59 Chapter 6 Og 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 aaSil 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 Si identifies the slot i 1 0 to 7 containing the RTD module to be calibrated 1 represents the zero calibration command cr is the terminating character carriage return ODh Response aa cr if the command is valid aa cr if an invalid operation w
117. ecimal address Modbus of the corresponding ADAM 5000 TCP system h represents the status of High alarm 1 means the High alarm occurred 0 means it did not occur represents the status of Low alarm 1 means the Low alarm occurred 0 means it did not occur cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 125 Chapter 6 Og Planning Your Application Program Fxample command 01S0C1S cr response 0101 cr The command instructs the system at address Olh to return its alarm status for channel I of slot 0 The system responds that a High alarm has not oc curred and that a Low alarm has occurred ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 4 4 Analog Output Command Set ee Configuration S aaSiCjB tatus aaSiCj data Analog Data Out Start Up Output Current Voltage Configuration aaSiCj4 aaSiCjo 4 mA Calibration 20 mA Calibration aaSiCj1 aaSiCj3hh Trim Calibration aaSiCj6 Last Value Readback Sets the output range data format and slew rate for a specified channel in a specified analog output module ina specified system Returns the configuration parameters of a specified channel in a specified analog output module of a specified system Sends a digital value from the host computer to a specified channel of a specified slot ina specified ADAM 5000 system for outpu
118. ed analog input module offset errors Table 6 5 ADAM 5017 5018 Analog Input command Set Table ADAM 5000 TCP User s Manual 6 63 Chapter 6 Og Planning Your Application Program aaSiArrff Name Description Syntax Configuration Sets slot index input range data format and integra tion time for a specified analog input module in a specified system 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 you want to configure A is T O module configuration command rr represents the 2 character hexadecimal code of the input range See Appendix B ff is a hexadecimal number that equals the 8 bit pa rameter representing data format Bits 0 and 1 repre sent data format Bit 7 represents integration time The layout of the 8 bit parameter is shown in Figure 6 3 The other bits are not used and are set to 0 cr is the terminating character carriage return ODh 5413 21110 v v Not used Data Format 00 Engineering unlts Integratl n Time 0 50 ms peratlon under 60 Hz power 1 80 ms Operatlon under 60 Hz power Figure 6 4 Data format for 8 bit parameters ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Response aa cr if the command is valid aa cr if an invalid
119. en Description Opens a UDP socket and sets the timeout of send receive interval to prepare send a command to ADAM 5000 TCP by UDP Syntax int ADAMSKTCP_UDPOpen int iSendTimeout int iReceiveTimeout Parameters iSendTimeout in the specified timeout interval for sending a command string to the ADAM 5000 TCP by UDP iReceiveTimeout in the specified timeout interval for receiving a re sponse string from the ADAM 5000 TCP by UDP Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 27 Chapter 6 Og Planning Your Application Program ADAM5KTCP_UDPClose Description Closes the UDP socket that has been opened by ADAMSKTCP UDPOpenO0 Syntax int ADAMSKTCP_UDPClose Parameters Void Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_SendReceiveUDPCmd Description Sends acommand to ADAM 5000 TCP and receives the response by UDP Syntax int ADAMSKTCP 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 the string in ASCII format that response from the ADAM 5000 TCP ADAM 5000 TCP User s Manual Chapter 6 Og Pla
120. er 6 Og Planning Your Application Program aaSi3 Name Description Syntax Response Example CJC Status Command ADAM 5018 only Returns the value of the CJC Cold Junction Com pensation sensor for a specified analog input mod ule aaSi3 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 which contains the CJC Sta tus you wish to retrieve 3 is CJC Status command cr is the terminating character carriage return ODh gt data 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 gt delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system data is the value that is retrieved by the module by reading its CJC sensor The data format in degrees Celsius consists of a or sign followed by five decimal digits and a fixed decimal point The resolu tion of the data is 0 1 C cr is the terminating character carriage return ODh command 01S13 cr response gt 0136 8 cr The command requests the analog input module in slot 1 of the ADAM 5000 TCP system at address O1h to read its CJC sens
121. er 6 Og 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 Olh 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 and 1 4625 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 HaaSiCj Name Description Syntax Response Specified Analog Data In Returns the input value of a specified channel for a specified analog input module of a specified system in engineering unit only 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 Si identifies the I O slot you want to interrogate Cj identifies the channel you want to read cr is the terminating character carriage return ODh gt data 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 gt is a delimiter character indicating a valid command was received delimiter character indicating the command was invalid data is the
122. er to Chapter6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program KALETA Cmts ADAM5KTCP_Close Description Terminates using the adam5ktcp dll Syntax void ADAMSKTCP_Close void Parameters void Return void ADAM 5000 TCP User s Manual 6 11 Chapter 6 Og Planning Your Application Program ADAMSKTCP Connect Description Establish a Windows Sockets connection in a speci fied ADAM 5000 TCP system Syntax int ADAMSKTCP_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 502 default iConnectionTimeout in the specified timeout interval for connecting to the ADAM 5000 TCP iSendTimeout in the specified timeout interval for sending a command to the ADAM 5000 TCP iReceiveTimeout in the specified timeout interval for receiving response from the ADAM 5000 TCP Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_Disconnect Description Disconnect the Windows Sockets connection of the specified ADAM 5000 TCP Syntax void ADAMSKTCP_Disconnect void Parameter void Return Please refer to Chapter 6 2 4 Return Codes
123. ere is no response if the module detects a syntax error communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system version represents the firmware version of the ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01F cr response 01A1 1 cr The command requsets the system at address O1h to send its firmware version The system responds with firmware version Al 1 ADAM 5000 TCP User s Manual 6 151 Chapter 6 Og 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 A is command for setting I O module configuration rr indicates which mode is rr 00 represents Bi direction counter mode rr 01 represenrs UP DOWN counter mode rr 02 represents Frequency mode ff indicates which format is ff 00 represents the engineer format ff 02 represents the hexadecimal format Response aa cr if the command is valid aa cr if an invalid operation was entered There is no respo
124. erminating character carriage return ODh aas cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system s indicates alarm mode and can have the value M Momentary mode L Latching mode cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 111 Chapter 6 Og Planning Your Application Program Example command 01S0C1AL cr response 01M cr Channel of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to return its Low alarm mode The system responds that it is in Momentary mode WM ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAhEs Name Description Syntax Response Enable Disable Alarm Enables Disables the High Low alarm of the speci fied input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i i 0 to 7 and the desired channel j 0 to 7 AhEs is the Set Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates
125. ernal Signal Separate Load and Device power Cascade ampllify Isolatlon circult before I O channel Figure C 15 Noise Reduction Techniques ADAM 5000 TCP User s Manual C 17 Appendix C leg Grounding Reference C 4 Check Point List e Follow the single point grounding rule e Normal mode and common mode voltage e Separate the DC and AC ground e Reject the noise factor e The shield is connected correctly e Wire size is correct e Soldered connections are good e The terminal screw are tight ADAM 5000 TCP User s Manual
126. es an RS 485 network interface for other Modbus devices integration It works as Ethernet Data Gateway upgrading Modbus serial network devices up to Ethernet layer Maximum 16 nodes of ADAM 5511 or 3 rd party products supported Modbus protocol are allowed to integrate with an ADAM 5000 TCPSenes This great feature enlarges your system scope as opposed to other general dummy I O system ADAM 5000 TCP User s Manual 1 5 Chapt er 1 Understanding Your System 1 3 Technical specification of ADAM 5000 TCP Series System 1 3 1 System e CPU ARM 32 bit RISC CPU e Memory 4 MB Flash RAM e Operating System Real time O S Timer BIOS Yes e T O Capacity 8 slots ADAM 5000 TCP 4 slots ADAM 5000L TCP e Status Indicator Power 3 3V SV CPU Communication Link Collide 10 100 Mbps Tx Rx e CPU Power Consumption 5 0W e Reset Push Bottom Yes 1 3 2 Ethernet Communication Ethernet 10 BASE T IEEE 802 3 100 BASE TX IEEE 802 3u e Wiring UTP category 5 or greater e Bus Connection RJ45 modular jack e Comm Protocol Modbus TCP e Data Transfer Rate Up to 100 Mbps e Max Communication Distance 100 meters e Even Response Time lt 5 ms e Data Stream Rate 50 ms to 7 days 1 3 3 Serial Communication e RS 485 signals DATA DATA e Mode Half duplex multi drop e Connector Screw terminal e Transmission Speed Up to 115 2 Kbps e Max Transmission Distance 4000 feet 1220 m
127. etwork 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 Then the tree structure display area will appeal with the searched units and the relative IP address ADAM SOOOTCP Unite Ve Bb Tool ip Help Ademtin ROSTIPC Infomation Most Name forlot IP Addis 17218 1101 AET 18115 ANG Tree structure Status Display Area Display Area Figure 5 4 Network Setting ADAM 5000 TCP User s Manual 5 5 Chapter 5 System Hardware Configuration See Figure 5 4 there are also Host PC s information in the status display area include host name and IP address Moreover the Windows Utility provides network connection test tool for user to verify whether the communication is workable Key in the specific IP address you want to connect and click the PING button the testing result will show as Figure 5 5 AON ht ow h ETEN GN fm is T Fase 3 a a RETTERE S Burnet es a or 2 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 Mean while the Device Name and Device Description are editable by operator
128. f a specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i and the desired chan nel j AhU is the Set Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm data represents the desired alarm limit setting The value is from 0 to 4294967295 Be aware that data has 10 characters cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system ADAM 5000 TCP 6 181 User s Manual Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh 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 RY ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhU Name Description Syntax Response Read Alarm Limit Return the High Low alarm limit value for
129. fies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 AhC is the Set Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm SkCn identifies the desired slot k k 0 to 7 and the desired digital output point n n 0 to F To discon nect the digital output k and n should be set as cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system ADAM 5000 TCP User s Manual 6 117 Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S0CIALCS1C0 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 I in the same ADAM 5000 TCP system The system confirms it has done so accordingly Ek ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhC Name Description Syntax Response Read Alarm Connection Returns the High Low alarm limit output connection of a specified inp
130. from one of the four channels of a specified module 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 Si identifies the I O slot you want to interrogate Cj identifies the channel you want to read cr is the terminating character carriage return ODh gt data 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 exists gt is a delimiter character delimiter character indicating the command was invalid data is the input value in engineering units of the interrogated module of the specified system If the numbers of data are ten counter frequency mode is in decimal format If the numbers of data are eight counter frequency mode is in hexadecimal format If data it means the channel is invalid cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 157 Chapter 6 Og Planning Your Application Program Fxample command 01S3C2 cr response gt 0000000451 cr The command requests the ADAM 5080 module in slot 3 of the ADAM 5000 TCP system at address O1h to return the input value of channel 2 The counter module responds that the input value of channel 2 is 451 ey ADAM 5000 TCP User s Manual Plan
131. g Units format is readily parsed by the majority of computer languages because the total data string length including sign digits and decimal point does not exceed seven charac ters The data format is a plus or minus sign followed by five decimal digits and a decimal point The input range which is employed deter mines the resolution or the number of decimal places used as illustrated in the following table Input Range Resolution 15 mV 50 mV 1 uV three decimal places 100 mV 150 mV 500 mV 10 uV two decimal places 1 V 12 5 V 15 V 100 uV four decimal places 10 V 1 mV three decimal places 20 mA 1 pA three decimal places Type J and T thermocouple 0 01 C two decimal places Type K E R S and B ADAM 5000 TCP User s 0 1 C one decimal places Manual Data Formats and I O Ranges Appendix B B 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 The analog input module is configured for a Type J thermocouple whose range is 0 C to 760 C The response to the Analog Data In command is 305 50 cr Example 3 The input value is 5 653 V The analog input module is configured for a range of 5 V range When the engineering units format is used the ADAM Series analo
132. g a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system data represents filter seconds from 8 us 65000 us Be aware that data has 5 characters cr is the terminating character carriage return ODh Example command 01S30 cr response 0100765 cr The command requests the ADAM 5080 in slot 3 of the ADAM 5000 TCP system at address O1h to read the filter seconds The module responds with 765m seconds HG ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj5s Name Description Syntax Response Set Counter Start Stop Request the addressed counter frequency module to start or stop the counting 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 SiCj identifies the I O slot i and the channel j of the module you want to set 5 is the command for setting counter Start Stop s represents start stop command s 0 indicate stop counter s 1 indicate start counter cr is the terminating character carriage return ODh 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 exists delimiter character indi
133. g input modules are configured so that they auto matically provide an over range capability The response to the Analog Data In command in this case is 5 6530 cr ADAM 5000 TCP User s Manual B 3 Appendix B 2J Data Formats and I O Ranges B 2 Analog Input Ranges ADAM 5017 Input Range Data Displayed Actual Module Code Basil Formats FRS Zero FS Resolution Value Engineering 10 000 400 000 9 500 1 mv z Reading 08h HOV OfFSR 100 00 4000 00 19500 0 01 OD Somen ei 7FFF 0000 8000 1 LSB ere 5 0000 40 0000 59990 100 00 pv P Reading ogh 5V of FSR 100 00 000 00 9900 001 an Coat 7FFF 0000 8000 1 LSB ee 1 0000 0 0000 999 100 00 uv o 7 Reading OAh HV OfFSR 100 00 4000 00 19500 0 01 caan Two s Sii east oral WBE Lag 0000 8000 LSB 5017 ies 7 Engineering 4500 00 000 00 295 ag Ouv s Reading oBh 4500 mV Of FSR 100 00 2000 00 Jogoo 0 01 a ee 7FFF 0000 8000 LSB Engineering 4150 00 000 00 466 99 OV z Reading och 150 mv OfFSR 100 00 000 00 19500 0 01 aa ines 7FFF 0000 8000 LSB Engineering 90 000 400 000 29 500 1 pV o a Reading ODh 20 mA OfFSR 100 00 000 00 19500 0 01 seth Two s 7FFF 0000 8000 1 LSB Complement ADAM 5000 TCP User s Manual Data Formats and I O Ranges Ap B 3
134. ge data format and integration time for a specified RTD input module in a specified system RTD Configuration Returns the Status configuration parameters for a specified RTD input module in a specified system All RTD Data In Returns the input values of all channels of a specified RTD input module of a specified system in engineering units Specified RTD Data Returns the input value In of a specified channel for aspecified RTD input module of a specified system in engineering units ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Initialize EEPROM Data Enable Disable Channels for Multiplexing Read Channels Status RTD Span Calibration RTD Zero Calibration RTD Self Calibration Initializes all EEPROM data in a specified RTD input module to their default values Enables disables multiplexing simultaneously for separate channels of the specified input module Asks a specified input module to return the status of all channels Calibrates a specified RTD input module to correct for gain errors Calibrates a specified RTD input module to correct for offset errors Causes a specified RTD input module of a specified system to do a self calibration Table 6 4 ADAM 5013 RTD Input command Set Table ADAM 5000 TCP User s Manual 6 49 Chapter 6 Og Planning Your Application Program aaSiArrff Name Description Syntax Response Example R
135. ge you want to set A represents the set input range command rr represents the 2 character hexadecimal code of the input range See Appendix B cr is the terminating character carriage return ODh Note Each channel ina ADAM 5017H 5017UH module may be set to a differ ent range but the data formats of all channels in this module must be the same Response Example 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S3C1A0bFF cr response 01 cr Channel 1 of the ADAM 5017H 5017UH module in slot 3 of the ADAM 5000 TCP system at address Olh is set to the input range 0 20 mA engineering unit data for mat The response indicates that the command has been received as a valid command ADAM 5000 TCP User s Manual 6 81 Chapter 6 Og 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
136. gnal 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 Si identifies the I O slot which is to be accessed 0 is the command for reading digital filter scale cr is the terminating character carriage return ODh Response aa data 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system data represents filter seconds from 8 us 65000 us Be aware that data has 5 characters cr is the terminating character carriage return ODh Example command 01S30 cr response 0100765 cr The command requests the ADAM 5080 in slot 3 of the ADAM 5000 TCP system at address O1h to read the filter seconds The module responds with 765m seconds HG ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj5s Name Description Syntax Response Set Counter Start Stop Request the addressed counter frequency module to start or stop the counting aaSiCj5s cr is a delimiter character aa range 00 FF represents the 2 character
137. h with ADAM 5000TCP Series after completing S W installa tion you ll find the relational example files for each kind of programming languages after setup the Windows Utility program You can customize the source code to create your own tailor made ADAM 5000 TCP Series setup program or monitoring system 6 2 1 Index Function Libraries Pages ADAMSKTCP_Open 69 ADAMSKTCP Close 6 10 ADAMSKTCP Connect 6 11 ADAMSKTCP Disconnection 6 12 ADAMSKTOCP GetDLL Version 6 13 ADAMSKTCP ReadReg 6 14 ADAMSKTCP WriteReg 6 15 K MADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Function Libraries Pages ADAMSKTCP ReadCoil 6 16 ADAMSKTCP WriteCoil 6 17 ADAMSKTCP SendReceiveSKTCPCmd 6 18 ADAMSKTCP Add5KTCPForStream 6 19 ADAMSKTCP ReadStreamData 6 20 ADAMSKTCP_ReadAlarmInfo 6 21 ADAMSKTCP StartStream 6 22 ADAMSKTCP StopStream 6 23 ADAMSKTCP_SetStreamAlarmState 6 24 ADAMSKTCP Debug 6 25 ADAMSKTCP UDPOpen 6 26 ADAMSKTCP_UDPClose 6 27 ADAMSKTCP SendReceiveUDPCmd 6 28 ADAM 5000 TCP User s Manual 6 3 Chapter 6 Og Planning Your Application Program 6 2 2 Programming Flow Send a command and receiving response by UDP ADAMSKTCP Open v ADAMSKTCP SendReceiveUDPCmd v lt ADAMSKTCP UDPOpen v ADAMSKTOCP SendReceiveUDPCmd v ADAMSKTCP_UDPClose v ADAMSKTCP Close
138. hannel Enable Disable Alarm Enables or Disables the High Low alarm of the specified channel Clear Latch Alarm Resets a latched alarm Set Alarm Connection Connects the High Low alarm of a specified input channel to a specified digital output channel Read Alarm Connection Returns the alarm limit output connection of a specified input channel Set Alarm Limit Sets the High Low alarm limit value for the specified input channel Read Alarm Limit Returns the High Low alarm limit value for the specified input channel Read Alarm Status Reads whether an alarm occurred for a specified input channel Table 6 8 Analog Input alarm command set table Note This command set applies to the ADAM 5013 ADAM 5017 ADAM 5017H 5017UH and the ADAM 5018 HU ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 SiCj identifies the desired slot i i 0 to 7 and the desired channel j j 0 to 7 Ahs is the Set Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates al
139. haracter carriage return ODh 760543210 v v Not used Data Format 00 Engineering unlts p gt Intagratlon Time 0 50 ms Operation under 60 Hz power 1 60 ms Operation under 60 Hz power Figure 6 5 The other bits are not used and are set to 0 WP ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S3C0A3110 cr response 01 cr The analog output channel 0 in slot 3 of the ADAM 5000 TCP system at address Olh is configured to an output range 4 to 20mA engineering units data for mat and a slew rate of 1 0mA sec The response indi cates that the command has been received Note An analog output module requires a maximum of 20 milliseconds to perform auto calibration and ranging after it is reconfigured During this time span the module cannot be address to perform any other actions ADAM 5000 TCP User s Manual
140. he command was in valid 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 ODh ADAM 5000 TCP User s Manual 6 165 Chapter 6 Og 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 Olh to clear counter value ete ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi7 Name Description Syntax Response Read Overflow Flag The command requests the addressed module to re turn the status of the overflow flag of counter 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 Si identifies the I O slot i i 0 to 7 7 is the command for the last value read back taaff ff ff ff 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system ffffffffis the number of overflow fo
141. he example below gt 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 O1h As all 4 values are concatenated into one numerical string such as above we can still easily discern the values of 4 channels specifically as 1235458013 2675213069 3452146305 and 1832106549 If the response is gt 0e88fa63c33697b52a68d61fe2ca6915 cr The command requests the module in slot 2 of the ADAM 5000 TCP system at address O1h to return the input values of all channels The module response that input values if all chan nels are hexadecimal 0e88fa63 c33697b5 2a68d61f e2ca6915 However if the response is in frequency mode you Il see one similar to the example below gt 0000098700000006490000000762000000011600 cr As all 4 values are concatenated into one numerical string such as above we can still easily discern the values of 4 channels specifically as 0000098700 0000064900 0000076200 0000011600 What you see here is actually the input values of all channels returned from slot 2 of the ADAM 5000 TCP system at address Olh and in decimal format However it is not the actual frequency ADAM 5000 TCP User s Manual 6 155 Chapter 6 Og 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 f
142. he module name from a specified ADAM 5000 system Returns the firmware version code from a specified ADAM 5000 system Set slot index and Counter mode The command requests the Configuration of slot Returns the input value of all channels for the specified input module for a specified system in engineering unit only The command will return the input value from one of the four channels of a specified module Set the filter seconds to start to measure the input signal Read the filter seconds to start to measure the input signal Request the addressed counter frequency module to start or stop the counting ERI ADAM 5000 TCP User s Manual Planning Your Application Program RAEI G seascs Clear Counter Clear the counters of the specified The command requests the Read Overflow addressed module to return the status of the Flag overflow flag of counter Set Initial Counter Set initial counter value for counter of the Value specified counter module l ER is Read initial of the specified counter Initial Value module Set Alarm The addressed counter module is Disable Latch instructed to set alarm disable or latch Disable Latch specified channel Returns the alarm status to normal Connects the High Low alarm of the Set Alarm specified input channel to the specified digital Connection output in the addressed ADAM 5000 system Returns the High Low alarm limit output connection of a specifie
143. he module is correctly installed and properly configured for the input range you want to calibrate 3 Use a precision voltage source to apply a calibration voltage to the V and V terminals of the ADAM 5013 5017 5017H and 5018 modules 4 Click the Execute button 5017 Calibration Zero Calibration Please Apply 0 0m to the input terminal of the module Figure 5 17 Zero Calibration Span Calibration Follow the same procedure of zero calibration and click the Execute but ton 5017 Calibration Span Calibration Please Apply 150 0 mv to the input terminal of the module Aw Figure 5 18 Span Calibration ADAM 5000 TCP User s Manual 5 15 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 If the value is different from the signal adjust the CJC value to improve it 5018 Calibration CIC Calibration CJC Temperature 21 600 Input CJC offset 99 9 to 99 9 C ac Figure 5 19 CJC Calibration Note CJC cold junction sensor calibration only applies to the ADAM 5018 Analog Output Calibration e ADAM 5024 4 mA and 20 mA 5024 Calibration Trim for 4 0 m Attach meter to
144. if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system h represents the status of High alarm 1 means the High alarm occurred 0 means it did not occur represents the status of Low alarm 1 means the Low alarm occurred 0 means it did not occur cr represents terminating character carriage return ODh 6 185 ADAM 5000 TCP User s Manual Chapter 6 Og 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 O1h is config ured to read alarm status The High alarm has occurred and low alarm has oc RI ADAM 5000 TCP User s Manual Appendix A Design Worksheets Appendix A PN 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 amp C system in order Follow these working steps to build up your system relational document Stepl Asking questions and getting answers for your control strat egy 1 What will be monitored and controlled List the equipment 2 What will be monitored and controlled separately Divide the func tion area 3 What will be monitored and controlled
145. igh Low alarm of the specified input chan nel in the addressed ADAM 5000 TCP system to either Latching or Momentary mode aaSiCjAhs cr is a delimiter character aa range 00 FF represents the 2 character hexadeci mal Modbus network address of anADAM 5000 TCP system SiCj identifies the desired slot i i 0 to 7 and the desired channel j j 0 to 7 Ahs is the Set Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates alarm mode and can have the value M Momentary mode L Latching mode cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh EIN ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1AHL cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address Olh is instructed to set its High alarm in Latching mode The module confirms that the command has been received ADAM 5000 TCP User s Manual 6 91 Chapter 6 Og Planning Your Application Program aaSiCjAh Name Description Syn
146. igital Output Module 16 ch 5056D Digital Output Module with LED I 16 ch 50565 Isolated Digital Output Module with LED 16 ch 5060 Relay Output Module 6 ch 5068 Relay Output Module 8 ch 5069 Power Relay Output Module 8 ch 5080 Counter Frequency Module 4 ch 5050 Digital I O Module 16ch 50555 Isolated Digital I O Module with LED 16 ch Analog Input Module 8ch y N 5017 5017H Tigh Speed Analog Input Module ch 5017UH Ultra High speed Analog Input Module 8 ch 5013 RTD Input Module 3ch 5018 T C Input Module 7ch 5024 Analog Output Module 4ch 5090 Communication Module 8ch Figure 2 1 ADAM 5000 I O Module Selection Chart ADAM 5000 TCP User s Manual 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 3 g 8 i 7 S Sampling 10 10 8K 200K 10 10 Rate 15 mV 15 mV 150 mV 250 mV 50 mV 50 mV Analog Voltage 500 mV 500 mV V 10V 100 mV 100 mV Input Input 7 1 V 45 1 V 45 V 10V 500 mV 500 mV V 10V V 10V 1 V 2 5 1 V 2 5 Vv Vv Current G 220mA 20ma 420MA 490ma 20 mar Input 20 mA Direct Pt or Ni J K T E J K T E Sensor Input RTD
147. imately 30 uA The analog output module confirms the increase Note In order to perform a Trim Calibration either a mA meter or a resistor and voltmeter should be connected to the module s output prior to calibration ery ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj6 Name Description Syntax Response Last Value Readback Returns either the last value sent to the specified channel by a aaSiCj data command or the start up output current voltage 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 SiCj identifies the I O slot i i 0 to 7 and the chan nel j j 0 to 3 for the module you want to return a prior value 6 is the last value read back command cr is the terminating character carriage return ODh aa data 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system data is the value that is returned by the analog out put module The format of the data depends on the mo
148. ing a power supply for your ADAM 5000 TCP system e Refer to table 2 3 to check the power consumption of ADAM 5000 TCP Series main unit and each I O module Main Units Description Power Consumption ADAM 5000 485 Distributed Data Acquisition and Control System based on RS 485 0W ADAM 5000E Distributed Data Acquisition and Control System based on RS 485 40W ADAM 5000 TCP Distributed Data Acquisition and Control System based on Ethernet 5 0 W ADAM 5510 PC Based Programmable Controller With Battery Backup 0W ADAM 5510M Enhanced PC Based Programmable Controller With Battery Backup 2W ADAM 5511 PC Based Programmable Controller with Modbus 0W ADAM 5510E 8 clot PC Based Programmable Controller 2W ADAM 5510 TCP Ethernet enabled PC Based Programmable Controller 2 0W ADAM 5510E TCP _ 8 clot Ethernet enabled PC Based Programmable Controller 2 0W T O Modules Description Power Consumption ADAM 5013 3 Channel RTD Input Module 1W ADAM 5017 8 Channel Analog Input Module mV mA or High Voltage 25 W ADAM 5017H 8 Channel High speed Analog Input Module mV mA or High Voltage 22W ADAM 5017UH 8 Channel Ultra High speed Analog Input Module mV mA or High Voltage 22W ADAM 5018 7 Channel Thermocouple Input Module mV V mA Thermocopule 0 63 W ADAM 5024 4 Channel Analog Output Module V mA 2 9 W ADAM 5050 6 Channel Universal DIO 2W ADAM 5051 6 Channel
149. invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system s represents start stop command s 0 indicate stop counter s 1 indicate start counter cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 163 Chapter 6 Og 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 O1h is instructed to re turn its counter status The counter status is in start status eke ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj6 Name Description Syntax Response Clear Counter Clear the counters of the specified counter frequency module 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 SiCj identifies the I O slot i and the channel j for the module you want to return a prior value 6 is the command for clearing counter cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating t
150. ion 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 2 Always use a continuous length of wire do not combine wires to attain needed length Use the shortest possible wire length Use the wire trays for routing where possible Avoid running wires near high energy wiring aure To reduce electrical noise it should be twisted as tightly as possible NN oe OPEN CRONE EN 22253 ad ET50255235008009 Roon ms a S GETS 3 T JE a E Wh BS BlSS S 2298 3 Figure 2 3 RS 485 Terminal and Cable Connection ADAM 5000 TCP User s Manual 2 9 Chapter 2 Selecting Your Hardware Components 2 4 Selecting Operator Interface To complete your data acquisition and control system selecting the operator interface is necessary Adopting by 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 b ADAM 5000 TCP Series Windows Utility If you want to integrate ADAM 5000 TCP Series wi
151. irects the specified channel to store parameters fol lowing a calibration for 20 mA output Syntax aaSiCjl 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 channel j j 0 to 3 of the module you want to calibrate 1 is the 20 mA calibration command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Note Before issuing the 20 mA Calibration command the analog out put module should be trimmed to the correct value using the Trim Calibration command Either a mA meter or a resistor and voltmeter should be connected to the module s output el ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj3hh Name Description Syntax Response Trim Calibration Trims the specified channel a specified number of units up or down aaSiCj3hh cr is a delimiter character aa
152. j j 0 to 3 of the module you want to set 4 is the Start Up Output Current Voltage Configura tion command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S1C14 cr response 01 cr Presume the present output value of channel 1 of slot I in the ADAM 5000 TCP system at address OLh is 9 4 mA The command asks the analog output mod ule to store the present output value in its non vola tile memory When the system is powered up or reset its default output value will be 9 4 mA ADAM 5000 TCP User s Manual 6 133 Chapter 6 Og Planning Your Application Program The response from the ADAM 5000 TCP system at address Olh 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 During this interval the module cannot be addressed to perform any other actions eee AD
153. k and n are the analog input has no connection with a digital output point ee ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 cr represents terminating character carriage return ODh Example command 01S0C1IRLC cr response 01S1C0 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address Olh 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 ADAM 5000 TCP User s Manual 6 101 Chapter 6 Og Planning Your Application Program aaSiCjAhU data Name Description Syntax Response Set Alarm Limit Sets the High Low alarm limit value for the specified input channel of a specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 AU is the Set Alarm Limit command h indicates alarm type and can have the value H High alarm L Low alarm data represents the desired alarm limit setting The format is always in engineering units cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or comm
154. ksum generation ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 M is the Module Name command cr is the terminating character carriage return ODh Response aa5000 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 communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01M cr response 015000 cr The command requests the system at address O1h to send its module name The system at address Olh responds with module name 5000 TCP indicating that there is an ADAM 5000 TCP at address 01h ADAM 5000 TCP User s Manual 6 45 Chapter 6 Og Planning Your Application Program aaF Name Description Syntax Response Example Read Firmware Version Returns the firmware version code from a specified ADAM 5000 TCP system aaF
155. l Input Channels 8 8 W LED 7 Digital Input and Digital Output Digital Output 8 W LED 16 16 W LED 16 W LED Channels Channels Count er Input 32 bit Frequency Mode COM M Channels Type Isolation 5000 VRMS 2500 VDC 2500 VDC Module ADAM 5060 ae ADAM 5080 ADAM 5090 Analog Input Resolution w Input Channel Sampling Rate Voltage Input Current Input Direct Sensor Input Resolution Voltage Output x 7 Current lt Analog Output Output Digital Input Digital Input 2 7 7 2 and Digital Channels Output Digital Output 6 relay 8 relay 7 i Channels 2 form A 4 form C 8 form A Count er 32 Channels 4 bit Input 5000 Hz Frequency max Mode Frequency Up Down Counter Bi direction Counter COM M Channels 4 Type Isolation 1000 VRMS Table 2 2 I O Modules Selection Guide ADAM 5000 TCP User s Manual 2 5 Chapter 2 Selecting Your Hardware Components 2 2 Selecting Power Supply ADAM 5000 TCP Seriessystem 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 Use the following steps as guidelines for select
156. les 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 SiCj identifies the desired slot i i 0 to 7 and the desired channel j j 0 to 7 AhEs is the Set Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm s indicates alarm enable disable and can have the value E Enable D Disable cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1ALEE cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address Olh 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 take effect
157. les To organize an 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 More detailed specification and user s guides please refer the user s manual of ADAM 5000 IO Module It had integrated and collected this information Module Name Specification Reference Analog I O ADAM 5013 3 ch RTD input Isolated ADAM 5017 8 ch Al Isolated ADAM 5017H 8 ch HighspeedAl Isolated ADAM 5017UH 8 ch Ultra High speed Al Isolated ADAM 5018 7 ch Thermocouple input Isolated ADAM 5024 4 ch AO Isolated Digital I O ADAM 5050 7 ch D I O Non isolated ADAM 5051 16 ch DI Non isolated ADAM 5051D 16 ch DI W LED Non isolated ADAM 5052 8 ch DI Isolated ADAM 5056 16 ch DO Non isolated ADAM 5056D 16 ch DO W LED Non isolated Relay Output ADAM 5060 6 ch Relay output Isolated ADAM 5068 8 ch Relay output Isolated Counter Frequency ADAM 5080 4 ch Counter Frequency Isolated Serial I O ADAM 5090 4 port RS232 Non isolated Table 4 1 I O Module Support List ADAM 5000 4 2 System Design Flow Chart Select I O Module Select Power Supply Select Link Terminal amp Cable Selec
158. lid data is the input value in engineering units of the interrogated module of the specified system If the numbers of data are ten counter frequency mode is in decimal format If the numbers of data are eight counter frequency mode is in hexadecimal format If data it means the channel is invalid cr is the terminating character carriage return ODh aby ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S2 cr response If the response you got is in Counter mode you ll see one similar to the example below gt 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 O1h As all 4 values are concatenated into one numerical string such as above we can still easily discern the values of 4 channels specifically as 1235458013 2675213069 3452146305 and 1832106549 If the response is gt 0e88fa63c33697b52a68d61fe2ca6915 cr The command requests the module in slot 2 of the ADAM 5000 TCP system at address O1h to return the input values of all channels The module response that input values if all chan nels are hexadecimal 0e88fa63 c33697b5 2a68d61f e2ca6915 However if the response is in frequency mode you Il see one similar to the example below gt 0000098700000006490000000762000000011600 cr As all 4 values are concaten
159. log Input Ranges ADAM 5018 5018P B 5 B 4 Analog Input Ranges ADAM 5017H 5017UH B 7 B 5 Analog Output Formats mmmmmsennnnnnnnnnnnnnnnnennnvnnnnnnnn B 8 B 6 Analog Output Ranges rrunnnnnnnnnnvnvnvnnnnnnnnnnnnnnnnnnnnnnnn B 8 B 7 ADAM 5013 RTD Input Format and Ranges B 9 Appendix C Grounding Reference cccccsee C 1 Cl Grounding 2s eevee ce ste eiee cccced ce cvectveces cau aaiue aiian C 3 C 2 SHICIGING e eases ites aeaaeae e aane eevee te tae C 11 C 3 Noise Reduction Techniques rrnnnnsnvnnnnnnnnnnnnvnnnnennn C 17 C 4 Check Point List rraunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnunnnnnnnnnnnvnnnnn C 18 Figures Figure 1 1 Apply to System Application rernnvnnnvnnnvnnnvnnvnnnvnnnvnnnvnnnnnnnenen 1 2 Figure 1 2 ADAM 5000 TCP system amp I O module dimensions 1 7 Figure 1 3 Function block diagram rusvrnnvnnnvnnnvnnnvnnnvnnnnnnvnnnvnnnnnnnvnnvnnneenne 1 8 Figure 1 4 ADAM 5000 TCP LED Indicators sersnvnvnnvnnvnnnvnnvnnennennennennenne 1 8 Figure 2 1 ADAM 5000 I O Module Selection Chart urnnrnnvnnvnnvnnnnnnvnne 2 3 Figure 2 2 Ethernet Terminal and Cable Connection 2 8 Figure 2 3 RS 485 Terminal and Cable Connection ensnrnnvnnvnnnvnnvnnnennnn 2 9 Figure 3 1 Module alignment and installation seravnnvnnnvnnnvnnnvnnnvnnnvnner 3 3 Figure 3 2 Secure the module to the system xsrssvnsvnnennvnnvnnvnnnnnnennennen 3 3 Figure 3
160. m 5 identifies the enable disable channels command mm are two hexadecimal values Each value is inter preted as 4 bits The first 4 bit value represents the status of channels 4 7 the second 4 bit value repre sents the status of channels 0 3 A value of 0 means the channel is disabled while a value of 1 means the channel is enabled See the Read Channel Status Command aaSi6 cr is the terminating character carriage return ODh Note Bit 7 cannot be enabled in the ADAM 5018 since the module is physically limited to 7 channels Response taa er 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S1581 cr response 01 cr The command enables disables channels of the ana log input module in slot 1 of the system at address O1h Hexadecimal 8 equals binary 1000 which enables channel 7 and disables channels 4 5 and 6 Hexadeci mal 1 equals binary 0001 which enables channel 0 and disables channels 1 2 and 3 ADAM 5000 TCP User s Manual 6 67 Chapter 6 Og Planning Your Application Progr
161. mmand asks the digital output module in slot 1 of the ADAM 5000 TCP system at address Olh to return the masking status of all of its channels The first 2 character portion of the response indicates the address of the ADAM 5000 TCP system The second 2 characters portion of the response value 13h 00010011 indicates that digital output channels 8 9 and 12 are masked while channels 10 11 13 14 and 15 are valid The third 2 character portion of the response value 22h 00100010 indicates that digital output channels 1 and 5 are masked while channels 0 2 3 4 6 and 7 are valid AASi7 ADAM 5050 only Name Description Syntax Response Read 5050 channel status The command requests to read 5050 channel status 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 AAXXXX 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 address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid AA range 00 FF represents the 2 character hexadecimal address of an ADAM 5000 system XXXX is the number of overflow for a specified channel
162. munication rranrannnvnnvnnnnnrnrnnnrrrrnrnnnrernnn 1 6 1 3 3 Serial Communication rrnrnrvnrrnvvnrnnvvnrrnvnnnrrrrnrsrrrrrsnnnnn 1 6 134 POWER ear 1 7 1 3 5 ISOLANOM corgzcies siesta a keen 1 7 1 3 6 Mechanical sronnnnrnnnrnnnnnnnnnnnnnnnnnnnnnnnnnnnnnannnnnnnnnnnnnnnnn 1 7 1 3 7 Environment mrnnronnnnnnnrnnnnnnonrrrnnnrnnrnnnnnenrnrnenennnnrnnnnnnnnnn 1 7 1 3 8 Dimensions eeronnnnnrnvrnnnnnnnnrrvnnnavnnnnrnnnnnarnnrnrrennensnnrnnnen 1 7 1 3 9 Basic Function Block Diagram usrrnrnnnnnnnnnrnnnnnnnnnnnn 1 8 1 4 LED Status of ADAM 5000 TCP main unit 1 8 Chapter 2 Selecting Your Hardware Components 2 1 2 1 Selecting I O Module rrrnnnnnnnnnnvvvnnnnnnnnnnnnnnvnnnnnnnnnnnn 2 2 2 2 Selecting Power Supply rsrrnnnnnnnnnnnnnnnnnvvnnnnnnnnnnnvvnner 2 6 2 3 Selecting Link Terminal and Cable 00 00 2 8 2 4 Selecting Operator Interface rrrrrrnrrnrnrrnvvvvrerrnnn 2 10 Chapter 3 Hardware Installation Guide 3 1 3 1 Determining the proper environment ceee 3 2 3 1 1 Check the content of shipping box mrrrrrrnrrrrnrrvnvrenrnrnr 3 2 3 1 2 System Requirement rrrrnnnnnvrnnnnrrnnnnnrnnnnnnvnnrrrrrenennnnn 3 2 3 1 3 WO modules eerren ea i Nene KE EAEE 3 2 3 2 Installing your main unit and module 3 3 3 3 Mounting s srsrnnnnnnnnnnnnnnnnnnnnnnnvnnnennnnnnnnnnnnnnnnnnnnnennnnennennnnn 3 4 3 3 1 Panel MOUNTING ciksi ein eea
163. n learn the hardware connection software installation communication setting and every procedure for system configuration from these sections 5 1 System Hardware Configuration As we mentioned in chapter 3 1 you will need following items to com plete your system hardware configuration System Requirement e Host computer IBM PC compatible computer with 486 CPU Pentium is recommended Microsoft 95 98 2000 NT 4 0 SP3 or SP4 or higher versions At least 32 MB RAM 20 MB of hard disk space available VGA color monitor 2x or higher speed CD ROM Mouse or other pointing devices 10 or 100 Mbps Ethernet Card 10 or 100 Mbps Ethernet Hub at least 2 ports e Two Ethernet Cable with RJ 45 connector e 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 ES H st Computer Un nm i Power Supply 10 30 Vee I For Other ADAM 5000 TCPs Figure 5 1 Hardware Configuration KEM ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 5 2 5 3 Install Utility Software on Host PC ADAM 5000 TCP Series Systems come packaged with a Utility CD containing ADAM Product series Utilities as system configuration tool While you Insert the CD into the CD drive e g D of the hos
164. n Program ADAM5KTCP_Add5KTCPForStream Description Assign a specified ADAM 5000 TCP to send stream data to the PC Syntax int ADAMSKTCP 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 for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_ReadStreamData Description Receive stream data that comes from the specific ADAM 5000 TCP Syntax int ADAMSKTCP_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 for more detail information about StreamData structure Return Please refer to Chapter6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 21 Chapter 6 Og Planning Your Application Program ADAM5KTCP_ReadAlarmInfo Description Receive alarm information that comes from the spe cific ADAM 5000 TCP Syntax int ADAMS5KTCP_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 Ret
165. nd its firmware version The system responds with firmware version Al 1 ADAM 5000 TCP User s Manual 6 151 Chapter 6 Og 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 A is command for setting I O module configuration rr indicates which mode is rr 00 represents Bi direction counter mode rr 01 represenrs UP DOWN counter mode rr 02 represents Frequency mode ff indicates which format is ff 00 represents the engineer format ff 02 represents the hexadecimal format 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S1A0002 cr response 01 cr The ADAM 5080 in Slot 1 of ADAM 5000 system at address Olh is in Bi direction mode and configured for hexadecimal format ey ADAM 5
166. neering unit data format and integration time 50ms 60Hz The response indi cates that the command has been received ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiB Name Description Syntax Response Example RTD Configuration Status Returns the configuration parameters for a specified RTD input module in a specified system 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 i 0 to 7 B represents the configuration status command cr is the terminating character carriage return ODh taarrff er 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system rr represents the 2 character hexadecimal code of the input range See Appendix B ff is a hexadecimal number that equals the 8 bit pa rameter representing data format Bits 0 and 1 repre sent data format Bit 7 represents integration time See RTD Configuration Command aaSiArrff cr is the terminating character carriage ret
167. ner Meets So SO eT gt EE Ch 2 acing be te SID ee ovn OI Figure 5 14 Counter Frequency Module Configuration ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 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 Channel 0 Channel 1 Channal 2 Channal 3 Unskjn d Long 40049 40051 40053 40055 1st Blt 00097 00101 00105 00109 2nd Bit 00098 00102 00108 00110 ard Blt 00099 00103 00107 00111 4th Bit 00100 00104 00108 00112 Figure 5 15 Location of Counter Frequency Module Note Ist bit Default ON 1 available to set ON OFF to start stop counting 2nd bit Normal OFF 0 only accept a pulse ON signal to clear the counter 3rd bit Normal OFF 0 only tuig ON 1 when counter over flow Users can write 0 to clear the overflow flag Ath bit Non used ADAM 5000 TCP User s Manual 5 13 Chapter 5 System Hardware Configuration 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
168. ning Your Application Program Chapter 6 6 aaSi0 data Name Description Syntax Response Example Set Digital filter Scale Set the filter seconds to start to measure the input signal 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 Si identifies the specified slot 0 is the command for setting digital filter scale data represents filter seconds from 8us 65000 us Be aware that data has 5 characters cr is the terminating character carriage return ODh 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 exists delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S3000765 cr response 01 cr The ADAM 5080 in slot 3 of the ADAM 5000 TCP system at address Olh needs 765m seconds to start to measure the input ADAM 5000 TCP User s Manual 6 159 Chapter 6 Og Planning Your Application Program aaSiO Name Read Digital filter scale Description Read the filter seconds to start to measure the input si
169. nnel in the ADAM 5013 since the module is physically limited to 3 chan nels cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01S1501 cr response 01 cr The command enables disables the channels of the analog input module in slot 1 of the system at ad dress Olh Hexadecimal 0 is a fixed value Hexadeci mal 1 equals binary 0001 which enables channel 0 and disables channels 1 and 2 ADAM 5000 TCP User s Manual 6 57 Chapter 6 Og Planning Your Application Program aaSi6 Name Description Syntax Response Example Read Channels Status Asks a specified input module to return the status of all channels 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 Si identifies the I O slot of the system you want to read channels status The channel status defines whether a channel is enabled or disabled 6 represen
170. nning 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 ADAMSKTCP_NoError 0 ADAMSKTCP _StartupFailure 1 ADAMSKTCP_SocketFailure 2 ADAMSKTCP_UdpSocketFailure 3 ADAMSKTCP_SetTimeoutFailure 4 ADAMSKTCP_SendFailure 5 ADAMSKTCP ReceiveFailure 6 ADAMSKTCP_ExceedMaxFailure 7 ADAMSKTCP CreateWsaEventFailure 8 ADAMSKTCP ReadStreamDataFailure 9 ADAMSKTCP_InvalidIP 10 ADAMSKTCP_ThisIPNotConnected 11 ADAMSKTCP_AlarmInfoEmpty 12 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 6 2 5 Data Structure struct StreamData WORD DIO 8 DI DO data for Slot0 Slot1 Slot7 WORD SlotO 8 AT AO data for slotO WORD Slot 1 8 AI AO data for slot 1 WORD S1ot2 8 AT AO data for slot2 WORD Sl1ot3 8 AT AO data for slot3 WORD Slot4 8 AT AO data for slot4 WORD Slot5 8 AI AO data for slot5 WORD Slot6 8 AT AO data for slot6 WORD Sl1ot7 8 AI AO data for slot6 StreamData pStreamData struct _AlarmInfo BYTE bySlot the Slot of 5000 TCP which cause the alarm change BYTE byChannel the Channel of 5000 TCP which cause the alarm change BYTE byAlarmType 0 Low Alarm 1 High Alarm BYTE byAlarmStatus 0 Alarm Off 1 Alarm On BYTE bylndexOf5KTCP indicate the index
171. nnnr C 12 Figure C 11 System Shielding srrnnvnnvnnnvnnnvnnnvnnnnnnnnnnvnnnnnnvnnnnnnnnnnnvnnnene C 13 Figure C 12 The characteristic of the cable rrnnrrnnnnnnnnvnannvnnnvvnnnvnnnnn C 14 Figure C 13 System Shielding 1 avrnnvnnnnnnnvnnvnnnvnnnvnnnvnnvnnnnnnnnnnnennnennnnn C 15 Figure C 14 System Shielding 2 rnvrnnvnnvnnnnvnnnnnnvnnnnnnnvnnennnnnnnnnnnennnennnn C 16 Figure C 15 Noise Reduction Techniques rrnvrnnvnnnvnnvnnnvnnnvnnnvnnnennnvnnen C 17 Tables Table 2 1 I O Selection Guidelines rrernnnvvnnnnvnnnvvnnnnvnnnnvnnnnnnnnnvnnnnnnnnnnnnnn 2 2 Table 2 2 I O Modules Selection Guide raravnnnnvnnnnvnnnnvnnnnvnnnnvnnnnnnnnnnnnnn 2 5 Table 2 3 Power Consumption of ADAM 5000 series 00110 2 6 Table2 4 Power Supply Specification Table rrnarrnnvvrnnvvnnnnvrnnnvnnnnvnnnner 2 7 Table 2 5 Ethernet RJ 45 port Pin Assignment rnnannnnnvennnvnnnnvnnnnvennnenn 2 8 Table 4 1 I O module support LiSt mennennnvnnnvnnvnnnvnnnvnnnvnnnnnnnnnnnennnnn 4 1 Table 6 1 Response Comment Structure rrravnnnnvrnnnvnnnnvnnnnvnnnnvnnnnnnnnnn 6 33 Table 6 2 CPU Command Set Table rrnrnnnnvornnvnnnnnvnnnvennnvnnnnnvnnnvennnvnnnnnr 6 40 Table 6 3 Baud rate codes rrnnnnnvnnnnnnvnnnnnnvnnnnnnnvnnnnnnnnnnnnnvnnnnnnnnennnnnnnnnnn 6 42 Table 6 4 ADAM 5013 RTD Input command Set Table 6 49 Table 6 5 ADAM 5017 5018 Analog Input command Set Table 6 63 Table 6 6 ADAM 5017H Anal
172. nnvnnnvnnnvnnnvnnnnnnvnnnvnnnvnnnvnnvnnnen 5 21 Figure 5 26 RS 485 Modbus Network Setting rrsvnnnvnnnvrnnnvnnnvnnnvnnnner 5 22 Figure 6 1 Request Comment Structure nsrusennvnnvnnennvnnvnnvnnvnnennvnnnnnnenn 6 32 Figure 6 2 Response Comment Structure ssrnnrnnvnnennennvnnvnnvnnennnvnnennen 6 33 Figure 6 3 ASCII Command Structure in ADAM 5000 TCP 6 39 Figure 6 4 Data format for 8 bit parameters runnvnanvnnnvnnnnnnnnnnvnnnvnnnvnnnr 6 64 Figure 6 5 The other bits are not used and are set to 0 ssssseeee 6 128 Figure C 1 Think the EARTH as GROUND sennnvrnnvnnnvnsvnnnnvnnnnnnnennvnnnennnr C 3 Figure C 2 Grounding Bar rsernvnnvnnnvnnvnnvnnnnnennnnnnnnnnnnennvnnennennennennennennnenne C 4 Figure C 3 Normal mode and Common modC rnnnnnnvnnvnnvnnennnnnnnnnennennense C 5 Figure C 4 Normal mode and Common modC rnnnnnnvnnennvnnennnnnnnnnennennense C 6 Figure C 5 The purpose of high voltage transmission rsennnvnnnvnnnvnnnenn C 7 Figure C 6 wire impedancC sennvnnvnnvnnnvnnennennvnnvnnvnnnennvnnennennnnnnennennennennnnnn C 8 Figure C 7 Single point grounding 1 arnnnvnnnvnnnvnnnvnnnnnnvnnnvnnnnnnnnnnnennennen C 9 Figure C 8 Single point grounding 2 mnvnnnvnnnvnnnvnnnvnnnnnnennnvnnnnnenennvennenn C 10 Figure C 9 Single isolated cable rrnvnnnvnnnvnnnvnnvnnnvnnnvnnnvnnvnnnnnnnnnnnvnnnennn C 11 Figure C 10 Double isolated cable rrnrnnnnnnnvnnnvnnnvnnnvnnvnnnvnnnvnnnvnnnennne
173. nput 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 cr is the terminating character carriage return 0Dh Example command 01S3 cr response 6 000 7 000 8 125 4 250 10 000 8 500 7 675 5 445 cr The command requests the ADAM 5017H 5017UH module in slot 3 of the ADAM 5000 TCP system at address O1h to return the input values of all channels The analog input module responds with the input values of all channels in sequence from 0 to 7 6 000 7 000 8 125 4 250 10 000 8 500 7 675 5 445 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 HaaSiCj Name Description Syntax Response Specified Analog Data In 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 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 configure Si identifies the I O slot i 0 to 7 of ADAM 5000 TCP system you want to read Cj identifies the channel you want to read cr is the terminating character carriage return ODh data cr if the command is valid Engineering Unit Data Format dddd
174. nse if the module detects a syntax error or communication error or if the specified ad dress does not exists delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S1A0002 cr response 01 cr The ADAM 5080 in Slot 1 of ADAM 5000 system at address Olh is in Bi direction mode and configured for hexadecimal format ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiB Name Description Syntax Response Example Read Configuration The command requests the Configuration of slot 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 ODh taarrff er 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 delimiter character indicating a valid command is received delimiter character indicating the command is in valid aa range 00 FF represents the 2 charac
175. nt to interrogate T is the command for reading Module Name cr is the terminating character carriage return ODh Response taaFFFFFFFF Ccr if the command is valid aa cr if an invalid operation was entered There is no response if the module detects a syntax error communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system FFFFFFFF indicates the I O slot which ADAM 5080 module is in cr is the terminating character carriage return ODh Example command 01T cr Response 01 FF8OFFFF cr ADAM 5080 is plugged in slot I and the command requests the system at address Olh to send its mod ule name AA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaF Name Description Syntax Response Eample Read Firmware Version Returns the firmware version code from a specified ADAM 5000 TCP system 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 F is the command for reading Firmware Version cr is the terminating character carriage return ODh aa version cr if the command is valid aa cr if an invalid operation was entered Th
176. nt to read about Go to page Selecting I O Module 2 2 Selecting Power Supply 2 6 Selecting Link Terminal amp Cable Ethernet 2 8 Selecting Operator Interface 2 10 Chapter 2 Selecting Your Hardware Components 2 1 Selecting I O Module To organize an ADAM 5000 TCP Series data acquisition amp 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 What type of I O signal is applied in your system How much T O is required to your system How will you place the main unit for concentrate the I O points of an entire process How many ADAM 5000 TCP Series main units are required for distributed I O points arrangement What is the required voltage range for each I O module What isolation environment is required for each I O module What are the noise and distance limitations for each I O module Refer to table 2 1 I O as module selection guidelines For these types of field devices or operations examples Explanation Selector switches pushbuttons photoelectric eyes limit switches circuit breakers proximity switches level switches motor starter contacts relay contacts thumbwheel switches Input modules sense ON OFF or OPENED GLOSED signals Discrete signals can be either ac or de Discrete input module an
177. ntech 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 Please consult your dealer for more details If you think you have a defective product follow these steps 1 Collect all the information about the problem encountered e g type of PC CPU speed Advantech products used other hardware and software used etc Note anything abnormal and list any on screen messages you get when the problem occurs 2 Call your dealer and describe the problem Please have your manual product and any helpful information readily available 3 If your product is diagnosed as defective you have to request an RAM number When requesting an RMA Return Material Authorization number please access ADVANTECH s RMA web site http www advantech com tw rma If the web sever is shut down please contact our office directly You should fill in the Problem Repair Form describing in detail the application environment configuration and problems encountered Note that error descriptions such as does not work and failure are so general that we are then required to apply our internal standard repair process 4 Carefully pack the defec
178. oes not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid ADAM 5000 TCP User s Manual 6 61 Chapter 6 Og 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 ODh ADAM 5000 TCP User s Manual Planning Your Application Program KALEICI ADAM 5017 5018 Analog Input Command Set Configuration Sets slot index input range data format and integration time for a specified analog input module in specified system Configuration Status Returns the configuration parameters for a specified analog input module of a specified system Enable Disable Enables Disables multiplexing Channels for for separate channels of the multiplexing specified input module Read Channels Status Asks a specified input module to return the status of all channels All Analog Data In Returns the input value of all channels for a specified analog input module of a specified system in engineering units only pecified Analog eturns the input value of a Data In specified channel for a specified analog input module of a specified system in engineering ItlalzZes a FROM data In a specified analog input module to their default values pan Calibration ero Lalbration Cold Junction Compensation sensor for a specifi
179. og Input command Set Table 6 80 Table 6 7 Analog Input alarm command set table rrrnnnnvnnnnnvvnnnnnnnnnr 6 89 Table 6 8 Analog Input alarm command set table rrnnnnnvrnnnnnvennnnnnnn 6 108 Table 6 9 Analog Output command Set Table arrrnnvrnnvvrnnvrnnnnvnnnnnnn 6 127 Table 6 10 Counter Frequency Command Set Table avrnnnvvnnnnvnnnner 6 149 Table A 1 I O Data Base rrnnnvnnnnvrnnnvnnnnnnnnnnvnnnvnnnnnnnnnnnnnnnnnnnvnnnnnnnnenvnnnnnnnnn A 3 Table A 2 Summary Required Modules rnennnvnnvnnnvnnnvnnnvnnnnnnnnnnnnnnvnnnennnr A 5 Table A 3 Table for Programming ernnnvnnnvnnnnnvnnnvennnnnnnnnennnnennnnennnnennnnennen A 6 Chapter 1 Understanding Your System Using this Chapter If you want to read about Go to page Introduction 1 2 Major Feature 1 3 Technical Specification 1 6 LED Status of ADAM 5000 TCP Series main unit 1 8 Chapt er 1 Understanding Your System 1 1 Introduction Undoubtedly Ethernet connectivity is becoming to a big trend for industrial applications Longer communication distances faster communication speeds and greater advantages attract people into developing their system based upon this network scenario But there used to be a thresh old in connecting information layers and field control layers People usually had to prepare a data exchange server between information systems and control systems as a communication bridge Obviously it takes a lot of
180. on of the response indi cates the address of the ADAM 5000 TCP system The second 2 character portion of the response value 11h 00010001 indicates that digital input channels 8 and 12 are ON channels 9 10 11 13 14 and 15 are OFF The third 2 character portion of the response value 22h 00100010 indicates that digital input chan nels 1 and 5 are ON and channels 0 2 3 4 6 and 7 are OFF 6 142 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiBB data Name Description Syntax Digital Data Out This command either sets a single digital output chan nel or sets all digital output channels simultaneously 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 Si identifies the slot i 1 0 to 7 of the ADAM 5000 TCP system which contains the module whose out put values you want to set BB is used to indicate which channel s either single or all will be set Writing to all channels write a byte both charac ters should be equal to zero BB 00 Writing to a single channel write a bit first charac ter is 1 second character indicates channel number which can range from Oh to Fh The ADAM 5055 can range from Oh to 7h the ADAM 5056 can range from Oh to Fh and the ADAM 5060 5068 5069 can range from Oh to 7h data is the hexadecimal representation of the
181. on status for a specified sys tem module 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 2 is the Configuration Status command cr is the terminating character carriage return ODh aaccff 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 communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cc represents the baud rate code ff is a hexadecimal number that equals the 8 bit pa rameter representing checksum status The sixth bit represents the checksum status 1 means enabled while 0 means disabled The other bits are not used and are set to 0 cr is the terminating character carriage return ODh See also the aannceff configuration command ADAM 5000 TCP User s Manual 6 43 Chapter 6 Og Planning Your Application Program Fxample command 012 cr response 010600 cr The command requests the ADAM 5000 TCP sys tem at address O1h to send its configuration status The ADAM 5000 system at address Olh responds with a baud rate of 9600 bps and with no checksum function or chec
182. or and return the data The ana log input module responds with 36 8 C ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 sor Syntax aaSi9shhhh 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 which contains the CJC Sta tus you wish to retrieve 9 is CJC Status command s sign or indicates whether to increase or de crease the CJC offset value hhhh is a four character hexadecimal count value Each count equals approximately 0 009 C The value can range from 0000 to FFFF cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S29 0042 cr response 01 cr The command increases the CJC offset value of the analog
183. or the module you want to return a prior value G is the last value readback command cr is the terminating character carriage return ODh Response aa data 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system data is initial value from 0 to 4294967295 Be aware that data has 10 characters cr is the terminating character carriage return ODh Example command 01S3C2G cr response 010000004369 cr The channel 2 of ADAM 5080 in slot 3 in ADAM 5000 TCP system at address Oth is instructed to re turn counter initial value The initial counter value is 4369 eit ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjAhEs Name Description Syntax Response Set Alarm Disable Latch The addressed counter module is instructed to set alarm disable or latch 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 SiCj identifies the desired slot i and the desired chan nel j AhEs is the command for setting Alarm
184. ork 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 Ethernet Multl port Hub DES ii Figure 3 8 System network connection EAJ ADAM 5000 TCP User s Manual Hardware Installation Guide Chapter 3 Serial Network Working as an Ethernet Data Gateway the ADAM 5000 TCP Series provides an RS 485 interface to integrate serial devices for various applications Adopting by Modbus standard protocol it solves the communication problem between different networks and different devices Mean while users can extend their system scope by integrating up to 32 nodes of ADAM 5511 or other Modbus products such as meters card readers loadcell and so on soon S000TORS o o Ethernet VO RS 485 Network i Modbus 3 rd party ADAM 5511 Meter Modbus Device 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 3 9 Chapte EI Hardware Installation Guide 3 5
185. otocol Identlfler 0 Byte 3 protocol dentlfler 0 Byte 4 length fleld define all message are smaller than 258 Byte 5 length fleld number of bytes following Byte 6 unit Identifler 1 ADAM 5000 TCP always 1 Byte 7 Modbusfunctl n code 44 read Input registers refer to table8 1 Byte 8 high byte of start address Byte 9 low byte of start address Byte 10 requested number of read register high byte m Byte 11 requested number of read register low byte L _ Read 2 registers Start address 40001 Ne A KS Command Head Command Body Transaction Protocol Length Statlon Functlon Identifler Identlfler Fleld Address Code Figure 6 1 Request Comment Structure ADAM 5000 TCP User s Manual Planning Your Application Program RAETIA And the response should be Byte 8 unit Identifler 1 ADAM 5000 TCP always 1 Byte 7 Medbus Functl n code 4 read Input registers Byte 8 byte count each register need two bytes Byte 8 high byte of first address Byte 10 low byte of first address Byte 11 high byte of second address Byte 12 low byte of second address 00 00 00 00 00 06 1 04 04 7F FF 7F FF 7FFF Hex 32767 Dec Responds 2 registers 4 bytes k A NG P Command Head Command Body 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
186. overflow flag of counter Set Initial Counter Set initial counter value for counter of the Value specified counter module l ER is Read initial of the specified counter Initial Value module Set Alarm The addressed counter module is Disable Latch instructed to set alarm disable or latch Disable Latch specified channel Returns the alarm status to normal Connects the High Low alarm of the Set Alarm specified input channel to the specified digital Connection output in the addressed ADAM 5000 system Returns the High Low alarm limit output connection of a specified input channel in the addressed ADAM 5000 system Read Alarm Connection Sets the High Low alarm limit value for the specified input channel of a specified ADAM 5000 system Set Alarm Limit Returns the High Low alarm limit value for aaSiCjRhU Read Alarm Limit the specified input channel in the addressed ADAM 5000 system Reads whether an alarm occurred for the aaSiCjs Read Alarm specified input channel in the specified Status ADAM 5000 system Table 6 10 Counter Frequency Command Set Table ADAM 5000 TCP User s Manual 6 149 Chapter 6 Og 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 wa
187. ply 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 Screw termi nals Vs and GND are for power supply wiring Note The wires used should be sized at least 2 mm Power Supply K Vs 10 30 Voc K GND amp 63 com 63 DATA 63 DATA Figure 3 6 ADAM 5000 TCP power wiring EJ ADAM 5000 TCP User s Manual Hardware Installation Guide Chapter 3 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 The terminal block accepts wires from 0 5 mm to 2 5 mm 2 Always use a continuous length of wire Do not combine wires to make them longer 3 Use the shortest possible wire length 4 Use wire trays for routing where possible 5 Avoid running wires near high energy wiring 6 Avoid running input wiring in close proximity to output wiring where possible 7 Avoid creating sharp bends in the wires GI Ne Jf gig Ny Wy Figure 3 7 ADAM 5000 I O Module Terminal Block wiring ADAM 5000 TCP User s Manual 3 7 Hardware Installation Guide 3 4 3 System Network Connections Ethnet Netw
188. r 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 you want to read M is Channel Masking Status command cr is the terminating character carriage return ODh Response aa data 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system that is responding data is the hexadecimal value representing the sta tus of all digital output channels A 4 character value represents the output channels in sequence from 15 thru 0 in an ADAM 5056 module A 2 character value represents the output channels in sequence from 5 thru 0 in an ADAM 5060 module And a 2 character value represents the output channels in sequence from 7 thu 0 in ADAM 5068 5069 module Each bit represents a channel A value of 1 means the channel is masked while a value of 0 means the channel is valid WE ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 cr is the terminating character carriage return ODh Example command 01S1M cr response 011322 cr The co
189. r Someone turns on a hot water faucet somewhere else You will be impressed with the cold water The bottom diagram above shows an example of how devices will influ ence each other with swift load change For example normally we turn on all the four hydrants for testing When you close the hydrant 3 and hydrant 4 the other two hydrants will get more flow In other words the hydrant cannot keep a constant flow rate ADAM 5000 TCP User s C 9 Manual Appendix C leg Grounding Reference Single Point Grounding More cable but more stable system Figure C 8 Single point grounding 2 The above diagram shows you that a single point grounding system will be a more stable system If you use thin cable for powering these de vices the end device will actually get lower power The thin cable will consume the energy ADAM 5000 TCP User s Manual Grounding Reference Appendix C C C 2 Shielding 2 1 Cable Shield Single Isolated Cable Use Aluminum foil to cover those wires for isolating the external noise Figure C 9 Single isolated cable e Single isolated cable The diagram shows the structure of an isolated cabIC 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 nois
190. r a specified chan nel ffffffff represents 0 3 channels each of which is represented by one ff cr is the terminating character carriage return ODh Note When this command is issued the overflow value is cleared and starts afresh 6 167 ADAM 5000 TCP User s Manual Chapter 6 Og 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 Ol The others are 00 A ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 P represents Set Initial Counter Value command data is initial value from 0 to 4294967296 Be aware that data has 10 characters cr is the terminating character carriage return ODh 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
191. r to successfully calibrate an analog input module s in put range a proper calibration input signal should be connected to the analog input module before and during the calibration process ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi1 Name Zero Calibration Description Calibrates a specified analog input module to correct for offset errors Syntax aaSil 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 Si identifies the I O slot which is to be calibrated 1 represents the zero calibration command cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Note In order to successfully calibrate an analog input module s in put range a proper calibration input signal should be connected to the analog input module before and during the calibration process ADAM 5000 TCP User s Manual 6 75 Chapt
192. 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 3 is the trim calibration command hh is the 2 character twos complement hexadecimal value that represents the number of counts by which to increase or decrease the output current Each count equals approximately 1 5u A Values range from 00 to 5F and from A1 to FF hexadecimal where 00 represents 0 counts 5F represents 95 counts Al represents 95 counts and FF represents 1 counts Negative values decrease and positive numbers in crease the output current according to the number of counts cr is the terminating character carriage return ODh aa cr if the command is valid There is no response if the module detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system ADAM 5000 TCP User s Manual 6 137 Chapter 6 Og Planning Your Application Program cr is the terminating character carriage return ODh 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 approx
193. requency should be actual frequency 98700 100 987 If the response is gt 0000F 1000002000000031000000DD400 cr The command requests the module in slot 2 of the ADAM 5000 TCP system at address 01h to return the input values of all channels The module response that input values if all chan nels are hexadecimal 0000F 100 00020000 00031000 000DD400 The actual frequency can be obtained by transfer ring hexadecimal format to decimal format Then di vide the response value by 100 Therefore taking an example of the value above the actual frequency should be F100 hexdecimal 24100 decimal actual frequency 24100 100 241 ely ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 HaaSiCj Name Description Syntax Response Read One Channel Counter Frequency Data The command will return the input value from one of the four channels of a specified module 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 Si identifies the I O slot you want to interrogate Cj identifies the channel you want to read cr is the terminating character carriage return ODh gt data 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
194. resents the desired alarm limit setting The format is always in engineering units cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 123 Chapter 6 Og Planning Your Application Program Example command 01S0C1RHU cr response 01 2 0500 cr Channel I 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 PZI ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjS Name Description Syntax Response Read Alarm Status Reads whether an alarm occurred for the specified input channel in the specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 S is the Read Alarm Status command cr represents terminating character carriage return ODh aahl cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexad
195. ress WORD wCount WORD wData the IP Address of the ADAM 5000 TCP that to be connected the specific device ID for an Modbus TCP device The ADAM 5000 TCP is always assigned as I the starting address that to be written how many holdings register to be written a unsigned 16 bits array that stored the value write to holding value Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5KTCP_ReadCoil Description Syntax Parameter szIP in wID in wStartAddress in wCount in byData out Return Read the coils value at a specified range described in parameters int ADAMSKTCP ReadCoil char szIP WORD wID WORD wStartAddress WORD wCount BYTE byData the IP Address of the ADAM 5000 TCP that to be connected the specific device ID for an Modbus TCP device The ADAM 5000 TCP is always assigned as I the starting address that to be read how many coils to be read a 8 bit array that stored the read coil Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 17 Chapter 6 Og Planning Your Application Program ADAMSKTCP WriteCoil Description Syntax Parameter szIP in wID in wStartAddress in wCount in byData out Return Write the coils value at a specified range described in parameters int
196. rk address of an ADAM 5000 TCP system SiCj identifies the desired slot i i 0 to 7 and the desired channel j j 0 to 7 Ch is the Clear Latch Alarm command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 system cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 115 Chapter 6 Og Planning Your Application Program Example command 01S0C1CL cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to set its Low alarm state to OFF The system confirms it has done so accordingly eek ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 SiCj identi
197. rogram cr represents terminating character carriage return ODh Example command 01S0CIALCS1C0 cr response 01 cr Channel 1 of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM 5000 TCP system The system confirms it has dome so accordingly td ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhC Name Description Syntax Response Read Alarm Connection Return the High Low alarm limit output connection of a specified input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i and the desired chan nel j RhC is the command for reading Alarm Connection h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aaSkCn cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system SkCn identifies the desired slot k and the desired digital
198. rror or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system data represents the desired alarm limit setting The format is always in engineering units Be aware that data has 10 characters ADAM 5000 TCP 6 183 User s Manual Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S C1IRHU cr response 010000000026 cr The channel 1 of slot 0 of ADAM 5080 in the ADAM 5000 TCP system at address Olh is config ured to return the High alarm limit value The High alarm limit value is 26 kN ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjS Name Description Syntax Response Read Alarm Status Read whether an alarm occurred for the specified input channel in the specified ADAM 5000 TCP sys tem 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 SiCj identifies the desired slot i and the desired chan nel j S is the Read Alarm Status command cr represents terminating character carriage return ODh taahl er if the command was valid There is no response if the system detects a syntax error or communication error or
199. rrressresrsresnressreenr 5 20 5 3 11 Data Gateway Setting mrrrrrrvrrrrrrrnnnvrnnrrnrrrrnnrennnnnn 5 22 Chapter 6 Planning Your Application Program 6 1 6 1 Introduction mmmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnvvever 6 2 6 2 DLL Dynamic Link Library Driver ccsseee 6 2 yaa Wl ale lt Lene reir eeereer tre rrr 6 2 6 2 2 Programming FIOW mnnnnnrrnnnnnnvrrnnnnnnrrrnnnnnnnnnnnnssrrrnneenn 6 4 6 2 3 Function Descriptions 20 0 0 eeeeeeeeeeeeeeeeeeeeeeeeeneeeeieeees 6 10 6 2 4 Return Codes rrnnrrrrnnverrnvverrnverrnnnverrnvernnnrerrnverrnnrernnnernnn 6 30 6 3 ADAM 5000 TCP Command sssevnnnnnnnnnnnnnnnvnnnnnnnnnnnn 6 32 6 3 1 Command Structure mrnrrrnnvernaverrverrnverrnverrnrverrrnnreerennn 6 32 6 3 2 Modbus Function Code Introduction asrrerrnnrrnrvrnrernr 6 33 6 4 Applywith ASCII Command for ADAM 5000 TCP Systemeasasaruls betre en 6 39 6 4 1 Sytax Of ASCII iiir iiid aan da 6 39 6 4 2 System Command Set 6 40 6 4 3 Analog Input Command Set ssassn 6 48 6 4 4 Analog Output Command Set rnrrrrnvnrrnvrnnnvrrnrvrrnnnnennn 6 127 6 4 5 Digital Input Output Command Set rnrnnvnnnnrvrnrnnrnrrnnr 6 141 Appendix A Design Worksheets ceeeeseeees A 1 Appendix B Data Formats and I O Ranges B 1 B 1 Analog Input Formats rrrrnsvnvvnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn B 2 B 2 Analog Input Ranges ADAM 5017 nnnnnnnnnnnnnnnnnnnnnnnnnn B 4 B 3 Ana
200. rsal DI DO High Byte Value Hex f DI11 DO10 DIS pos Le ER EGG DI15 DO 14 DI 13 DO 12 CK 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 asia oe Figure 5 11 Current Analog Input Status Location Standard Modbus address Refer to chapter 3 5 Assigning address for I O module ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 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 Description Describes the channel numbers sensor types and mea surement range of the specified module Before acquiring the current data of an analog input module you have to select the input range and integration time Then the input data will be scaled as the specified range with engineer unit lopit Fange iconv 1 gt caco vo EN Integration Time 50ms 60H2 z F CHA M CHS fiiav Update ee oa os Configuration Setting Channel Enable Disable Calibration
201. sents 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 P represents Set Initial Counter Value command data is initial value from 0 to 4294967296 Be aware that data has 10 characters cr is the terminating character carriage return ODh 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system cr is the terminating character carriage return ODh Example command 01S3C2P0000004369 cr response 01 cr The channel 2 of ADAM 5080 in slot 3 in ADAM 5000 TCP system at address O1h is instructed to set initial counter value The initial counter value is 4369 ADAM 5000 TCP User s Manual 6 169 Chapter 6 Og 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 f
202. site information You can access the most current support on our website http www advantech com support If you find a problem with our documentation please let us know by completing and returning the Support Request Form on our website http www advantech com support request_dir htm 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 Appendix Topics Covered Understanding Your System Introduces the suitable applying industries and the position in a SCADA system Summarize the features and the specification of ADAM 5000 TCP Explains the functions of the LED indicators Selecting Your Hardware Provides a briefly selection chart and specification table of ADAM 5000 I O modules for users to organize their system easily Give a direction to calculate system capacity and select a certain power supply Recommend a standard for communication cable and connector Hardware Installation Guide Lists the necessary components and proper environment in installing process Describes the Hardware dimension and the way to place or mount it Explains the rule of mapping I O address Describes the wiring and connecting detail for ADAM 5000 TCP I O Module Introduction Introduces the detail specifications functions and application wiring of e
203. stem Si identifies the I O slot i i 0 to 7 7 is the command for the last value read back taaff ff ff ff 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 delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system ffffffffis the number of overflow for a specified chan nel ffffffff represents 0 3 channels each of which is represented by one ff cr is the terminating character carriage return ODh Note When this command is issued the overflow value is cleared and starts afresh 6 167 ADAM 5000 TCP User s Manual Chapter 6 Og 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 Ol The others are 00 A ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 repre
204. t Operator Interface Determine Proper Environment Install Main Unit and Module System Mounting Wiring and Connecting I O Address Mapping Individual I O Module Introduction N Selecting Your Hardware Component Hardware Installation Guide T O Modules Introduction Chapter 5 System Hardware Configuration U sing this Chapter System Hardware Configuration Install Utility Software T O Module Configuration Network Setting V O Module Calibration System Configuration Guide Security Setting Terminal Emulation UDP Data Stream Modbus Data Gateway DLL Driver Using ADAM 5000 TCP Seri Is Planning Your Using ADAM 5000 TCP Series Command Set Application Program Appendix Relational Document amp Technical Information If you want to read about Go to page System Hardware Configuration 5 2 Install Utility Software 5 3 I O Module Configuration 5 9 Ethernet Network Setting 5 5 T O Module Calibration 5 15 Security Setting 5 18 Technical Emulation 5 19 UDP Data Stream 5 20 Modbus Data Gateway 5 22 Chapter 5 System Hardware Configuration This chapter explains how to use Windows Utility to configure the ADAM 5000 TCP Series system for various applications Users ca
205. t PC the Utility soft ware setup menu will start up automatically Click the ADAM 5000 TCP Series icon to execute the setup program There will be a shortcut of the Utility executive program on Windows desktop after completing the installation 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 amp C System The following guide lines will give you some brief instructions on how to use this Utility e Main Menu Ethernet Network Setting e Adding Remote Station e I O Module Configuration Alarm Setting e I O Module Calibration e Firmware Update e Security Setting Terminal emulation e Data Stream e RS 485 Modbus Network Setting 5 3 1 Main Menu Double Click the icon of ADAM 5000 TCP Series Windows Utility shortcut the Operation screen will pop up as Figure 5 2 FE bt oe be ne i fom s a ane a a 4 Figure 5 2 operation Screen ADAM 5000 TCP User s Manual 5 3 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 File Tool Setup Help est fy el Item File contents Exit Function using to exit this Utility program Eie Tool Setup Help Bl Add Remote 5000 TCP Search
206. t as an analog signal Stores a default output value in a specified channel The output value will take effect upon startup or reset Directs the specified channel to store parameters followi ng a calibration for 4 mA output Directs the specified channel to store parameters followi ng a calibration for 20 mA output Returns either the last value sent to the specified channel by a aaSiCj data Table 6 9 Analog Output command Set Table ADAM 5000 TCP User s Manual 6 127 Chapter 6 Og 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 SiCj identifies the I O slot i 1 0 to 7 and the channel j j 0 to 3 of the module you want to configure A is I O module configuration command rr represents the 2 character hexadecimal code of the output range See Appendix B ff is a hexadecimal number that equals the 8 bit pa rameter representing the status of data format and slew rate Bits 0 and 1 represent data format Bits 2 3 4 5 represent slew rate The layout of the 8 bit parameter is shown in Figure 6 4 The other bits are not used and are set to 0 cr is the terminating c
207. tax Response Read Alarm Mode Returns the alarm mode for the specified channel in the specified ADAM 5000 TCP system 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 SiCj identifies the desired slot i i 0 to 7 and the desired channel j j 0 to 7 Ah is the Read Alarm Mode command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aas cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal address of the corresponding ADAM 5000 TCP system s indicates alarm mode and can have the value M Momentary mode L Latching mode cr represents terminating character carriage return ODh ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1AL cr response 01M cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address O1h 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 Chapter 6 Og Planning Your Application Program aaSiCjAhEs Name Enable Disable Alarm Description Enab
208. ter carriage return ODh 6 173 ADAM 5000 TCP User s Manual Chapter 6 Og 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 O1h is instructed to return its Low alarm mode The system responds that it is latched WZ ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjCh Name Description Syntax Response Clear Alarm Status Returns the alarm status to normal 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 C is the clear Alarm Mode command h indicates alarm type and can have the value H High alarm L Lowalarm cr represents terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh 6 175 ADAM 5000 TCP User s Manual Chapter 6 Og Planning Your Application Program Example command 01S0C1CL cr response
209. ter languages as the total data string length is fixed at six characters two decimal digits a decimal point and three decimal digits The resolution is5 pA Example An analog output module on channel I of slot 0 in an ADAM 5000 system at address 01h is configured for a 0 to 20 mA range If the output value is 4 762 mA the format of the Analog Data Out com mand would be 01S0C14 762 lt cr gt B 6 Analog Output Ranges Output Range Data Formats Maximum MINIMUM Displayed Range gode Specified Specified Resolution Description Signal Signal Engineedring Units 20 000 00 000 5 pA 0 to 20 mA fo Of Span 100 00 7000 00 OPA PDF Binary FFF 000 Engineedring Units 20 000 04 000 4 to 20 mA ot Span 00 00 000 00 Hexadecimat Binary FFF 000 Engineedring Units 10 000 00 000 0to10V of Span 100 00 000 00 Hexadecimal FFF 000 Binary EJ ADAM 5000 TCP User s Manual Data Formats and I O Ranges Appendix B B B 7 ADAM 5013 RTD Input Format and Ranges Input Range Maximum Minimum Description Data Formats Specified Specified Signal Signal Range Code hex Displayed Resolution 100 Ohms Platinum Enaineeri 20 RTD 100 to 100 C NE 100 00 100 00 019C a 0 00385 100 Ohms Platinum RTD 0 to 100 C a 0 00385 100 Ohms Platinum RTD 0 to 200 C a 0 00385 100 Ohms Platinum RTD 0 to 600 C a 0 00385 100 Ohms Platinum RTD 100 to
210. ter hexadeci mal address of an ADAM 5000 TCP system rr 00 represents Bi direction counter mode rr 01 represenrs UP DOWN counter mode rr 02 represents Frequency mode ff indicates which format is ff 00 represents the engineer format ff 02 represents the hexdecimal format cr is the terminating character carriage return ODh command 01S3B cr response 010100 cr The ADAM 5080 in Slot 3 of ADAM 5000 TPC sys tem at address Olh responds that it is configured in UP DOWN counter mode and for engineering unit data format ADAM 5000 TCP User s Manual 6 153 Chapter 6 Og 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 Si is the I O slot of ADAM 5000 system you want to read cr is the terminating character carriage return ODh Response gt data data data data 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 exists gt is a delimiter character is a delimiter character indicating the command being inva
211. tes the I O slot which ADAM 5080 module is in cr is the terminating character carriage return ODh Example command 01T cr Response 01 FF8OFFFF cr ADAM 5080 is plugged in slot I and the command requests the system at address Olh to send its mod ule name AA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaF Name Description Syntax Response Eample Read Firmware Version Returns the firmware version code from a specified ADAM 5000 TCP system 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 F is the command for reading Firmware Version cr is the terminating character carriage return ODh aa version 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 communication error or if the specified address does not exist delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of an ADAM 5000 TCP system version represents the firmware version of the ADAM 5000 TCP system cr is the terminating character carriage return ODh command 01F cr response 01A1 1 cr The command requsets the system at address O1h to se
212. th HMI Human Machine Interface software in a SCADA Supervisory Control and Data Acquisi tion system There are a lot of HMI software packages which support Modbus TCP driver Advantech Studio b Wonderware InTouch pb Intellution Fix of i Fix pb Any other software support Modbus TCP protocol Moreover Advantech also provides OPC Server the most easy to use data exchange tool in worldwide Any HMI software designed with OPC Client would be able to access ADAM 5000 TCP Series system b Modbus TCP OPC Server If you want to develop your own application the DLL driver and OCX component will be the best tools to build up user s operator interface b ADAM 5000 TCP Series DLL driver b ADAM 5000 TCP Series OCX component With these ready to go application software packages tasks such as remote data acquisition process control historical trending and data analysis require only a few keystrokes ADAM 5000 TCP User s Manual Chapter 3 Hardware Installation Guide System Design Flow Chart Select I O Module SN Select Power Supply Selecting Your Hardware Component Select Link Terminal amp Cable Select Operator Interface F Determine Proper Environment Install Main Unit and Module Hardware Installation System Mounting Guide Wiring and Connecting I O Address Mapping J T O Modules Introduction Individual I O Module Introduction
213. the status of its input channels The analog input module responds that all its multiplex channels are enabling FF equals 1111 and 1111 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSi Name Description Syntax Response All Analog Data In Returns the input value of all channels for a speci fied analog input module of a specified system in engineering unit only 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 Si is the I O slot of ADAM 5000 TCP system you want to read cr is the terminating character carriage return ODh gt data data data data data data data data 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 gt is a delimiter character indicating a valid command was received delimiter character indicating the command was invalid data is the input value in engineering units of a channel in the interrogated module of the specified system The data from all channels is shown in se quence from 7 to 0 If data it means the channel is invalid cr is the terminating character carriage return ODh ADAM 5000 TCP User s Manual 6 69 Chapt
214. ting 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 ADAM 5000 TCP User s Manual System Hardware Configuration Chapte r5 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 If the ASCII mode has been selected the Windows Utility will translate the request and response string both in Modbus and ASCII format Please refer Chapter 6 2 to use Modbus Command and refer Chapter 6 4 to apply ASCII command For example select ASCII mode and key in the ASCII command 01M read module name then click Send The response will show as figure 5 23 5 Det por Be Ta Tj m re e tesen mr A800 She Figure 5 23 Command Emulation ADAM 5000 TCP User s Manual 5 19 Chapter 5 System Hardware Configuration 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 re
215. tive product a completely filled out Repair and Replacement Order Card and a 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 Write the RMA number visibly on the outside of the package and ship it prepaid to your dealer Technical Support We want you to get the maximum performance from your products So if you run into technical difficulties we are here to help For most frequently asked questions you can easily find answers in your product documentation Moreover there are a huge database about troubleshooting and knowledge Base as technical reference on our website These answers are normally a lot more detailed than the ones we can give over the phone So please consult this manual or the web site first If you still cannot find the answer gather all the information or questions that apply to your problem and with the product close at hand call your dealer 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 In addition free technical support is available from Advantech engi neers every business day We are always ready to give advice on appli cation requirements or specific information on the installation and opera tion of any of our products Web
216. to channel 2 of a digital output module in slot 1 of the ADAM 5000 TCP system at address 15h either ADAM 5056 or ADAM 5050 5055 5060 5068 5069 Channel 2 of the digi tal output module is set to ON command 01S81001234 cr response gt cr An output byte with value 1234h 00010010001 10100 is sent to the digital output module ADAM 5056 in slot 1 of the ADAM 5000 TCP system at address SEN ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Olh Channels 2 4 5 9 and 12 will be set to ON and all other channels are set to OFF command 01S0003A cr response gt 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 Chan nels 0 1 3 4 and 5 will be set to ON while channel 2 is set to OFF Bits 6 and 7 are not used and always default to 0 Note If any channel of the digital output module is configured as the output for an analog input alarm it cannot be reconfigured via digital output commands Channels used for analog input alarms always have a higher priority ADAM 5000 TCP User s Manual 6 145 Chapter 6 og 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 c
217. 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 However the most usual issue is just simply improper wiring ie grounding and shielding You know the 80 20 rule in our life we spend 20 time for 80 work but 80 time for the last 20 of the work So is it with system integration we pay 20 for Wire Cable and 0 for Equipment However 80 of reliability depends on Grounding and Shielding In other words we need to invest more in that 20 and work on these two issues to make a highly reliable system This application note brings you some concepts about field grounding and shielding These topics will be illustrated in the following pages 1 Grounding 1 1 The Earth for reference 12 The Frame Ground and Grounding Bar 13 Normal Mode and Common Mode 14 Wire impedance 15 Single Point Grounding 2 Shielding 2 1 Cable Shield 22 System Shielding 3 Noise Reduction Techniques 4 Check Point List 0E ADAM 5000 TCP User s Manual Grounding Reference WiNA C 1 Grounding 1 1 The Earth for reference Why we think the EARTH as GROUND As you know that the EARTH can t be conductive Indeed But those parallel resistors make the EARTH as a single polnt and Just for reference Figure C 1 Think the EARTH as GROUND As you know
218. ts terminating character carriage return ODh aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh 6 175 ADAM 5000 TCP User s Manual Chapter 6 Og 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 Olh is instructed to set its Low alarm state to normal The system confirms it has done so accordingly ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 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 SiCj identifies the desired slot i and the desired chan nelj AhC is the command for setting Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm SkCn identifies the desired slot k and the desired digital outp
219. ts the read channels status command cr is the terminating character carriage return ODh aamm lt 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 delimiter character indicating a valid command was received delimiter character indicating the command was in valid aa range 00 FF represents the 2 character hexadeci mal address of an ADAM 5000 TCP system mm are two hexadecimal values Each value is inter preted as 4 bits The first 4 bit value is 0 The second 4 bit value represents the status of channels 0 3 A value of 0 means the channel is disabled while a value of I means the channel is enabled cr is the terminating character carriage return ODh command 01S16 cr response 0101 cr The command asks the analog input module in slot 1 of the system at address Olh to send the status of its input channels The analog input module responds that channel 0 of its multiplex channels is enabling the others are disabled 01h equals 0000 and 0001 ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiO 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 hexad
220. uested ON OFF state is specified by a constant in the query data field A value of FF 00 hex requests it to be ON A value of 00 00 hex requests it to be OFF And a value of FF FF hex requests it to release the force Request message format for function code 05 Command Body Station Function Coil Force Force Data Address Code Address DataHigh Byte Low Byte High Byte Low B Example Force coil 3 address 00003 ON in ADAM 5000 TCP 0105 00 03 FF 00 ADAM 5000 TCP User s Manual 6 35 Chapter 6 Og 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 Coil Coil Force Force Data Address Code Address Address Data High Byte Low Byte High Byte Low Byte Function Code 06 Presets integer value into a single register Request message format for function code 06 Command Body i Register Register Station Function Address Address Address Code High Byte Low Byte Data High Byte Data Low Byte Example Preset register 40002 to 00 04 hex in ADAM 5000 TCP 01 06 00 02 00 04 Response message format for function code 06 The normal response is an echo of the query returned after the coil state has been preset Command Body i Register Register Station Function Address Address Address Code High Byte Low Byte DataHigh Byte DataLow Byte
221. ule Calibration l Security Setting Terminal Emulation UDP Data Stream Modbus Data Gateway Using ADAM 5000 TCP DLL Driver Using ADAM 5000 TCP Command Set Appendix System Configuration Guide Planning Your Application Program Relational Document amp Technical Information Contents Chapter 1 Understanding Your System snnnvnnnnnnn 1 1 1 1 Introduction eect ttt tt rr rnin 1 2 1 2 Major Features mrrmmssssvnvvvvvnnnnnnnnnnnnnnnnnnnenvevennnnnnnnnnnn 1 3 1 2 1 Communication Network srrrrrrnnnvrrrrrrnnrrvrrrrrnnnrrrrrrnnnnn 1 3 1 2 2 Modbus TCP Protocol cccccccccceesseseeeeessseeeessesneaeess 1 3 1 2 3 Hardware Capacity amp Diagnostic rroannvnnrnrrnnnnnrnnrnnr 1 3 1 2 4 Communicating Isolation eenen 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 008 1 4 1 2 7 Software Support mmennnvnnnenrrrnnnrnnnnrn renn nrnnnnnvenannrnnnnnnene 1 4 1 2 8 Security Setting rrnnennvrrrnrrrnnnnvvnrnrrrnnnnvnnrrrrnnnnnnnnnenn 1 5 1 2 9 UDP Data Stream mmerrnrrrerrssrrrerrnnnvererrrnrrrsrrrsrrrrernnnn 1 5 1 2 10 Modbus Ethernet Data Gateway ersvrarrrnrnrernrerrrvnnnrnn 1 5 1 3 Technical specification of ADAM 5000 TCP System 1 6 1 3 1 Systemisk ceccerdsavnadinae aulenrdardakanetndedalui 1 6 1 3 2 Ethernet Com
222. unication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system cr represents terminating character carriage return ODh NA ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 Example command 01S0C1A HU 080 00 cr response 01 cr Channel 1 of slot 0 in the ADAM 5000 TCP system at address Olh 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 Note An analog input module requires a maximum of 2 seconds after it receives a Set Alarm Limit command to let the settings take effect During this interval the module cannot be addressed to perform any other actions ADAM 5000 TCP User s Manual 6 103 Chapter 6 Og Planning Your Application Program aaSiCjRhU Name Read Alarm Limit Description Retums 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 RhU is the Read Alarm Limit command h indicates
223. urn ODh command 01S3B cr response 012000 cr The RTD input module in slot 3 of the ADAM 5000 TCP system at address Olh responds with an RTD type Pt 100 to 100 C engineering unit data format and integration time 50ms 60Hz ADAM 5000 TCP User s Manual 6 51 Chapter 6 Og Planning Your Application Program aaSi Name Description Syntax Response All RTD Data In Returns the input values of all channels of a speci fied RTD input module in a specified system in engi neering units only 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 Si is the I O slot of the ADAM 5000 TCP system you want to read cr is the terminating character carriage return ODh gt data data data 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 gt delimiter character indicating a valid command was received delimiter character indicating the command was invalid aa range 00 FF represents the 2 character hexadeci mal Modbus network address of the ADAM 5000 TCP system data is the input value in engineering units of the interrogated module of the specified system The data from all channels is shown in sequence from 0 to 2 If
224. urn Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAMSKTCP StartStream Description Instruct the PC to start receiving stream data from the ADAM 5000 TCP Syntax int ADAMSKTCP StartStream HANDLE EventFromApp Parameters EventFromApp the event object that would pass down to ADAMSKTCPDLL 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 ADAMSKTCP_SetStream AlarmState for more detail information Return Please refer to Chapter 6 2 4 Return Codes for more detail information ADAM 5000 TCP User s Manual 6 23 Chapter 6 Og Planning Your Application Program ADAM5KTCP StopStream Description Instruct the PC to stop receiving stream data Syntax int ADAMSKTCP StopStream Parameters void Return void ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 ADAM5SKTCP SetStreamAlarmState Description Set the criterion to signal the event object Syntax int ADAMSKTCP SetStreamAlarmState WORD wstreamA larmState Parameters wStreamAlarmState in When assigned to ADAMSKTCP Receive StreamIngoreAlarm means the ADAMSKTCP DLL always signals event object when any stream data comes from an ADAM 5000 TCP Then the application can receive the stream data by calling ADAMSKTCP_ReadStreamDat
225. ut channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i i 0 to 7 and the desired analog input channel j j 0 to 7 RhC is the Read Alarm Connection command h indicates alarm type and can have the value H High alarm L Low alarm cr represents terminating character carriage return ODh aaSkCn cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system SkCn identifies the desired slot k k 0 to 7 and the desired digital output point n n 0 to F to which the input alarm is connected If the values of k and n are the analog input has no connection with a digi tal output point ADAM 5000 TCP User s Manual 6 119 Chapter 6 Og Planning Your Application Program Example cr represents terminating character carriage return ODh command 01S0C1RLC cr response 01S1C0 cr Channel I of slot 0 in the ADAM 5000 TCP system at address O1h is instructed to read its Low alarm output connection The system responds that the Low alarm output connects to the
226. ut point n n 0 to F To disconnect the digital output k and n should be set as cr represents terminating character carriage return ODh Response aa cr if the command was valid There is no response if the system detects a syntax error or communication error or if the specified ad dress does not exist delimiter character indicating a valid command was received aa represents the 2 character hexadecimal Modbus network address of the corresponding ADAM 5000 TCP system ADAM 5000 TCP User s Manual 6 177 Chapter 6 Og Planning Your Application Program cr represents terminating character carriage return ODh Example command 01S0CIALCS1C0 cr response 01 cr Channel 1 of slot 0 of ADAM 5080 in ADAM 5000 TCP system at address Olh is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM 5000 TCP system The system confirms it has dome so accordingly td ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCjRhC Name Description Syntax Response Read Alarm Connection Return the High Low alarm limit output connection of a specified input channel in the addressed ADAM 5000 TCP system 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 SiCj identifies the desired slot i and the desired chan nel j
227. will try to use a value that is close to the one received but within the module s configured range There is no response if the module detects a syntax error or communication error or if the specified ad dress does not exist ADAM 5000 TCP User s Manual 6 131 Chapter 6 Og Planning Your Application Program gt is a delimiter character indicating a valid command was received delimiter character indicating the command was invalid cr is the terminating character carriage return ODh Example command 01S1C106 000 cr response gt cr The command instructs the module in slot 1 of the ADAM 5000 TCP system at address O1h to output a value of 6 mA from it s channel 1 The module should be an analog output module with it s channel 1 con figured for a range of 0 20 mA or 4 20 mA If itis an analog output module configured for the range 0 10 V it s output value will be 10 V and the response will be 01 cr ey ADAM 5000 TCP User s Manual Planning Your Application Program Chapter 6 6 aaSiCj4 Name Description Syntax Response Example Start Up Output Current Voltage Configuration Stores a default output value in a specified channel The output value will take effect upon startup or re set aaSiCj4 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 channel
228. y 7 R S B R S B M Resolution 12 bit Analog Voltage 0 10V Output Output Current 0 20 mA Output 7 i i 4 20 mA Digital Pigita Input Input g a 7 Channels and Disita Digital 181 Output Output Channels Count ans s er 32 nput 2 z bit Frequency Mode COM Channels M Type Isolation 3000 3000 3000 3000 3000 3000 3000 VDC VDC VDC VDC VDC VDC VDC Module ADAM 5050 ADAM 5051 ADAM 5051D ADAM 5051S Resolution Input Channel Analog Sampling Rate Input Voltage Input Current Input Direct Sensor Input ji 7 Resolution Analog Voltage Output Output i y 7 Current Output Digital Input Piot we PE 16 16 W LED 16 W LED and Digital ae Output Digital Output selectabl e i i Channels Channels Count er Input 32 bit Frequency 7 i 7 7 Mode COM M Channels Type Isolation 2500 VDC Table 2 2 I O Modules Selection Guide EZE ADAM 5000 TCP User s Manual Selecting Your Hardware Components Chapter 2 Module ADAM 5052 ADAM 5055S ADAM 5056 ADAM 5056D ADAM 5056S 505680 Resolution k Input Channel Sampling Rate Analog Voltage Input Input p Current Input Direct Sensor Input Resolution Analog Voltage E 7 7 7 7 Output Output Current Output Digita
Download Pdf Manuals
Related Search
Manual manual manualslib manual car manuale digitale manual transmission manually meaning manual timesheet manual arts high school manual wheelchair manually update your device drivers windows manual labor manual definition manual for courts martial manual muscle testing manual muscle testing grades manually register devices with autopilot manual lawn mower manualidades manual transfer switch manual blood pressure cuff manual transmission cars for sale manual therapy cpt code manual libs manual autopilot enrollment manual handling
Related Contents
CANESTENE GYN Clotrimazole Tecumseh AKA9463ZXDXC Drawing Data Stationnement zone bleue- adaptation ZT-2017 and ZT-2017C User Manual Copyright © All rights reserved.
Failed to retrieve file