Enable Input starts and stops the count operation based on signals from an input terminal. The count operation runs while the input signal is ON.
To use Enable Input, you need to also use the system variable #L_ExIOCntInExtCtrl. #L_ExIOCntInExtCtrl is a system variable you can use to check the status of, and make changes to, the Enable Input function's enable/disable setting.
|
Input: Pulse input
#L_ExIOCntInExtCtrl g: Allow enable input bit c: Allow enable input status bit
X1: Enable Input
#L_HSC*_HCV: Current Counter Value |
1) Turn ON the #L_ExIOCntInExtCtrl system variable's enable property (g).
2) After the I/O driver is set up to allow enable input, the #L_ExIOCntInExtCtrl system variable's allow enable input status (c) turns ON.
3) On confirming allow enable input status (c) is ON, turn ON enable input (X1) to start the count operation.
4) Turn OFF enable input (X1) to stop counting.
5) Turn OFF allow enable input (g) to also turn OFF the allow enable input status (c), and stop the count operation regardless of inputs from Enable Input (X1).
Count operation stops when either enable input or allow enable bit is turned OFF.
You can control the start/stop of the high speed counter even with the system variable (#L_ExIOSpCtrl). When used at the same time as the enable input function, the count operation runs when either of the conditions is met.
Setting Up in GP-Pro EX
LT4000 Series
From the [Project] menu's [System Settings], click [I/O Driver] and select the [2 Phase Counter].
Click the [CH1&2] tab and select [Enable Input].
Allow enable input / Allow enable input status bit
When using enable input, turn ON the #L_ExIOCntInExtCtrl system variable's allow enable input bit.
#L_ExIOCntInExtCtrl
|
Bit Number |
Feature |
Type |
Details |
Display Unit |
|
LT4000 |
LT3000/STC6000 |
|||||
c |
4(n-1)+2 |
Enable Input Status |
Status |
1: The enable input bit (c) turns ON, and the enable input function is ready. 0: The enable input bit (c) turns OFF, and the enable input function is disabled. |
|
- |
g |
4(n-1)+18 |
Enable Input |
Control While ON |
Turns on the enable input function. To activate the count operation, turn on both this bit and the enable input signal. |
|
- |
* To find the bit number associated with each CH, calculate by replacing "n" with the CH number.