Delta AH500 Programming Manual page 616

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
2103
D
DABIN
Device X
Y
M
S
D
Symbol:
Explanation:
1.
The signed decimal ASCII code in S is converted into the signed decimal binary number, and
the conversion result is stored in D.
2.
The operand S used in the 16-bit instruction occupies three word devices, and the decimal
ASCII code in S should be within the range between -32768 and 32767. If S is a string, the
string should be within the range between "-32768" and "32767".
b15
ASCII code in the
S
ten thousands plac e
S+1
ASCII code in
S+2
the hundreds place
ASCII code in
the units pl ac e
3.
If S used in the 16-bit instruction is a string and the number of characters contained in the
string is less than 6, the characters which the string lacks are regarded as 0. The first
character is a sign character. If the first character is " " (a space), the sign is a positive sign. If
the first character is "-", the sign is a negative sign. Take the string "1234" for example.
b15
" 1"
S
" 3"
S+1
" " (Ignored)
S+2
4.
The operand S used in the 32-bit instruction occupies six word devices, and the decimal ASCII
code in S should be within the range between -2147483648 and 2147483647. If S is a string,
the string should be within the range between "-2147483648" and "2147483647".
6 - 4 4 8
Operand
P
S, D
S
T
C
HC
D
Pulse instruction 16-bit instruction (5-11 steps) 32-bit instruction (5-11 steps)
AH500
S : Source value
Device in which the conversion
D :
result is stored
b8
b7
b0
Sign
ASCII code in
the thousands plac e
ASCII code in
the tens plac e
b8
b7
b0
" " (Space)
" 2"
" 4"
Converting the signed decimal
ASCII code into the signed decimal
binary number
L
SM SR
E
PR
AH500
Word
Word/Double word
b15
16-bit bi nar y number
b15
12340
16-bit binar y number
Function
K
16# "$"
DF
AH500
b0
D
b0
D

Advertisement

Table of Contents
loading

Table of Contents