Geo MACRO Drive User Manual
104
Setting Up Discrete Inputs and Outputs
MS0,MI926=1010
; Set back end compare in B
MS0,MI923=0
; No auto-increment
MS0,MI929=0
; Prepare initial value of 0
MS0,MI928=1
; Enable direct write (resets immediately to zero)
{Command to start the move}
Setting up for Multiple Pulse Outputs
By using the auto-increment feature, it is possible to create multiple compare pulses with a single software setup
operation. When the auto-increment register is a non-zero value, its value is added to or subtracted from one
compare register’s value automatically when the other compare value is matched. PMAC keeps track of the
direction of incrementing, so only positive values should be used in the auto-increment register, even if the
encoder will be counting in the negative direction.
The setup for multiple pulses is like the setup for a single pulse, except that a non-zero value must be entered
into the auto-increment register and the value entered for the back edge must be that of the first back edge minus
the auto-increment if the move will be positive or that of the first back edge plus the auto-increment value if the
move will be negative.
In other words, the starting values to the two compare registers must “bracket” the starting position. When either
compare value is matched by the encoder counter, the other compare value is incremented in the direction of
movement.
Starting Position
B
0
A
0
B
1
A
1
Auto-Increment
Example:
Starting with the above example, the compare output should be between 1000 (A
0
) and 1010 (B
1
)
counts, but add an auto-increment value of 2000 counts with a starting position of about 100 counts. The
program code to start the sequence could be:
MS0,MI925=2000
; Auto-increment of 2000 encoder counts
MS0,MI926=1000
; First front edge (A0) at 1000 counts
MS0,MI923=(1010-1000)
;[1010-MS0,MI926]First back edge (B1) at 1010 counts
MS0,MI929=0
; Prepare initial value of 0
MS0,MI928=1
; Enable direct write (resets immediately to zero)
Summary of Contents for Geo MACRO
Page 2: ......
Page 6: ......
Page 18: ...Geo MACRO Drive User Manual 6 Introduction...
Page 26: ...Geo MACRO Drive User Manual 14 Specifications...
Page 28: ...Geo MACRO Drive User Manual 16 Receiving and Unpacking...
Page 78: ...Geo MACRO Drive User Manual 66 Software Setup...
Page 88: ...Geo MACRO Drive User Manual 76 Setting Up Secondary Encoders...
Page 90: ...Geo MACRO Drive User Manual 78 Setting Up Turbo PMAC Conversion Table...
Page 110: ...Geo MACRO Drive User Manual 98 Setting Up Turbo Motor Operation...
Page 130: ...Geo MACRO Drive User Manual 118 Troubleshooting...
Page 175: ...Geo MACRO Drive User and Reference Manual Absolute Power On Online Commands 163...
Page 176: ...Geo MACRO Drive User Manual 164 Useful Notes...
Page 177: ...Geo MACRO Drive User and Reference Manual Appendix A 165...
Page 182: ...Geo MACRO Drive User Manual 170 Appendix A Cable Drawings...
Page 183: ...Geo MACRO Drive User and Reference Manual Appendix A 171...
Page 184: ...Geo MACRO Drive User Manual 172 Appendix A...
Page 185: ...Geo MACRO Drive User and Reference Manual Appendix A 173...
Page 186: ...Geo MACRO Drive User Manual 174 Appendix A...
Page 187: ...Geo MACRO Drive User and Reference Manual Appendix A 175...
Page 191: ...Geo MACRO Drive User and Reference Manual Appendix A 179...
Page 197: ...Geo MACRO Drive User and Reference Manual Appendix C 185...