Mitsubishi Electronics FX2C Home Theater Server User Manual


 
FX Series Programmable Controlers Applied Instructions 5
5-88
5.8.7 ASC (FNC 76)
Operation:
The source data strin
g
S consists of up to 8
characters taken from the printable ASCII
character (Char) set. If less than 8 Char are used,
the difference is made up with null Char (ASCII
00).
The source data is converted to its associated ASCII codes. The codes are then stored in the
destination devices D, see example shown below.
Note
: ASCII Char
cannot
be entered from a hand held pro
g
rammer.
Mnemonic Function
Operands
Program steps
S
D
1
ASC
FNC 76
(
ASCII
code
conversion)
An entered
alphanumeric
strin
g
can be
converted to its
ASCII codes
Alphanumeric data e.
g
.
0-9, A - Z and a - z etc.
Note: Onl
y
one, 8
character strin
g
ma
y
be
entered at an
y
one
time.
T, C, D
Note:
uses 4 consecutive
devices
ASC
: 7 steps
D
Byte
High Low
D300
58 (X) 46 (F)
D301 36 (6) 2D (-)
D302 4D (M) 34 (4)
D303 21 (!) 52 (R)
X0
D300
ASC
[ D ]
[ S ]
F X - 6 4 M R !