Function, Expression function, Execution condition – Toshiba SX 2000 User Manual

Page 63: Operand, 3) ascii to hex conversion (atom), Registers starting with, Is converted to the hexadecimal data and stored in, And after. the lower byte of source

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

Chapt.1 System Configuration

F 0

F 8

7 0

RW100

HOI 23

D0220

“1” (H31)

“0” (H30)

RW101

H4567

Converted D0221

“3” (H33)

“2” (H32)

RW102

H89AB

^ D0222

“5” (H35)

“4"

(H34)

RW103

HCDEF

D0223

“7” (H37)

“6” (H36)

D0224

“9” (H39)

“8” (H38)

D0225

“B” (H42)

“A” (H41)

D0226

“D” (H44)

“C” (H43)

D0227

“F” (H46)

“E” (H45)

(3) ASCII to HEX conversion (ATOM)

FUN 66

ATOH ASCII to HEX conversion

Expression

Function

When the input is ON, the ASCII characters stored in

n

registers starting with

A

is converted to the hexadecimal data and stored in

В

and after.

The lower byte of source

A

is stored as uppermost digit of destination 6, 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.

When index or constant value is set as source

A.,

this function can be

performed under the condition that n is equal to 1. If n is more than 1, a
boundary error is occured.

Execution condition

Input

Operation

Output

ERF

OFF

No execution

OFF

-

ON

Normal execution

ON

-

Conversion data error (no execution)

OFF

ON

Operand

Device

Register

Con­

start

Name

X

Y

S

L

R

Z

T.

c.

1

0

X

Y

s

L

R

w

T

c

D

F

1

0

1

J

к

Index

W W

w

W

W

w w

/А Source

V

V

V

V

V

V

V

V

V

V

V

V

V

V

V

V

n

Size

1 -64

в

Destination

V

V

V

V

V

V

V

V

V

V

V

46

Sequence Controller S2T

Advertising