Read last host message – Rockwell Automation 2755 Enhanced Decoder Series B User Manual

Page 272

Advertising
background image

16–7

PCCC Host Commands

Publication 2755-833

The following command reads the value of output counter 1:

7

5

1

3

2

4

6

0

0

2

4

5

1

3

STS= 00

TNS

High Byte

Low Byte

LSB

Size = 4

Read Output Counter 1

00H

STS= 00H

TNS

High Byte

Low Byte

MSB

LSB

Read Reply

Counter Data

604H

7

6

CMD Reply = 41H

CMD= 01H

MSB

You can read more than one counter, however the read operation
must specify an address within the valid address range and start on
an address boundary. If you try to read outside a valid address range,
the reply returns with a status of 10H (invalid address).

Read Last Host Message

The last message sent to the host is stored at address 800H. The
command and reply format for reading the last host message is:

0

2

4

6

5

1

3

0

2

4

5

1

3

7

STS= 00H

Address = 800H

TNS

High Byte

Low Byte

MSB

LSB

CMD= 01H

Size (Unused)

Read Last Host Message

00H

STS= 00H

TNS

High Byte

Low Byte

MSB

LSB

Reply

Data from Last Host Message

CMD Reply = 41H

Advertising