32 Bit Binary Pulse Width Modulation - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

32 bit binary pulse width modulation

DPWM
This instruction outputs the pulse (in 32-bit data units) of the ON time (in 32-bit data units) specified by (s1) and the period
specified by (s2) to the output destination specified by (d).
Ladder diagram
(s1)
(s2)
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
ON time or the device number storing the ON time
(s2)
Period or the device number storing the period
(d)
Channel number or device number from which pulses are to be
output
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
*1
(d)
*1 When a bit device is specified, specify one of Y0 to Y7.
Only Y can be used for a bit device.
If Y is specified, outputs are enabled when there is an unused channel number in the parameter setting and the specified Y number is
not used.
The nibble of a bit device cannot be specified.
*2 When a word device or constant is specified, specify one of the CH numbers.
Processing details
• This instruction outputs the pulse of the ON time specified by (s1) and the period specified by (s2) to the output destination
specified by (d).
ON
OFF
(s1)
(s2)
• Time with a unit selected on the parameter setting screen (s or ms) can be specified by (s1) and (s2).
• The pulse output destination channel number selected on the parameter setting screen can be specified by (d).
• This instruction stores the number of pulses, pulse width, and period output from each channel to an SD device. The pulse
width and period are stored in the units set by the parameters. When 0 is specified in the pulse output, pulses are output
without any limitation.
Pulse output
Number of output pulses
destination channel
CH1
SD5301, SD5300
CH2
SD5317, SD5316
CH3
SD5333, SD5332
CH4
SD5349, SD5348
Structured text
ENO:=DPWM(EN,s1,s2,d);
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
*2
*2
R/W
Initial
value
R/W
0
Range
Data type
1 to 2147483647
32-bit unsigned binary
1 to 2147483647
32-bit unsigned binary
Bit/16-bit unsigned
binary
Double word Indirect
specification
Z
LC
LZ
*2
Timing of reflection on
operation
• When the DHCMOV
*1
instruction is executed
• When the DPWM instruction is
executed
• END processing
7 APPLICATION INSTRUCTION
7.14 Pulse related instruction
Data type (label)
ANY32
ANY32
Bit/ANY16
Constant
Others
K, H
E
$
*2
Timing of clearing to initial
value
STOP/PAUSERUN
533
7

Advertisement

Table of Contents
loading

Table of Contents