Read package count, Reset decoder – Rockwell Automation 2755-DM9, -DM9E High Speed Decoder User Manual

Page 109

Advertising
background image

Interface

Chapter 7
Host Commands Using RS-232 or RS-422

7–17

Command:

PR

Function:

Read the Package Count

Response:

pppppp<end>=rr<end>

Comments:

PR = Read package count command

pppppp = package count. Maximum value of 999999.

<end> = end of message code.

rr = response code, refer to Table 7.B.

<end> = end of message code.

Example:

Command:

PR

Response:

000075LF=00LF

Comments:

000075 = number of packages counted by the decoder. The
response can equal up to 999999.
LF = end of message code for Line Feed.
00 = “command complete” response code.
LF = end of message code for Line Feed.

Command:

RE

Function:

Reset decoder. Recalls the configuration from EEPROM
and restarts the decoder.

Response:

=97<end>

Comments:

The response =97 indicates the command has been received
and the decoder is resetting.

<end> = end of message code.

Note: The reset operation takes approximately 5 seconds.

Command:

RD

Function:

Reset decoder to default configuration and saves the default
configuration to the decoder’s memory (EEPROM) and then
restarts the decoder.

18. Read Package Count

19. Reset Decoder

20. Set Configuration to Default
Values, Save to EEPROM and
Restart

Advertising