6.5.15 ATH&HTA
Input/output Operand
Data type
IN,OUT
VB, IB, QB, MB, SB, SMB, LB, *VD, *AC, *LD
Byte
LEN
VB, IB, QB, MB, SB, SMB, LB, AC,constant, *VD, *LD, *AC Byte
ASCII to HEX
Instruction converts the ASCII characters
starting with “ IN ” to the hexadecimal digits starting with the “ out ” .The maximum length of the ASCII string
is 255 characters.
HEX to ASCII Instruction converts the hexadecimal digits
starting with “ IN ” to the ASCII characters starting with the “ out ” .
The length of conversion hexadecimal digits is specified
by the LEN.The maximum length is 255.
Valid ASCII input character:
Numbers 0 to 9 and capital letters A to F.
ASCII Codes: 30 to 39 and 41 to 46.
Error condition: Illegal ASCII code
Example:
106
Made with FlippingBook - Online magazine maker