.

MEIXmpAxisGear

Declaration

 
typedef struct   {
 long      *Ptr;
  long      Position;
  long     Delta;
  MEIXmpRatio    Ratio;
} MEIXmpAxisGear;
 

Required Header: xmp.h

Description

MEIXmpAxisGear is an internal controller firmware structure that contains configurations for specifying a master delta position input and ratio.

Warning: Axis gearing ONLY supports servo motor types. Stepper motor types are not supported. Do NOT command motion on the geared (slave) axis, as erratic motion may result.

 
*Ptr

Pointer to the master delta position input.

Position For internal purposes only. Do not use.
Delta For internal purposes only. Do not use.
MEIXmpRatio An internal controller firmware structure that contains the ratio (A/B) configuration.

Sample Code

 
MPIAxisConfig   config;
MEIAxisConfig   meiConfig;
MEIXmpData      *firmware; /* pointer to XMP firmware */ 
void            *ptr;
/* Get pointer to XMP firmware */
returnValue =
  mpiControlMemory(control,
				  (void**)&firmware,
                  NULL);

returnValue = mpiAxisConfigGet(axis, &config, &meiConfig);
 
/* master axis = 2, actual feedback */
meiConfig.Gear.Ptr = &firmware->Motor[2].IO.Encoder[0].Delta;
/* ratio = 1/2 */ 
meiConfig.Gear.Ratio.A = 1;
meiConfig.Gear.Ratio.B = 2;


returnValue = mpiAxisConfigSet(axis, &config, &config2);          

 

See Also

MEIXmpRatio | meiAxisConfigGet | meiAxisConfigSet

 

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