Fnc 76 - Asc / Ascii Code Data Input - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
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
FNC 76
ASC
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
D
*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
transferred in turn to
S
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.
D
stores converted ASCII codes in the order of low-order 8 bits and high-order 8 bits by 2 characters/byte at
one time.
Command
input
FNC 76
444
Mnemonic
16-bit Instruction
11 steps
ASC
Eight half-width alphanumeric characters input from a personal computer
Head word device number storing ASCII data
Digit Specification
D
.
S
ASC
Example: ABCDEFGH
15 External FX I/O Device – FNC 70 to FNC 79
15.7 FNC 76 – ASC / ASCII Code Data Input
Operation Condition
32-bit Instruction
Continuous
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
V
S
are converted into ASCII codes, and each ASCII code is
D
D
D
+1
D
+2
D
+3
Mnemonic
Operation Condition
Data Type
Character string
(only ASCII codes)
16-bit binary
Others
Con-
Real
Index
stant
Number
Z Modify K
H
E
S
.
High-order 8
Low-order 8
bits
bits
42 (B)
41 (A)
44 (D)
43 (C)
46 (F)
45 (E)
48 (H)
47 (G)
Charac-
Pointer
ter String
" "
P
*1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents