![background image](http://html1.mh-extra.com/html/melec/c-v870/c-v870_instruction-manual_1767049099.webp)
- 99 -
(7) Cther counter functions
Count by divided pulse (divide count:
4)
■
The count timing of CCCWT PCLSE SEL output pulses selected by SPEC IWITIALIZE1 of each counter can
be divided.
The counter counts in either an increasing direction or a decreasing direction at a divided time.
Make this setting with the CCCWTEW IWITIALIZE3 command of each counter.
● For encoder signals (external pulses), a counting time that is multiplire by CCCWT TYPE is
divided.
● When the CCCWTEW IWITIALIZE3 command is executed, a divide count being used is cleared.
<
>
Count pulse input
Wise timing
Clearance
0
1
2
3
0
1
2
Fall timing
2
1
0
3
2
1
0
3
2
0
7
6
<
>
Post-divide count timing
Count increase
1
Count decrease
1
0
-1
-2
Execution of CCCWTEW IWITIALIZE3 command (divide count 8 selected)
Setting maximum count
■
If a maximum count is set in each counter, a ring count starts with the set value as the maximum
value of the counter.
If the CVF flag of each counter at the STATCS4 PCWT is ignored, rotary system locations can be
managed.
Set a maximum value with the CCCWTEW MAX CCCWT SET command.
When the count reaches half of the set value, CVF=1 of each counter at the STATCS4 PCWT is assumed.
Even if a maximum count is set, the current value of each counter remains unchanged.
The setting becomes valid when the value of each counter falls within the maximum count.
(one rotation by 2,000 counts)
● Maximum count = 1,999
+ direction count:0→ 1→ … → 999→ 1000 (STATCS4 PCWT CVF = 1)→ 1001→ … → 1999→ 0
- direction count:0→ 1999→ … → 1001→ 1000 (STATCS4 PCWT CVF = 1)→ 999→ … → 1→ 0
(one rotation by 2,001 counts)
● Maximum count = 2,000
+ direction count:0→ 1→ … → 1000→ 1001 (When set to 1001, it is STATCS4 PCWT CVF = 1)→ … → 2000→ 0
- direction count:0→ 2000→ … → 1001→ 1000 (When set to 1000, it is STATCS4 PCWT CVF = 1)→ … → 1→ 0
◆ The initial count of each counter can be set to H'8000_0000.
However, if H'8000_0000 is set, CVF=1 of each counter at the STATCS4 PCWT is assumed.
◆ If the maximum count of the address counter is set to other than H'FFFF_FFFF, the following
restriction is imposed.
・ A general-purpose command with the absolute address specified is invalid.
・ The SCFT LIMIT function is invalid.