EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-F FX5 - Page 342

Mitsubishi Electric MELSEC iQ-F FX5
958 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
340
25 HIGH-SPEED INPUT/OUTPUT FUNCTION
25.7 PWM Function
Program
An operation diagram and program are shown below.
Operation diagram
Program
Precautions
PWM in the same channel as an ongoing PWM execution cannot be executed by the alternate of the PWM/DPWM
instruction and HIOEN/DHIOEN instruction. However, the PWM operation that is already in execution continues.
If a channel with invalid PWM output parameters is executed by HIOEN/DHIOEN instruction, the PWM output is not
executed.
In a program with interruption priority 1, the HIOEN/DHIOEN or PWM/DPWM instruction to start or stop PWM output of the
high-speed pulse input/output module (CH5 to CH12) cannot be executed. (Page 115 Interrupt priority)
Delay time: 50 ms
1 pulse output
10 ms
X0 input
Y0
PWM output
PWM output start
HIOEN K1K0K50
Interrupt program is permitted.
DHCMOV K1 SD5300
SM402
RST Y0
I0
SM400
FEND
K0
SM400
EI
IMASK D0
MOV H1
SM402
D0
IRET
END
The number of pulses to be output is set.
Y0 is reset before PWM is output.
Not necessary when Y0 is already OFF.
PWM output from CH1 starts by the rising
edge interrupt of X0.
HIOEN
K0K1K50
Do not repeat execution of the I0 interrupt
program while pulses are being output.
Interrupt
pointer

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-F FX5

Related product manuals