Common Gateway Interface (Cgi; Url Syntax Construction; Assigning New Values To A Variable - Novanta ATI Axia80 Manual

F/t sensor
Hide thumbs Also See for ATI Axia80:
Table of Contents

Advertisement

Manual, F/T Sensor, Ethernet Axia
Document #9620-05-C-Ethernet Axia-02
9. Common Gateway Interface (CGI)
A user can configure the sensor over Ethernet by using standard CGI protocol and standard HTTP GET method
which sends configuration variables and their values in the requested URL. External factors to the sensor determine
the maximum length of these URLs. If a user exceeds the maximum length, an error or variables might be
incorrectly set.
Each variable is only settable from the CGI page which is responsible for that variable. Each CGI page and the
settable variables associated with the page are explained in the following sections and tables.
9.1 URL Syntax Construction
A user can send commands to a URL by using the following syntax:
http://<netFTAddress>/<CGIPage.cgi>?<firstVariableAssignment><&nextVariable Assignment>
where:
http://
<netFTAddress>
/
<CGIPage.cgi>
?
<firstVariableAssignment>
<&nextVariableAssignment>
9.1.1 Assigning New Values to a Variable
A user can assign new values to a variable by using the following syntax:
where:
• For example:
Pinnacle Park • 1031 Goodworth Drive • Apex, NC 27539 • Tel:+1 919.772.0115 • Fax:+1 919.772.8259 •
:
indicates an HTTP request
is the Ethernet address of the Ethernet Axia sensor
a separator
the name of the CGI page that holds the variables to be accessed
a separator marking the start of variable assignments
a variable assignment using the format described below
a variable assignment using the following format, but the variable name
is proceeded by an ampersand (&).
This variable assignment is optional and may be repeated for
multiple variables.
variableName=newValue
variableName
=
newValue
http://192.168.1.1/setting.cgi?setcfgsel=2&setuserfilter=0&setpke=1
tells the sensor at IP address 192.168.1.1 to set CGI variables
setcfgsel
is the name of the variable to be assigned
indicates assignment
is the value to be assigned to the variable.
Text for text variables should not be enclosed in quotes.
To include the ampersand character in text for a text
variable use %26.
Floating point numbers are limited to 20 characters.
setuserfilter
to 2,
to 0, and
C-70
setpke
to 1.
www.ati-ia.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Axia80-m8Axia80-m20Axia80-m50

Table of Contents