Delta AS Series Programming Manual page 1100

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
2207
IATON
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts the string IP address in S into an integer IP address, and stores the conversion result in D
and D+1.
2.
The operand S occupies eight consecutive devices.
"192 .16 8. 0.1 "
" "
1
" " 9
S+ 0
" "
2
S+ 1
". "
" "
1
" "
6
S+2
" "
8
S+ 3
". "
" " 0
" "
0
S+ 4
S+ 5
". "
" "
0
" "
0
S+6
" " 0
1 6 00
#
" " 1
S+ 7
3.
There are 1–3 characters in every section of the string IP address in S. These sections are separated by "."
(16#2E). For example, you can enter "192.168.0.1" instead of "192.168.000.001".
4.
The value of each section of the string IP address in S must be between 0–255.
Operand
P
S,D
S
T
C
HC
Pulse instruction
Af ter t he inst ruct ion
D +0
is e xecut ed
D + 1
Ch ap te r 6 Ap pl ie d Instruc ti ons
Converting a string IP address into an
D
FR
SM
SR
16-bit instruction
AS
AS
: Source value
S
: Conversion result
D
16 #C 0(19 2)
16# A8(168 )
1 6# 00 (0)
1 6#0 1 (0 1)
Function
integer IP address
E
K
16#
"$"
F
32-bit instruction
-
6 - 8 2 1
6_
6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents