Mitsubishi Electric MELSEC FX3U Programming Manual page 754

Melsec fx series programmable logic controllers
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
Y012
OFF
Y013
ON
Table
counter
D8138
0
752
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
ON
ON
OFF
4
3
2
1
0
32 High Speed Processing 2 – FNC280 to FNC289
32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table
M8235
C235
FNC 12
H0008
K1Y010
MOVP
K400
C235
C235
C235
Y010
K4
END
SET/RESET pattern
Operation
Device
output set
value
R2
H0007
R5
H0004
R8
H0003
R11
H0006
R14
H0008
Time
3
2
1
C235 is used as an up counter.
K0
Initial output
Ring length: 0 to 400
Table counter D8138
0↓
1↓
2↓
3↓
4↓ (Repeated from "0↓")

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents