Mitsubishi Electric MELSEC-Q Structured Programming Manual page 95

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
• Write the following program "to reset only the current value of a high speed counter (and not to turn OFF
the contact)".
1) Program example
EN
s
X010
*1.
When the driving contact is the continuous execution type, the current value of the counter is reset to
"0" at each scan while X010 remains ON.
2) Timing chart
X000
Current value
of C235
X010
Because X010 turns ON,
"FNC12 DMOV" is executed.
The current value of C235
is reset to "0".
• Write the following program "to turn OFF the contact and reset the current value of a high speed counter".
1) Program example
EN
s
X010
*1.
When the driving contact is the continuous execution type, the current value of the counter is reset to
"0" and the counter reset status is cleared at each scan while X010 remains ON.
2) Timing chart
X000
Current value
of C235
X010
RST
C235
Counter is reset (part A)
in above program).
• For writing the symbolic information and changing the set values of timers and counters using a peripheral
equipment, it is recommended to create programs with the set values specified indirectly.
If the set values are specified directly, programs cannot be restored from the symbolic information after the
set values are changed.
*1
LDP
DMOV
ENO
EN
ENO
s
K0
The current value of C235 is cleared (to "0").
3
2
2
1
1
Because the driving contact is the pulse execution type,
C235 executes counting normally after that.
*1
LDP
RST
ENO
EN
ENO
M8001
RST
EN
ENO
RUN monitor
(Normally OFF)
3
2
2
1
1
Driving of counter reset is set to OFF
(part B) in above program).
d
CN235
4
3
- - - - - A)
d
CN235
- - - - - B)
d
CN235
4
3
Because the reset status is
cleared, C235 executes counting.
2 Devices in Detail
2.7 High Speed Counter [C]
93
1
2
3
4
5
6
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents