13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• i8091_SET_DEFDIRDescription:This function is used to define the rotating directions of the X and Y axes on thecontrolling motors. Sometimes, the output direction of the X-axis or Y-axis is in anundesired direction because of the wire connection to the motor or gear train mechanism.In order to unify the output direction, the CW/FW directions of the X/Y axis are defined asan outside going motion through the motor control, and similarly the CCW/BW directionsare defined as the inward motion through the motor control.Syntax:[C]void i8091_SET_DEFDIR(unsigned char cardNo, unsigned char defdirX,unsigned char defdirY)Parameter:cardNO : [Input] The board number (0~19)defdirX : [Input] X axis direction definition(0:NORMAL_DIR, 1:REVERSE_DIR)defdirY : [Input] Y axis direction definition(0:NORMAL_DIR, 1:REVERSE_DIR)Return Value:NoneExample:#define CARD1 1int slot=1;i8091_REGISTRATION(CARD1, slot);i8091_SET_DEFDIR(CARD1, NORMAL_DIR, NORMAL_DIR);Remark:This function can be applied on module: I-8091.LinPAC-8x4x SDK:214

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!