13.07.2015 Views

User manual - ICP DAS USA

User manual - ICP DAS USA

User manual - ICP DAS USA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• I8090_GET_ENCODERDescription:This function is used to obtain the counter value of the selected axis on the specifiedencoder card. This counter value is defined in the short (16-bit) format.Syntax:[ C ]unsigned int I8090_GET_ENCODER(unsigned char cardNo, unsigned char axis)Parameter:cardNo : [Input] Specify the LinPAC-8000 slot (Range: 1 to 8)axis : [Input] The selected axis. 1: X_axis; 2: Y_axis; 3: Z_axisReturn Value:A 16 bits unsigned integer value.Example:unsigned char slot=1;unsigned int address=0x0;unsigned int data;I8090_REGISTRATION(slot, address);I8090_INIT_CARD(slot, ENC_QUADRANT, ENC_QUADRANT,ENC_QUADRANT);data= I8090_GET_ENCODER(slot, X_axis);//The data value is the X-axis encoder value.Remark:This function can be applied on module: I-8090.LinPAC-8x4x SDK:205

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

Saved successfully!

Ooh no, something went wrong!