Chapter 6 Global Constant and Global Variable
6-4
6.2 Global Variable
1. The range of output data
Channel 0 Channel 1 Contents
_xy_CH0_CNT _xy_CH1_CNT Current count value
_xy_CH0_FRQ _xy_CH1_FRQ Count latch
_xy_CH0_LTH _xy_CH1_LTH Sampling count
_xy_CH0_RNG _xy_CH1_RNG Input frequency count
_xy_CH0_RPU _xy_CH1_RPU Revolution per unit time
Remark
(1) Here, ‘x’ means the base number which the high speed counter module is mounted, and ‘y’ means the slot number of it.
(2) It is double word (dword) to the data type of the range of output data.
2. The display of operation status and the range of operation command
Output (CPU Module Å High speed counter) Input (CPU Module Æ High speed counter)
Channel
Status Contents Command Contents
_xy_CH0_DN
Count Up/Down status
_xy_CH0_CNTEN
Count enable (level)
_xy_CH0_EXTPRE
Input detection of
external preset
_xy_CH0_PREEN
Preset enable (edge)
_xy_CH0_CRY
Carry detection
_xy_CH0_DWNCNT
Up/Down count selection (level)
_xy_CH0_BRW
Borrow detection
_xy_CH0_AUXEN
Additional function enable(level/edge)
_xy_CH0_AUXING
In operation of additional
function
_xy_CH0_CMPEN
Comparison enable (level)
_xy_CH0_CMPOUT0
The status of
comparison output 0
_xy_CH0_OUTEN
Comparison output enable (level)
_xy_CH0_CMPOUT1
The status of
comparison output 1
_xy_CH0_EQ0RST
Equal (=) reset of comparison
output 0 (edge)
_xy_CH0_ERR
Error detection
_xy_CH0_EQ1RST
Equal (=) reset of comparison
output 1 (edge)
_xy_RDY
Module ready
_xy_CH0_CRTBRW_RST
Carry/Borrow reset (edge)
-
-
_xy_CH0_EXTPST_EN
External preset selection (edge)
-
-
_xy_CH0_EXTAUX_EN
Selection of external additional
function (edge)
Channel0
-
-
_xy_CH0_EXTPST_RST
Detection reset of external preset(edge)
_xy_CH1_DN
Count Up/Down status
_xy_CH1_CNTEN
Count enable (level)
_xy_CH1_EXTPRE
Input detection of
external preset
_xy_CH1_PREEN
Preset enable (edge)
_xy_CH1_CRY
Carry detection
_xy_CH1_DWNCNT
Up/Down count selection (level)
_xy_CH1_BRW
Borrow detection
_xy_CH1_AUXEN
Additional function enable(level/edge)
_xy_CH1_AUXING
In operation of additional
function
_xy_CH1_CMPEN
Comparison enable (level)
_xy_CH1_CMPOUT0
The status of
comparison output 0
_xy_CH1_OUTEN
Comparison output enable (level)
_xy_CH1_CMPOUT1
The status of
comparison output 1
_xy_CH1_EQ0RST
Equal (=) reset of comparison
output 0 (edge)
_xy_CH1_ERR
Error detection
_xy_CH1_EQ1RST
Equal (=) reset of comparison
output 1 (edge)
- - _xy_CH1_CRTBRW_RST
Carry/Borrow reset (edge)
- - _xy_CH1_EXTPST_EN
External preset selection (edge)
- - _xy_CH1_EXTAUX_EN
Selection of external additional
function (edge)
Channel1
- - _xy_CH1_EXTPST_RST
Detection reset of external preset(edge)
Remark
It is bool type to the data type of the display of operation status and the range of operation command.