.

mpiMotorConfigGet

Declaration

long mpiMotorConfigGet(MPIMotor       motor,
                       MPIMotorConfig *config,
                       void           *external)
  Required Header: stdmpi.h

Description

mpiMotorConfigGet gets a Motor's (motor) configuration and writes it into the structure pointed to by config, and also writes it into the implementation-specific structure pointed to by external (if external is not NULL).

The configuration information in external is in addition to the configuration information in config, i.e, the configuration information in config and in external is not the same information. Note that config or external can be NULL (but not both NULL).

Remarks

external either points to a structure of type MEIMotorConfig{} or is NULL.

 
Return Values
MPIMessageOK  
MEIMotorMessageDEMAND_MODE_NOT_SET  
MEIMotorMessageDEMAND_MODE_UNSUPPORTED  

Sample Code


MEIMotorConfig motorConfig;
mpiMotorConfigGet( motor0, NULL, &motorConfig );

motorConfig.Io[0].Type = MEIMotorIoTypeBRAKE;

mpiMotorConfigSet( motor0, NULL, &motorConfig );
 

See Also

MEIMotorConfig | mpiMotorConfigSet

 

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