Extron electronic IPL T PCS4i manual Code example, Example of a Query String Command

Page 42

The query string in the figure below turns off DHCP on the IP Link device.

URL with a Query String Using an SIS Command

 

 

 

SIS Command

 

 

 

<a href="index.html

?

cmd=

W1*1PC

">

Receptacle on

</a>

HTML Code

Starts

Tells web server

SIS Command

HTML Code

Linked Text

Closes

query string.

for a Link

 

that SIS

To Be Processed

for a Link

 

link.

 

 

command follows.

by the IP Link

 

 

 

*Enter with no spaces.

Figure 25. Example of a Query String Command

Code example

The following figure shows a practical use for both SSIs and query strings. In this example, the HTML source code contains three SSI commands.

<html>

 

<head><title>Example 1</title></head>

 

<h2 b>HTML Example #1</h2 b>

 

<body>

 

The following lines demonstrate how to read status from the IPLink Product:

IPLink Product Name: <b><!--#echovar="1I"--></b>

 

<br>

SSI

IPLink Product Description: <b><!--#echovar="2I"--></b>

commands

<br>

 

IPLink Product Part Number: <b><!--#echovar="N"--></b>

 

</body>

 

</html>

 

Figure 26. Web Page HTML Source Code Document Showing SSIs

The SSI commands in the figure above request the product name, product description, and product part number of an IP Link device.

<html>

<head><title>Example 1</title></head> <h2 b>HTML Example #1</h2 b> <body>

The following lines demonstrate how to read status from the IPLink Product: IPLink Product Name: <b>IPL T PCS4</b>

<br>

IPLink Product Description: <b>Four Switched 110v AC Receptacles with

Current Threshold Sensing</b>

<br>

IPLink Product Part Number: <b>60-544-07</b> </body>

</html>

Figure 27. Resulting HTML Source Code Served by an IP Link web Server

IPL T PCS4 • HTML Configuration and Control 36

Image 42
Contents IPL T PCS4 IPL T PCS4iSafety Instructions English FCC Class a Notice Software Commands Conventions Used in this GuideNotifications Contents IPL T PCS4 Contents About this Guide FeaturesIntroduction About the IPL T PCS4Application Diagrams IPL T PCS4Connection Diagram for IPL T PCS4i Installation Rear Panels Installation OverviewRear Panels IPL T PCS4i Rear Panel 220 VACConfiguring the LAN Port Setting Up the LAN PortConnecting the Devices LAN Port CablingIPL T PCS4 Installation and Rear Panel Front Panel Features Operation Front Panel FeaturesSetting Up the System Using the Front Panel Setting Up Power ControlSetting Power Level Reference Thresholds Setting the Full power threshold If the receptacle Is set to Power level Receptacle Full None and Not Set thresholdsStandby Grouping Receptacles Front panel Security Lockout Executive ModeLED lit Group Red power LED lit Group Clearing thresholdsActivation Resetting the UnitMode ResultHold the Reset button in until the Power LED blinks once Configuration Control Configuring the HardwareSetting Up the Computer Using ARP ARP-S Command Screen Setting Up the Computer Using a Web Browser Screen Showing the Ping CommandSetting up the computer for IP communication Subnet mask Default gateway Blank or Configuring the IPL T PCS4 using a web browser Example of a Default System SettingsUsing the Embedded Web Pages Password Prompt WindowViewing the System Status System Status WebConfiguration Specifying system settingsIP settings Date and time settings Assigning passwords To assign passwordsRemoving passwords Entering e-mail addresses for alerts Mail Alerts Screen Upper PortionUpgrading firmware Managing receptaclesSwitching power to receptacles on and off Grouping receptaclesMonitoring the receptacles and setting the alarm Monitoring Settings sectionAlarm Relay Settings section Scheduling power to receptacles Scheduling an individual receptacleScheduling receptacles by day of the week All receptacles on and offOne receptacle, power on or off File ManagementUploading files to the web Adding a directoryOther file management functions Custom Web Pages Server Side Includes SSIsQuery Strings Example of a Query String Command Code exampleURL Encoding Browser View of Previous Html Source CodeReserved characters Unsafe charactersCharacters Hex Dec Device Power Control Accessing and Using Telnet PortCustom Web Pages Troubleshooting Power ConnectionsSuccessful Ping Command Response Network ConnectionsDownloading Global Configurator Software SIS Programming Control Host-to-Interface CommunicationMessages Initiated by the IPL T PCS4 Password Information Error ResponsesError Response References Using the Command and Response Table Telnet Web BrowserSymbol Definitions ExampleX5@ X71 Command and Response Table for SIS Commands Power Receptacle Monitoring and Alarm FunctionsWeb Browser-specific Commands Password and Security Settings Set GMT offset24 View GMT offsetDirectory Commands Below Telnet text responses Ethernet control interface SpecificationsReference Material AC control interfaceAlarm relay control GeneralPart Numbers and Accessories Mounting the IPL T PCS4 InterfaceRack mounting procedure Mounting the IPL T PCS4 on a Rack ShelfUnder-desk Mounting Mounting the IPL T PCS4 under FurnitureGlossary 10/100Base-TDriver Power level reference threshold Subnet Asia Middle East USA, Canada, South America Japan Central AmericaEurope, Africa, and the Middle China East Europe
Related manuals
Manual 2 pages 35.37 Kb