Рук_п_Имп-4 (1031891), страница 16
Текст из файла (страница 16)
However, it is notthe actual frequency.Each actual frequency can be obtained by dividing theresponse value by 100. Therefore, taking an example ofthe value above, the actual frequency should be:actual frequency = 98700/100 = 987If the response is:>0000F1000002000000031000000DD400(cr)The command requests the module in slot 2 of theADAM-5000 system at address 16h to return the inputvalues of all channels.The module response that input values if all channelsare hexdecimal:0000F100,00020000,00031000,000DD400The actual frequency can be obtained by transferinghexdecimal format to decimal format .Then divide theresponse value by 100. Therefore, taking an example ofthe value above, the actual frequency should be:F100 (hexdecimal)=24100 (decimal)actual frequency = 24100/100 = 2416-128ADAM-5000Chapter 6#aaSiCjName#aaSiCjRead One Channel Counter (Frequency) DataDescription The command will return the input value from one of thefour channels of a specified module.Syntax#aaSiCj(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.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 (0Dh)Response>(data) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exists.> is a delimiter character.? delimiter character indicating the command wasinvalid.(data) is the input value in engineering units of theinterrogated module of the specified system.
If thenumbers of (data) are ten ,counter/frequency mode is indecimal format.If the numbers of (data) are eight,counter/frequency mode is in hexdecimal format.If(data) = “ ”, it means the channel is invalid.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-129Command Set#aaSiCjExample6-1305080 Counter/Frequency Module#aaSiCjcommand: $35S3C2(cr)response: >0000000451(cr)The command requests the ADAM-5080 module in slot3 of the ADAM-5000 system at address 35h to return theinput value of channel 2.The counter module responds that the input value ofchannel 2 is 451.ADAM-5000Chapter 6$aaSiØ(data)$aaSiØ(data)NameSet Digital filter ScaleDescription 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 hexadecimaladdress of the ADAM-5000 system which is to becalibrate.Si identifies the sepcified slot.Ø is the command for setting digital filter scale.(data) represents filter secends from 8µs~65000 µs.
Beaware that (data) has 5 characters.(cr) is the terminating character, carriage return (0Dh)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 erroror communication error or if the specified address doesnot exists.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-131Command Set5080 Counter/Frequency Module$aaSiØ(data)$aaSiØ(data)Examplecommand: $26S3000765(cr)response: !26(cr)The ADAM-5080 in slot 3 of the ADAM-5000 system ataddress 26h need 765µ seconds to start to measure theinput.6-132ADAM-5000Chapter 6$aaSiØName$aaSiØRead Digital filter scaleDescription Read the filter seconds to start to measure the inputsignal.Syntax$aaSiØ(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system which is to becalibrate.Si identifies the I/O slot which is to be accessed.Ø is the command for reading digital filter scale.(cr) is the terminating character, carriage return (0Dh)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 erroror communication error or if the specified address doesnot exists.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(data) represents filter secends from 8 µs~65000 µs.
Beaware that (data) has 5 characters.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-133Command Set$aaSiØExample6-1345080 Counter/Frequency Module$aaSiØcommand: $26S30(cr)response: !2600765(cr)The command requests the ADAM-5080 in slot 3 of theADAM-5000 system at address 26h to read the filterseconds. The module responds with 765µ seconds.ADAM-5000Chapter 6$aaSiCj5s$aaSiCj5sNameSet Counter Start/StopDescription Request the addressed counter/frequency module tostart or stop the counting.Syntax$aaSiCj5s(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i and the channel j of themodule 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 (0Dh)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 erroror communication error or if the specified address doesnot exists.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-135Command Set$aaSiCj5sExample6-1365080 Counter/Frequency Module$aaSiCj5scommand: $26S3C251(cr)response: !26(cr)The command requests channel 2 of ADAM-5080 in slot3 in ADAM-5000 system at address 26h to start counter.ADAM-5000Chapter 6$aaSiCj5$aaSiCj5NameRead counter Start/StopDescription Requests the addressed counter/frequency module toindicate whether counters are active.Syntax$aaSiCj5(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i and the channel j of themodule you want to set.5 is the command for reading counter Start/Stop.(cr) is the terminating character, carriage return (0Dh)Response!aas(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntax erroror communication error or if the specified address doesnot exists.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.s represents start/stop command.s=0 indicate stop counter.s=1 indicate start counter.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-137Command Set$aaSiCj5Example6-1385080 Counter/Frequency Module$aaSiCj5command: $26S3C25(cr)response: !261(cr)The channel 2 of ADAM-5080 in slot 3 in ADAM-5000system at address 26h is instructed to return its counterstatus.
The counter status is in start status.ADAM-5000Chapter 6$aaSiCj6Name$aaSiCj6Clear CounterDescription Clear the counters of the specified counter/frequencymoduleSyntax$aaSiCj6(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i and the channelj for the module you want to return a prior value.6 is the command for clearing counter.(cr) is the terminating character, carriage return (0Dh)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 erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-139Command Set$aaSiCj6Example6-1405080 Counter/Frequency Module$aaSiCj6command: $26S3C26(cr)response: !26(cr)The command requests the channel 2 of ADAM-5080 inslot 3 in ADAM-5000 system at address 26h to clearcounter value.ADAM-5000Chapter 6$aaSi7$aaSi7NameRead Overflow FlagDescription The command requests the addressed module to returnthe status of the overflow flag of counter.Syntax$aaSi7(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress 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.Response!aaff 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 erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.ffffffff is the number of overflow for a specified channel.(ffffffff represents 0~3 channels, each of which isrepresented by one ff).(cr) is the terminating character, carriage return (0Dh)Note:ADAM-5000When this command is issued, the overflow value iscleared and starts afresh.6-141Command Set$aaSi7Example6-1425080 Counter/Frequency Module$aaSi7command: $26S37(cr)response: !2600000001(cr)The command requests the ADAM-5080 of slot 3 inADAM-5000 system at address 26h to return theoverflow value.
The overflow value in channel 3 is 01.The others are 00.ADAM-5000Chapter 6@aaSiCjP(data)@aaSiCjP(data)NameSet Initial Counter ValueDescription Set initial counter value for counter of the specifiedcounter module.Syntax@aaSiCjP(data)(cr)@ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i and the channelj 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 (0Dh)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 erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-143Command Set@aaSiCjP(data)Example6-1445080 Counter/Frequency Module@aaSiCjP(data)command: @26S3C2P0000004369(cr)response: !26(cr)The channel 2 of ADAM-5080 in slot 3 in ADAM-5000system at address 26h is instructed to set initial countervalue.
The initial counter value is 4369.ADAM-5000Chapter 6@aaSiCjGName@aaSiCjGRead Initial CounterDescription Read initial counter value of specified module.Syntax@aaSiCjG(cr)@ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.SiCj identifies the I/O slot i and the channel j for themodule you want to return a prior value.G is the last value readback command.(cr) is the terminating character, carriage return (0Dh)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 erroror communication error or if the specified address doesnot exist.! delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(data) is initial value from 0 to 4294967295.Be aware that(data) has 10 characters.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-145Command Set5080 Counter/Frequency Module@aaSiCjGExample@aaSiCjGcommand: @26S3C2G(cr)response: !260000004369(cr)The channel 2 of ADAM-5080 in slot 3 in ADAM-5000system at address 26h is instructed to return counterinitial value.















