Rockwell Automation 61C613 16 Channel Analog Input Module User Manual
Page 25

4Ć9
4.3.3
Writing Commands with the AutoMate
The following example is an AutoMate program that will write a
RESET command to the module and read the ready bit. This
program can be used to send any command from the AutoMate to
the module. See Appendices G, H, and I for more information.
EN
EN
MOVRM
LENGTH: 1
SRC: 3000
VALUE:
ADDRS: 400000
I/OĆM: M
B,H,W,S: B
40.00
EN
EN
MOVRM
LENGTH: 1
SRC: 3001
VALUE:
ADDRS: 400001
I/OĆM: M
B,H,W,S: B
40.01
EN
EN
MOVRM
LENGTH: 1
SRC: 3002
VALUE:
ADDRS: 400002
I/OĆM: M
B,H,W,S: B
40.02
EN
EN
MOVRM
LENGTH: 1
DEST: 2003
VALUE:
I/OĆM: M
B,H,W,S: B
40.03
This move register to memory (MOVRM)
function executes the RESET command.
SOURCE
3000 Ć 0049 Ć M+0 Ć RESET
REGISTER
3001 Ć 0000 Ć M+1 Ć NOOP
3002 Ć 0000 Ć M+2 Ć NOOP
DESTINATION
ADDRESS
400000 is slot #4 at M+0
DESTINATION
ADDRESS
400001 is slot #4 at M+1
DESTINATION
ADDRESS
400002 is slot #4 at M+2
SOURCE
ADDRESS
400003 BIT 0
The ready bit for the command to have executed is
at M+3 bit 0. Once the ready goes high, the data
coming back at M+0, M+1, and M+2 is valid.