Mitsubishi FX3U Series Programming Manual page 798

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

FX
/FX
Series Programmable Controllers
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2. Timer interrupt processing of RAMP (FNC 67) instruction
The ramp signal output circuit shown below is programmed using the timer interrupt function executed at
every 10 ms.
→ For the use method of the instruction execution complete flag M8029, refer to Subsection 6.5.2.
1) Ramp output pattern
D4 is occupied as a register for counting the number of times of execution.
(D 3)
(D 1) = 1
X000 = ON
2) Program
Step
0
Interrupt
pointer
I610
796
(D 2) = 255
While M8026 is ON
While M8026 is OFF
10 sec.
M8029
Execution is completed
FNC 04
EI
M8026
X000
FNC 12
K 1
MOV
Start
FNC 12
K255
MOV
PLS
M 0
M 0
SET
M 1
FNC 06
FEND
When interrupt is given at every 10 ms
M 1
FNC 67
D 1
RAMP
Initial
value
M8029
RST
FNC 03
IRET
END
→ For RAMP (FNC 67) instruction, refer to Section 14.8.
D 1
D 2
D 2
D 3 K1000
Target
Current
Number of
value
value
times of
transfer
M 1
35 Interrupt Function and Pulse Catch Function
35.5 Timer Interrupt (Interrupt in Constant Cycle)
Interrupts are enabled by EI instruction.
The main program is described.
With M8026 turned ON, when the value of
D3 reaches the final value (D2), the final
value is latched.
As soon as the start command is given, the
initial value (D1) and target value (D2) are
transferred.
The main program is finished by FEND
instruction.
While the instruction is executed 1000
times (in 10 seconds), the contents of D3
are changed from the value of D1 to the
value of D2.
When the instruction execution complete
flag M8029 turns ON, RAMP instruction
drive input is set to OFF.
If FNC 67 (RAMP) instruction is
continuously executed while M8026 is OFF,
the value of D3 returns to the initial value
(D1) immediately after it reaches the final
value (D2), and then the same operation is
repeated.
This program is not necessary when M8026
is ON.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents