Block read command setup, Block read example – Hardy HI 2151/30WC Single-Scale Controller User Manual

Page 23

Advertising
background image

Section 4: Block Reads

17

a.

Enter the following information to output to the weight controller:

K1: Contains Hex 5400 (Selects Block Write #84: Selects Read Summary Data)

K2: Contains Hex 5A00 (Selects Block “90" error code:)

b. MOVW1: Downloads the information in K1 & K2 into WY17-WY18 (Weight

Controller)

c. Data is read to: WX1-WX2:

WX1: Contains Hex 5A00 (Block Read Summary Data #90)

WX2: Contains Error Code (Error code number from the Error Code Table,

See Below)

4.5

BLOCK READ COMMAND SETUP

1.

Use the Block Write Command 84 (54 hex) to select the Block Read Number(s).

2.

On initial start up if no Block number is selected, the PROFIBUS Interface Option
will return a Default Block Number, which is Block Read Data number 20 (14 hex):
Instrument Identification.

Block Write Command Number 84: Select Block Read Data
Byte definitions:

Block Write Number 84 (Hex 54)
Select Read Type
Block Read Value 0
Enter Block Number

4.6

BLOCK READ EXAMPLE

1. The following example is a setup to read the Full Status and Weight Data from the HI

2151 Series Weight Controller.

Move Word 1 (MOVW1) selects the Block to Read, in this case 20 (14 hex) - Full
Status and Weight Data. Block 20 (14 hex) has 15 words, therefore the data is
transferred to WX1 through WX15.

K1: Contains hex 5400 (Block 84: Select Read Summary Data)

K2: Contains hex 1400 (Block 20: Full Status and Weight Data - The block
number to read)

C1: When C1 is ON, Block Read 20 information is read to WX1-WX15

MOVW1: Downloads the information in K1 and K2 into WY17 and WY18 (weight
controller)

Data is read to WX1 - WX15

Advertising