Рук_п_Имп-4 (1031891), страница 7
Текст из файла (страница 7)
The sixth bit represents the checksum status; 1 means enabled while 0means disabled. The other bits are not used and are setto 0.(cr) is the terminating character, carriage return (0Dh).ADAM-50006-7Command SetCPU$aa2$aa2(See also the %aannccff configuration command)Examplecommand: $452(cr)response: !450600(cr)The command requests the ADAM-5000 system ataddress 45h to send its configuration status.The ADAM-5000 system at address 45h responds with abaud rate of 9600 bps and with no checksum function orchecksum generation.6-8ADAM-5000Chapter 6$aaMName$aaMRead Module NameDescription Returns the module name from a specified ADAM-5000system.Syntax$aaM(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.M is the Module Name command.(cr) is the terminating character, carriage return (0Dh).Response!aa5000(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 was invalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh).ADAM-50006-9Command Set$aaMExampleCPU$aaMcommand: $15M(cr)response: !155000(cr)The command requests the system at address 15h tosend its module name.The system at address 15h responds with module name5000 indicating that there is an ADAM-5000 at address15h.6-10ADAM-5000Chapter 6$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-character hexadecimal address of the ADAM-5000 system you want tointerrogate.F is the Firmware Version command.(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 was invalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.(version) represents the firmware version of the ADAM5000 system.(cr) is the terminating character, carriage return (0Dh).ADAM-50006-11Command Set$aaFExampleCPU$aaFcommand: $17F(cr)response: !17A1.06(cr)The command requests the system at address 17h tosend its firmware version.The system responds with firmware version A1.06.6-12ADAM-5000Chapter 6$aaTName$aaTRead I/O TypeDescription Returns the I/O module no.
of all slots for a specifiedADAM-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 tointerrogate.T is the I/O Module Types command.(cr) is the terminating character, carriage return (0Dh).Response!aabbccddee(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 was invalid.aa (range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.bb, cc, dd, ee represent the I/O Module No.
of all slotsfrom slot 0 thru 3 of the ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh).ADAM-50006-13Command Set$aaTExampleCPU$aaTcommand: $12T(cr)response: !1218245160(cr)The command requests the ADAM-5000 system ataddress 12h to send all existing I/O module numbers.The system at address 12h responds with I/O modulenumbers 18, 24, 51 and 60 in slots 0-3. This means thatthe ADAM-5000 system contains an ADAM-5018,ADAM-5024, ADAM-5051 and ADAM-5060 in slots 0thru 3.6-14ADAM-5000Chapter 6$aa5Name$aa5Reset StatusDescription Checks the reset status of the addressed ADAM-5000system to see whether it has been reset since the lastReset Status command was issued to the ADAM-5000system.Syntax$aa5(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system whose Reset Statusis to be returned.5 is the Reset Status command.(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 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.s represents the Status bit that is returned by theADAM-5000 system.
If s=1, the system has been resetor powered up since the last time it was issued a ResetStatus command. If s=0, the system has not been reset.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-15Command Set$aa5ExampleCPU$aa5command: $395(cr)response: !391(cr)The ADAM-5000 system at address 39h was reset orpowered up since the last Reset Status command wasissued.6-16ADAM-5000Chapter 6$aaEName$aaESoftware DiagnosticsDescription Requests the specified ADAM-5000 system to returnthe error statusSyntax$aaE(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want tointerrogate.E is Software Diagnostics command.(cr) is the terminating character, carriage return (0Dh)Response!aabbccddee(cr) if the command is valid.?aa(cr) if an invalid operation was entered.There is no response if the system 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.bbccddee are hexadecimal numbers representing the errorcode from slot 0 thru slot 3 of the system.(cr) is the terminating character, carriage return (0Dh)ADAM-50006-17Command SetCPUError Code Error Message00hNo errors01hSpan calibration error of Analog Input Module02hSelf-calibration error of Analog Input Module04hZero calibration error of Analog Input Module08hData Reading error of Analog Input Module10hCJC Reading error20hEEPROM read/write error in AI/AO moduleFigure 6-2 Analog module error codesExample:command: $01E(cr)response: !0100000001The command diagnoses the system at address 01h andresponds with its error status code.The system responds that the module in slot 3 has aspan calibration error.6-18ADAM-5000Chapter 66.4ADAM-5013 RTD Input Command SetCommand SyntaxCommand NameDescription$aaSiArrffRTD ConfigurationSets slot index, inputrange, data formatand integration timefor a specified RTDinput module in aspecified system$aaSiBRTD ConfigurationStatusReturns theconfigurationparameters for aspecified RTD inputmodule in a specifiedsystem$aaSiAll RTD Data InReturns the inputvalues of all channelsof a specified RTDinput module of aspecified system inengineering units$aaSiCjSpecified RTD DataInReturns the inputvalue of a specifiedchannel for aspecified RTD inputmodule of a specifiedsystem in engineeringunits$aaSiERInitialize EEPROMDataInitializes all EEPROMdata in a specifiedRTD input module totheir default values$aaSi5mmEnable/DisableChannels forMultiplexingEnables/disablesmultiplexingsimultaneously forseparate channels ofthe specified inputmoduleADAM-50006-19Command SetCommand SyntaxCommand Name$aaSi6Read Channels Status Asks a specified inputmodule to return thestatus of all channels$aaSi0RTD Span Calibration Calibrates a specifiedRTD input module tocorrect for gain errors$aaSi1RTD Zero CalibrationCalibrates a specifiedRTD input module tocorrect for offseterrors$aaSi2RTD Self CalibrationCauses a specifiedRTD input module ofa specified system todo a self calibration.Note:6-205013 RTD InputDescriptionThe ADAM-5013 module also has "Alarm Setting"functions.
The alarm command set for the ADAM5013 is the same as that for the ADAM-5017, ADAM5017H, and the ADAM-5018. Please refer to pages6-71 to 6-89 for this set of commands.ADAM-5000Chapter 6$aaSiArrffName$aaSiArrffRTD ConfigurationDescription Sets slot index, input range, data format and integrationtime for a specified RTD input module in a specifiedsystem.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 desired slot i (i:0to3).A represents the I/O module configuration command.rr represents the 2-character hexadecimal code of theinput range.
(See Appendix B)ff is a hexadecimal number that equals the 8-bit parameter representing data format. Bits 0 and 1 represent dataformat. Bit 7 represents integration time. The layout forthe 8-bit parameter is shown in Figure 6-3 (See page 638). The other bits are not used and are set to 0. (cr) isthe 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 hexadecimalADAM-50006-21Command Set5013 RTD Input$aaSiArrff$aaSiArrffaddress of an ADAM-5000 system.(cr) is the terminating character, carriage return (0Dh).Examplecommand: $35S3A2000(cr)response: !35(cr)The RTD input module in slot 3 of the ADAM-5000system at address 35h is configured to an RTD typePt -100 to 100° C, engineering unit data format, andintegration time 50ms (60Hz).
The response indicatesthat the command has been received.6-22ADAM-5000Chapter 6$aaSiBName$aaSiBRTD Configuration StatusDescription Returns the configuration parameters for a specifiedRTD input module in a specified system.Syntax$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 i (i:0to3)B 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 wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of an ADAM-5000 system.rr represents the 2-character hexadecimal code of theinput range.
(See Appendix B)ff is a hexadecimal number that equals the 8-bit parameter representing data format. Bits 0 and 1 represent dataformat. Bit 7 represents integration time (See RTDConfiguration Command $aaSiArrff).ADAM-50006-23Command Set$aaSiB5013 RTD Input$aaSiB(cr) is the terminating character, carriage return (0Dh).Examplecommand: $35S3B(cr)response: !352000(cr)The RTD input module in slot 3 of the ADAM-5000system at address 35h responds with an RTD type Pt-100 to 100° C, engineering unit data format, andintegration time 50ms (60Hz).6-24ADAM-5000Chapter 6$aaSiName$aaSiAll RTD Data InDescription Returns the input values of all channels of a specifiedRTD input module in a specified system in engineeringunits 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 the ADAM-5000 system you want toread.(cr) is the terminating character, carriage return (0Dh).Response.>(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 exist.> delimiter character indicating a valid command wasreceived.? delimiter character indicating the command wasinvalid.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system.(data) is the input value in engineering units of theinterrogated module of the specified system.















