Devantech tcp184 User manual

tcp184
tcp184
User Manual v4.10
Table of Contents
Documentation history....................................................................................................4
A quick look...................................................................................................................5
Introduction..................................................................................................................6
Getting started...............................................................................................................7
ocating the IP Address...............................................................................................8
Configuring the tcp184..................................................................................................10
CFG/RUN link...........................................................................................................10
Status page.............................................................................................................11
Network page...........................................................................................................12
TCP/IP page.............................................................................................................13
Webpage security.....................................................................................................15
Naming relays..........................................................................................................17
Relay automation.....................................................................................................18
Naming Input's.........................................................................................................21
Pinging remote machines...........................................................................................22
Repeat Time.........................................................................................................22
Attempts.............................................................................................................22
Delay..................................................................................................................23
Ping Time............................................................................................................23
Rebooting the target machine................................................................................23
Email notifications....................................................................................................24
Peer to Peer.............................................................................................................25
Sequencer...............................................................................................................26
Sequencer commands...........................................................................................27
K Outputs............................................................................................................28
Sequencer Examples.............................................................................................28
Schedules................................................................................................................33
Counter/Timers........................................................................................................35
The application page.....................................................................................................38
Application page security...........................................................................................38
Accessing your webpage from the internet...................................................................39
Boolean equations........................................................................................................40
TCP/IP command sets...................................................................................................42
ASCII command set..................................................................................................42
Binary command set.................................................................................................44
AES binary command set...........................................................................................47
Modbus commands...................................................................................................49
Function 01 (0x01) Read Coils................................................................................49
Function 04 (0x04) Read Input Registers.................................................................49
Function 05 (0x05) Write Single Coil.......................................................................50
Function 15 (0x0F) Write Multiple Coils....................................................................50
Error code 1.........................................................................................................50
Error code 2.........................................................................................................50
Error code 3.........................................................................................................50
Modbus Gateway......................................................................................................50
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 2

tcp184
tcp184
User Manual v4.10
oading the application firmware....................................................................................51
Erasing old configuration settings...............................................................................53
tcp184 PCB..................................................................................................................54
ED indication..........................................................................................................55
Power supply...........................................................................................................55
Operating temperature..............................................................................................55
Power relays............................................................................................................56
Analogue/Digital flexible I/O's....................................................................................57
RS485 Serial Port Connection.....................................................................................58
Notes..........................................................................................................................59
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 3

tcp184
tcp184
User Manual v4.10
Documentation history
V3.01 First release of tcp184 manual
v4.01 Major update to the underlying dScript, now with functions and local variables.
Added “From Address” for easymail emails.
v4.02 Bug fixes for the underlying dScript.
v4.03 Editor update, added support for multiple editor tabs.
Compiler update, added support for multiple files in project.
Compiler update, added support for #ifdef, #else, #endif
v4.04 TCP server socket now transmits keepalives when connections become dormant
for 10 seconds. 6 unacknowledged packets at 10 second intervals will result in
port closure.
V4.05 Added phone app support (IO Network 2 on the App stores). Fixed bug that
caused intermittent module not found error on firmware update.
V4.06 Added system reboot button to config status screen.
dScript updated to support dS2832. See dScript-v4.xx manual.
V4.07 Added new features:
Ping Used to ping other machines to check if responding.
Sequencer Added a 120 step, 12 output sequencer
v4.08 Added display of MAC address to network configuration page.
Bugfix – NTP (Real time clock) startup failed under some circumstances.
Renamed command “counters” to “setcounters”.
V4.09 Added 3 new commands to Binary and AES Binary command set, to
control all relays in one command. Set all, set selected and clear selected.
V4.10 Webpage security settings now on Network page for compatibility with other
modules. The new dSx support for dS modules which have powered
RS485 ports is not applicable to tcp184.
Note: If you have a custom app based on app-dSxxxx-v4-07 or earlier, you will need to re-
name the “counters” command to “setcounters” for it to compile with this version.
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 4

tcp184
tcp184
User Manual v4.10
A quick look
Ethernet connected module, 10/100Mb auto negotiated.
Relays – 4 x 16Amp 250Vac C/O. with snubbers on N/O contacts.
Inputs – 8 optically isolated inputs, selectable as digital, 12-bit analogue or counter.
Power – AC mains universal input: 90 – 264Vac, 47-63Hz.
Connections – Screw Terminals for N/O N/C and Common contacts
Module size – 170mm x 104mm, DIN rail mounted
Controlled graphically by secure webpage or optionally one of ASCII, Binary or Modbus com-
mand sets over TCP/IP.
Email notifications – 8 selectable notifications, up to 100 emails/hour max.
Peer to Peer – Control relays on other modules.
Schedules – Able to schedule events based on time of day/week
Counter/Timers – Count or time events. Up to 2KHz counting on all inputs.
MODBUS gateway to downstream MODBUS modules such as the MBH88.
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 5

tcp184
tcp184
User Manual v4.10
Introduction
The tcp184 is an Ethernet connected relay module featuring 4 channels of 16Amp 250Vac re-
lays. Each relay has both normally open (NO) and normally closed (NC) as well as the common
available on three terminals. It has snubbers fitted between the Common and N/O contacts.
In addition to the relays, the tcp184 has 8 input channels which may be individually config-
ured to be:
1. Active low input with pull-up (allows direct connection of volt free contacts).
2. Active low input without pull ups (easy to connect logic level inputs).
3. Analogue inputs. 12-bit with selectable 0v-4.096v or 0v-5v input range.
4. High speed (2KHz) counters with or without pull-up resistors.
The tcp184 has four built in control methods.
Primary control method is graphically by using its built in secure website.
Secondary control may be one of:
ASCII - type in commands via a program such as PuTTY.
Binary - Command set using binary codes with optional AES encryption.
Modbus – Functions 1, 4, 5 and 15 supported.
And if you should wish to modify the supplied firmware – you can.
Behind the scenes there is dScript, a powerful multi-threaded operating system and program-
ming language. The supplied firmware is written in dScript as well as HTM , CSS and
Javascript on the webpages and the full source is in the separately down-loadable dScript sup-
port package.
You do not need to use dScript at all, but its great to know its there - just in case you do.
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 6

tcp184
tcp184
User Manual v4.10
Getting started
Start by wiring the mains input and plugging in the Ethernet cable to connect the module to
your network. Switch on and the first thing you will note is that the blue ED will flash 3 times.
This indicates that the control firmware is loaded on the module. (If the blue led does not flash
you will need to load in the control firmware. Don't worry, this is very easy to do. Just go to
the chapter on installing the firmware and follow the instructions there).
If you are using a Win10 PC, open your browser and into the address bar (not the search bar)
type:
http://tcp184/index.htm
You should now see the application webpage and you can control relays and view inputs.
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 7

tcp184
tcp184
User Manual v4.10
Locating the IP Address
If you are not using a windows PC then you will need to find the IP address of the module.
The simplest method is connect the module (Ethernet, USB then lastly, Power) and load up the
dScript editor.
Go to Module Select Port and make sure the correct serial port is selected as illustrated above.→
Now go to Module IP Address and the current IP address is displayed.→
Make sure the Ethernet is connected before you apply power. If you plug the Ethernet cable in
after the power, the module will already have booted with a default IP address.
Alternatively, you can find the IP address of the module by checking your DHCP server. If you
have a DHCP server on your network (your router is normally the DHCP server) then the
tcp184 will get its IP address from that. og on to your router and navigate to the AN client
list.
Above is the entry from our ASUS RT-N66U router. So now you type:
192.168.0.6/index.htm
into your browser address bar and you should see the application webpage shown on the pre-
vious page.
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 8

tcp184
tcp184
User Manual v4.10
If you prefer, you can download a java program that will run on Windows, MAC or inux, and
will list all of our modules that are connected to your AN. DevantechModuleFinder.jar
If you do not have a DHCP server the tcp184 will use a default IP address of 192.168.0.123 so
make sure your PC is on the same subnet of 255.255.255.0 and its IP address is
192.168.0.xxx
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 9

tcp184
tcp184
User Manual v4.10
Configuring the tcp184
There are a set of configuration pages to get the tcp184 operating as you want it. These pages
are all _configx.htm, (that's a leading underscore character).
ie.
_config.htm
_config2.htm
C G/RUN link
Anything that starts with _config is considered a special name for configuration pages and can
only be seen if you have the 3-pin CFG/RUN link in the CFG position. When the link is in the
RUN position the _config pages are not accessible. This is a security measure. After you have
configured and deployed the module, you really don't want these configuration pages available
for others to change. So with the link in the RUN position the _config pages are not available.
If you try to access them you just get served a “not authorised” page instead.
So for now, you do want to look over the config pages. Place the link in the CFG position.
With the link correctly positioned, browse to:
192.168.0.6/_config.htm
(substituting your IP address)
Copyright © 2016-2021, Devantech td.
All rights reserved. www.robot-electronics.co.uk 10
Table of contents
Other Devantech Relay manuals

Devantech
Devantech dS2832 User manual

Devantech
Devantech ESP32LR88 User manual

Devantech
Devantech dS3484 User manual

Devantech
Devantech dS2824 User manual

Devantech
Devantech ESP32LR42 User manual

Devantech
Devantech dS378 User manual

Devantech
Devantech ESP32SR88 User manual

Devantech
Devantech ESP32LR20 User manual

Devantech
Devantech ETH8020 Guide

Devantech
Devantech dS2824 User manual


















