EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 646

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.20 Character String Control
644
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Program examples
In the program example shown below, a character string stored in D10 to D12 (abcde) is linked to the
character string "ABCD", and the result is stored to D100 and later when X000 turns ON.
X000
D11
D12
62H(b) 61H(a)
63H(c)
65H(e)
64H(d
62H(b) 61H(a)
63H(c)64H(d)
41H(A) 65H(e)
42H(B)
44H(D)
43H(C)
00H
00H
+
D10
"ABCD"
D100
"00H" is automatically stored.
$+
EN ENO
d1
s1
s2
VAR_03
*3
VAR_01
*1
VAR_02
*2
*1. VAR_01 is a global label and is defined as D10.
*3. VAR_03 is a global label and is defined as D100.
[Structured ladder]
[ST]
VAR_03:=$+(X000,VAR_01,VAR_02);
D104
D101
D102
D103
b15---b8 b7---- b0 b15---b8 b7---- b0
*2. VAR_02 is a global label and is defined as "ABCD".

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals