Toshiba PROSEC T1 User Manual page 181

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

Advertisement

FUN 062
HTOA
Expression
Input -[ A HTOA ( n ) B ]- Output
Function
When the input is ON, the hexadecimal data of n registers starting with A is converted into ASCII
characters and stored in B and after. The uppermost digit of source A is stored in lower byte of
destination B , and followed in this order. The allowable range of n is 1 to 32.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
A Source
n Data size
B Destination
Example
When R010 is ON, 4 words data of D0100 to D0103 are converted into ASCII characters, and
stored in 8 words registers starting with D0200.
F
D0100
D0101
D0102
D0103
Note
· If index register (I, J or K) is used for the operand A , only n = 1 is allowed. Otherwise, boundary
error will occur.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Hex to ASCII conversion
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
0
H0123
H4567
H89AB
HCDEF
Output
OFF
ON
Register
C
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
Ö
D0220
Converted
D0221
D0222
D0223
D0224
D0225
D0226
D0227
Basic Hardware and Function
6F3B0250
7. Instructions
T1S only
Constant Index
D
I
J
K
Ö
Ö
Ö
Ö
Ö
1 - 32
Ö
F
8 7
"1" (H31)
"0" (H30)
"3" (H33)
"2" (H32)
"5" (H35)
"4" (H34)
"7" (H37)
"6" (H36)
"9" (H39)
"8" (H38)
"B" (H42)
"A" (H41)
"D" (H44)
"C" (H43)
"F" (H46)
"E" (H45)
179
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents