
I/O Ports and Registers
CNT24-4(PCI)
54
Status data
(Command CH0:01h, CH1:06h, CH2:0Bh, CH3:10h)
D7
D6
D5
D4
D3
D2
D1
01h/06h/0Bh/10h
AI
Z
A
B
1
U/D
EQ
U
D0
To monitor signal input, counting direction, count match and
invalid input, output a command to output port +0 and read input
port +1.
AI :
This bit changes to "1" (pulse invalid input) if A-phase and
B-phase change at the same time for 2-phase input or if the
UP pulse and DOWN pulse change at the same time.
1 : Invalid input
0 : No invalid input
Z :
This bit shows the Z-phase input status
<Positive logic>
1 : Z-phase input status "1"
0 : Z-phase input status "0"
<Negative logic>
1 : Z-phase input status "0"
0 : Z-phase input status "1"
A :
This bit shows the A-phase input status
1 : A-phase input status "1"
0 : A-phase input status "0"
B :
This bit shows the B-phase input status
1 : B-phase input status "1"
0 : B-phase input status "0"
U/D : Counting direction status
This status bit shows the counting direction of the current.
0 : Counting up
1 : Counting down
EQ : Detected match
0 : Counter value and register value matched.
1 : Counter value and register value did not match.