Mitsubishi Electronics FX5 ユーザーズマニュアル

ページ / 306
194
19  BUILT-IN I/O FUNCTION
19.7  PWM Function
When negative logic is set
The relationship between the period and pulse width when the output pulse logic at start of pulse output is set to "negative 
logic" is shown below. (The pulse width is called the "OFF width".)
 • When negative logic is set, PWM output begins when the output pulse turns OFF.
 • Pulse output is stopped at the specified number of pulses.
 • Pulse output stops in the output (Y) status of before PWM output was started.
PWM driving method
PWM output is driven by either of the following methods.
Driven by HIOEN instruction
The logical settings like output destination, cycle, pulse width, output pulse logic, etc. are set in parameters, and the HIOEN 
instruction is used to execute pulse output. For parameters, refer to Page 195 PWM output parameters.
For the HIOEN instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function 
Blocks).
Driven by PWM instruction
The PWM instruction is used to execute pulse output.
For the PWM instruction, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function 
Blocks).
PWM output function execution procedure
The procedure for executing the PWM output function is explained below.
1.
Check the specifications of PWM output.
Check specifications such as pulse output performance of PWM output. (Page 193 PWM output specifications)
2.
Connect the CPU module to the external device.
For details on wiring to external devices, refer to the following manual
MELSEC iQ-F FX5U User's Manual (Hardware)
MELSEC iQ-F FX5UC User's Manual (Hardware)
3.
Set the parameters.
Set the output destination, cycle, pulse width, output pulse logic, etc. of the PWM in parameters, (Page 195 PWM output 
parameters
)
4.
Create the program.
Create the program for using PWM output.
5.
Run the program.
Output pulse
OFF width
Cycle
PWM output start 
(command input)