Download Magellan Motion Processor User`s Guide
Transcript
6 ,"-"@$)$-+0R4")$+"&4+_-$"`R(*&)/ TI2I7+_-$"`R(*&)+:E"@R%$/ Here are a few examples to illustrate how breakpoints may be used. Example TD: The host would like axis 1 to change velocity when the encoder position reaches a particular value. Breakpoint #1 should be used. This is accomplished using the following command sequence. Note that this sequence assumes that the UpdateMask has been left at its default value of trajectory and position loop update. SetPosition Axis1E 123456 // Load destination SetVelocity Axis1E 55555 // Load velocity SetAcceleration Axis1E 500 // Load acceleration SetDeceleration Axis1E 1000 // Load deceleration Update Axis1 // Make the move6 Profile and position loop parameters are // updatedE of which only profile parameters have been changed6 // Load a new velocity of 111E111 but do not send an Update SetVelocity Axis1E 111111 SetBreakpointValue Axis1E 0E 100000 // Load 100E000 into the comparison register for breakpoint 1 SetBreakPointUpdateMask Axis 1E 0E Profile // Update profile parameters only SetBreakpoint Axis1E 0E Axis1E UpdateE GreaterOrEqualActualPosition // Specify a positive actual position breakpoint on axis 1 // which will result in an Update when satisfied for // breakpoint 16 Note that this is the last command in the // breakpoint definition sequenceE since this is the command // that results in the breakpoint comparison being initiated6 This sequence makes an initial move, and loads a breakpoint after the first move has started. The defined breakpoint will result in the velocity being updated to 111,111 when the actual position reaches a value of 100,000. Therefore, at 100,000, the axis will accelerate from a velocity of 55,555 to 111,111 with an acceleration value of 500. Note that any buffered values that are not re-sent will remain in the buffered registers. When the breakpoint performs an Update, the values for position, acceleration, and deceleration are unchanged and are therefore copied over to the active registers without modification. Example T2: The host would like axis 1 to perform an emergency stop whenever the FH&s!2 signal for axis 3 goes high. In addition, the axis 1 acceleration and derivative gain factor should change whenever a particular commanded position is achieved on axis 4. This is accomplished using the following command sequence. 4L SetPosition Axis1E 123456 SetVelocity Axis1E 55555 SetAcceleration Axis1E 500 SetDeceleration Axis1E 1000 Update Axis1 // Load destination // Load velocity // Load acceleration // Load deceleration // Make the move Vassumes that // updatemask already setW SetBreakpointValue Axis1E 0E 0x400040 // Load mask and sense word of 0x40E 0x40 // Vbit 6 must be highW for breakpoint 1 Magellan'Motion Processor User’s Guide