Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
377
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
13 High Speed Processing – FNC 50 to FNC 59
13.9 FNC 58 – PWM / Pulse Width Modulation
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
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 on the main unit or Y000, Y001, Y002, or Y003 on a special high
speed output adapter
*1
.
S2: This function is supported only in FX
3U/FX3UC PLCs.
*1. Y002 is not available in 14-point and 24-point type FX
3G 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
33333333
S
2
33 3 3 3
33333333
S
2
33 3 3 3
S
1
3
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