C sample automate program, Appendix c, Sample automate program – Rockwell Automation 61C365 4 Output 4-20mA Analog Rail User Manual

Page 41

Advertising
background image

CĆ1

Appendix C

Sample AutoMate Program

The following AutoMate program sequences can be used to interface to an

AutoMate Processor that does not support the AOUT block. Over a period of

four scans, the program below maps registers 40 through 43 to the four

channels of an Analog Rail module in Rail mode.
Registers Used
0

Register that is configured to be updated at the end of scan.

40

Value to output to channel 0

41

Value to output to channel 1

42

Value to output to channel 2

43

Value to output to channel 3

44

Counter to select channel to operate this scan

45

Coils

End of Scan

If counter = 0, then move the data in register 40 to register 0.

44.17

[Ă/Ă]

Ă45.00

(ăă)

EN

MOVE

EN

LENGTH: 1

SRC: 40

DEST: 0

44.16

[Ă/Ă]

If counter = 1, then move the data in register 41 to register 0.

44.17

[Ă/Ă]

Ă45.01

(ăă)

EN

MOVE

EN

LENGTH: 1

SRC: 41

DEST: 0

44.16

[Ă/Ă]

Advertising