Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
441
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
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
C
30
-FN
C
39
R
otati
on and 
Shi
ft
12
FNC4
0-F
NC4
9
D
ata O
per
ati
on
13
FN
C
50-FN
C
59
H
igh S
pe
ed 
P
rocessing
14
FM
C
60-FN
C
69
H
andy 
In
st
ru
ct
ion
15
FNC7
0-F
NC7
9
Ex
ter
nal FX
 I/O
 
D
evice
16
FN
C
80-FN
C
89
Ext
ernal
 FX 
De
vic
e
17
FN
C
100-
FN
C
10
9
Da
ta
 
Transf
er 2
18
FN
C
110-
FN
C
139
Floati
ng Poi
nt
19
FN
C
14
0-F
N
C
149
Da
ta
 
O
per
at
ion 2
20
FN
C
150-
FN
C
159
Posit
ioning 
C
ont
ro
l
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.
1. Instruction format
2. Set data
3. Applicable devices
*1.
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
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
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
3
*1
3 3 3 3
3
3
FNC 76
ASC
32-bit Instruction
Mnemonic
Operation Condition
ASC
16-bit Instruction
11 steps
Mnemonic
Operation Condition
Continuous
Operation
S
  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 ‚