Simple Control Port Commands - Telnet and Web-browser Accessible
Upper & lower case text can be used interchangeably except where noted. Port 23 is
default for Telnet. Port 80 is default for web browser. They both can be mapped to
different ports.
The following commands are for either a Telnet (port 23) or Web browser (port 80)
connection. There are minor differences when implementing these commands via Telnet
or via URL encoding using a web browser. All commands listed will work using either
connection method but due to some limitations of the web browser, the encapsulation
characters must be modified to be certain the web browser will properly handle them. All
examples are shown in a proper implementation of a Telnet or Web Browser session.
NOTE:
When using web browsers, some non-alpha numeric characters must be
represented as their hex equivalent such as %xx where xx equal the two
character representation of the hex byte that needs to be sent (i.e. a comma
‘,’ would be represented as %2C). Characters such as ‘%’ (percent), ’+’ (plus)
and ‘ ‘ (space) should also be encoded in Hex.
Telnet
Web Browser
Escape (Hex 1B)
W [must
not
be encoded]
Carriage Return (Hex 0D)
Pipe Character (|) [must
not
be encoded]
When describing the use of SIS commands via a web browser, the [URL] reference is used
to shorten the examples. [URL] would be the full URL of the control interface and web
page reference including all path information
(e.g. http://192.168.254.254/mypage.HTML).
To send commands using a Web browser, prefix them with the full URL followed by ?cmd=
(e.g. http://192.168.254.254/mypage.html?cmd=WSF|).
ASCII
Hex
Unit response
Control Command
(via Telnet)
Esc
X# X@
Command
}
X@
Data
1B
X# X@
Command 0D
X@
Data
response from command
]
Example:
Esc 03RS
}
1*2!
1B 30 33 52 53 0D 31 2A
32 21
OUT 02•IN 01• ALL
]
ASCII
URL Encoded
(Web)
Unit response
Control Command
(via WEB)
URL?cmd=W
X# X@
Command |
X@
Data
URL?cmd=W
X# X@
Command |
X# X@
Data
response from command
]
Example:
URL?cmd=W03RS|1*2!
URL?cmd=W03RS |
1%2A2%21
OUT 02•IN 01• ALL
]
X@
= Input number, 1 – 6
X#
= Outputs 1 – 4
DMP 64 • SIS Programming and Control
54
Summary of Contents for DMP 64
Page 4: ......