Summary of Contents for Advantech ADAM-5000 Series
Page 1
ADAM-5000 Series ADAM-5080 4-channel Counter/Frequency Module User's Manual...
Page 2
Copyright Notice This document is copyrighted, 1999, by Advantech Co., Ltd. All rights are reserved. Advantech Co., Ltd., reserves the right to make improvements to the products described in this manual at any time without notice. No part of this manual may be reproduced, copied, translated or transmitted in any form or by any means without the prior written permission of Advantech Co., Ltd.
Page 3
A Message to the Customer... Advantech Customer Services Each and every Advantech product is built to the most exacting specifications to ensure reliable performance in adverse industrial environments. Whether your new Advantech equipment is destined for the laboratory or the factory floor, you can be assured that your product will provide the reliability and ease of operation for which the name Advantech has come to be known.
Page 4
For your convenience and to solve your problems in time, please first try our internet technical support facility: Advantech homepage For product information, the latest news, and other information about Advantech, please refer to this web page. http://www.advantech.com/ia Technical Support homepage http://support.advantech.com...
Page 5
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.
User's Manual Overview Compatible ADAM-5000 Series Main Units ADAM-5080 is a 4-channel counter/frequency module designed to be implemented within the following Advantech ADAM-5000 series main units: ADAM-5000/485 (with firmware Version A2.3 or above) ADAM-5510 (with library Version V1.00 or above) ADAM-5510/P31 (with I/O driver Version V1.00 or above)
ADAM-5080 Counter/Frequency Module selected, it means the Alarm status will be "latched" whenever the alarm being triggered. Once the alarm status being "latched," it will thereafter stay in that triggered state. Users will have to issue a "Clear Alarm Status" command to return the "latched" alarm status back to normal.
User's Manual V cc Internal logic Figure 3 TTL Input Level ADAM-5080 Counter/Frequency Mode Selection Users can select Bi-direction, Up/Down Counter or Frequency option as shown in Figure 4. Figure 4 Counter / Frequency Mode Note: All four channels of ADAM-5080 will operate simulta- neously in the mode you have selected.
ADAM-5080 Counter/Frequency Module Features -- Counter Mode Up/Down Counting The Up/Down Counter Function offers two types of counting: Up Couting (increasingly) and Down Counting (decreasingly). Up Counting : when C0A+ and C0A- sense any input signals, the counter counts up. Down Counting : when C0B+ and C0B- sense any input signals, the counter counts down.
User's Manual Up Counting : when the input signal is within logic level "1", the counter value increases. Down Counting : when the input signal is within logic level "0", the counter value decreases. C0A+ C0A- C0B+/D+ C0B-/D - Figure 6 Wiring for Bi-direction Counting Note: If users select TTL mode and don't connect C0B+ C0B-, the counter value will increase.
ADAM-5080 Counter/Frequency Module Features -- Alarm Setting According to your application purposes, you can run the utility program to set different limit values for High/Low Alarm. Figure 8 Setting Alarm Limit Setting Initial Counter Value In oder to utilize the alarm function, users have to set a high-alarm limit value and/or a low alarm limit value, and a initial value to fulfill the requirements for a basic alarm setting.
User's Manual Max value High alarm limit value Sending High alarm Initial value Sending Low alarm Low alarm limit value Min value Figure 9 Sending Alarm Signal (recommended settings) Max value Initial value Sending High alarm High alram Initial value Sending low alarm Low alarm limit value Min value...
Page 16
ADAM-5080 Counter/Frequency Module Overflow Value Overflow value is the number of times the counter value exceeds the Max/Min values you specified. When the counter value exceeds Maximum value, the overflow value increases; When the counter value goes under Minimum value, the overflow value decreases. Besides, when the counter value runs beyond the range of Max/Min value, it will continue counting from the initial value.
User's Manual Features--Digital Output Mapping If users want to use Digital Output function, ADAM utility is available for setting specifically which module, channel or slot to receive the alarm signals. Figure 11 Digital Output Mapping : High Alarm State--Set Alarm state to "Latch" or "Disable". : High Alarm Limt--Set Alarm limit from 0 to 4,294,967,295.
ADAM-5080 Counter/Frequency Module TTL/Isolated Input Level According to your need, you can select either TTL or Isolated Input Level by setting the configuration for the jumpers. Select the proper jumper settings for either TTL or Isolated Input according to Figure Figure 10.
ADAM-5080 Counter/Frequency Module 6.9 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 $aaF Version specified ADAM-5000 system. Set slot index and $aaSiArrff Set Configuration...
Page 21
User's Manual Command Syntax Command Name Description Clear the counters of the specified $aaSiCj6 Clear Counter counter/frequency module The command requests the addressed module to $aaSi7 Read Overflow Flag return the status of the overflow flag of counter. Set initial counter value Set Initial Counter for counter of the @aaSiCjP(data)
Page 22
ADAM-5080 Counter/Frequency Module Command Syntax Command Name Description Sets the High/Low alarm limit value for the $aaSiCjAhU(data) Set Alarm Limit specified input channel of a specified ADAM- 5000 system. Returns the High/Low alarm limit value for the $aaSiCjRhU Read Alarm Limit specified input channel in the addressed ADAM-5000 system...
Page 23
User's Manual $aaT $aaT Name Read Module Name Description Returns the module name from a specified ADAM-5000 system. Syntax $aaT(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want to interrogate.
Page 24
ADAM-5080 Counter/Frequency Module $aaT $aaT Example command: $25T(cr) Response !25FF80FFFF(cr) ADAM-5080 is plug in slot 1 and the command requests the system at address 25h to send its module name. ADAM-5080 Counter/Frequency Module...
Page 25
User's Manual $aaF $aaF Name Read Firmware Version Description Returns the firmware version code from a specified ADAM-5000 system. Syntax $aaF(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want to interrogate. F is the command for reading Firmware Version.
Page 26
ADAM-5080 Counter/Frequency Module $aaF $aaF Eample command: $18F(cr) response: !18A2.3(cr) The command requsets the system at address 18h to send its firmware version. The system responds with firmware version A2.3. ADAM-5080 Counter/Frequency Module...
Page 27
User's Manual $aaSiArrff $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 hexadecimal address of the ADAM-5000 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.
Page 28
ADAM-5080 Counter/Frequency Module $aaSiArrff $aaSiArrff Example command: $24S1A0002(cr) response: !24(cr) The ADAM-5080 in Slot 1 of ADAM-5000 system at address 24h is in Bi-direction mode and configured for hexdecimal format. ADAM-5080 Counter/Frequency Module...
Page 29
User's Manual $aaSiB $aaSiB Name Read Configuration. Description The command requests the Configuration of slot Syntax $aaSiB(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want to interrogate. Si identifies the desired slot i B represents the configuration status command (cr) is the terminating character, carriage return (0Dh).
Page 30
ADAM-5080 Counter/Frequency Module $aaSiB $aaSiB Example command: $35S3B(cr) response: !350100(cr) The ADAM-5080 in Slot 3 of ADAM-5000 system at address 35h responds that it is configured in UP/DOWN counter mode and for engineering unit data format. ADAM-5080 Counter/Frequency Module...
Page 31
User's Manual #aaSi #aaSi Name Read All Channel Counter (Frequency) Data Description Return the input value of all channels for the specified input module for a specified system in engineering unit only. Syntax #aaSi(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want to interrogate.
Page 32
ADAM-5080 Counter/Frequency Module #aaSi #aaSi Example command: #16S2(cr) response: If the response you got is in Counter mode, you'll see one similiar to the example below: >1235458013267521306934521463051832106549(cr) What you see here is actually the input values of all channels that is returned from slot 2 of the ADAM-5000 system at address 16h.
Page 33
User's Manual #aaSi #aaSi However, if the response is in frequency mode , you'll see one similar to the example below: >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...
Page 34
ADAM-5080 Counter/Frequency Module #aaSiCj #aaSiCj Name Read One Channel Counter (Frequency) Data Description The command will return the input value from one of the four channels of a specified module. Syntax #aaSiCj(cr) # is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want to interrogate.
Page 35
User's Manual #aaSiCj #aaSiCj Example command: $35S3C2(cr) response: >0000000451(cr) The command requests the ADAM-5080 module in slot 3 of the ADAM-5000 system at address 35h to return the input value of channel 2. The counter module responds that the input value of channel 2 is 451.
Page 36
ADAM-5080 Counter/Frequency Module $aaSiØ(data) $aaSiØ(data) Name Set Digital filter Scale Description Set the filter seconds to start to measure the input signal. Syntax $aaSiØ(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system which is to be calibrate.
Page 37
User's Manual $aaSiØ(data) $aaSiØ(data) Example command: $26S3000765(cr) response: !26(cr) The ADAM-5080 in slot 3 of the ADAM-5000 system at address 26h need 765µ seconds to start to measure the input. ADAM-5080 Counter/Frequency Module...
Page 38
ADAM-5080 Counter/Frequency Module $aaSiØ $aaSiØ Name Read Digital filter scale Description Read the filter seconds to start to measure the input signal. Syntax $aaSiØ(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system which is to be calibrate.
Page 39
User's Manual $aaSiØ $aaSiØ Example command: $26S30(cr) response: !2600765(cr) The command requests the ADAM-5080 in slot 3 of the ADAM-5000 system at address 26h to read the filter seconds. The module responds with 765µ seconds. ADAM-5080 Counter/Frequency Module...
Page 40
ADAM-5080 Counter/Frequency Module $aaSiCj5s $aaSiCj5s Name Set Counter Start/Stop Description Request the addressed counter/frequency module to start or stop the counting. Syntax $aaSiCj5s(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system. SiCj identifies the I/O slot i and the channel j of the module you want to set.
Page 41
User's Manual $aaSiCj5s $aaSiCj5s Example command: $26S3C251(cr) response: !26(cr) The command requests channel 2 of ADAM-5080 in slot 3 in ADAM-5000 system at address 26h to start counter. ADAM-5080 Counter/Frequency Module...
Page 42
ADAM-5080 Counter/Frequency Module $aaSiCj5 $aaSiCj5 Name Read counter Start/Stop Description Requests the addressed counter/frequency module to indicate whether counters are active. Syntax $aaSiCj5(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system. SiCj identifies the I/O slot i and the channel j of the module you want to set.
Page 43
User's Manual $aaSiCj5 $aaSiCj5 Example command: $26S3C25(cr) response: !261(cr) The channel 2 of ADAM-5080 in slot 3 in ADAM-5000 system at address 26h is instructed to return its counter status. The counter status is in start status. ADAM-5080 Counter/Frequency Module...
Page 44
ADAM-5080 Counter/Frequency Module $aaSiCj6 $aaSiCj6 Name Clear Counter Description Clear the counters of the specified counter/frequency module Syntax $aaSiCj6(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
Page 45
User's Manual $aaSiCj6 $aaSiCj6 Example command: $26S3C26(cr) response: !26(cr) The command requests the channel 2 of ADAM-5080 in slot 3 in ADAM-5000 system at address 26h to clear counter value. ADAM-5080 Counter/Frequency Module...
Page 46
ADAM-5080 Counter/Frequency Module $aaSi7 $aaSi7 Name Read Overflow Flag Description The command requests the addressed module to return the status of the overflow flag of counter. Syntax $aaSi7(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system.
Page 47
User's Manual $aaSi7 $aaSi7 Example command: $26S37(cr) response: !2600000001(cr) The command requests the ADAM-5080 of slot 3 in ADAM-5000 system at address 26h to return the overflow value. The overflow value in channel 3 is 01. The others are 00. ADAM-5080 Counter/Frequency Module...
Page 48
ADAM-5080 Counter/Frequency Module @aaSiCjP(data) @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 hexadecimal address of the ADAM-5000 system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
Page 49
User's Manual @aaSiCjP(data) @aaSiCjP(data) Example command: @26S3C2P0000004369(cr) response: !26(cr) The channel 2 of ADAM-5080 in slot 3 in ADAM-5000 system at address 26h is instructed to set initial counter value. The initial counter value is 4369. ADAM-5080 Counter/Frequency Module...
Page 50
ADAM-5080 Counter/Frequency Module @aaSiCjG @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 hexadecimal address of the ADAM-5000 system. SiCj identifies the I/O slot i and the channel j for the module you want to return a prior value.
Page 51
User's Manual @aaSiCjG @aaSiCjG Example command: @26S3C2G(cr) response: !260000004369(cr) The channel 2 of ADAM-5080 in slot 3 in ADAM-5000 system at address 26h is instructed to return counter initial value. The initial counter value is 4369. ADAM-5080 Counter/Frequency Module...
Page 52
ADAM-5080 Counter/Frequency Module $aaSiCjAhEs $aaSiCjAhEs Name Set Alarm Disable/Latch Description The addressed counter module is instructed to set alarm disable or latch. Syntax $aaSiCjAhEs(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system. SiCj identifies the desired slot i and the desired channel j.
Page 53
User's Manual $aaSiCjAhEs $aaSiCjAhEs Example command: $03S0C1ALED(cr) response: !03(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is instructed to disable its Low alarm function. The module confirms that its Low alarm function has been disable. ADAM-5080 Counter/Frequency Module...
Page 54
ADAM-5080 Counter/Frequency Module $aaSiCjAh $aaSiCjAh Name Read Alarm Disable/Latch Description Return the alarm mode for the specified channel. Syntax $aaSiCjAh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system. SiCj identifies the desired slot i and the desired channel j. A is the Read Alarm Mode command.
Page 55
User's Manual $aaSiCjAh $aaSiCjAh Example command: $03S0C1AL(cr) response: !03L(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is instructed to return its Low alarm mode. The system responds that it is latched. ADAM-5080 Counter/Frequency Module...
Page 56
ADAM-5080 Counter/Frequency Module $aaSiCjCh $aaSiCjCh Name Clear Alarm Status Description Returns the alarm status to normal Syntax $aaSiCjCh(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system. SiCj identifies the desired slot i and the desired channel j. C is the clear Alarm Mode command.
Page 57
User's Manual $aaSiCjCh $aaSiCjCh Example command: $03S0C1CL(cr) response: !03(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is instructed to set its Low alarm state to normal. The system confirms it has done so accordingly. ADAM-5080 Counter/Frequency Module...
Page 58
ADAM-5080 Counter/Frequency Module $aaSiCjAhCSkCn $aaSiCjAhCSkCn Name Set Alarm Connection Description Connect the High/Low alarm of the specified input channel to the specified digital output in the addressed ADAM-5000 system Syntax $aaSiCjAhCSkCn(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.
Page 59
User's Manual $aaSiCjAhCSkCn $aaSiCjAhCSkCn Example command: $03S0C1ALCS1C0(cr) response: !03(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is instructed to connect its Low alarm to the digital output of point 0 of slot 1 in the same ADAM-5000 system.
Page 60
ADAM-5080 Counter/Frequency Module $aaSiCjRhC $aaSiCjRhC Name Read Alarm Connection Description Return the High/Low alarm limit output connection of a specified input channel in the addressed ADAM-5000 system Syntax $aaSiCjRhC(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.
Page 61
User's Manual $aaSiCjRhC $aaSiCjRhC Example command: $03S0C1RLC(cr) response: !03SØC1(cr) Channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is instructed to read its Low alarm output connection. The system responds that the Low alarm output connects to the digital output at point 0 of slot 1 in the same ADAM-5000 system.
Page 62
ADAM-5080 Counter/Frequency Module $aaSiCjAhU(data) $aaSiCjAhU(data) Name Set Alarm Limit Description Set the High/Low alarm limit value for the specified input channel of a specified ADAM-5000 system. Syntax $aaSiCjAhU(data)(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.
Page 63
User's Manual $aaSiCjAhU(data) $aaSiCjAhU(data) Example command: $03SØC1AHU0000000020(cr) response: !03(cr) The channel 1 of slot 0 of ADAM-5080 in ADAM-5000 system at address 03h is configured to set High alarm limit value to 20. ADAM-5080 Counter/Frequency Module...
Page 64
ADAM-5080 Counter/Frequency Module $aaSiCjRhU $aaSiCjRhU Name Read Alarm Limit Description Return the High/Low alarm limit value for the specified input channel in the addressed ADAM-5000 system Syntax $aaSiCjRhU(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.
Page 65
User's Manual $aaSiCjRhU $aaSiCjRhU Example command: $03SØC1RHU(cr) response: !030000000026(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM- 5000 system at address 03h is configured to return the High alarm limit value. The High alarm limit value is 26. ADAM-5080 Counter/Frequency Module...
Page 66
ADAM-5080 Counter/Frequency Module $aaSiCjS $aaSiCjS Name Read Alarm Status Description Read whether an alarm occurred for the specified input channel in the specified ADAM-5000 system Syntax $aaSiCjS(cr) $ is a delimiter character. aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system. SiCj identifies the desired slot i and the desired channel j.
Page 67
User's Manual $aaSiCjS $aaSiCjS Example command: $03SØC1S response: !0311(cr) The channel 1 of slot 0 of ADAM-5080 in the ADAM- 5000 system at address 03h is configured to read alarm status. The High alarm has occured and low alarm has occured. ADAM-5080 Counter/Frequency Module...