380
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
13 High-Speed Processing – FNC 50 to FNC 59
13.9 FNC 58 – PWM / Pulse Width Modulation
13.9 FNC 58 – PWM / Pulse Width Modulation
Outline
This instruction outputs pulses with a specified period and ON duration.
1. Instruction format
2. Set data
3. Applicable devices
S1: Specify transistor output Y000, Y001, or Y002
*1
on the main unit or Y000, Y001, Y002, or Y003 on a special high-
speed output adapter
*2
.
S2: This function is supported only in FX
3G/FX3GC/FX3U/FX3UC PLCs.
S3: This function is supported only in FX
3U/FX3UC PLCs.
*1. Y002 is not available in FX
3G PLC (14-point and 24-point type) and FX3S/FX3GC PLCs.
*2. High-speed output special adapters can be connected only to FX
3U PLC.
Explanation of function and operation
1. 16-bit operation (PWM)
Pulses whose ON pulse width is ms are output in periods of ms.
• Specify the pulse width "t" in .
Allowable setting range: 0 to 32767 ms
• Specify the period "T
0" in .
Allowable setting range: 1 to 32767 ms
• Specify the output (Y) number from which pulses are to be output in .
Allowable setting range: Y000, Y001, Y002, Y003
Operand Type Description Data Type
Output pulse width (ms) 16-bit binary
Period (ms) 16-bit binary
Device number (Y) from which pulses are to be output Bit
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index Constant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
VZModify K H E "
"P
S2 S3
S2 S3
S1
7 steps PWM
Continuous
Operation
16-bit Instruction
Mnemonic Operation Condition
FNC 58
PWM
Mnemonic Operation Condition
32-bit Instruction
−
S
1
S
2
D
S
1
S
2
D
S
1
S
2
t
T
0
D
Pulse width
t
Period
T
0
FNC 58
PWM
S
1
D
S
2
Command
input
S
1
S
2
D