332
MOV K100 HD2
MOV K0 HD0
PWM HD0 HD2 Y0
MSET M0 M1
SM2
X0
X1
ZRST M0 M1
M0
M2
M3 M4
M5
MOV K8192 HD0
M3 M4
M5
MOV K16384 HD0
M3 M4
M5
MOV K24576 HD0
M3 M4
M5
MOV K32767 HD0
M2
M2
M2
M1
Program explanation:
1.
HD0 will control the LED voltage. The voltage = 24*HD0/32767, pulse output frequency
is 100Hz.
2.
Press start button, X0 is ON, M0, M1 is ON, the LED brightness adjustment starts.
3.
X2 is ON, HD0=8192, HD0/32768=0.25, the LED brightness is 25%.
4.
X3 is ON, HD0=16384, HD0/32768=0.5, the LED brightness is 50%.
5.
X4 is ON, HD0=24576, HD0/32768=0.75, the LED brightness is 75%.
6.
X5 is ON, HD0=32768, HD0/32768=1, the LED brightness is 100%.
7.
Press shut down button, X1 is ON, HD0 is reset, shut down the PWM trigger condition,
LED voltage is 0V.
10-2. Frequency measurement [FRQM]
1.
Instruction list
Measure the frequency.
Frequency measurement [FRQM]
16 bits
instruction
-
32 bits
instruction
FRQM
execution
condition
Normally ON OFF coil
suitable
models
XD/XL (except
XD1/XL1/XDH)
hardware
requirement
-
software
requirements
-
2.
Operand
Operands Function
Type
S1
Sampling pulse numbers
32 bits, BIN
S2
The display precision
32 bits, BIN
D
Measurement result
32 bits, BIN
S3
Pulse input terminal
bit
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...