User's Manual
Table Of Contents
- Contents
- Overview
- Controller Notation
- Servo and Stepper Motor Notation:
- Command Descriptions
- Servo Update Rates
- Commands which are not Allowed when Operating in Fast Mode:
- #
- $
- & |
- ( )
- ;
- [ ]
- + - * /
- <, >, =, <=, >=, <>
- =
- AB
- @ABS[n]
- AC
- @ACOS[n]
- AD
- AF
- AI
- AL
- AM
- @AN[n]
- AO
- AP
- AR
- AS
- @ASIN[n]
- AT
- @ATAN[n]
- #AUTO
- #AUTOERR
- AV
- BA
- BB
- BC
- BD
- BG
- BI
- BK
- BL
- BM
- BN
- BO
- BP
- BS
- BV
- BZ
- CB
- CC
- CD
- CE
- CF
- CI
- CM
- #CMDERR
- CN
- CO
- @COM[n]
- #COMINT
- @COS[n]
- CR
- CS
- CW
- DA
- DC
- DE
- DL
- DM
- DP
- DT
- DV
- EA
- EB
- EC
- ED
- EG
- EI
- ELSE
- EM
- EN
- ENDIF
- EO
- EP
- EQ
- ER
- ES
- ET
- FA
- FE
- FI
- FL
- @FRAC[n]
- FV
- GA
- GN
- GM
- GR
- HM
- HX
- IA
- IF
- IH
- II
- IL
- IN
- @IN[n]
- #ININT
- @INT[n]
- IP
- IT
- IV
- JG
- JP
- JS
- KD
- KI
- KP
- KS
- LA
- LE
- _LF*
- LI
- #LIMSWI
- LL
- LM
- _LR*
- LS
- LV
- LZ
- MB
- MC
- #MCTIME
- MF
- MG
- MO
- MR
- MT
- NB
- NF
- NO
- NZ
- OB
- OC
- OE
- OF
- OP
- @OUT[n]
- P1CD P2CD
- P1CH P2CH
- P1NM P2NM
- P1ST P2ST
- #POSERR
- PA
- PF
- PR
- QD
- QR
- QU
- QZ
- RA
- RC
- RD
- RE
- REM
- RI
- RL
- @RND[n]
- RP
- RS
-
R S -
R V - SA
- SA n
- SB
- SC
- SH
- @SIN[n]
- SL
- SP
- @SQR[n]
- ST
- @TAN[n]
- TB
- TC
- #TCPERR
- TD
- TE
- TH
- TI
- TIME*
- TL
- TM
- TP
- TR
- TS
- TT
- TV
- TW
- UI
- UL
- VA
- VD
- VE
- VF
- VM
- VP
- VR
- VS
- VT
- WC
- WH
- WT
- XQ
- ZR
- ZS
- Index

DMC-1400 Series Command Reference IH ● 103
IH
FUNCTION: Open Internet Handle
DESCRIPTION:
The IH command is used when the DMC-1415, DMC-1416 or DMC-1425 is operated as a
master (also known as a client). This command opens a handle and connects to a slave.
Each controller may have 6 handles open at any given time. They are designated by the
letters A through F. To open a handle, the user must specify:
1. The IP address of the slave
2. The type of session: TCP/IP or UDP/IP
3. The port number of the slave. This number is not necessary if the slave device does
not require a specific port value. If not specified, the controller will specify the port
value as 1000.
ARGUMENTS: IHh= ip0,ip1,ip2,ip3 <p >q or IHh=n <p >q or IHh= >r where
h is the handle, specified as A,B,C,D,E or F
ip0,ip1,ip2,ip3 are integers between 0 and 255 and represent the individual fields of the IP
address. These values must be separated by commas.
n is a signed integer between - 2147483648 and 2147483648. This value is the 32 bit IP
address and can be used instead of specifying the 4 address fields.
IHS => C closes the handle that sent the command; where C=-1 for UDP/IP, or C=-2 for
TCP/IP.
IHN => C closes all handles except for the one sending the command; where C=-1 UDP, or
C=-2 for TCP.
<p specifies the port number of the slave where p is an integer between 0 and 65535. This
value is not required for opening a handle.
>q specifies the connection type where q is 0 for no connection, 1 for UDP and 2 for TCP
>r specifies that the connection be terminated and the handle be freed, where r is -1 for UDP,
-2 for TCP/IP, and –3 for TCP/IP reset
"?" returns the IP address as 4 1-byte numbers
OPERAND USAGE:
_IHh0 contains the IP address as a 32 bit number
_IHh1 contains the slave port number
_IHh2 contains a 0 if the handle is free
contains a 1 if it is for a UDP slave
contains a 2 if it is for a TCP slave
contains a -1 if it is for a UDP master
contains a -2 if it is for a TCP master
contains -5 while establishing UDP handle
contains -6 while establishing TCP handle
_IHh3 contains a 0 if the ARP was successful
contains a 1 if it has failed or is still in progress.