EasyManua.ls Logo

Mitsubishi Electric MELSEC FX Series - Page 411

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.9 External Device (optional device)
409
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
Number of digits (characters) specified and result of conversion
Bit composition in the case of n=K4
When issuing as BCD data by printer or the like, before execution of this instruction, you must convert from
BIN to BCD.
3. <8-bit conversion mode> When M8161=ON (M8161 is used commonly with RS, HEX, CCD,
CRC instructions)
Each digit of HEX data stored after the device specified by is converted into ASCII, and stored in lower 8
bits (bytes) in each device after the one specified by . The number of digits (characters) to be converted
is specified by n.
In the device specified by , higher 8 bits are 0.
M8161 is used commonly with RS, HEX, CCD, CRC instructions. When using in 8 bits, you must keep always
ON.
M8161 is cleared when changed from RUN to STOP.
Operation
In the case of the program shown below, the conversion is executed as follows.
K1 K2 K3 K4 K5 K6 K7 K8 K9
D 200 lowerC)B)A)0)4)3)2)1)8)
D 200 higher C) B) A) 0) 4) 3) 2) 1)
D 201 lower C)B)A)0)4)3)2)
D 201 higher C) B) A) 0) 4) 3)
D 202 lower C) B) A) 0) 4)
D 202 higher C) B) A) 0)
D 203 lower Not changed C) B) A)
D 203 higher C) B)
D 204 lower C)
0000110010000010
0100001011000010
0011110101010000
D 100=ABCH
0ABC
D 200
C) 43H
A) 41H 0) 30H
B) 42H
D 201
ASCII code
0)=30H
A)=41H
B)=42H
C)=43H
1)=31H
2)=32H
3)=33H
4)=34H
5)=35H
6)=36H
7)=37H
8)=38H
0
16 bits
Lower 8 bits
When M8161=ON, 8-bit mode is established,
and the conversion is executed as follows.
Destination
M8000
OUT
EN ENO
d
Command input
Head device in which HEX
code to be converted is stored
Head device for storing
converted ASCII code
8-bit mode
Number of characters in HEX
code to be converted
(number of digits)
ASCI
EN
s
n
ENO
d1
M8000
X10
ASCI
EN
s
ENO
d
n
OUT
EN ENO
d
M8161 8-bit mode
D100
D200
K4

Table of Contents

Other manuals for Mitsubishi Electric MELSEC FX Series

Related product manuals