.

meiSequenceCompile

Declaration

 
long meiSequenceCompile(MPISequence sequence)
  Required Header: stdmei.h

Description

meiSequenceCompile "compiles" a sequence object by reading its list of Command objects and then creating an equivalent list of XMP commands.

 
sequence a handle to the Sequence object.
   
 
Return Values
MPIMessageOK  

Compiling Program Sequencer Commands

An MPICommand will "compile" into one or more MEIXmpCommand{}s, each of which takes up a slot in the MEIXmpCommandBuffer{}. In general, an MPICommand will compile into a single MEIXmpCommand{}, but an MPICommand of type MPICommandTypeMOTION [with a motionCommand of MPICommandMotionSTART (i.e. mpiMotionStart(...))] will require several MEIXmpCommand{}s.

How many sequencer commands an MPI sequence command compiles to depends on the number of axes and number of positions in the move. The next table shows how many xmp sequencer commands it takes to do the equivalent of an mpiMotionStart(...).

Number of Sequencer Commands to be equivalent to mpiMotionStart(...)
Number of required
sequencer commands
To do this:
axisCount + One MEIXmpCommand{} per axis to write the axis number to MEIXmpLinkBuffer{}.MSLink[].Axis[].AxisNumber
1+ 1 + One MEIXmpCommand{} to write axisCount to MEIXmpLinkBuffer{}.MSLink[].Axes
1+ One MEIXmpCommand{} to write the MEIXmpMotionType{} to MS[].Mode.
(((axisCount*pointCount) + 3) / 4) + One MEIXmpCommand{} for every four MEIXmpPoint{}s written to PointBuffer.Point[]
axisCount + One MEIXmpCommand{} per axis to load the MEIXmpPoint(s)
1 One MEIXmpCommand{} to start the motion

See Also

 

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering