706
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
32 High Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table
Program example
In the program example shown below, the value input to D0 is compared with the comparison table data set in
R0 and later, and then a specified pattern is output to Y010 to Y013.
Operation example
Table number
Comparison data
SET/RESET pattern
Table counter D8138
Device
Current value
Device
Current value
0
R1,R0
K100
R2
H0007
0
↓
1
R4,R3
K150
R5
H0004
1
↓
2
R7,R6
K200
R8
H0003
2
↓
3
R10,R9
K250
R11
H0006
3
↓
4
R13,R12
K300
R14
H0008
4
↓
(Repeated from “0
↓
”)
M8000
FNC 12
MOVP
H0008
K1Y010
FNC 54
DHSCR
C235
C235
FNC280
DHSCT
R0
K4
K400
Y010
K5
END
C235 is used as an up counter.
Initial output
M8235
M8000
C235
Ring length: 0 to 400
C235
K0
400
300
200
100
0
1
2
3
4
0
1
2
3
0
ON
OFF ON
Time
Y010
Y011
Y012
D8138
Table
counter
ON
ON
OFF
OFF
OFF
Y013
250
150
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......