PWM
Output Function
9-6
9.1.4 [F173 PWMH] PWM Output Instruction (Control Code Specification)
The PWM output is performed according to the set parameters.
Instruction format
R0
S
F173 PWMH
n
Operand
Operand
Settings
S
Starting address the memory area storing the parameters of the PWM output.
S
Specify the control code. K0 to K30
S+1
Duty ratio (Resolution of 1000 or 100)
For the control codes K0 to K27, Setting range: K0 to K1000 (0.0% to 100.0%)
For the control codes K28 to K30, Setting range: K0 to K1000 (0% to 100%)
n
Channel nos. used for PWM output:
FP0H mode: 0 (CH0: Y0), 1 (CH1: Y3), 2 (CH2: Y8), 3 (CH3: YB)
FP
Σ
mode: 0 (CH0: Y0), 2 (CH2: Y3)
Memory area type that can be specified
Operand WX WY WR WL
SV
EV
DT
LD
I
Constant
Index
modifier
K
H
S
-
-
-
-
-
-
A
-
-
-
-
A
n
-
-
-
-
-
-
-
-
-
A
A
-
Outline of operation
•
The PWM output is performed form a specified output. The output is performed when the
trigger (execution condition) is on.
•
The output frequency and cycle are determined by a specified control code. The duty ratio is
specified in the operand [S1+1].
Precautions during programming
•
This instruction cannot be executed when a control flag corresponding to each channel is on.
•
The duty may be different from the set ratio according to the load voltage and load current
especially in the vicinity of minimum and maximum values. The duty can be changed for
each scan. However, the control code cannot be changed during the execution of an
instruction.
•
When rewriting during RUN is performed during the operation, the PWM output stops while a
program is being rewritten.
Summary of Contents for FP0H Series
Page 1: ......
Page 11: ...1 Functions of Unit and Restrictions on Combination ...
Page 19: ...2 Wiring ...
Page 23: ...3 Power ON and OFF and Items to Check ...
Page 30: ...Power ON and OFF and Items to Check 3 8 ...
Page 31: ...4 Settings of Control Unit ...
Page 52: ...Settings of Control Unit 4 22 ...
Page 53: ...5 Operation Patterns ...
Page 89: ...6 Operating Characteristics ...
Page 93: ...7 Instruction References ...
Page 124: ...Instruction References 7 32 ...
Page 125: ...8 Troubleshooting ...
Page 133: ...9 PWM Output Function ...
Page 140: ...PWM Output Function 9 8 ...
Page 141: ...10 High speed Counter Function ...
Page 151: ...10 3 High speed Counter Instruction 10 11 MEMO ...
Page 170: ......
Page 171: ...11 FPΣ Mode ...
Page 180: ...FP Mode 11 10 ...
Page 181: ...12 Specifications ...
Page 196: ...Specifications 12 16 ...
Page 198: ......
Page 199: ......
Page 200: ......