APX-3302 User's Manual (OM110000019A)
-75 -
/////////////////////////////////////////////////////////////////////////////////////
// Point B: Finish capturing of outward trip //
/////////////////////////////////////////////////////////////////////////////////////
// Outward trip : Finish "50" line acquiring. Then stop capturing and configure return trip setting
// Start capturing at absolute encoder count "9900". Configure as "CCW".
// Stop capturing (waiting for "50" line input)
AcapGrabStop(hDev, INPUT_CH);
// Configure encoder (return trip)
AcapSetEncoder(hDev, INPUT_CH, 2, 0, 0, 0, 1, 0, 9900, 100);
//--- Since encoder count is already started, no need to configure here. ---
// Snap
AcapGrabStart(hDev, INPUT_CH, 1)
/////////////////////////////////////////////////////////////////////////////////////
// Point C : Start capturing of return trip //
/////////////////////////////////////////////////////////////////////////////////////
// Coincidence pulse will be generated and start capturing, when absolute count reaches "9900".
// You can check current count value by the 11
th
argument of "AcapGetEncoder" or
"ACL_ENC_ABC_COUNT".
// Get counting value
ULONG ulAbsCount;
AcapGetEncoder (hDev, INPUT_CH, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &ulAbsCount);)
AcapGetInfo (hDev, INPUT_CH, ACL_ENC_ABS_COUNT, 0, &ulAbsCount);)
/////////////////////////////////////////////////////////////////////////////////////
// Point D : Finish capturing of return trip //
/////////////////////////////////////////////////////////////////////////////////////
// Return trip : Finish "50" line acquiring. Then stop capturing and configure return trip setting
// Start capturing at absolute encoder count "5000". Configure as "CW".
// Stop capturing (waiting for "50" line input)
AcapGrabStop(hDev, INPUT_CH);
// Configure as CW (outward trip)
AcapSetEncoder(hDev, INPUT_CH, 2, 0, 0, 0, 0, 0, 5000, 100);
//--- Since encoder count is already started, no need to configure here. ---
// Snap
AcapGrabStart(hDev, INPUT_CH, 1)
Содержание APX-3302
Страница 1: ...APX 3302 User s Manual ...