
Chapter 5 Positioning Instructions
5
-
47
5.2.22 Pulse Width Modulation
• Pulse Width Modulation is to operate On/Off output in designated Off duty rate and Output cycle.
(1) Pulse width Modulation (PWM)
[Area Setting]
Operand
Description
Setting range
Data size
sl
Slot No. of positioning module
XGB is fixed at 0
WORD
ax
Axis to give instruction
0 (axis X) or 1 (axis Y)
WORD
n1
Output Cycle
1~20,000(ms)
WORD
n2
Off duty rate
0~100(%)
WORD
[Flag Set]
Flag
Description
Device number
Error
If the value of ax gets out of the range
F110
(a) Function
• This instruction is for PWM output.
• While the input condition is On state, XGB postioning outputs pulse train in designated cycle time
in n1 and designated Off duty rate in n2 at designated axis in ax
• During PWM output, current address don’t change. Constant speed bit(X axis: K0420D, Y axis:
K0430S) and Operation bit(X axis: K04200 Y axis: K4300) set On.
(b) Error
• If the value designated as ax (instruction axis) is other than 0 and 1, the error flag (F110) is set
and the instruction is not executed.
Remark
• If PWM instruction is executed, other instruction do not operate. And upper/lower limit does not
work
• If PWM instruction is executed, STP, EMG instruction doesn’t operate. To stop output, Off the
Start-up contact
• If output cycle is changed, when operating APM_PWM, it cannot be applied.
•
PWM applicable version
-XBM-DNxxS: H/W from V2.0, O/S V3.10
-XBC-DN/DPxxH: O/S from V2.03
-XEC-DN/DPxxH: O/S from V1.50
-XBC-DN/DPxxSU: O/S from V1.10
Instruction
Areas available
Step
Flag
PMK
F
L
T
C
S
Z D.x R.x
cons
tant
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
WRT
sl
-
-
-
-
-
-
-
-
-
○
-
-
-
-
4~7
○
-
-
ax
○
-
○
-
-
-
○
-
-
○
-
-
○
-
n1
○
-
○
-
-
-
○
-
-
○
-
-
○
-
n2
○
○
○
○
○
WRT
COMMAND
WRT
sl
ax
n1
Summary of Contents for XBC-DN20S
Page 210: ...Chapter 7 Program Examples of Positioning 7 6 2 XEC ...
Page 215: ...Chapter 7 Program Examples of Positioning 7 11 2 XEC ...
Page 220: ...Chapter 7 Program Examples of Positioning 7 16 2 XEC ...
Page 225: ...Chapter 7 Program Examples of Positioning 7 21 2 XEC ...
Page 232: ...Chapter 7 Program Examples of Positioning 7 28 2 XEC ...
Page 237: ...Chapter 7 Program Examples of Positioning 7 33 2 XEC ...
Page 240: ...Chapter 7 Program Examples of Positioning 7 36 ...
Page 309: ...Appendix 4 Dimension App 4 4 XBC DN64H XEC DN64H XEC DP64H XBC DR64H XEC DR64H ...
Page 311: ...Appendix 4 Dimension App 4 6 XBE DC08A XBE DC16A XBE TN08A XBE TN16A XBE DR16A XBE RY08A ...
Page 312: ...Appendix 4 Dimension App 4 7 5 Communication module XBL C41 21A XBL EMTA ...
Page 313: ...Appendix 4 Dimension App 4 8 5 Special module XBF AD04A XBF DV04A ...