This document provides an overview of the technical aspects of using WebControlTM
PLC. It describes the inputs and outputs offered by the PLC version of the
WebControl
found in chapter 6 of this document. Function, usage and syntax as well as many
examples are provided there to help you get started. WebControl
from the earlier WebControl
flexibility in I/O control; but in return, expects user to learn programming concepts
and write an assembly like PLC program. A PLC program has the ability to read
write and compare values of the available inputs, outputs, variables and timers. With
a PLC program loaded and running, WebControl
without a network connection. The PLC programming module and programming
guide are provided for a learn-on-your own experience. Assistance in writing or
debugging PLC code is not provided as part of the regular technical support for
WebControl
TM
hardware and firmware. The WebControl PLC Programming Guide is
TM
PLC is different
TM
BRE. The PLC version of firmware provides greater
TM
PLC can operate on its own,
TM
PLC configuration.
1.1 Scope
The scope of this document is to be a guide for configuring and using the features
provided by WebControl
TM
. The reader is expected to be technically competent in all
the technical areas within this document, and is strongly advised to use this
document alongside the other reference material listed in the reference section.
1.2 Table of Definitions
The following table is a list of definitions used though out the document.
Definition
HTTP Hypertext transfer protocol
DNS Domain name server
SMTP Simple mail transport protocol
SNTP Simple network time protocol
1-wire Special bidirectional serial data bus from Maxim
RH Relative humidity
NetBios Human readable name used as an alternative to an IP address for
IP Internet protocol
DHCP Dynamic host configuration protocol
ROM Read only memory
PLC Programmable Logic Controller
Description
accessing the server on a network. E.g. http://WebControlTM
Copyright(c) 2008,-2011 CAI Networks, Inc. 1
WebControlTM PLC User Guide Version 3.02.17f
2 WebControlTM I/O
The current hardware version of WebControlTM is equipped with a number of inputs
and outputs; these are shown in below in figure 1.0.
Figure 1.0 WebControl
TM
PCB inputs and outputs diagram
2.1 Power Supply Inputs
The DC power supply input is the electrical supply to the board. The recommended
input voltage is 9V DC. Any voltage greater than 12V applied to this input may
require adding heatsink to regulator, otherwise it may overheat.
2.2 TTL Output Port
The TTL logic level output port has 8 TTL outputs that can each be set or cleared
using web GUI command codes, or by setting up a PLC using the available inputs,
variables, and timers, so that the particular output is set when a particular condition is
met. The maximum current that can be sourced or sinked by one of these outputs at
a time is 20mA or 100mA for the whole board. TTL 0 level defined as 0-2V and TTL
1 level is define 3-5V with TTL 0 almost 0V and TTL 1 almost 5V depending on the
Copyright(c) 2008,-2011 CAI Networks, Inc. 2
WebControlTM PLC User Guide Version 3.02.17f
load. TTL output current is capable to drive standard solid state relay, but will not be
able to drive those coil based relays. Be aware of the current requirements of the
circuits/loads attached to these outputs. Damage will occur to the board if too much
current is allowed.
2.3 AUX Input Port
The AUX input connector offers digital and analog inputs that can be monitored or
programmed to set a single TTL output or several TTL outputs. Three analog inputs
are available, each have an input range of 0 to 10Vdc. Eight digital inputs are
available and use TTL input levels
(labeled as J12AUX in Figure 1) shows the layout of this port in more detail. The
matching connector for this port is TYCO ELECTRONICS - 1658622-3 .
(0 and 5Vdc). The AUX Input Port pin out diagram
2.4 1-Wire Sensor Input
The 1-wire sensor port allows up to eight Maxim DS1822/DS18B20/DS18S20 1-wire
temperature sensors to be connected. It also allows one Maxim DS2417 real time
clock, and one DS2450 4 channel A/D converter. The temperature and analog input
can be displayed via the HTTP browser and can be used as inputs to the PLC engine
to control the TTL output port. Since hardware revision 2.2.2 uses 5V to power 1wire bus, there is no need for any external power to the sensors. Please note if more
than one DS2450 is attached to 1-wire bus, only the first one will be used by the
firmware. If more than 10 1-wire devices attached to the bus, only the first 10 will be
used.
2.5 Humidity Sensor Input
The current WebControlTM hardware has been designed to use the Honeywell 4000
series relative humidity sensor devices. Using any other humidity sensor without
careful consideration may result in malfunction of this feature. The RH sensor can be
used to display relative humidity via HTTP or be used to control the TTL outputs as
an input in the PLC engine.
Figure 2.0 WebControl
connections
Please make sure the temp sensor
and humidity sensor connected
similar to this picture. Reverse the
polarity may cause damage to the
board.
TM
sensor
Copyright(c) 2008,-2011 CAI Networks, Inc. 3
WebControlTM PLC User Guide Version 3.02.17f
3 WebControlTM PLC Web GUI Configuration
To access WebControlTM PLC, connect WebControl
TM
to the local network and power
supply. The default IP address will be 192.168.1.15. Be aware that once you enable
DHCP in your WebControl network settings page, you will need to check your DHCP
server log for which IP address DHCP assigned to the board. You need to know and
understand the network you attaching this hardware to in order to know where to look
for DHCP server logs. For home networks, DHCP serving is commonly enabled at
the router. Each WebControl
TM
PLC board has a unique MAC address. Look in the
DHCP log to find the matching MAC address, then you can find the IP address
DHCP assigned to the hardware. From a computer connected to the same network,
start a web browser, and point to that IP address: for example: http://ww.xx.yy.zz
when the web page loads, you will be prompt for login. The default user ID and
password is: “admin/password”, all in lower case. You will see this page once
logged in:
Figure 3.0 WebControl
TM
PLC system status
3.1 Network Settings
These are the basic settings that need to be configured in order for WebControlTM to
work successfully on a network. It may be necessary to connect the board directly to
a PC and access it using its default IP address before connecting directly to a live
Copyright(c) 2008,-2013 CAI Networks, Inc. 5
WebControlTM PLC User Guide Version 3.02.17f
network in order to configure it correctly. Figure 4.0 shows the Network settings
WebControl
TM
has.
Figure 4.0 WebControl
TM
PLC Network configurable
3.1.1 NTP Server Settings
This version changed from previous versions by reduced Allowed Limits host IP
address from eight to four. In addition, it added NTP Server section to allow user to
enter his local NTP server’s IP address to overwrite the default pool.ntp.org resolved
IP address. By default NTP server field should be 0.0.0.0, so that WebControl
TM
will
use pool.ntp.org as the Network Time Protocol server.
3.1.2 Access Settings
For security purpose, you can decide your own user name and password. For being
used over Internet, you may also set the access list, so that only host in the list can
Copyright(c) 2008,-2013 CAI Networks, Inc. 6
WebControlTM PLC User Guide Version 3.02.17f
access the WebControlTM board over the network. Please note that if any entry is
0.0.0.0, all IP addresses can access it.
Copyright(c) 2008,-2013 CAI Networks, Inc. 7
WebControlTM PLC User Guide Version 3.02.17f
3.2 I/O Setup
WebControlTM PLC allows users to directly from browser control each output, or
through the PLC logic to control the TTL output. For flexibility, user can decide if the
TTL input or out to be inverted between logic 0 and logic 1. To use PLC logic, first
user must check the “Global PLC enable” to start the PLC engine. Then for each
TTL output, user can decide if the PLC control will be applicable.
Figure 5.0 I/O setup
WebControl
TM
PLC allows user using browser to directly control the output state. If a
command line utility or third party control software used, you will need to enable the
Browser Control for that TTL output, also may need to go to network configuration to
disable the Web login (see figure 4.0).
The inverted state will be remembered in EEPROM even after power loss. The invert
state will be restored upon power resumed.
X10 Enable will allow user to send X10RF commands through TTL port7 and TTL
port8. Those two ports will not be able to perform any other function, once X10 is
enabled.
Copyright(c) 2008,-2013 CAI Networks, Inc. 8
WebControlTM PLC User Guide Version 3.02.17f
Counter Enable /Frequency Measurement Enable/TTL Input Enable are radio buttons
that you can only select one of them. Those functions sharing the same TTL1 input.
Please note the Counter is triggered at rising edge after the falling edge. If your
counting source TTL level was zero from start with, you may miss count by 1.
Frequency measurement is up to 2MHz.
Copyright(c) 2008,-2013 CAI Networks, Inc. 9
WebControlTM PLC User Guide Version 3.02.17f
3.3 X10 RF Control
Figure 6.0 WebControl
TM
X10RF Control
WebControl uses TTL7 and TTL8 to control X10RF devices. User must already
enabled X10RF function in the I/O Setup screen. An external RF transmitter must be
attached to the output port TTL7, TTL8, and ground. In the USA, the X10 RF
frequency is 310MHz, and in Europe, the frequency is 433 MHz WebControl can
send all 16 house codes and 16 unit codes, controlling total 256 devices.
X10 RF function is supported in the PLC programming also.
In PLC programming, PLC command is in the format:
X10 H U C
Where H is house code from 0-15, U is unit code, also from 0-15; C is one of
following four commands: 0 – Off, 1 – On, 2 – Bright, 3 – Dim. H,U,C can be
variables so that user can dynamically change the X10 operation in PLC logic.
If the X10 function enabled, TTL7 and TTL8 should not be used for controlling other
devices. Please note PLC logic uses 0-15 or 0-0xF for code, web GUI only use 0-F.
Copyright(c) 2008,-2013 CAI Networks, Inc. 10
WebControlTM PLC User Guide Version 3.02.17f
3.4 Output Control
Figure 6.0 WebControl
TM
Output Control
When click on each TTL output On or Off, the current state of the TTL output will
change. However, the display may or may not update depending on the “Web
pulling” enabled in the General Setup screen. If you did not enable the “Web Pulling”
to save the bandwidth, you will need to use browser refresh to see the output state
change. Please note “Save States” button will make WebControl store the state in
the EEPROM. When power lost and reapplied, the output will remember the states
being saved.
Copyright(c) 2008,-2013 CAI Networks, Inc. 11
WebControlTM PLC User Guide Version 3.02.17f
3.5 Notification Setup
WebControlTM allows up to 8 different email notifications to be send from the PLC
program. Please note the port can be any number, but WebControl current hardware
cannot support SSL enabled email. Certain email servers like Gmail requires use
SSL enabled email client. WebControl does not support that. However, WebControl
does allow sending email out from port other than 25. Most local ISP provides the
non-SSL email server on port other than 25, for example, Yahoo email using port
587. Please contact your local ISP first to find out how to sending out non-SSL
encrypted email. For example, Yahoo email can be used:
SMTP Host = smtp.mail.yahoo.com Port 587
username = your-Yahoo-email-account,
password = your password used
From field = Your Yahoo mail
From firmware 3.02.16, user can specify different email address for different email
notification. So that different email can be send to different person for a different
event.
WebControl 3.02.16 firmware also allow HTTP GET to be used to set the VAR or
output state to another WebControl board, provided the other board does not enable
logic. If the security is concern, please set up allowed host in Network Setup screen.
This HTTP GET feature can also be used to send notification to the remote HTTP
server, given the remote server does have CGI logic to process the HTTP GET sent
from WebControl. User can specify up to 8 different URLs on each board. There are
three fields in each URL. The first field is IP address and port, in the format of
192.168.2.15:81 . The “:” is to separate the IP address and remote HTTP port. There
is no space. It is followed by virtual host name. The URI portion of the URL is a
string leading all the way to the value being set on the WebControl or remote HTTP
server. The last part of the URL is the Base64 encrypted use name and password.
This will allow one WebControl to set value in another WebControl with password
protected. If the other side does not require login, this field can be left blank.
For example, if you want to set a remote WebControl board VAR1 to value 1234, you
simple in the PLC logic calling:
WEBSET URL1 1234
Or
Copyright(c) 2008,-2013 CAI Networks, Inc. 12
Loading...
+ 35 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.