
ICPDAS
I-8092F Software User Manual
168
Example of home search using a home signal (IN1) only.
Operation
Input signal and logical level
Search direction Search speed
Step 1
Near home signal (IN0) is active (low)
-
20000 (PPS)
Step 2
Home signal (IN1) signal active (low)
-
500 (PPS)
Step 3
Not executed
Step 4
35000 pulse offset
+
20000 (PPS)
Fig. A-40 Hardware disposition for home operation example 2
Demo Program:
Example of home search using a home signal (IN1) only.
Parameters:
cardNo=1, motion axis=0xf (AXIS_ALL)
i8092_SET_R(cardNo, 0xf, 800000)
// Set Multiple=10
i8092_HOME_STEP1(cardNo, 0xf, 1, 1);
// Set Step1 is executed and negative direction for 2-axes
i8092_HOME_STEP2(cardNo, 0xf, 1, 1);
// Set Step2 is executed and negative direction for 2-axes
i8092_HOME_STEP3(cardNo, 0xf, 0, 0);
// Set Step3 is non-executed
i8092_HOME_STEP4(cardNo, 0xf, 1, 0);
// Set Step4 is executed and positive direction for 2-axes
i8092_SET_SV(cardNo, 0xf, 500);
// Set start velocity=500 (PPS)
i8092_SET_V(cardNo, 0xf, 2000);
// Set drive velocity=2000 (PPS)
i8092_SET_A(cardNo, 0xf, 80);
// Set acceleration=80 (PPS/Sec)
i8092_SET_HV(cardNo, 0xf, 500);
// Set home speed=500 (PPS)
i8092_SET_PULSE(cardNo, 0xf, 20000);
// Set offset pulse=20000
i8092_HOME_START(cardNo, 0xf);
// Starts execution of automatic home search
i8092_STOP_WAIT(cardNo, axis);
// Wait drive stop
Sleep(500);
// Delay 500ms, In BC use Delay(500);
i8092_SET_LP(cardNo, axis, 0);
// Clear LP counter
i8092_SET_EP(cardNo, axis, 0);
// Clear EP counter