EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 759

Mitsubishi Electric MELSEC FX Series
838 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 Applied Instructions
7.26 High Speed Processing 2
757
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Program example
In the program example 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
number
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")
[ST]
M8235:=M8000;
OUT_C(M8000,CC235,K0);
MOVP(M8000,H0008,K1Y10);
DHSCR(VAR_01,C235,C235);
Y010:=DHSCT(M8000,VAR_02,K5,C235,K4);
M8000
C235 is used as an up counter.
Initial output
M8235
M8000
Ring length: 0 to 400
OUT_C
EN ENO
CCoil
CValue
CC235
K0
MOVP
EN
s
ENO
d
K1Y10
DHSCT
EN ENO
s1
m
s2
n
d
DHSCR
EN
s1
s2
ENO
d
VAR_01
*1
CN235
CC235
VAR_02
*2
K5
CN235
K4
Y010
[Structured ladder]
H0008
*1. VAR_01 is a global label and is defined as K400.
*2. VAR_02 is a global label and is defined as C235.

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals