CAI Networks WebControl PLC Bedienungsanleitung

WebControlTM
Programmable Logic
Controller
User Guide
Version: 3.2.17f
Hardware Version: 2.2.2
Firmware Version: 3.02.17f5
Firmware datastamp: 10/15/2013
Doc last modified: 11/1/2013

WebControlTM PLC User Guide Version 3.02.17f
Copyright(C) 2008-2013 CAI Networks, Inc. i
Table of Contents
1Introduction .......................................................................................................... 1
1.1 Scope............................................................................................................ 1
1.2 Table of Definitions ....................................................................................... 1
2WebControlTM I/O................................................................................................. 2
2.1 Power Supply Inputs..................................................................................... 2
2.2 TTL Output Port ............................................................................................ 2
2.3 AUX Input Port.............................................................................................. 3
2.4 1-Wire Sensor Input...................................................................................... 3
2.5 Humidity Sensor Input .................................................................................. 3
3WebControlTM PLC Web GUI Configuration ........................................................ 5
3.1 Network Settings........................................................................................... 5
3.2 Access Settings ............................................................................................ 6
3.3 I/O Setup....................................................................................................... 8
3.4 X10 RF Control ........................................................................................... 10
3.5 Output Control ............................................................................................ 11
3.6 Notification Setup........................................................................................ 12
3.7 General Setup............................................................................................. 15
3.8 Reset Setup ................................................................................................ 16
4AUX System Inputs............................................................................................ 17
4.1 Digital Inputs ............................................................................................... 17
4.2 Analog Inputs.............................................................................................. 18
4.3 DS1822/DS18B20 1 Wire Temperature Sensors ....................................... 18
4.4 Honeywell 4000 Series Relative Humidity Sensor...................................... 19
4.5 Timers......................................................................................................... 19
4.6 Direct Query System Inputs and Outputs ................................................... 20
5Real Time Clock................................................................................................. 21
5.1 Network Requirements to Use the NTP...................................................... 21
5.2 Realtime Clock Use DS2417 ...................................................................... 21
6WebControlTM PLC Programming ...................................................................... 22
6.1 The Basics of PLC Programming ............................................................... 22
6.2 WebControlTM PLC Instructions .................................................................. 23
6.3 WebControlTM PLC I/O Identifiers .............................................................. 27
6.4 WebControl PLC Examples ........................................................................ 30
6.4.1 Example 1 Set Output based on condition .......................................... 30
6.4.2 Example 2: Flash TTL output ............................................................. 31

WebControlTM PLC User Guide Version 3.02.17f
Copyright(C) 2008-2013 CAI Networks, Inc. ii
6.4.3 Example 3: Push Button Input Control Output..................................... 32
6.4.4 Example 4: Send EMAIL ..................................................................... 32
6.4.5 Example 5, Parallel I/O........................................................................ 33
6.4.6 Example 6, Sequential I/O................................................................... 34
6.4.7 Example 7, Traffic Lights..................................................................... 35
6.4.8 Example 8, Time based Control .......................................................... 36
6.4.9 Example 9, Battery Charger ................................................................ 39
6.4.10 Example 10, RFID reader and browser Control .................................. 40
6.4.11 Example 11, Bitwise Operation ........................................................... 41
6.4.12 Example 12, Angle Calculation............................................................ 41
6.4.13 Example 13, Non-Blocking Delay ........................................................ 42
6.4.14 Example 14, Your Examples ............................................................... 42
7WebControlTM PLC FAQ .................................................................................... 45
7.1 Login and Configuration.............................................................................. 45
7.2 Temperature Sensor Support ..................................................................... 45
7.3 Turn on/off TTL output from another programming language..................... 46
7.4 External Analog Chip DS2450.................................................................... 47
7.5 Power Supply Requirement ........................................................................ 47

WebControlTM PLC User Guide Version 3.02.17f
Copyright(C) 2008-2013 CAI Networks, Inc. iii
Table of Figures
Figure 1.0 WebControlTM PCB inputs and outputs diagram........................................ 2
Figure 2.0 WebControlTM sensor connections............................................................. 3
Figure 3.0 WebControlTM PLC system status.............................................................. 5
Figure 4.0 WebControlTM PLC Network configurable.................................................. 6
Figure 5.0 I/O setup .................................................................................................... 8
Figure 6.0 WebControlTM X10RF Control.................................................................. 10
Figure 6.0 WebControlTM Output Control .................................................................. 11
Figure 7.0 WebControlTM email setup ....................................................................... 13
Figure 8.0 Network defaults ...................................................................................... 15
Figure 9.0 WebControlTM J12 Input pins ................................................................... 17
Figure 10.0 WebControlTM Temperature sensor assignments .................................. 18
Figure 11.0 DS2417 layout ....................................................................................... 21

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2011 CAI Networks, Inc. 1
1 Introduction
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
WebControlTM hardware and firmware. The WebControl PLC Programming Guide is
found in chapter 6 of this document. Function, usage and syntax as well as many
examples are provided there to help you get started. WebControlTM PLC is different
from the earlier WebControlTM BRE. The PLC version of firmware provides greater
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, WebControlTM PLC can operate on its own,
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
WebControlTM PLC configuration.
1.1 Scope
The scope of this document is to be a guide for configuring and using the features
provided by WebControlTM. 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 Description
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
accessing the server on a network. E.g. http://WebControlTM
IP Internet protocol
DHCP Dynamic host configuration protocol
ROM Read only memory
PLC Programmable Logic Controller

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2011 CAI Networks, Inc. 2
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 WebControlTM 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

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2011 CAI Networks, Inc. 3
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 (0 and 5Vdc). The AUX Input Port pin out diagram
(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 .
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 1-
wire 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 WebControlTM sensor
connections
Please make sure the temp sensor
and humidity sensor connected
similar to this picture. Reverse the
polarity may cause damage to the
board.

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2013 CAI Networks, Inc. 5
3 WebControlTM PLC Web GUI Configuration
To access WebControlTM PLC, connect WebControlTM 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 WebControlTM 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 WebControlTM 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

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2013 CAI Networks, Inc. 6
network in order to configure it correctly. Figure 4.0 shows the Network settings
WebControlTM has.
Figure 4.0 WebControlTM 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 WebControlTM 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

WebControlTM PLC User Guide Version 3.02.17f
Copyright(c) 2008,-2013 CAI Networks, Inc. 7
access the WebControlTM board over the network. Please note that if any entry is
0.0.0.0, all IP addresses can access it.
Inhaltsverzeichnis

















