background image

CF 126 

Nov 2001 

3.6.2 Command Codes 

The first character of each two-character command code signifies if that command is a function command 
("F"), a read operating parameter command ("R"), or a write operating parameter command ("W"). Read 
and write commands can be used instead of the front panel setup menus to configure the operation of the 
instrument. Function commands are used as an alternative to the front panel to gather data from the 
instrument or to cause it to perform an operation.  

 

3.6.3 Attention Character 

All characters received before the "#" (ASCII code decimal 35) attention character are ignored. Therefore, 
one or more instruments can share a single communications link with other "foreign instruments" (within 
the physical limits of the RS-232 8 or RS-422/RS-485 interface, of course) as long as the host or the 
"foreign instruments" do not use the "#" character. 
 
When the "#" attention character is sent, the instrument enters its receive mode and will attempt to parse 
out the rest of the characters before the carriage return as a possible message. If another attention 
character is received in the middle of a message, the previous incomplete message is ignored.  If the 
instrument receives a garbled character, or if the character received has an ASCII value larger than 127, 
then the entire message sent is ignored.  
 

3.7 Response Format  

An instrument will give a response over the serial communications link for every valid and invalid 
command given that uses its unique two-character address. There are four types of responses used:  

• 

"OK", which is sent after an instrument has accepted the data presented with a write operating 
parameter ("W") command, or when a function ("F") command has been completed.  

• 

"ERROR", which is sent when an instrument has been asked to perform an invalid command, or 
when invalid information is given with a write operating parameter ("W") command.  

• 

"N/A", which is sent when you are requesting information from the instrument which is not 
applicable to its present configuration. For example, requesting limit setup information from a DFI 
1550 will cause this message to be sent.  

• 

a floating point number as the result of a read operating parameter ("R") or function ("F") 
command. 

• 

other ASCII strings, such as serial numbers, dates, the front panel contents, etc.  

 
To signal the end of a response the instrument will transmit a carriage-return (ASCII code decimal 13) if 
the Auto-Linefeed function is off, or a linefeed/carriage- return (ASCII codes decimal 10, decimal 13) 
when the Auto-Linefeed is on. The Auto-Linefeed status can be viewed from the front panel but can only 
be changed over the serial communications link using the "W2 Write Automatic Line-feed Set- ting" 
system command.  
 

Chapter 4 RS-232 Installation Notes  

4.1 Introduction 

This chapter provides wiring examples and hardware information for RS-232 communications. "DTE" 
(Data Terminal Equipment) will be used to refer to the personal computer, programmable controller, 
terminal, data acquisition system, etc. to which the instrument is connected. 
 

4.2 System Connector Pinout 

The table below lists the pins on the System Connector used for RS-232 communication. Other pins on 
the System Connector may be used for other purposes. 

Table 4-1: System Connector Pins used for RS-232 

Pin 

Name 

Function 

Input/Output 

Reference Pin 

RS-232 IN 

RS-232 Data In 

Input 

RS-232 OUT 

RS-232 Data Out 

Output 

CTS 

RS-232 Clear to Send (connected to pin 

5) 

N/A N/A 

RTS 

