Рук_п_Имп-4 (1031891), страница 6
Текст из файла (страница 6)
The format is always in engineeringunits.• Low alarm value: Downloads the low alarm limit value into themodule. The format is always in engineering units.Digital Filter• High level voltage: Set the high trigger level for non-isolated inputsignals. The range is from 0.1 V to 5.0 V. Thishigh trigger level must be higher than the lowtrigger level at all times.ADAM-50005-21Software Utilities•Low level voltage: Set the low trigger level for non-isolated inputsignals.
The range is from 0.1 V to 5.0 V.•High level minimum width: Set the minimum width at high level.The unit is µsec (microseconds) andits resolution is 1 µsec. Users can setvalue from 2 to 65535.• Low level minimum width: Set the minimum width at low level. Theunit is µsec (microseconds) and itsresolution is 1 µsec. Users can setvalue from 2 to 65535.5.1.13 Download Procedure1. Click the Download Firmware button.2. Click Yes.5-22ADAM-5000Chapter 53.
Choose the baud rate.4. Choose Download file.ADAM-50005-23Software UtilitiesFirmware download in progress.Firmware download complete.5-24ADAM-5000Chapter 55.2DLL (Dynamic Link Library) DriverThe ADAM-5000 API Dynamic Link Library (DLL) enables you toquickly and easily write Windows applications for ADAM-5000systems.
The library supports both C++ and Visual Basic. SinceADAM-5000 systems communicate with a host computer through thehost‘s COM port, no additional driver (DRV or VxD) needs to beinstalled. The DLL includes all necessary function calls to utilize theADAM-5000 systems to their fullest extent.Together with the DLL driver you‘ll find the source code of a VisualBasic example on your diskette.
The example provides several controlwindows to communicate with all types of ADAM-5000 modules. Youcan customize the source code to create your own tailor-madeADAM-5000 setup program or monitoring system.For details on the ADAM-5000 function calls refer to the Help fileincluded on the ADAM-5000 API diskette.5.3DDE (Dynamic Data Exchange) ServerThe ADAM-5000 DDE server takes advantage of DDE, a built-inWindows communication service. The DDE server acquires data fromthe ADAM-5000 systems and passes it to your application programvia the hot link (DDE). The software can also pass control andconfiguration commands to the ADAM-5000 systems using the DDEprotocol. You can now use ADAM-5000 systems with most Windowsbased data acquisition software that supports DDE. Examples includeIntellution's FIX DMACS, Wonderware’s InTouch, ONSPEC, Paragonand Excel.For details on the ADAM-5000 DDE server refer to the DDE servermanual for the ADAM-5000.ADAM-50005-25Software Utilities5-26ADAM-50006Command SetCommand Set6.1IntroductionTo avoid communication conflicts when several devices try to senddata at the same time, all actions are instigated by the host computer.The basic form is a command/response protocol with the host initiating the sequence.When systems are not transmitting they are in listen mode.
The hostissues a command to a system with a specified address and waits acertain amount of time for the system to respond. If no responsearrives, a time-out aborts the sequence and returns control to the host.Changing ADAM-5000/5000E system's configuration might require thesystem to perform auto calibration before changes can take effect.This is especially true when changing the range as the system has toperform all stages of auto calibration that it performs when booted.When this process is underway, the system does not respond to anyother commands.
The command set includes information on thedelays that might occur when systems are reconfigured.6.2SyntaxCommand Syntax: [delimiter character][address][slot][channel][command][data][checksum][carriage return]Every command begins with a delimiter character. There are four validcharacters: $, #, % and @.The delimiter character is followed by a two character address (hexadecimal) that specifies the target system.
The two characters followingthe address specifies the module slot and channel.Depending on the command, an optional data segment may follow thecommand string. An optional two character checksum may also beappended to the command string. Every command is terminated with acarriage return (cr).Note:6-2All commands should be issued in UPPERCASEcharacters only!ADAM-5000Chapter 6The command set is divided into the following five categories:• CPU Command Set• Analog Input Command Set• Analog Input Alarm Command Set• Analog Output Modules Command Set• Digital I/O Modules Command SetEvery command set category starts with a command summary of theparticular type of module, followed by datasheets that give detailedinformation about individual commands.Although commands in different subsections sometime share the sameformat, the effect they have on a certain module can be completelydifferent than that of another. Therefore, the full command set for eachtype of module is listed along with a description of the effect thecommand has on the given module.Note:Before setting commands, the user needs to knowthe type of main unit being used.
If ADAM-5000/485is being used, the "i" in Si can be set at 0 to 3. IfADAM-5000E is being used, the "i" in Si can be setat 0 to 7. This is illustrated in the table below:Command SyntaxADAM-5000Main Unit#aaSiCjADAM-5000i = 0 to 3ADAM-5000Ei = 0 to 76-3CPUCommand Set6.3CPU Command SetCommand Syntax Command Name Description6-4%aannccffConfigurationSets the baudrate andchecksum status for aspecified ADAM-5000system$aa2ConfigurationStatusReturns the configurationstatus for a specifiedADAM-5000 system$aaMRead ModuleNameReturns the module namefrom a specifiedADAM-5000 system$aaFRead FirmwareVersionReturns the firmwareversion code from aspecified ADAM-5000system$aaTRead I/O TypeReturns the I/O model No.of all slots for a specifiedADAM-5000 system$aa5Reset StatusReturns the reset statusfor a specifiedADAM-5000 system$aaESoftwareDiagnosticsRequests the specifiedADAM-5000 system toreturn the error statusADAM-5000Chapter 6%aannccffName%aannccffConfigurationDescription Sets baud rate and checksum status for a specifiedADAM-5000 system.Syntax%aannccff(cr)% is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimaladdress of the ADAM-5000 system you want toconfigure.nn is reserved for system use.
Its default value is 00h.cc represents the baud rate code.ff is a hexadecimal number that equals the 8-bit parameter representing checksum status. 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).Response!aa(cr) if the command is valid.?aa(cr) if an invalid parameter was entered or if theINIT* terminal was not grounded when attempting tochange baud rate or checksum settings.
There is noresponse if the module detects a syntax error, communication error or if the specified address does 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.ADAM-50006-5CPUCommand Set%aannccff%aannccff(cr) is the terminating character, carriage return (0Dh).Examplecommand: %23000A40(cr)response: !23(cr)The ADAM-5000 system with address 23h is configuredto a baud rate of 115.2 Kbps and with checksum generation or validation.The response indicates that the command was received.Wait 7 seconds to let the new configuration setting takeeffect before issuing a new command to the system.Note:All configuration parameters can be changed dynamically, except checksum and baud rate parameters.They can only be altered when the INIT* terminal isgrounded.Baud RateCodeBaud Rate03h1200 bps04h2400 bps05h4800 bps06h9600 bps07h19.2 Kbps08h38.4 Kbps09h57.6 Kbps0Ah115.2 KbpsFigure 6-1 Baud rate codes6-6ADAM-5000Chapter 6$aa2Name$aa2Configuration StatusDescription Returns the configuration status for a specified systemmodule.Syntax$aa2(cr)$ is a delimiter character.aa (range 00-FF) represents the 2-character hexadecimal address of the ADAM-5000 system you want tointerrogate.2 is the Configuration Status command.(cr) is the terminating character, carriage return (0Dh).Response!aaccff(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.cc represents the baud rate code.ff is a hexadecimal number that equals the 8-bit parameter representing checksum status.














