Synopsis
-----------------------------------------
File Name     : InMotion.src
Author        : RLWS
File Version  : 1.00
Creation Date : June 19, 2009
Category      : iRite Sample Programs



Description
-----------------------------------------
This program is an example of how to capture the weight of   
a package on a conveyor scale.  This program will make the   
assumption that two photoeyes will be used to detect the     
container edges.  One photo eye at the entrance of the scale 
will detect the falling edge of the container that means the 
containter is totally on the scale.  A photoeye mounted at   
the exit point of the scale means the object is going to     
leave the scale so sampling is complete.  In this sample the 
weight samples will be straight averaged.  This is very      
basic inmotion weighing there are steps that should be taken 
to ensure the samples are not overflowed.  There is room for 
300 samples, A/D speed needs to be configured.  The system   
should time out if the stop photoeye is not seen within a    
time limit.  These are precautions that should be addressed  
but are outside of this sample program.                      
                                                             
Familiarity with digital inputs, setpoints, and arrays are   
helpful in understanding how this sample works.  The photo-  
eye wiring is required in this manner due to how the digital 
inputs are tied to the setpoints.                            



Dependencies
-----------------------------------------
Use InMotion.920 with this program.




Revision History
-----------------------------------------
   1.00 06/19/09 - Released to web site.