Read output counter, Set message format – Rockwell Automation 2755-DM9, -DM9E High Speed Decoder User Manual
Page 102

Interface
Chapter 7
Host Commands Using the RS-232 or RS-422
7–10
Example:
Command:
IM2#1
Response:
=00LF
Comments:
2 = message length.
#1 = source identification message.
00 = “command complete” response code.
LF = end of message control code for Line Feed.
Command:
MCn
Function:
Reads the output counter.
Response:
mmmmmm<end>=rr<end>
Comments:
MC = Read output counter command.
n = output counter. This value must be from 1 through 8.
mmmmmm = output counter 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:
MC3
Response:
000121LF=00LF
Comments:
000121 = Output #3 has been activated 121 times since the
last restart or reset.
LF = end of message code for Line Feed
00 = “command complete” response code
LF = end of message code for Line Feed
Command:
MFabcdefgdddssshx
Function:
Specifies the format of messages.
9. Read Output Counter
10. Set Message Format