
BUTTON that will generate a subprogram, then key in “I8094MF”, then it will appear a
windows guide to help user to select a relevance function.
Select “i8094MF.REGISTRATION” and key in (cardNo,3), that indicate the i8094( or
i8094F) on third slot is registered to 0
th
module. The detailed procedure is as below:
//====='Step 1 Driver init
if (!Driver_Open)
{
I8094MF.REGISTRATION(cardNo,3);
Driver_Open
=
true;
}
//====='Step 2 CONFIG IO
I8094MF.RESET_CARD (cardNo);
I8094MF.SET_PULSE_MODE (cardNo, AXIS_XYZU, 2);
//set the pulse output mode
I8094MF.SET_ALARM (cardNo, AXIS_XYZU, 0, 0);
//disable the SERVO ALARM Input
I8094MF.SET_ENCODER (cardNo, AXIS_XYZU, 0, 0, 0);
//set the encoder input type
I8094MF.SET_MAX_V (cardNo, AXIS_XYZU, 16000);
//set the max speed for XYZU
I8094MF.EXD_DISABLE (cardNo, AXIS_XYZU);
//set the external input Off
I8094MF.SET_LP (cardNo, AXIS_XYZU, 0);
//set the Logic position =0
I8094MF.SET_EP (cardNo, AXIS_XYZU, 0);
//set the Encoger position =0
I8094MF.SET_A (cardNo, AXIS_XYZU, 1000);
//set the Acc =1000
I8094MF.SERVO_ON (cardNo, AXIS_XYZU);
//set the Servo_ON to servo motors
//======'Step 3 Check ERROR
http:/www.icpdas.com I8094Getting Started ManualVer.2.3 2008/4/28
46