Htoa (Hex To Ascii) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

HTOA (Hex to ASCII)

HTOA(W)
*****
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When T (timer) or C (counter) is used as S1 or S2, the timer/counter current value (TC or CC) is displayed.
Make sure that the quantity of digits designated by S2 is within the valid range. If the S2 data exceeds the valid range, a user program execution
error will result, turning on special internal relay M8004 and the ERR LED on the FC6A Series MICROSmart.
When a user program execution error occurs, the execution of the instruction is canceled. The value of D1 is left unchanged and the next instruction
is executed. For user program execution errors, see "User Program Execution Errors" on page 3-10.
Since the HTOA instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
W (word)
X
I (integer)
D (double word)
L (long)
F (float)
S1
S2
D1
*****
*****
Function
Binary data to convert
Quantity of digits to convert
Destination to store conversion results
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source,
16 points (word data) are used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or destination,
1 point (word data) is used.
FC6A S
MICROS
ERIES
MART
S1 → D1, D1+1, D1+2, D1+3
When input is on, the 16-bit binary data assigned by S1 is read from the lowest digit as
many times as the quantity of digits assigned by S2, converted into ASCII data, and
stored to the destination starting with the device assigned by D1.
The quantity of digits to convert can be 1 through 4.
I
Q
X
X
X
X
L
P
M
ADDER
ROGRAMMING
ANUAL
10: D
C
ATA
ONVERSION
M
R
T
C
D
P
X
X
X
X
X
X
X
X
X
X
X
FC9Y-B1726
I
NSTRUCTIONS
Constant
Repeat
X
1-4
10-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents