HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION OPERATION AND INSTALLATION MANUAL Corporate Headquarters 3860 Calle Fortunada San Diego, CA 92123-1825 Phone: (858) 278-2900 FAX: (858) 278-6700 Web-Site: http://www.hardyinst.com Hardy Instruments Document Number: 0596-0173-01 Rev J ®Copyright December 1999 Hardy Instruments, Inc. All Rights Reserved. Printed in the U.S.A.
Local Field Service Hardy has over 200 field technicians in the U.S., and more positioned throughout the world to assist you in your support needs. We also have factory engineers who will travel to your facility anywhere in the world to help you solve challenging applications.
Table of Contents TABLE OF CONTENTS TABLE OF CONTENTS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I TABLE OF ILLUSTRATIONS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - I LIST OF TABLES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A CHAPTER 1 - OVERVIEW - - - - Allen-Bradley License - - - - - - Common Applications - - - - - - Monitoring Weighing Parameters Short Glossary of Terms - Tare Value - - - - - -
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Read Command Number 3: Instrument Identification and Diagnostics - - - - - - - - - Block Read Command Number 4: Read Tare Value - - - - - - - - - - - - - - - - - - - - Block Read Command Number 5: Calibration Parameters - - - - - - - - - - - - - - - - - Block Read Command Number 6: Configuration of Rate-of-Change - - - - - - - - - - - - - Block Read Command Number 7: BCD Output Configuration - - - - - - - - - - - - - - - - Block Read Command Number 8
Table of Illustrations TABLE OF ILLUSTRATIONS CHAPTER 2 - INSTALLATION - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-1 FIG. 2-1 REMOTE I/O S1 DIP SWITCH SETTINGS (DEFAULT) - - - - - - - - - - - - - - - - - - - - 2-1 CHAPTER 3 - SETUP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-1 FIG.
List of Tables LIST OF TABLES CHAPTER 2 - INSTALLATION TABLE 2-1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2-1 CABLE TERMINATION REQUIREMENTS - - - - - - - - - - - - - - - - - - - - - - - - 2-1 CHAPTER 3 - SETUP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-1 TABLE 3-1 TABLE 3-2 TABLE 3-3 INTERIOR DIP SWITCHES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-3 EXTERIOR DIP SWITCHES - - - - - - - - - - - - - - - - - - -
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION TABLE 6-2 TABLE 6-3 TABLE 6-4 b RELAY STATUS - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6-1 BINARY TO DECIMAL CHART - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6-2 BLOCK WRITE EXAMPLE - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6-2
Chapter 1 - Overview CHAPTER 1 - OVERVIEW Allen-Bradley License Under license from The Allen-Bradley Corporation, Hardy Instruments Inc. has developed a Remote I/O Interface for the HI 2151 Weight Controller. The HI 2151WC is a general purpose industrial and process weighing instrument for use in a wide variety of applications including filling, dispensing, batching, and monitoring rate of flow by weight.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION should also read the Installation and Operation manual of the HI 2151WCs. Information contained in this manual is subject to change. Always check the latest version of this manual at our web site (http://www.hardyinst.com) before beginning system design. This product incorporates technology which is licensed by Allen-Bradley Company Inc. AllenBradley does not technically approve, warrant or support this product.
Chapter 1 - Overview or can be entered as a numeric value via the keypad on the front panel of the HI 2151WC. This new tare value is the reference point for Net Weight.
Chapter 2 - Installation CHAPTER 2 - INSTALLATION Remote I/O Board Cable Termination Dip Switch Configuration About Cable Termination BAUD Weight controllers are connected to a cable in daisy-chain fashion and are referred to as “nodes”. A Daisy Chain is a hardware configuration in which devices are connected one to another in a series. The end nodes on the daisy chain require termination resistors.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Step 2. On the last RIO board in the daisy chain, select the desired switch settings in Table 2-1 for Baud Rate. NOTE: The cable lengths used in Table 2-1 are maximum lengths that can be used in the daisy chain. Installing the RIO Option Board Step 1. With the 26 pins facing down, align the RIO Option Board over the connector on the A/D board. In either option slot. Step 2. Gently slide the pins into the connector until it stops. Step 3.
Chapter 3 - Setup CHAPTER 3 - SETUP Remote I/O Setup Bargraph LEDS Secondary Functions (HI 2151/ 20WC only) While the RIO menu is displayed, the Bargraph LEDs have the following secondary functions. A. The Zero Track LED displays the status of the “Green LED” on the RIO. • • • On = Run Off = Off Line Flashing indicates either program mode or frequent retries. B. The Motion LED indicates Self-Test. Self-Test is executed when the instrument powers up.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Setup Procedures NOTE: Step 1. Enter the Option Menu by pressing the 7/Option button. (Display shows the first option available) Step 2. Press the up arrow until RIO is displayed on the screen. Step 3. Press the Enter button two times. (Display shows the currently selected Baud Rate value) Step 4. Use the up or down arrow to select a baud rate 57600, 115200 or 230400. (Display shows the currently selected value) Step 5. Press the Enter button two times.
Chapter 3 - Setup About Blind Units NOTE: Blind Unit Configuration An HI 2151WC Weight Controller that cannot be programmed or configured from the front panel is a blind unit. In a blind unit, the Remote I/O parameters are configured using both the interior and exterior dip switches. (See Tables below) You must power-down and power up the instrument to have new switch positions activated. You must also perform a manual or auto configuration of the PLC. Step 1.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Step 3. Set the Exterior Dip Switches. (See Table 3-3) EXTERIOR DIP SWITCHES Switch Position - S3 which is located on the Rear Panel 1 B5 (32) 2 B4 (16) 3 B3 (8) 4 B2 (4) 5 B1 (2) 6 B0 (1) 7 C1 8 C0 TABLE 3-3: EXTERIOR DIP SWITCHES NOTE: B0 through B5 represent a binary value for rack # from 1 to 63.
Chapter 4 - Discrete Transfers CHAPTER 4 - DISCRETE TRANSFERS Discrete Writes The PLC places two sixteen bit words in the Output Image Table which are read by the HI 2151WC weight controller. The second word defines which weight data the HI 2151WC should place in the Input Image Table for the PLC to read. The first word is reserved for future use. Programs should send all zeros for the first word to avoid conflict with future revisions of the command set.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Status Byte Select two of the status bytes below to be placed in the PLC Output Image Table.
Chapter 4 - Discrete Transfers 1 = Remote Function Status Byte bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Force display to Rate-of-Change mode Add current net weight to total Hold value on display Hold option card updates Force display to Net Weight mode Toggle lbs/kg Acquire Tare Print Request (RS232 and BCD ports) 2 = Indicator Group 2 Status Byte bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Weight currently displayed in pounds units Zero Track feature enabled Reserved for future use Current
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION 5 = Dipswitch Settings (interior) Status Byte bit 0 bit 1 bit 2 bit 3 bit 4 bit 5 bit 6 bit 7 Reserved for future use Enables gross weight output on RS232 port once per second Calibration lockout for NTEP (Legal for Trade) mode Ignore incoming serial checksums (RS232 port) Peak force is result of averaged gross weight NTEP (Legal for Trade) mode enable Eliminate “>” on print out (RS232 port) Designates instrument to be in “Blind” configuration 8 = MSB o
Chapter 5 - Block Transfers CHAPTER 5 - BLOCK TRANSFERS About Block Transfers The ladder logic programmer is able to exchange blocks of data with a 1/4 rack device via Block Transfer instructions in the ladder logic program. A Write Block Transfer is used to send commands and data to the Weight Controller, and a Read Block Transfer is used to collect acknowledgments and data from the Weight Controller.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION information with the read command number repeated in the first byte of the block returned. If a data error is detected, an error code “99” is in the first byte of the returned block. NOTE: All block reads are initiated by performing a block write. NOTE: A returned value of “99” (decimal) indicates an error.
Chapter 5 - Block Transfers BLOCK READ COMMAND NUMBER 1: Full status and weight data WORD DEFINITIONS: Dipswitch Settings (interior) Status bit 0 Reserved for future use bit 1 Enables gross weight output on RS232 port once per second bit 2 Calibration lockout for NTEP (Legal for Trade) mode bit 3 Ignore incoming serial checksums (RS232 port) bit 4 Peak force is result of averaged gross weight bit 5 NTEP (Legal for Trade) mode enable bit 6 Eliminate “>” on print out (RS232 port) bit 7 Reserved for blind uni
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Read Command Number 2: Setpoint Relay Parameter BLOCK READ COMMAND NUMBER 2: Setpoint Relay Parameters WORD DEFINITIONS: #WORDS Command number: A value of 2 (decimal) bit 0 0 bit 1 1 bit 2 0 bit 3 0 bit 4 0 bit 5 0 bit 6 0 bit 7 0 Indicator Group 2 Status bit 8 Weight currently displayed in pounds units bit 9 Zero Track feature enabled bit 10 Reserved for future use bit 11 Current gross weight = 0 bit 12 Weight in motion, i.e.
Chapter 5 - Block Transfers BLOCK READ COMMAND NUMBER 2: Setpoint Relay Parameters WORD DEFINITIONS: START WORD #WORDS Setpoint value for setpoint #1 Setpoint value for setpoint #2 Setpoint value for setpoint #3 Setpoint value for setpoint #4 Setpoint value for setpoint #5 Setpoint value for setpoint #6 Setpoint value for setpoint #7 Setpoint value for setpoint #8 2 2 2 2 2 2 2 2 TOTAL NUMBER OF WORDS 51 35 37 39 41 43 45 47 49 TABLE 5-3: BLOCK READ COMMAND NUMBER 2: SETPOINT RELAY PARAMETERS Peak
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Read Command Number 3: Instrument Identification and Diagnostics BLOCK READ COMMAND NUMBER 3: Instrument Identification and Diagnostics WORD DEFINITIONS: #WORDS Command number: A value of 3 (decimal) bit 0 1 bit 1 1 bit 2 0 bit 3 0 bit 4 0 bit 5 0 bit 6 0 bit 7 0 1 START WORD 0 Instrument type by model number bit 8 A value of 1, if set for the HI 2151 bit 9-15 Reserved for future use Firmware revision level: (ASCII format, i.e.
Chapter 5 - Block Transfers Block Read Command Number 4: Read Tare Value BLOCK READ COMMAND NUMBER 4: Read Tare Value WORD DEFINITIONS: #WORDS Command number: A value of 4 (decimal) bit 0 0 bit 1 0 bit 2 1 bit 3 0 bit 4 0 bit 5 0 bit 6 0 bit 7 0 bits 8 - 15 Reserved for future use 1 Tare Value 2 TOTAL NUMBER OF WORDS 3 START WORD 0 1 TABLE 5-7: BLOCK READ COMMAND NUMBER 4: READ TARE VALUE Block Read Command Number 5: Calibration Parameters BLOCK READ COMMAND NUMBER 5:Calibration Parameters WORD
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION BLOCK READ COMMAND NUMBER 5:Calibration Parameters WORD DEFINITIONS: START WORD #WORDS Motion Tolerance: A sixteen bit value representing the low 16 bits of the 20 bit internal weighing range 1 4 Zero Tolerance: A sixteen bit value representing the low 16 bits of the 20 bit internal weighing range 1 5 Number of readings averaged: A value from 1 to 200 Note: Number of averages will temporarily read 200 if the instrument was in the CAL menu while t
Chapter 5 - Block Transfers Block Read Command Number 7: BCD Output Configuration BLOCK READ COMMAND NUMBER 7: BCD Output Configuration WORD DEFINITIONS: #WORDS Command number: A value of 7 (decimal) bit 0 1 bit 1 1 bit 2 1 bit 3 0 bit 4 0 bit 5 0 bit 6 0 bit 7 0 1 START WORD 0 Format of output bit 8 If set, will update BCD output when “print” button or remote function is activated bit 9 Reserved for future use bit 10 If set, will output weight data currently displayed bit 11 If set, will output tare
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION BLOCK READ COMMAND NUMBER 8: Configuration of Analog Output WORD DEFINITIONS: #WORDS START WORD Weight value represented by a zero scale analog output: 2 1 Weight value represented by a full scale analog output: 2 3 TOTAL NUMBER OF WORDS 5 TABLE 5-11: BLOCK READ COMMAND NUMBER 8: CONFIGURATION OF ANALOG OUTPUT Block Read Command Number 9: Configuration of Standard RS232 Port (HI 2151/20WC Only) HI 2151/20WC Only.
Chapter 5 - Block Transfers BLOCK READ COMMAND NUMBER 9: Configuration of Standard RS232 Port WORD DEFINITIONS: #WORDS Word Length bits 0 - 7 A value of 0 or 1 [0 = seven bits, 1 = eight bits* Handshake Control bits 8 - 15 A value of 0 or 1 (0 = Hardware, 1 = Software START WORD 1 4 1 5 *Note: Parameters are not used in the HI 2151/30WC Echo bits 0 - 7 Device Address bits 8 - 15 A value of 0 or 1 (0= Off, 1 = On) A value from 0 to 99 TOTAL NUMBER OF WORDS 6 TABLE 5-12: BLOCK READ COMMAND NUMBER
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Read Command Number 11: Auto Zero Tolerance BLOCK READ COMMAND NUMBER 11: Auto Zero Tolerance WORD DEFINITIONS: #WORDS Command number: A value of 11 (decimal) bit 0 1 bit 1 1 bit 2 0 bit 3 1 bit 4 0 bit 5 0 bit 6 0 bit 7 0 bits 8 - 15 Reserved for future use 1 Auto Zero Tolerance A 16 bit number in proper integer format 1 TOTAL NUMBER OF WORDS 2 START WORD 0 1 TABLE 5-14: BLOCK READ COMMAND NUMBER 11: AUTO ZERO TOLERANCE Block Read Comman
Chapter 5 - Block Transfers BLOCK READ COMMAND NUMBER 12: Integrated Technician WORD DEFINITIONS: #WORDS Command number: A value of 12 (decimal) bit 0 0 bit 1 0 bit 2 1 bit 3 1 bit 4 0 bit 5 0 bit 6 0 bit 7 0 bit 8 Reserved for future use 1 Excitation Monitor 1 On/Off bits 0 - 7 A value of 0 or 1 (0 = Off, 1 = On) OK/ERR bits 8 - 15 A value of 0 or 1 (o = OK, 1 = ERR) TOTAL NUMBER OF WORDS START WORD 0 1 2 TABLE 5-15: BLOCK READ COMMAND NUMBER 12: INTEGRATED TECHNICIAN Block Transfer Read Ex
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION FIG. 5-1 BLOCK TRANSFER READ EXAMPLE Block Write Commands About Block Write Commands After the PLC performs a block transfer write, a block read should be performed to evaluate the response code from the HI 2151 to verify that the data was received and implemented. The response word will either show a successful processing of the block or will indicate the first error encountered in processing of the data.
Chapter 5 - Block Transfers Block Write Command Number 51: Activate Scale Functions BLOCK WRITE COMMAND NUMBER 51: Activate Scale Functions WORD DEFINITIONS: #WORDS Command number: A value of 51 (decimal) bit 0 1 bit 1 1 bit 2 0 bit 3 0 bit 4 1 bit 5 1 bit 6 0 bit 7 0 1 START WORD 0 Remote Functions Byte bit 8 Acquire TARE (Set tare value = current gross weight)* bit 9 Initiates print on standard RS232 or optional BCD port* bit 10 Add current Net weight to Total*! bit 11 Clear Peak Hold register*!
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Write Command Number 52: Downloading Setpoint Relay Parameters BLOCK WRITE COMMAND NUMBER 52:Downloading Setpoint Relay Parameters WORD DEFINITIONS: START WORD #WORDS Command number: A value of 52 (decimal) bit 0 0 bit 1 0 bit 2 1 bit 3 0 bit 4 1 bit 5 1 bit 6 0 bit 7 0 bits 8 - 15 Reserved for future use 1 0 Setpoint Enable: bit 8 Enable Relay #8 to evaluate weight bit 9 Enable Relay #7 to evaluate weight bit 10 Enable Relay #6 to evaluate we
Chapter 5 - Block Transfers BLOCK WRITE COMMAND NUMBER 52:Downloading Setpoint Relay Parameters WORD DEFINITIONS: START WORD #WORDS Preact value for setpoint #1 Preact value for setpoint #2 Preact value for setpoint #3 Preact value for setpoint #4 Preact value for setpoint #5 Preact value for setpoint #6 Preact value for setpoint #7 Preact value for setpoint #8 2 2 2 2 2 2 2 2 19 21 23 25 27 29 31 33 Setpoint value for setpoint #1 Setpoint value for setpoint #2 Setpoint value for setpoint #3 Setpoint
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Relay 2 = Net Word 2, bits 0 - 7 = 1110 0101 = E5 (hex) Relay 3 = Rate-of-Change Word 2, bits 8 - 15 = 0000 0110 = 06 (hex) Relay 4 = Peak Relay 5 = Totalizer Relay 6 = Gross Relay 7 = Gross Relay 8 = Gross Block Write Command Number 53: Send Tare Value BLOCK WRITE COMMAND NUMBER 53:Send Tare Value WORD DEFINITIONS: #WORDS Command number: A value of 53 (decimal) bit 0 1 bit 1 0 bit 2 1 bit 3 0 bit 4 1 bit 5 1 bit 6 0 bit 7 0 bit 8 -15 Reserved for futur
Chapter 5 - Block Transfers Block Write Command Number 54: Scale Calibration Action BLOCK WRITE COMMAND NUMBER 54: Scale Calibration Action WORD DEFINITIONS: #WORDS Command number: A value of 54 (decimal) bit 0 0 bit 1 1 bit 2 1 bit 3 0 bit 4 1 bit 5 1 bit 6 0 bit 7 0 1 START WORD 0 Remote Functions Byte bit 8 Setting then clearing this bit tells the instrument that current weight is an empty scale. bit 9 Setting then clearing this bit tells the instrument that current weight is span weight.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Write Command Number 55: Calibration Parameters BLOCK WRITE COMMAND NUMBER 55: Calibration Parameters WORD DEFINITIONS: #WORDS Command number: A value of 55 (decimal) bit 0 1 bit 1 1 bit 2 1 bit 3 0 bit 4 1 bit 5 1 bit 6 0 bit 7 0 bit 8 - 15 Reserved for future use 1 START WORD 0 Units of Measure: bits 0 - 7 0 = pounds, 1 = kilograms Decimal point position (places to right of decimal): bits 8 - 15 A value from 0 to 4 1 1 Totalizer decimal po
Chapter 5 - Block Transfers Block Write Command Number 56: Configuration of Rate-of-Change BLOCK WRITE COMMAND NUMBER 56: Configuration of Rate-of-Change WORD DEFINITIONS: #WORDS Command number: A value of 56 (decimal) bit 0 0 bit 1 0 bit 2 0 bit 3 1 bit 4 1 bit 5 1 bit 6 0 bit 7 0 bit 8 - 15 Reserved for future use 1 START WORD 0 Displayed Rate-of-Change time units: A value of 0 to 2 (0 = sec, 1 = min, 2 = hr) 1 1 Rate-of-Change timebase evaluation period: A value of 0 to 15 from list below: 0 = 1
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Write Command Number 57: BCD Output Configuration BLOCK WRITE COMMAND NUMBER 57: BCD Output Configuration WORD DEFINITIONS: #WORDS Command number: A value of 57 (decimal) bit 0 1 bit 1 0 bit 2 0 bit 3 1 bit 4 1 bit 5 1 bit 6 0 bit 7 0 1 START WORD 0 Format of output: bit 8 If set, will update BCD output when “print” button or remote function is activated.
Chapter 5 - Block Transfers BLOCK WRITE COMMAND NUMBER 58: Configuration of Analog Output WORD DEFINITIONS: #WORDS START WORD Weight value represented by a zero scale analog output: 2 1 Weight value represented by a full scale analog output: 2 3 TOTAL NUMBER OF WORDS 1 TABLE 5-25: BLOCK WRITE COMMAND NUMBER 58: CONFIGURATION OF ANALOG OUTPUT Block Write Command Number 59: Configuration of Standard RS232 Port HI 2151/20WC Only.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION BLOCK WRITE COMMAND NUMBER 59: Configuration of Standard RS232 Port WORD DEFINITIONS: #WORDS 1 Echo bits 0 - 7 Device Address bits 8 - 15 START WORD 5 A value of 0 or 1 (0 = OFF, 1 = ON) A value of 0 to 99 TOTAL NUMBER OF WORDS 6 TABLE 5-26: BLOCK WRITE COMMAND NUMBER 59: CONFIGURATION OF STANDARD RS232 PORT Block Write Command Number 60: Sticker Value NOTE: Not used with the HI 2151/30WC BLOCK WRITE COMMAND NUMBER 60: Sticker Value WORD DEFINIT
Chapter 5 - Block Transfers Block Write Command Number 61: Auto Zero Tolerance BLOCK WRITECOMMAND NUMBER 61: Auto Zero Tolerance WORD DEFINITIONS: #WORDS Command number: A value of 61 (decimal) bit 0 1 bit 1 0 bit 2 1 bit 3 1 bit 4 1 bit 5 1 bit 6 0 bit 7 0 bits 8 - 15 Reserved for future use 1 Auto Zero Tolerance A 16 bit number in proper integer format 1 TOTAL NUMBER OF WORDS 2 START WORD 0 1 TABLE 5-28: BLOCK WRITE COMMAND NUMBER 61: AUTO ZERO TOLERANCE Block Write Command Number 62: Waversav
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Block Transfer Write Example This is a Block Transfer Write (BTW) sub-routine, currently configured to do a BTW 52 of the relay setpoint data. The block length is the only value which needs to be changed to use other block transfer write types. Once called, the routine will write the block until a return code of 06 (BTW OK) is sent.
Chapter 5 - Block Transfers FIG. 5-2 BLOCK TRANSFER WRITE EXAMPLE Integer to Floating Point Routine This example assumes the two words representing the desired weight value have been read with a block transfer read.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION as MSW in memory location N10:9, and as LSW in memory location N10:10. This routine works for all values except the totalizer.
Chapter 5 - Block Transfers FIG. 5-3 INTEGER TO FLOATING POINT ROUTINE Response and Error Codes Each time the PLC performs a block write, it should then perform the response code block read. This block read will return two bytes. The first byte is the command number of the last block write performed. The second byte will be the response or error code returned. If the error code is a NACK (21) then the returned command number will be a 99.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION BLOCK READ COMMAND NUMBER 70: Reading response code after a block write WORD DEFINITIONS # WORDS START WORD Write command number (not 70 but the command number of the write performed) Bits 0 - 7 1 0 Response code from table below Bits 8-15 TOTAL NUMBER OF WORDS 1 TABLE 5-30: BLOCK READ COMMAND NUMBER 70: READING RESPONSE CODE AFTER A BLOCK WRITE Block Read or Block Write Error Codes Block Write Error Codes Error Codes for Block Write 59 5-30
Chapter 5 - Block Transfers 71 72 73 74 75 47 48 49 4A 4B Stop bits must be 0 or 1 Data length must be 0 or 1 Control (Hardware or Software) must be 0 or 1 Device Address must be between 0 and 99 Echo request must be a 0 or 1 Error Code for Block Write Command #53 76 4C Tare greater than span Error Code for Block Write Command #51 77 4D Blind unit option only Error Code for Block Write Command #55 96 97 98 99 100 60 61 62 63 64 Load cell count error No C2™ load cells found Load cell capacity/s
Chapter 6 - Conversions Charts and Formulas CHAPTER 6 - CONVERSION CHARTS AND FORMULAS Hex Chart Relay Status Example Use the Hex Chart to translate bit values to a hex value. For example the bit representative of the Relay status byte when setpoint relays 8,5,3, and 1 are on is (01101001). This eight bit value is represented by two four bit nibbles (0110 and 1001). Looking at the table we see this is equal to a Hex value of 69.
HI 2151 SERIES WEIGHT CONTROLLERS REMOTE I/O OPTION Bit # Bit Status Bit 4 0 = Off Bit 5 1 = On Bit 6 1 = On Bit 7 0 = Off Hex Description Relay #4 status (on/off) Relay #3 status (on/off) 6 Relay #1 status (on/off) Relay #2 status (on/off) TABLE 6-2: RELAY STATUS Bit # 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Decimal Value 32768 16384 8192 4096 2048 1024 512 256 128 64 32 16 8 4 2 1 ONE WORD TABLE 6-3: BINARY TO DECIMAL CHART Block Write Example The followi