ICPDAS
I-8092F Software User Manual
22
2.16 Position Counter Variable Ring
void
i8092MF_VRING_ENABLE(
BYTE
cardNo
,
WORD
axis
,
DWORD
nVRing
)
Description:
This function enables the linear counter of the assigned axes as variable ring
counters.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
nVRing
:
Maximum value of the ring counter
(-2,147,483,648 ~ +2,147,483,647)
Return:
None
Example:
i8092MF_ VRING_ENABLE(1, AXIS_X, 9999);
//set the X axis of module 1 to be a ring counter. The encoder
//values will be 0 to 9999.
Max. ring encoder value = 9999
The encoder value is 0 to 9999. When the
counter value reach 9999, an adding pulse
will cause the counter to reset to 0. When the
counter value is 0, a lessening pulse will let
the counter set to 9999.
Note: 1. This function will set the LP and EP simultaneously.
2. If this function is enabled, the software limit function cannot be used.
void
i8092MF_VRING_DISABLE(
BYTE
cardNo
,
WORD
axis
)
Description:
This function disables the variable ring counter function.
Parameters:
cardNo
:
Module number
axis
:
Axis or axes (Please refer to Table 2-1)
Return:
None