Discrete remote i/o mapping, About discrete remote i/o mapping, General information – Hardy HI 3010 Filler/Dispenser Controller User Manual

Page 23: For reads

Advertising
background image

9

Communications
Installation & Operation

Discrete Remote I/O Mapping

NOTE:

The input and output tables on the HI 3010
device always start with word 0, regardless of
where the words end up in the PLC tables. In the
HI 3030 Byte 0 of Word 0 is reserved and cannot
be used.

About Discrete Remote I/O Mapping

Discrete Remote I/O Mapping is used when you want to
communicate from a 1/4 or 1/2 rack, due to the constraints
when getting information in and out of these units.

General Information

bit:

FEDCBA98 76543210

W0: SWYYYYYY 00000000

S - command-type: 0 = normal 1 = short
W - R/W action: 0 = read 1 = write
Y - depends on W

For Reads:

NOTE:

If command comes from RI, output will be in RO.
If input is DI, output will be in DO.

Read Example: For HI 3010

Read Net Weight into word RSO1 as 16 bit integer in 1/4
rack at address 2, first quarter:

In Mapping write the following:

1.

RSO45=HFI3 (This maps the Net Weight in lbs
into a short int at word 13, RO)

2.

CMD0=RSI0 (This indicates there is a command in
the RIO in-table word 0.)

PLC puts into the Output file (assuming HI3000 is at 1

st

¼

rack 2):

SWA

0:020:

10000001 00000000

QQQRRRRR

0:021:

000000 00101101

S = 1

A short command

W = 0

A read

A = 0

No ACK

NNN = 1

Read one word

RRRRR = 13

Word Offset 13+32, (i.e. RO45)

QQQ = 1

Copy to RO1 . . .

This copies one word from word 45 of the RIO out-table to
word 1 of the RIO out-table. The data becomes available for
RIO discrete PLC reads. Anything that can be mapped can
be selected by the command, including remote data. Larger-
rack users can specify up to 7 words to read into the discrete
I/O area.

For Writes:

NOTE:

There is no command echo for writes.

Write Example 1: For HI 3030

Write 1042 to ingredient 1 Number of Fills:

In Mapping:

W0: 10AX XNNN 0000 0000

command word (LSB unused)

W1: - - - - - - - - QQQR RRRR

data word (MSB unused)

A

If A=1, unit acknowledges by copying data
byte to bits RO0.8~RO0.15

XX

Reserved. Set to zero.

NNN

Number of words to copy out (0 thru 7)

RRRRR

Index in output scratchpad table of first source
word to copy. Scratchpad starts at word 32 of
Output Table. Data will be copied, without
conversion, to word QQQ and subsequent
words

QQQ

Destination word in Output table of first copied
word (note that RO1 is first usable full RIO
word)

W0: 11MNNNNN 00000000

Command Word (LSB
unused)

W1:

JJJJJJJJ JJJJJJJJ

First Data Word

(W2:

J J J J J J J J J J J J J J J J J J

)

Second (optional) data word

M

Data Length
0 = 1 word
1 = 2 words (not usable for 1/4 rack)

NNNNN

Index in input scratchpad table of word to
change. One or two data words will be
copied without conversion. Scratchpad
table begins at word 32 of Input Table.

Advertising