Toshiba PROSEC T1 User Manual page 182

Programmable controller
Hide thumbs Also See for PROSEC T1:
Table of Contents

Advertisement

7. Instructions
FUN 063
ATOH
Expression
Input -[ A ATOH ( n ) B ]- Output
Function
When the input is ON, the ASCII characters stored in n registers starting with A is converted into
hexadecimal data and stored in B and after. The lower byte of source A is stored as uppermost digit of
destination B , and followed in this order. The allowable ASCII character in the source table is "0" (H30)
to "9" (H39) and "A" (H41) to "F" (H46). The allowable range of n is 1 to 64.
Execution condition
Input
OFF
No execution
ON
Normal execution
Conversion data error (no execution)
Operand
Name
A Source
n Data size
B Destination
Example
When R011 is ON, the ASCII characters stored in 8 words of D0300 to D0307 are converted into
hexadecimal data, and stored in 4 words registers starting with RW040.
F
D0300
"1" (H31)
D0301
"3" (H33)
D0302
"5" (H35)
D0303
"7" (H37)
D0304
"9" (H39)
D0305
"B" (H42)
D0306
"D" (H44)
D0307
"F" (H46)
Note
· If index register (I, J or K) is used for the operand A , only n = 1 is allowed.
· If n is odd number, lower 2 digits of the last converted data will not be fixed, Use even for n .
180
T1/T1S User's Manual
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
ASCII to Hex conversion
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
8 7
0
"0" (H30)
"2" (H32)
"4" (H34)
"6" (H36)
"8" (H38)
"A" (H41)
"C" (H43)
"E" (H45)
Output
OFF
ON
OFF
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
RW040
Converted
RW041
RW042
RW043
T1S only
ERF
-
-
Set
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
Ö
1 - 64
Ö
F
H0123
H4567
H89AB
HCDEF
6F3B0250
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents