EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 669

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
667
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
Cautions
1) When handling character string data in a structured program, a 16-bit device cannot be specified directly
as in the case of a simple project. Use a label to handle character string data.
Use a global label to specify a device.
2) When "00H" is stored in the low-order byte of the device specified by " + n", "00H" is stored to both
the high-order byte and low-order byte of the device specified by " + n".
Error
An operation error is caused in the following cases. The error flag M8067 turns ON, and the error code is
stored in D8067.
1) When "00H" does not exist in the range specified from device specified by to the last device
(Error code: K6706)
2) When the specified character string cannot be stored in devices from the device specified by to the
last device. (Error code: K6706)
Program examples
In the program example shown below, character string data stored in D10 to D12 is transferred to D20
through D22 when X000 is set to ON.
*2.
*1. This defines the directly specified character string or head device
that stores the character string which is handled as transfer source.
This defines the head of the device that stores the transferred character string.
Command
input
Label 1
*1
$MOV
EN ENO
d
s
Label 2
*2
42H(B)
44H(D)
45H(E)
41H(A)
43H(C)
00H
+1
+2 +2
+1
The high-order byte
is not transferred.
42H(B)
44H(D)
00H
41H(A)
43H(C)
00H
"00H" is automatically stored
in the high-order byte.
ds
+0+0
b15 b8 b7 b0
b15 b8 b7 b0
*1. VAR_01 is a global label and is defined as D10.
*2. VAR_02 is a global label and is defined as D20.
[Structured ladder] [ST]
VAR_02:=$MOV(X000,VAR_01);
X000
VAR_02
*2
VAR_01
*1
$MOV
EN ENO
d
s
D10
4DH(M)
45H(E)
2AH(*)
D20
45H(E)
4DH(M)
45H(E)
2AH(*)
45H(E)
D11
D12
D21
D22
b15 b8 b7 b0
b15 b8 b7 b0
00H 00H 00H

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals