Рук_п_Имп-4 (1031891), страница 14
Текст из файла (страница 14)
(See also theanalog output module's Trim Calibration command inChapter 4, Section 4.5, Analog Output ModuleCalibration for a detailed description.)6-102ADAM-5000Chapter 6$aaSiCj3hhName$aaSiCj3hhTrim CalibrationDescription Trims the specified channel a specified number of unitsup or downSyntax$aaSiCj3hh(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 (i : 0 to 3) and the channelj (j : 0 to 3) of the module you want to calibrate.3 is the trim calibration command.hh is the 2-character twos complement hexadecimalvalue that represents the number of counts by which toincrease or decrease the output current.
Each countequals approximately 1.5µA. Values range from 00 to 5Fand from A1 to FF (hexadecimal), where 00 represents 0counts, 5F represents +95 counts, A1 represents -95counts and FF represents -1 counts. Negative valuesdecrease and positive numbers increase the outputcurrent according to the number of counts.(cr) is the terminating character, carriage return (0Dh)Response!aa(cr) if the command is valid.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.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.ADAM-50006-103Command Set5024 Analog Output$aaSiCj3hh$aaSiCj3hh(cr) is the terminating character, carriage return (0Dh)Examplecommand: $07S1C2314(cr)response: !07(cr)The command tells channel 2 of the analog outputmodule in slot 1 of the ADAM-5000 system at address07h to increase its output value by 20 (14h) countswhich is approximately 30 µA.The analog output module confirms the increase.Note:6-104In order to perform a Trim Calibration, either a mAmeter or a resistor and voltmeter should be connected to the module's output prior to calibration.
(Seealso the 4 mA and 20 mA Calibration commands ofthe analog output module's command set. Refer alsoto Chapter 4, Section 4.5, Analog Output Calibrationfor a detailed description.)ADAM-5000Chapter 6$aaSiCj6Name$aaSiCj6Last Value ReadbackDescription Returns either the last value sent to the specifiedchannel by a #aaSiCj(data) command, or the start-upoutput current/voltage.Syntax$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 (i : 0 to 3) and the channelj (j : 0 to 3) for the module you want to return a priorvalue.6 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 the value that is returned by the analog outputmodule.
The format of the data depends on the module‘sconfigurated data format.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-105Command Set5024 Analog Output$aaSiCj6Example$aaSiCj6command: $0AS2C16(cr)response: !0A03.000(cr)The command tells channel 1 of the analog outputmodule in slot 2 of the ADAM-5000 system at address0Ah to return the last output value it received from anAnalog Data Out command, or its start-up outputcurrent /voltage.The analog output module returns the value 3.000 mA(this assumes that the module was configured for therange 0-20 mA).6-106ADAM-5000Chapter 66.9 Digital Input/Output Command SetCommand SyntaxCommand NameDescription$aaSi6Digital Data InReturns the values of digitalI/O channels for a specifiedmodule#aaSiBB(data)Digital Data OutSets output values of a singledigital output channel or of alldigital output channelssimultaneously for aspecified module.$aaSiMRead ChannelMasking StatusAsks the specified module toreturn the masking status ofall digital output channels.ADAM-50006-107Command Set5050/5051/5052/5055/50565060/5068/5069 Digital I/O$aaSi6NameDigital Data InDescription This command requests that the specified module inan ADAM-5000 system at address aa return the statusof its digital input channels and a read back value of itsdigital output channels.Syntax$aaSi6(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 of the system you want to read.6 is the Digital Data In command.(cr) is the terminating character, carriage return (0Dh)Response !aa(datainput)(datainput)00(cr) if thecommand is valid.(ADAM-5051)!aa(datainput)(dataoutput)00(cr) if the command is valid.(ADAM-5055S)!aa(dataoutput)(dataoutput)00(cr) if the command isvalid.(ADAM-5056)!aa(dataoutput)0000(cr) if the command is valid.(ADAM-5060, ADAM-5068, ADAM-5069)?aa(cr) if an invalid operation was entered.6-108ADAM-5000Chapter 6There is no response if the module detects a syntax erroror communication error or if the specified addressdoes not exist.Note: ! delimiter character indicating a valid commandwas received.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(datainput) a 2-character hexadecimal value representingthe input values of the digital input module.(dataoutput) a 2-character hexadecimal value which is theread back of a digital output channel or relay.(cr) is the terminating character, carriage return (0Dh)Examplecommand: $33S26(cr)response: !33112200(cr)The command asks the digital input module in slot 2 ofthe ADAM-5000 system at address 33h to return thevalues of all of its channels.The first 2-character portion of the response indicatesthe address of the ADAM-5000 system.The second 2-character (high byte) portion of theresponse, value 11h (00010001), indicates that digitalinput channels 8 and 12 are ON, channels 9, 10, 11, 13, 14and 15 are OFF.The third 2-character (low byte) portion of the response,value 22h (00100010), indicates that digital inputchannels 1 and 5 are ON, and channels 0, 2, 3, 4, 6 and 7are OFF.ADAM-50006-109Command Set5050/5051/5052/5055/50565060/5068/5069 Digital I/O$aaSiBB(data)NameDigital Data OutDescriptionThis command either sets a single digital outputchannel or sets all digital output channelsSyntax#aaSiBB(data)(cr)# is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.Si identifies the slot (i:0 to 7) of the ADAM-5000 systemwhich contains the module whose output values youwant to set.BB is used to indicate which channel(s) either single orall will be set.- Writing to all channels (write a byte): both charactersshould be equal to zero (BB=00).- Writing to a single channel (write a bit): first characteris 1, second character indicates channel number whichcan range from 0h to Fh.
The ADAM-5056 can rangefrom 0h to Fh, and the ADAM-5055S/5060/5068/5069can range from 0h to 7h).(data) is the hexadecimal representation of the digitaloutput value(s).- When writing to a single channel (bit), the firstcharacter is always 0. The value of the second characteris either 0 or 1.- When writing to all channels (byte), the 2 or 4-characters are significant. The digital equivalent of these6-110ADAM-5000Chapter 6hexadecimal characters represent the channels’ status.Note that the numbers of channels on the ADAM-5056and ADAM-5055S/5060/5068/5069 differ.- A 4-character hexadecimal value is used to set thechannels, from 15 thru 0, of the ADAM-5056.- A 2-character hexadecimal value is used to set thechannels, from 5 thru 0, of the ADAM-5060. Bits 6 and 7always default to 0 in the ADAM-5060.- A 2 character hexadecimal value is used to set thechannels, from 7 thru 0, of theADAM-5055S/5068/5069.Response>(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 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 that is responding.(cr) is the terminating character, carriage return (0Dh)Examplecommand: #15S11201(cr)response: >(cr)An output bit with value 1 is sent to channel 2 of adigital output module in slot 1 of the ADAM-5000system at address 15h - either ADAM-5056 or ADAM5055S/5060/5068/5069.
Channel 2 of the digital outputmodule is set to ON.ADAM-50006-111Command5050/5051/5052/5055/50565060/5068/5069 Digital I/Ocommand: #14S1001234(cr)response: >(cr)An output byte with value 1234h (0001001000110100) issent to the digital output module (ADAM-5056) in slot 1of the ADAM-5000 system at address 14h. Channels 2,4, 5, 9 and 12 will be set to ON, and all other channels areset to OFF.command: #15S0003A(cr)response: >(cr)An output byte with value 3Ah (00111011) is send to thedigital output module (ADAM-5060) in slot 0 of theADAM-5000 system at address 15h.
Channels 0, 1, 3, 4and 5 will be set to ON while channel 2 is set to OFF. Bits6 and 7 are not used and always default to 0.Note:6-112If any channel of the digital output module is configured as the output for an analog input alarm, itcannot be reconfigured via digital output commands.Channels used for analog input alarms always have ahigher priority.ADAM-5000Chapter 6$aaSiMNameRead Channel Masking StatusDescription Ask the specified module to return the masking status ofdigital output channelsSyntax$aaSiM(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 of the system you want to read.M is Channel Masking Status 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 that is responding.(data) is the hexadecimal value representing the status ofall digital output channels.














