Mitsubishi Electronics FX3S Benutzerhandbuch
443
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
Series
Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.7 FNC 76 – ASC / ASCII Code Data Input
11
FN
C30
-FN
C3
C30
-FN
C3
9
R
ota
tion and
Shi
ft
ft
12
FN
C40-FN
C40-FN
C49
D
ata O
perati
perati
on
13
FNC
50-FNC
59
High-Speed
Proc
essing
14
FM
C60-FN
C60-FN
C69
H
andy
In
struction
15
FN
C70-FN
C70-FN
C79
E
xternal
F
X
I/O
De
vice
16
FNC
80-FNC
89
External
FX
Dev
ice
ice
17
FNC1
00-
FNC10
00-
FNC10
9
Dat
a
a
Transfer 2
18
FNC1
10-
FNC139
FNC139
Fl
oati
ng Poi
nt
19
FNC14
0-F
N
C
149
Da
ta
Operation 2
20
FNC1
50-
FNC159
FNC159
Pos
itioning
itioning
Control
15.7
FNC 76 – ASC / ASCII Code Data Input
Outline
This instruction converts a half-width alphanumeric character string into ASCII codes.
Use this instruction for selecting one among two or more messages and displaying it on an external display unit.
Use this instruction for selecting one among two or more messages and displaying it on an external display unit.
1. Instruction format
2. Set data
*1.
The number of characters is fixed to 8. When ASCII code less than 8 characters is input, the space character
(H20) is stored in remaining
(H20) is stored in remaining
.
3. Applicable devices
*2.
It is not necessary to attach quotes (" ") to the character string specified in
.
Explanation of function and operation
1. 16-bit operation (ASC)
The half-width alphanumeric characters specified in
are converted into ASCII codes, and each ASCII code is
transferred in turn to
.
•
can handle half-width characters A to Z, 0 to 9 and symbols (, but cannot handle regular-width characters).
A character string is entered when a program is created with a programming tool.
•
stores converted ASCII codes in the order of low-order 8 bits and high-order 8 bits by 2 characters/byte at
one time.
Operand Type
Description
Data Type
Eight half-width alphanumeric characters input from a personal computer
*1
Character string
(only ASCII codes)
Head word device number storing ASCII data
16-bit binary
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
V Z Modify K H
E
" "
P
*2
FNC 76
ASC
−
32-bit Instruction
Mnemonic
Operation Condition
ASC
16-bit Instruction
11 steps
Mnemonic
Operation Condition
Continuous
Operation
S
D
D
S
D
S
S
D
S
D
Command
input
FNC 76
ASC
S
Example: ABCDEFGH
D
42 (B)
41 (A)
44 (D)
43 (C)
+1
46 (F)
45 (E)
48 (H)
47 (G)
High-order 8
bits
Low-order 8
bits
+2
+3
D
D
D
D