Mitsubishi Electronics FX3G User Manual

Page of 964
713
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
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
31
FNC277
-F
NC2
79
Da
ta
 
Trans
fer 3
32
FNC28
0-F
NC
289
H
igh-Speed 
Process
ing 2
33
FNC2
90-
FNC299
Ex
tensi
on Fi
le
 
Register C
ontrol
34
FN
C300-
FNC30
5
FX
3U
-C
F-
AD
P
35
SFC
•STL
Programming
36
Interrupt 
Function
37
Sp
ec
ia
l D
evi
ce
38
E
rror Code
A
Ve
rsi
on U
Inform
ati
on
B
Ex
ecuti
on
 T
imes
Program example
In the program shown below, the current value of C235 (counting X000) is compared with the comparison data table
set in R0 and later, and a specified pattern is output to Y010 to Y013.
Operation example
Comparison
point
Comparison data
SET/RESET pattern
Table counter D8138
Device
Comparison 
value
Device
Operation output 
set 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
counter
ON
ON
OFF
OFF
OFF
Y013
250
150
Table