Рук_п_Имп-4 (1031891), страница 15
Текст из файла (страница 15)
A value of 1 means thechannel is masked, while a value of 0 means the channelis valid.ADAM-50006-113Command Set5050/5051/5052/5055/50565060/5068/5069 Digital I/O- A 4-character value represents the output channels insequence from 15 thru 0 in an ADAM-5056 module.- A 2-character value represents the output channels insequence from 5 thru 0 in an ADAM-5060 module.- A 2-character value represents the output channels insequence from 7 thru 0 in ADAM-5055S/5068 module.Each bit represents a channel.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $19S1M(cr)response: !191322(cr)The command asks the digital output module in slot 1 ofthe ADAM-5000 system at address 19h to return themasking status of all of its channels.The first 2-character portion of the response indicatesthe address of the ADAM-5000 system.The second 2-characters portion of the response, value13h (00010011), indicates that digital output channels 8,9 and 12 are masked, while channels 10, 11, 13, 14 and 15are valid.The third 2-character portion of the response, value 22h(00100010), indicates that digital output channels 1 and 5are masked, while channels 0, 2, 3, 4, 6 and 7 are valid.6-114ADAM-5000Chapter 66.10 ADAM-5080 Counter/Frequency Command SetChannel4Input Frequency0.3 ~ 1000 Hz max.
(Frequency mode)5000 Hz max. (Counter mode)Input LevelIsolated or TTL levelMinimumPulse Width500 µ sec. (Frequency mode)100 µ sec. (Counter mode)MinimumInputCurrent2mA (Isolated)Isolated Input LevelLogic Level 0 : +1 VMAXLogic Level 1 : + 3.5 V to 30 VTTL Input LevelLogic Level 0 : 0 V to 0.8 VLogic Level 1 : 2.3 to 5 VIsolated Voltage1000 VRMSModeCounter (Up/Down, Bi-direction)FrequencyProgrammableDigital Noise Filter8 ~ 65000 µ secADAM-50006-1155080 Counter/Frequency ModuleCommand SetCommand SyntaxCommand NameDescriptionClear CounterClear the counters ofthe specifiedcounter/frequencymodule$aaSi7Read Overflow FlagThe commandrequests theaddressed module toreturn the status of theoverflow flag ofcounter.@aaSiCjP(data)Set Initial CounterValueSet initial counter valuefor counter of thespecified countermodule.@aaSiCjGRead Counter InitialValueRead initial of thespecified countermodule.$aaSiCj6$aaSiCjAhEs$aaSiCjAhRead AlarmDisable/LatchReturns the alarmmode for the specifiedchannel.$aaSiCjChClear Alarm StatusReturns the alarmstatus to normal$aaSiCjAhCSkCnConnects the High/Lowalarm of the specifiedinput channel to theSet Alarm Connectionspecified digital outputin the addressedADAM-5000 system$aaSiCjRhC6-116Set AlarmDisable/LatchThe addressed countermodule is instructed toset alarm disable orlatch.Read AlarmConnectionReturns the High/Lowalarm limit outputconnection of aspecified input channelin the addressedADAM-5000 systemADAM-5000Chapter 6Command Syntax$aaSiCjAhU(data)$aaSiCjRhU$aaSiCjSADAM-5000Command NameDescriptionSet Alarm LimitSets the High/Lowalarm limit value for thespecified input channelof a specified ADAM5000 system.Read Alarm LimitReturns the High/Lowalarm limit value for thespecified input channelin the addressedADAM-5000 systemRead Alarm StatusReads whether analarm occurred for thespecified input channelin the specifiedADAM-5000 system6-117Command Set5080 Counter/Frequency Module$aaTName$aaTRead Module NameDescription Returns the module name from a specified ADAM-5000system.Syntax$aaT(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.T is the command for reading Module Name.(cr) is the terminating character, carriage return (0Dh).Response!aaFFFFFFFF(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the module detects a syntaxerror, communication error or if the specified addressdoes not 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 indicates the I/O slot which ADAM-5080module is in.(cr) is the terminating character, carriage return (0Dh).6-118ADAM-5000Chapter 6$aaT$aaTExamplecommand: $25T(cr)Response!25FF80FFFF(cr)ADAM-5080 is plug in slot 1 and the command requeststhe system at address 25h to send its module name.ADAM-50006-119Command Set5080 Counter/Frequency Module$aaFName$aaFRead Firmware VersionDescription Returns the firmware version code from a specifiedADAM-5000 system.Syntax$aaF(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-characterhexadecimal address of the ADAM-5000 system youwant to interrogate.F is the command for reading Firmware Version.(cr) is the terminating character, carriage return (0Dh).Response!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 syntaxerror, communication error or if the specified addressdoes not 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.(version) represents the firmware version of theADAM-5000 system.(cr) is the terminating character, carriage return (0Dh).6-120ADAM-5000Chapter 6$aaFEample$aaFcommand: $18F(cr)response: !18A2.3(cr)The command requsets the system at address 18h tosend its firmware version.The system responds with firmware version A2.3.ADAM-50006-121Command Set5080 Counter/Frequency Module$aaSiArrffName$aaSiArrffSet ConfigurationDescription Set slot index and counter mode.Syntax$aaSiArrff(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want toconfigure.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 isff=00 represents the engineer format.ff=02 represents the hexdecimal 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 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)6-122ADAM-5000Chapter 6$aaSiArrffExample$aaSiArrffcommand: $24S1A0002(cr)response: !24(cr)The ADAM-5080 in Slot 1 of ADAM-5000 system ataddress 24h is in Bi-direction mode and configured forhexdecimal format.ADAM-50006-123Command Set5080 Counter/Frequency Module$aaSiBName$aaSiBRead Configuration.Description The command requests the Configuration of slotSyntax$aaSiB(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 desired slot iB represents the configuration status command(cr) is the terminating character, carriage return (0Dh).Response.!aarrff(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 isreceived.? delimiter character indicating the command is invalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.rr=00 represents Bi-direction counter mode.rr=01 represenrs UP/DOWN counter mode.rr=02 represents Frequency mode.ff indicates which format isff=00 represents the engineer format.ff=02 represents the hexdecimal format.(cr) is the terminating character, carriage return (0Dh).6-124ADAM-5000Chapter 6$aaSiBExample$aaSiBcommand: $35S3B(cr)response: !350100(cr)The ADAM-5080 in Slot 3 of ADAM-5000 system ataddress 35h responds that it is configured in UP/DOWNcounter mode and for engineering unit data format.ADAM-50006-125Command Set5080 Counter/Frequency Module#aaSiName#aaSiRead All Channel Counter (Frequency) DataDescription Return the input value of all channels for the specifiedinput module for a specified system in engineering unitonly.Syntax#aaSi(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.Si is the I/O slot of ADAM-5000 system you want toread.(cr) is the terminating character, carriage return (0Dh)Response>(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 erroror communication error or if the specified address doesnot exists.> is a delimiter character.? is a delimiter character indicating the command beinginvalid.(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) areeight,counter/frequency mode is in hexdecimal format.If (data) = “ ”, it means the channel is invalid.(cr) is the terminating character, carriage return (0Dh).6-126ADAM-5000Chapter 6#aaSiExample#aaSicommand: #16S2(cr)response:If the response you got is in Counter mode, you'll seeone similiar to the example below:>1235458013267521306934521463051832106549(cr)What you see here is actually the input values of allchannels that is returned from slot 2 of the ADAM-5000system at address 16h.As all 4 values are concatenated into one numericalstring such as above, we can still easily discern thevalues of 4 channels specifically as:1235458013, 2675213069, 3452146305 and1832106549If the response is>0e88fa63c33697b52a68d61fe2ca6915(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:0e88fa63,c33697b5,2a68d61f,e2ca6915ADAM-50006-1275080 Counter/Frequency ModuleCommand Set#aaSi#aaSiHowever, if the response is in frequency mode , you'llsee one similar to the example below:>0000098700000006490000000762000000011600(cr)As all 4 values are concatenated into one numericalstring such as above, we can still easily discern thevalues of 4 channels specifically as:0000098700,0000064900,0000076200,0000011600What you see here is actually the input values of allchannels returned from slot 2 of the ADAM-5000 systemat address 16h and in decimal format.















