Mitsubishi Electronics FX3S-MT/ES Home Theater Server User Manual


 
10 Use of High-speed Counters
89
FX3S Series Programmable Controllers
User's Manual - Hardware Edition
1
Introduction
2
Features and
Part Names
3
Product
Introduction
4
Specifications
5
Version and
Peripheral
Devices
6
System
Configuration
7
Installation
8
Preparation and
Power Supply
Wiring
9
Input Wiring
10
High-Speed
Counters
10.5 Handling of High-speed Counters
10.5 Handling of High-speed Counters
10.5.1 1-phase 1-count input
These counters are 32-bit up-count/down-count binary counters.
Examples of program
1) For C235
C235 counts the number of times the input terminal X000
switches from OFF to ON while X012 is on.
While X011 is on, the counter resets when RST instruction
is executed.
The counters C235 to C245 switch to the down-count or up-
count mode by turning on or off M8235 to M8245.
2) For C244
C244 starts counting immediately when the input terminal
X006 turns on while X012 is on. The count input terminal is
X000. The setting for this example is the data of the
indirectly designated data register (D1, D0).
C244 can be reset by X011 on the sequence. For C244,
X001 is allocated as the external reset input. The counter
resets immediately when X001 turns on.
The counters C235 to C245 switch to the down-count or up-
count mode by turning on or off M8235 to M8245.
Example of operation
The above counter C235 operates as shown below.
X000
Main unit
Count input
X010
M8235
Down-count/
Up-count
X011
X012
C235
K-5
RST C235
Reset
X000
Main unit
Count input
X001 X006
External reset
input
External start
input
X010
M8244
Down-count/
Up-count
X011
X012
C244
D0 (D1)
Reset
The setting is (D1, D0)
RST C244
X010
X011
X000
C235
Current
value
C235 output contact
Up-count Down-count Up-count
0
1
2
3
4
5
4
3
2
1
0
-1
-2
-3
-4
-5
-6
-7
-8
When output has
operated
-7
-6
-5
-4
-3
0
X012
Reset input
Start input
Count input