441
FX3G/FX3U/FX3UC 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
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
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.
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