Read no-read count, Set output condition and output duration – Rockwell Automation 2755-DM9, -DM9E High Speed Decoder User Manual

Page 107

Advertising
background image

Interface

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

7–15

Example:

Command:

NM07NO-READ

Response:

=00CR

Comments:

07 = message length.
NO-READ = header message.
00 = “command complete” response code.
CR = end of message control code for Carriage Return.

Command:

NR

Function:

When sent, this command will return the count in the
no-read counter.

Response:

pppppp<end>=rr<end>

Comments:

NR = Read No-Read command.

pppppp = No-read count, up to 999999.

<end> = end of message code.

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

<end> = end of message code.

Example:

Command:

NR

Response:

=000016CR=00CR

Comments:

000016 = no-read count of 16
CR = end of message control code for Carriage Return.
00 = “command complete” response code.
CR = end of message control code for Carriage Return.

Command:

OCnctttt

Function:

Sets the condition that will assert (turn on) an output and sets
the length of time in milliseconds that an output is turned on.

Response:

=rr<end>

Read No-Read Count

16. Set Output Condition and
Output Duration

Advertising