Download Print this page

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

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

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)
FBD/LD
EN
ENO
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
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)

*1

(d)
*1 Only Y can be used for a bit device.
When a bit device is specified, specify one of Y0 to Y7. The high-speed pulse input/output module bit device (Y) cannot be specified.
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.
Specify K1 to K4 (axis 1 to 4) for the CPU module, and K5 to K12 (axis 5 to 12) for the high-speed pulse input/output module.
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).
8 APPLICATION INSTRUCTION
618
8.17 Pulse Related Instruction
(s2)
(d)
Word
T, ST, C, D, W,
SD, SW, R
*2
Structured text
ENO:=DPWM(EN,s1,s2,d);
Range
1 to 2147483647
1 to 2147483647
Double word Indirect
U\G
Z
LC
*2
*2
Data type
32-bit unsigned binary
32-bit unsigned binary
Bit/Word
Bit
Bit
Constant
specification
LZ
K, H
*2
Data type (label)
ANY32
ANY32
ANY_ELEMENTARY
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading