436
FX3G/FX3U/FX3GC/FX3UC 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
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
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
3
*1
3333 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