CAI Networks WebControl PLC User Manual page 17

Programmable logic controller
Table of Contents

Advertisement

TM
WebControl
PLC User Guide Version 3.02.17f
Most email notification problems are either the configuration problem or the SMTP
host rejected email. In this version PLC firmware, user can send a test email to see if
the email notification working or not. In earlier version user guide, it was not clearly
stated the email message ID is in format of EM1 through EM8. Using number only or
other string may send out wrong email message.
WEBSET feature allows setting VAR value in another WebControl board, or setting
value on your web server, if you have proper CGI code developed to take. For
example, to set a value in ISY from Universal Devices, you can configure the URL1
to:
IP_address:port:virtual_host for example: 192.168.2.222:80:www.mydomain.com
Please note ISY99 using port 80
URI example: /rest/vars/set/1/15/
Base64 encrypted username:password: Example: YWRtaW46cGFzc3dvcmQg
Between username : and password, there is no space. In earlier version, you need to
specify " AUTHBASIC: " from 3.02.17 firmware, the third field is dedicate for the
encrypted user ID and password, so that " AUTHBASIC: " can be omitted.
In your PLC logic, you can put this command:
WEBSET
URL1
VAR1
Then it will set ISY variable 15 to the value of VAR1.
To do base64 encryption, you can go to our web site at:
http://www.cainetworks.com/support/base64-encoding.html
From 3.02.17 firmware, server CGI code can return a 32bit signed number to
WebControl during WEBSET call. Please refer to the chapter 6 example 15 for how
to write the CGI code and how to refer to this returned value.
To obtain support for email or WEBSET feature, full TCP capture data is required.
The captured data must be able to fully display in WireShark software.
Copyright(c) 2008,-2013 CAI Networks, Inc.
14

Advertisement

Table of Contents
loading

Table of Contents