Mitsubishi Electric FX3G SERIES Programming Manual page 713

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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.
M8000
M8000
Operation example
Comparison
point
0
1
2
3
4
400
300
250
200
150
100
0
Y010
OFF ON
Y011
OFF
ON
Y012
OFF
ON
Y013
ON
OFF
Table
counter
D8138
0
1
FNC 12
FNC 54
DHSCR
FNC280
R0
K5
DHSCT
Comparison data
Comparison
Device
value
R1,R0
K100
R4,R3
K150
R7,R6
K200
R10,R9
K250
R13,R12
K300
4
3
2
0
1
32 High-Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High-Speed Counter Compare With Data Table
M8235
C235
K0
H0008
K1Y010
MOVP
K400
C235
C235
C235
Y010
K4
END
SET/RESET pattern
Operation output
Device
set value
R2
H0007
R5
H0004
R8
H0003
R11
H0006
R14
H0008
Time
3
2
C235 is used as an up counter.
Initial output
Ring length: 0 to 400
Table counter D8138
0↓
1↓
2↓
3↓
4↓ (Repeated from "0↓")
31
32
33
34
35
36
37
38
A
B
711

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents