Delta AH500 Programming Manual page 599

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1902
GPWM
Device X
Y
M
S
1
S
2
D
Symbol:
Explanation:
1.
When the instruction GPWM is executed, every pulse with a width specified by S
cycle specified by S
2.
The pulse width specified by S
milliseconds.
3.
The pulse cycle specified by S
milliseconds, and S
4.
S
+1 and S
+2 are parameters for system use. Please do not occupy them.
2
2
5.
If S
is less than 0, there is no pulse output. If S
1
6.
S
and S
can be altered during the execution of the instruction GPWM.
1
2
7.
If the conditional contact is not enabled, there is no pulse output.
8.
When the on-line editing is used, please reset the conditional contact to initialize the
instruction.
Example:
When the program is executed, the values in D0 and D2 are 1000 and 2000 respectively. When
X0.0 is ON, the pulses illustrated below are output from Y0.0. When X0.0 is OFF, Y0.0 is OFF.
Operand
S
, S
, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction
: Pulse width
S
1
: Pulse cycle
S
2
D : Output device
is output from the device specified by D.
2
is t. t should be within the range between 0 and 3276
1
is T. T should be within the range between 1 and 32767
2
should be less than S
.
1
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
General pulse width modulation
L
SM SR
E
AH500
Word
Word
Bit
is larger than S
, the output device keeps ON.
1
2
Function
PR
K
16# "$"
DF
and with a
1
6 - 4 3 1

Advertisement

Table of Contents
loading

Table of Contents