Mitsubishi Electric FX3G SERIES Programming Manual page 813

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
-Timing chart
X010: Preparation
for measurement
SW(X000,X001)
RST
T246
Current
value of T246
M0
2. Example of program to measure the short pulse width using a high-speed ring counter (only in
FX
/FX
PLCs)
3U
3UC
Step
0
X010
When the rising edge of
Interrupt
X000 is detected
pointer
X010
I001
When the falling edge of
Interrupt
X001 is detected
pointer
X010
I100
I001(Interrupt processing)
Part A in the previous page
4
3
2
1
FNC 04
EI
D8099 is set to ON
M8099
FNC 06
FEND
RST
D8099
RST
M0
FNC 03
IRET
FNC 12
D8099
M0V
SET
M0
FNC 03
IRET
END
36 Interrupt Function and Pulse Catch Function
36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]
I100(Interrupt processing)
Part B in the previous page
6
5
Interrupts are enabled by the EI instruction.
The main program is described.
The ring counter is set to ON.
When X000 turns ON: The ring counter is reset
Measurement data
When X001 turns OFF: The ring counter value
D0
Measurement
is completed
The special data register M8099 up-counts the
0.1 ms clock from the next operation cycle after
being driven.
When the count value exceeds "32767", it is
returned to "0".
to OFF, and
measurement is started.
is transferred to D0,
and measurement is
completed.
811
31
32
33
34
35
36
37
38
A
B

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents