Command word, Writing to the m0 file, For example – Hardy HI 1746-WS User Manual

Page 38: Writing to the o file, Words 1-7

Advertising
background image

HI 1746-WS WEIGH SCALE MODULE

4-8

Writing to the 32
Word Logical O
and logical M0
files

You must Decide whether you are going to write to
the M0 or O file.

Command Word

Writing to the
M0 file

Bits 15-14 set to “11”, will specify a
write to the logical M0 file.

Bits 13-8 set as a binary value indicat-
ing number of words to write (e.g. 2
would be “000010”.

Bits 7-0 set as a binary value indicat-
ing offset word to start writer at (e.g.
28 would be “00011100”.

For Example

A command word set to binary value “1100 0010
0001 1100” would indicate a write of 2 words to the
logical M0 file starting at offset word 28.

Writing to the
O file

Bits 15-14 set to “01”, will specify a
write to the logical O file.

Bits 13-8 set as a binary value indicat-
ing number of words to write (e.g. 2
would be “000010”).

Bits 7-0 set as a binary value indicat-
ing offset word to start write at (e.g. 7
would be “00000111”).

For Example

A command word set to binary value “0100 0010
0000 0111” would indicate a write of 2 words to the
logical O file starting at offset word 7.

Words 1-7

Data to be written to the M0 or O files. Number of
words determined by setup of “Command Word

Configure the
Read and Write

Binary value indi-
cating number of
words to write

Binary value indi-
cating starting off-
set for write/read
to begin.

Command Word - 16 bits

Advertising