Рук_п_АК-8 (1031889), страница 10
Текст из файла (страница 10)
Each value is interpreted as 4 bits. The first 4-bit value represents the status ofchannels 4-7, the second 4 bits represents the status of6-44ADAM-5000Chapter 6$aaSi6$aaSi6channels 0-3. A value of 0 means the channel isdisabled, while a value of 1 means the channel isenabled.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $02S16(cr)response: !02FF(cr)The command asks the analog input module in slot 1 ofthe system at address 02h to send the status of its inputchannels. The analog input module responds that all itsmultiplex channels are enable (FF equals 1111 and 1111).ADAM-50006-45Command Set5017/5018 Analog Input#aaSiName#aaSiAll Analog Data InDescription Returns the input value of all channels for a specifiedanalog input module of a specified system in engineering unit only.Syntax#aaSi(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character 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) (data) (data) (data) (data) (cr) ifthe 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.> is a delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.(data) is the input value in engineering units of a channelin the interrogated module of the specified system.
The(data) from all channels is shown in sequence from 7 to0. If (data) = “ ”, it means the channel is invalid.(cr) is the terminating character, carriage return (0Dh)6-46ADAM-5000Chapter 6#aaSiExample#aaSicommand: #12S1(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 1of the ADAM-5000 system at address 12h to return theinput values of all channels.The analog input module responds that input values ofall 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-50006-47Command Set5017/5018 Analog Input#aaSiCjName#aaSiCjSpecified Analog Data InDescription Returns the input value of a specified channels for aspecified analog input module of a specified system inengineering unit only.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 exist.> is a delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.(data) is the input value in engineering units of thespecified channel for a specified analog input module ofthe specified system.
If (data) = “ ”, it means thechannel is invalid.(cr) is the terminating character, carriage return (0Dh)6-48ADAM-5000Chapter 6#aaSiCjExample#aaSiCjcommand: #22S2C2(cr)response: >+1.4567The command requests the analog input module in slot 2of the ADAM-5000 system at address 22h to return theinput value of channel 2.The analog input module responds that the input valueof channel 2 is +1.4567.ADAM-50006-49Command Set5017/5018 Analog Input$aaSiERName$aaSiERInitialize EEPROM dataDescription Initializes all EEPROM data in a specified analog inputmodule to their default values. This command is sentfollowing a failed attempt to calibrate a module (themodule shows no effect from an attempted calibration).Following initialization, the problem module shouldreadily accept calibration.Syntax$aaSiER(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 for which you wish to initializeall EEPROM data.ER is Initialize all EEPROM data command.(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)6-50ADAM-5000Chapter 6$aaSiØName$aaSi0Span CalibrationDescription Calibrates a specified analog input module to correct forgain errorsSyntax$aaSiØ(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system which is to becalibrated.Si identifies the I/O slot which is to be calibrated.Ø represents the span calibration command.(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)Note:ADAM-5000In order to successfully calibrate an analog inputmodule's input range, a proper calibration input signalshould be connected to the analog input modulebefore and during the calibration process.
(See alsoChapter 4, Section 4.5 on Calibration)6-51Command Set5017/5018 Analog Input$aaSi1Name$aaSi1Zero CalibrationDescription Calibrates a specified analog input module to correct foroffset errorsSyntax$aaSi1(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system which is to becalibrated.Si identifies the I/O slot which is to be calibrated.1 represents the zero calibration command.(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)Note:6-52In order to successfully calibrate an analog inputmodule's input range, a proper calibration input signalshould be connected to the analog input modulebefore and during the calibration process.
(See alsoChapter 4, Section 4.5 on Calibration)ADAM-5000Chapter 6$aaSi3Name$aaSi3CJC Status Command (ADAM-5018 only)Description Returns the value of the CJC (Cold Junction Compensation) sensor for a specified analog input moduleSyntax$aaSi3(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 which contains the CJC Statusyou wish to retrieve.3 is CJC Status command.(cr) is the terminating character, carriage return (0Dh)Response>(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 the value that is retrieved by the module byreading its CJC sensor.
The data format, in degreesCelsius, consists of a “+” or “-” sign followed by fivedecimal digits and a fixed decimal point. The resolutionof the data is 0.1°C.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-53Command Set5017/5018 Analog Input$aaSi3Example$aaSi3command: $09S13(cr)response: >+0036.8(cr)The command requests the analog input module in slot 1of the ADAM-5000 system at address 09h to read itsCJC sensor and return the data.
The analog inputmodule responds with 36.8°C.6-54ADAM-5000Chapter 6$aaSi9shhhhName$aaSi9shhhhCJC Zero Calibration (ADAM-5018 only)Description Calibrates an analog input module to adjust for offseterrors of its CJC (Cold Junction Compensation) sensorSyntax$aaSi9shhhh(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 which contains the CJC Statusyou wish to retrieve.9 is CJC Status command.s sign, + or -, indicates whether to increase or decreasethe CJC offset value.hhhh is a four character hexadecimal “count” value.Each count equals approximately 0.009°C. The value canrange from 0000 to FFFF.(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-55Command Set5017/5018 Analog Input$aaSi9shhhh$aaSi9shhhhExamplecommand: $07S29+0042(cr)response: !07(cr)The command increases the CJC offset value of theanalog input module in slot 2 of the system at address07h with 66 counts (42 hex) which equals about 0.6°C.Note:6-56An analog input module requires a maximum of 2seconds to perform auto calibration and ranging afterit receives a CJC Calibration command.















