Gx Serial
2016-06-18
: And Mercury Gx Serial gx serial manuals uploads wp-content
Open the PDF directly: View PDF
.
Page Count: 12
| Download | |
| Open PDF In Browser | View PDF |
16. RS-232C SERIAL INTERFACE / EXTERNAL INPUT RS-232C The balance is a DCE device. Connect the balance to a personal computer (DTE), using a straight through cable or a modem cable. Transmission system Transmission form Data format : : : EIA RS-232C Asynchronous, bi-directional, half duplex Baud rate : 600, 1200, 2400, 4800, 9600 bps Data bits : 7 or 8 bits Parity : Even, Odd (Data bits 7 bits) None (Data bits 8 bits) Stop bit : 1 bit Code : ASCII Pin connections Pin No. 1 2 3 4 5 6 7 18 19 8 – 25 (Excluding 18 and 19) Signal name Direction Description FG Frame ground RXD Input Receive data TXD Output Transmit data RTS Input Ready to send CTS Output Clear to send DSR Output Data set ready SG Signal ground PRINT Input Same as the PRINT key RE-ZERO Input Same as the RE-ZERO key Not connected Note The signal names for the RS-232C are the same as those for the DTE side except TXD and RXD. Circuits 65 External input Pin 18 and pin 19 perform the same function as pressing the PRINT and RE-ZERO keys respectively by connecting each pin to pin 7 for at least 100 m seconds. Use of example The external input (AX-HDB-25P/CTF) and the (AX-SW128) are sold separately. 66 connector foot switch 17. CONNECTION TO PERIPHERAL EQUIPMENT 17-1 Connection to the AD-8121B Printer Set the following parameters to use the AD-8121B printer. Function setting dout prt 0-3 dout ap-p 0-2 dout ap-b 0-2 dout pU5e 0,1 5if bp5 2 5if btpr 0 5if Crlf 0 5if Ct5 0 Factory setting Factory setting Factory setting Factory setting Description Selects a print mode. Selects the polarity for the auto print mode. Selects the auto print difference. Selects data output pause. 2400 bps 7 bits, Even parity check CR, LF CTS and RTS control, not used When “MODE 1” or “MODE 2” of the AD-8121B printer is used dout 5-td 0 Factory setting Not to output the time and date. dout 5-id 0 Factory setting Not to output the ID number. dout at-f 0 Factory setting Not to use auto feed. 5if type 0 Factory setting A&D standard format When “MODE 3” of the AD-8121B printer is used. dout 5-td 0-3 Outputs the time and date as necessary. dout 5-id 0,1 Outputs the ID number as necessary. dout at-f 0,1 Uses auto feed as necessary. 5if type 1 DP format When data is transmitted continuously. When all memory data is transmitted at one time. dout pU5e 1 Uses pause. Note The printer performs as follows, depending on the data memory setting. Setting data 0 data 2 data 3 What is printed The weighing data The weighing data stored in memory The calibration or calibration test data stored in memory Refer to “11. ID NUMBER AND GLP REPORT” for a print sample. 17-2 Connection to a Computer The GX series balance is of the DCE type (Data Communication Equipment), which can be connected to a personal computer using the RS-232C interface. Before connection, read the personal computer manual thoroughly. Use a standard DCE cable for connection (cable type: straight-through). 67 17-3 Using Windows Communication Tools (WinCT) When Windows is used as an operating system in a personal computer, the provided WinCT can be used to transmit the weighing data to the personal computer. The WinCT has two communication methods: “RsCom” and “RsKey”. For details on WinCT, refer to the WinCT instruction manual. The current version of the WinCT can be downloaded from the A&D website. RsCom Can transmit commands to control the balance. Can make a bi-directional communication between the balance and a personal computer using the RS-232C interface. Can display or store the data using a text file format. Can also print the data using a printer connected to the personal computer. When several ports of a personal computer have balances connected, the personal computer can communicate with each balance simultaneously. Can share a personal computer with other application software. Can receive the balance GLP report. RsKey Can transmit the weighing data output from the balance directly to other application software such as Microsoft Excel. Can be used with most application software. Can receive the balance GLP report. Note Windows and Excel are the registered trademarks of the Microsoft Corporation. Using the WinCT, the balance can do the following: 1 Analyzing the weighing data and the statistics input by “RsKey” The weighing data can be input directly into an Excel worksheet. Then, Excel can analyze the data to obtain total, average, standard deviation, maximum and minimum value, and display them in a graph. 2 Controlling the balance using commands from a personal computer By using “RsCom”, the personal computer sends commands such as “re-zero” or “send weighing data” to the balance and controls the balance. 3 Printing the balance GLP report using your printer The balance GLP report can be printed using a printer connected to the personal computer. 4 Receiving weighing data at a certain interval The weighing data can be received at a certain interval and data characteristic with elapsed time can be obtained. 68 5 Using the GX series balance memory function The weighing data, instead of outputting it immediately to an external device, can be stored in the balance’s memory. Later, all of the weighing data stored can be output to a personal computer at one time. 6 Using a personal computer as an external indicator With the “RsKey” test mode function, a personal computer can be used as an external weight indicator for the balance. (To do this, set the balance data output mode to stream mode.) 69 18. COMMANDS 18-1 Command List Commands to query weighing data C Q S SI SIR E SCP Cancels the S or SIR command. Requests the weighing data immediately. Requests the weighing data when stabilized. Requests the weighing data immediately. Requests the weighing data continuously. Requests the weighing data when stabilized. Note: The “Q” and “SI” commands, the “S” and “ESCP” commands behave the same. Commands to control the balance CAL MCL MD:nnn OFF ON P PT: . g ?PT PRT R SMP U T TR Z E SCT Same as the CAL key. Deletes all data in memory. Deletes weighing data with the data number nnn. Turns the display off. Turns the display on. Same as the ON:OFF key Sets the tare value. The unit added is the unit that is output in the A&D standard format. For the counting or percent mode, gram is used. Set the tare value so that the total value of the sample and the tare does not exceed the weighing capacity. Negative values can not be used. Requests the tare value. Outputs the tare value set by the TR or PT: command. Same as the PRINT key Same as the RE-ZERO key Same as the SAMPLE key. Same as the MODE key Same as the RE-ZERO key Tares the balance (Cancels the container’s weight.) Available only when the load on the weighing pan is greater than the zero point. The zero point is set by the R, T or Z command, by pressing the RE-ZERO key, or using the external input. Same as the RE-ZERO key Same as the RE-ZERO key Note: The “R”, “T”, “Z” and “ESCT” commands behave the same. Commands to control the memory function ?MA ?MQnnn ?MX MCL MD:nnn UN:mm ?UN UW: . ?UW ?ID ?SN ?TN g Outputs all data in memory. Outputs weighing data with the data number nnn. Outputs the number of weighing data in memory. Deletes all data in memory. Deletes weighing data with the data number nnn. Changes the unit mass stored in memory with the number of mm (01-20). Outputs the unit mass number of the selected unit mass. Sets the unit mass value. e.g.,UW:+0.123 g (to set the unit mass to 0.123 g: represents a space.) Outputs the unit mass value of the selected unit mass number. Requests the ID number. Requests the serial number. Requests the model name. 70 Commands to control the comparator function HI: . LO: ?HI ?LO g . g Sets the upper limit value. e.g.,HI:+2.34 value to 2.34 g: represents a space.) Sets the lower limit value. e.g.,LO:+1.23 value to 1.23 g: represents a space.) Outputs the upper limit value. Outputs the lower limit value. g (to set the upper limit g (to set the lower limit Notes “nnn” and “mm” indicate, respectively, three-digit and two-digit numerical values. E SC : 1Bh in ASCII code Before transmitting a command, add the terminator (or ), that is specified in the “Terminator (Crlf)” parameter of “Serial interface (5if)” in the function table, to the command. To use a command to control the comparator function, set the “Input method (Cpin)” parameter to “0” or “1”. 18-2 Acknowledge Code and Error Codes When the “Serial interface function ( 5if )” parameter is set to “erCd 1”, the balance outputs code or error code to each command as follows: (06h) Acknowledge in ASCII code. When the balance receives a command to request data and can not process it, the balance transmits an error code (EC, Exx). When the balance receives a command to request data and can process it, the balance outputs the data. When the balance receives a command to control the balance and can not process it, the balance transmits an error code (EC, Exx). When the balance receives a command to control the balance and can process it, the balance transmits the acknowledge code. When a communication error has occurred due to external noise, or a parity error has occurred due to transmission error, the balance transmits an error code. In this case, send the command again. Among commands to control the balance, the following transmit the acknowledge code both when the balance receives the command and when the balance has accomplished the command. If the command can not be processed properly, the balance transmits an error code (EC, Exx). This error can be released using the CAL command. CAL command (Calibration command) ON command (Display ON command) P command (Display ON/OFF command) R command (RE-ZERO command) TR command (Tare command) 71 18-3 Command Examples ON command Personal computer Time Balance Standby mode ON command O N CR LF AK CR LF All segments AK CR LF Command received All segments are displayed Command completed Zero display R command Personal computer Time Balance Weighing mode R command R CR LF AK CR LF Command received In process AK CR LF Command completed Zero display 72 CAL command Personal computer Time Balance Zero display CAL command C A L CR LF AK CR LF Command received AK CR LF Command completed Zero display Error code Personal computer Time Balance Weighing mode (unstable) R command R CR LF AK CR LF Command received In process When the R command can not be achieved due to unstable weighing: E C , E 1 1 CR LF Error code CAL command When the CAL command is received, the balance returns to the weighing mode C A L CR LF AK CR LF Command completed Weighing mode 73 Weighing with a tare Personal computer Time Balance R command Sets the display to zero R CR LF AK CR LF Command received In process AK CR LF Command completed Zero display Place a container TR command Tares T R CR LF AK CR LF Command received In process AK CR LF Command completed Zero display S command R CR LF 㹑㹒㸪㸩㸮㸮㸯㸮㸮㸬㸮㸮ࠉࠉ㹥 ?PT command (Net value) ? P T CR LF 㹎㹒㸪㸩㸮㸮㸯㸰㸴㸬㸶㸵ࠉࠉ㹥 (Tare value) 74 Setting a negative target value and filling with a sample until the display becomes zero Personal computer Time Balance Place a container Before command execution R command R CR LF AK CR LF Command received In process AK CR LF Zero display PT: command to set a target weight of 100 g P T : 1 0 0 . 0 0 Command completed g CR LF AK CR LF Command received Target weight display Fill with sample until the display becomes zero 75 18-4 Control Using CTS and RTS Depending on the “Ct5” parameter of “Serial interface ( 5if )”, the balance performs as follows: Ct5 0 Regardless of whether the balance can receive a command or not, the balance keeps the CTS line HI. The balance outputs data regardless of condition of the RTS line. Ct5 1 The CTS line is kept Hi normally. When the balance can not receive the next command (e.g. while the balance is processing last command), the balance sets the CTS line to Lo. The balance confirms the level of the RTS line before outputting a set of data. If the RTS level is Hi, the balance outputs data. If the RTS level is Lo, data is not output (The data is canceled). 18-5 Settings Related to RS-232C Concerning the RS-232C, the balance has two functions: “Data output ( dout )” and “Serial interface ( 5if )”. Set each function as necessary. 76
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.4 Linearized : No Page Count : 12 XMP Toolkit : XMP toolkit 2.9.1-13, framework 1.6 About : 8846adb4-b8d6-11e0-0000-e9a47ab5d72d Producer : GPL Ghostscript 8.61 Modify Date : 2011:07:25 14:30:06+09:30 Create Date : 2011:07:25 14:30:06+09:30 Creator Tool : PDFCreator Version 0.9.5 Document ID : 8846adb4-b8d6-11e0-0000-e9a47ab5d72d Format : application/pdf Title : gx serial.pdf Creator : service2 Author : service2 Subject :EXIF Metadata provided by EXIF.tools