RS-232 Request to Send (connected to 

N/A 

N/A 

Содержание DFI 1550

Страница 1: ...DFI 1550 1650 COMMUNICATIONS GUIDE...

Страница 2: ...Introduction 4 3 2 Baud Rate Start Bits Stop Bits and Parity 4 3 3 Differences between Instruments 4 3 4 Two Types of Commands 5 3 4 1 System Commands 5 3 4 2 Channel Commands 5 3 5 Addressing 5 3 6...

Страница 3: ...duction 23 8 2 Descriptions 23 Chapter 9 AC AC LVDT Input Channel Commands 30 9 1 Introduction 30 9 2 Descriptions 30 Chapter 10 High Level Input Channel Commands 36 10 1 Introduction 36 10 2 Descript...

Страница 4: ...menu items Indicates that what follows is an item from a sub menu such as SYSTEM MENU DIAGNOSTICS DATA Commands sent to or replies from the instrument The carriage return character ASCII code decimal...

Страница 5: ...uage called SensoCode This provides great flexibility which allows the DFI Series to do many jobs which otherwise requires a personal computer or PLC 1 4 What is Calibration 1 4 1 Overview A small int...

Страница 6: ...n male or an IBM 9 pin male RS 232 serial connector Remember that all personal computer serial ports have male connectors Parallel printer ports have female connectors RS 422 or RS 485 serial ports ar...

Страница 7: ...ELLO WORLD The instrument will acknowledge with OK and the characters HELLO WORLD III should be displayed on the instrument s front panel Chapter 3 Command Format 3 1 Introduction All DFI instruments...

Страница 8: ...is shown below 0002WK0169 89 where is called the attention character which alerts all instruments that a command is being transmitted to them This character is ASCII code decimal 35 00 is the two cha...

Страница 9: ...arameter W command or when a function F command has been completed ERROR which is sent when an instrument has been asked to perform an invalid command or when invalid information is given with a write...

Страница 10: ...rriage Return See Command Format for further information If the address sent by the DTE matches the address of the instrument and the command string is valid then the instrument pulls the DSR line low...

Страница 11: ...interface Wire up one and only one slave instrument to the communications loop z according to the wiring diagrams in this chapter 2 Determine the address used by this DFI instrument factory default i...

Страница 12: ...ations bus uses one pair of wires to allow up to 32 devices to send and receive data A two wire RS 485 system is a half duplex system which means that no device can transmit and receive data at the sa...

Страница 13: ...send it the command string 00W401 followed by a carriage return Chapter 6 Application Programs 6 1 Introduction This chapter provides several programming examples and hints for using serial communicat...

Страница 14: ...CF 126 11 Nov 2001 Next select the serial port you wish to connect with Finally configure the serial port parameters as shown below...

Страница 15: ...omputer Both QBasic and QuickBasic can only access ports COM1 and COM2 Two sample programs for Microsoft QuickBasic can be located on Sensotec s web site at http www sensotec com scprograms 084 1031 0...

Страница 16: ...documented and do not always work in a consistent way across Win32 operating systems 6 6 2 Third party Libraries Another way of using serial communications with a CIC program is by purchasing a third...

Страница 17: ...wer Up Display Value RR Read Firmware Revision RS WS Read Write Channel to Display ZM Read Scan Time ZX Temporarily Suppress Continuous Transmissions ZY Read Configuration 7 3 Descriptions F0 Transmit...

Страница 18: ...IT LATCHING menu item set to ON Latched limits may also be cleared by pressing the front panel CLEAR button or by using the Function Input 2 pin on the rear panel System Connector This command does no...

Страница 19: ...ply none Remarks Do not pass GO Do not collect 200 Monopoly W1 Write Baud Rate Purpose Writes a new baud rate for serial communications Usage aaW1n is the pound or hash character ASCII decimal 35 aa i...

Страница 20: ...e setup menus 2 Press and release DOWN until the display reads SERIAL COM MENU Press ENTER to enter the SERIAL COM menu 3 Press and release DOWN until the display reads ADDRESS Press ENTER and the dis...

Страница 21: ...512 ON 1 03 768 04 1024 05 1280 Latching Value 06 1536 OFF 0 07 1792 ON 2 08 2048 09 2304 Source Value 10 2560 TRACK 0 11 2816 PEAK 4 12 3072 VALLEY 8 13 3328 14 3584 15 3840 16 4096 Energize Value 17...

Страница 22: ...ransmissions with baud rates greater than 2400 baud This is because Windows is so busy reading and displaying the received characters that it will not accept keyboard or mouse input It is a bad idea t...

Страница 23: ...isplayed on the lower line When writing this parameter n is the channel to be displayed See ken for encoding information Using pp 80 reads writes display operation When writing this parameter n 0 enab...

Страница 24: ...RR Reply A text string such as 084 1501 01 2 08 Remarks This command is useful when establishing or debugging communications because it generates a consistent reply RS WS Read Write Channel to Display...

Страница 25: ...st the instrument can service the limits ZX Temporarily Suppress Continuous Transmissions Purpose Temporarily suppress or allow continuous transmissions Usage aaZMn is the pound or hash character ASCI...

Страница 26: ...t Track Data Purpose To transmit the channel s tracking data value Usage aaccF0 is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character chann...

Страница 27: ...d or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number is the carriage return character ASCII decimal 13 Example 0001FA Reply 0012 5 typ...

Страница 28: ...s DAC to 50 of full scale Reply OK or ERROR Remarks You might wish to force a channel s DAC to a certain output to help calibrate the attached data acquisition system or other device R5 W5 Read write...

Страница 29: ...ansducer with the Shunt Calibration method R9 W9 Read write Excitation Voltage Setting Purpose Reads or writes the channel s EXCITATION menu item Usage aaccR9 to read aaccW9n to write is the pound or...

Страница 30: ...13 Argument A number which selects a channel s value This number is created by adding together the values of the desired options as shown Channel Value Source Value 01 1 TRACK 0 02 2 PEAK 16 03 3 VALL...

Страница 31: ...cter ASCII decimal 13 Parameters Arguments Using pp 00 accesses the AUTO ZERO and LINEARIZATION menu items When writing this parameter the argument n is a number which selects different operating feat...

Страница 32: ...s after decimal point 2 5 digit bipolar display 0 Count by one digit 0 Enable display averaging 64 Sending 0008WQ66 will change display operation accordingly Reply When writing OK or ERROR When readin...

Страница 33: ...I decimal 35 aa is the two character instrument address cc is the two character channel number n is the frequency response in Hz is the carriage return character ASCII decimal 13 Example 0001WU10 Repl...

Страница 34: ...value Usage aaccFA is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number is the carriage return character ASCII decimal 13 E...

Страница 35: ...address cc is the two character channel number n is the full scale value in engineering units is the carriage return character ASCII decimal 13 Example 0001W520000 Reply When writing OK or ERROR When...

Страница 36: ...02 accesses the KNOWN POINT 2 3 and KNOWN POINT 3 5 menu items 03 accesses the KNOWN POINT 4 5 menu item 04 accesses the KNOWN POINT 2 2 KNOWN POINT 3 3 or KNOWN POINT 5 5 menu items Example 0001RK01...

Страница 37: ...address c cc is the two character channel number n is the full Analog Output value in engineering units is the carriage return character ASCII decimal 13 0 Example 0001WO8000 Reply When writing OK or...

Страница 38: ...nt address cc is the two character channel number n is the argument defined below is the carriage return character ASCII decimal 13 Argument The argument is created by adding together the values of th...

Страница 39: ...ending 0002WT1 will accomplish this Reply When writing OK or ERROR When reading an ASCll floating point value described above Remarks If a disabled front panel button is pressed the message PROTECTED...

Страница 40: ...shunt resistor to the transducer and transmit a reading Usage aaccF5 is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number...

Страница 41: ...the two character instrument address cc is the two character channel number n is the argument defined below is the carriage return character ASCII decimal 13 Argument AUTO returns the DAC to its norma...

Страница 42: ...r 5V or 10V input If the channel s Signal Type Jumpers are set for current the argument value must be 20 for 4 20mA input Example 0001W710 Reply When writing OK or ERROR When reading an ASCll floating...

Страница 43: ...NT 4 5 menu item 04 accesses the KNOWN POINT 2 2 KNOWN POINT 3 3 or KNOWN POINT 5 5 menu items Example 0001RK01 Reply When writing OK or ERROR When reading an ASCll floating point value Changing this...

Страница 44: ...cWOn to write is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number n is the full Analog Output value in engineering units i...

Страница 45: ...ad write Display Formatting Purpose Reads or writes the operation of the channel s display formatting Usage aaccRQ to read aaccWQn to write is the pound or hash character ASCII decimal 35 aa is the tw...

Страница 46: ...ptions as shown VALUE Value CLEAR Value ENABLED 0 ENABLED 0 DISABLED 8 DISABLED 4 CHANNEL Value TARE Value ENABLED 0 ENABLED 0 DISABLED 2 DISABLED 1 Example It is desired to disable the TARE button fo...

Страница 47: ...t Valley Data Purpose To maintain compatibility with other types of channels Usage aaccFA is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two chara...

Страница 48: ...haracter instrument address pp is the two numeric character limit number n is the limit RETURN POINT value is the carriage return character ASCII decimal 13 Example Sending 00WB04415 5 will change the...

Страница 49: ...hannels Usage aaccF0 is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number is the carriage return character ASCII decimal 13...

Страница 50: ...o 100 of its output Example 0009FH 5 will set channel 09 s DAC to 50 of its full scale Reply OK or ERROR Remarks You might wish to force a channel s DAC to a certain output to help calibrate the attac...

Страница 51: ...in engineering units is the carriage return character ASCII decimal 13 Example 0001WO8000 Reply When writing OK or ERROR When reading an ASCII floating point value Chapter 13 Split Display Virtual Ch...

Страница 52: ...RIGHT SOURCE menu items Usage aaccRspp to read aaccwsppn to write is the pound or hash character ASCII decimal 35 aa is the two character instrument address cc is the two character channel number pp...

Страница 53: ...urn character ASCII decimal 13 Example 0001F1 Reply OK F2 Deactivate Tare Purpose To remove the offset from the channel s data values which was applied when tare was activated Usage aaccF2 is the poun...

Страница 54: ...mber n is the four character units label is the carriage return character ASCII decimal 13 Example 000lW6CATS Reply When writing OK or ERROR When reading a four character string Changing this value do...

Страница 55: ...panel button is pressed the message PROTECTED will appear on the display Warranty and Repair Policy LIMITED WARRANTY ON PRODUCTS Any of our products which normal operating conditions proves defective...

Страница 56: ...All repairs of COOPER products are warranted for a period of 90 days from date of shipment This warranty applies only to those items that were found defective and repaired it does not apply to product...

Отзывы: