Professional Documents
Culture Documents
Outline
Phase A
Phase B
■ Programming Technique
When using the phase differential input, set the high-speed counter to the double or quadruple multiplication mode.
CTH0 Phase A: Input 0004 Phase B: Input 0006
CTH1 Phase A: Input 0005 Phase B: Input 0007
Counter value
0 1 2 3 4 5 6 7 8 7 6 5 4 3 2 1 0
Counter value 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Top Back Contact Us
Setting method
Specify the 24-bit high-speed counter with the MEMSW instruction.
To set high-speed counter CTH0 To set high-speed counter CTH1
MEMSW MEMSW
$0800 $1000
The counter value is read at every scan and is stored in the following data memories.
DM1900: Low-order bits of current CTH0 value
DM1901: High-order bits of current CTH0 value
DM1902: Low-order bits of current CTH1 value
DM1903: High-order bits of current CTH1 value
By using the KV-D20 operator interface panel, you can display the current value of the 24-
bit high-speed counter in real time.