Fnc 76 - Asc / Ascii Code Data Input - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
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 T C D R U \G
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
code is transferred in turn to
can handle half-width characters A to Z, 0 to 9 and symbols (, but cannot handle regular-width
S
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/
D
byte at one time.
Command
input
FNC 76
462
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
V Z Modify K H
are converted into ASCII codes, and each ASCII
S
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
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:

Melsec fx3ucMelsec fx3g

Table of Contents