Clear package count – Rockwell Automation 2755-DM9, -DM9E High Speed Decoder User Manual

Page 108

Advertising
background image

Interface

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

7–16

Comments:

OC = Set output condition and duration command.

n = output number. This value must be from 1 through 8.

c = condition that will assert an output:0 = None
1 = Read (Package)
2 = No-Read (Package)
3 = Match-Complete
4 = Match Entry In Table
5 = Read and No Match
6 = No-Read or No-Match
7 = Auto Load
8 = Auto Load (INPUT)

(Only if n = 8)

tttt = time in milliseconds that the output will be turned on.
Value must be in the range of 0010 to 9999.

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

<end> = end of message code.

Example:

Command:

OC510110

Response:

=00CR

Comments:

5 = specifies output #5.
1 = specifies an output with Read (Package).
0110 = sets output duration to 110 milliseconds.
00 = “command complete” response code.
CR = end of message code for Carriage Return.

Command:

PC

Function:

When sent, this command will clear the package count (set
to zero).

Response:

=rr<end>

Comments:

PC = Clear package count command.

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

<end> = end of message code.

17. Clear Package Count

Advertising