Algorithm - National Instruments NI-Motion User Manual

Motion control
Table of Contents

Advertisement

Algorithm

© National Instruments Corporation
Initialize A = 0; B = 500
Set gear master = encoder 4;
Slave = axis 1
Set gear ratio to 1:1
Assuming circumference of the
blade = length of cut
Load appropriate move
constraints for the slave
Needed for the superimposed
(correction) move
Set operation mode to be
relative to captured position
Also called registration move mode
Enable gearing on slave axis
After gearing is enabled, web can
be started, which rotates the knife
Loop waiting for move complete
Enable high-speed capture
Wait for high-speed capture;
Read captured position
Set A = A + 2000
B = B + 2000
Correction =
A – captured position
Load target position =
correction
Start motion on slave
if current position > B
Figure 16-2. Rotating Knife Application Algorithm
16-3
Chapter 16
Rotating Knife
NI-Motion User Manual

Advertisement

Table of Contents
loading

Table of Contents