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”...
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 –...
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.
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 LED will flash 3 times.
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. Log on to your router and navigate to the LAN client list.
Page 9
LAN. 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...
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). _config.htm _config2.htm CFG/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.
User Manual v4.10 Status page You should now see the following page: This status page shows you the system and application firmware revisions. If you hover your mouse cursor over the menu buttons on the left, the help panel will give you an overview of each one.
User Manual v4.10 Network page Notice that everything below the Host Name is greyed out and can't be changed. This is be- cause the “Enable DHCP” box is checked and all the greyed out fields are supplied by the DHCP server.
User Manual v4.10 now dead page. Make sure you change to your new IP address and load the page again. Webpage Security Leaving the Security Password blank will disable it and allow everyone to access the application page to control the module.
Page 14
User Manual v4.10 The default port used by html webpages is 80. You can change this if required. If you do so then you will need to include the port number in the address. If you change the port to 2345 then the webpage will be at: YourIP:2345/index.htm...
User Manual v4.10 TCP/IP page The TCP/IP tab allows you to select one of three command sets to control the module. These are independent of, and separate to the HTML webpage control. Clicking on one of the four check boxes will select that command set. Only one command set may be selected.
Page 16
When selecting the Modbus commands, an additional set of configuration boxes are available. These allow you to select the UID, normally you will leave this at the default of 1. The tcp184 will respond to commands on this UID. If you send any other UID it will be treated as the ad- dress of a Modbus module connected to the RS485 port.
User Manual v4.10 Naming relays The next tab allows you to set the names of the relays that will be displayed on the application page. Names may be up to 20 characters long, but keep them shorter if you want to use a phone as the controller.
User Manual v4.10 Relay automation There are a set of control boxes that provide for autonomous relay operation. If you just want to control the relays from the webpage or using one of the TCP/IP modes, then leave these boxes blank.
Page 19
User Manual v4.10 Here's a very simple example: Enter R2 into the Relay 1 Pulse/Follow box. This will make relay 1 copy whatever you do to Re- lay 2. Try it! Now change it to !R1. The exclamation mark is read as “Not R1”. Now relay 1 will always be the opposite of relay 2.
Page 20
User Manual v4.10 This is important! The Set, Reset and Toggle controls are transitory (edge triggered) controls. The relays are only affected at the moment the boolean equation becomes true. This differs from the Follow box where the relay continuously follows the output state of the equation.
User Manual v4.10 Naming Input's The I/O Names tab is used to assign meaningful names to the Input terminals. As with relay names these may be up to 20 characters long, but do check it looks ok on a mo- bile device or whatever you are using to control the module.
User Manual v4.10 Pinging remote machines The ping module allows you to check other machines are still online and responding. Ping threads are only started a boot time if the Repeat Time is greater than zero. Also DNS lookup is only performed once at boot time if the Repeat Time is greater than zero.
User Manual v4.10 Delay This is the delay between detecting the failed responses and re-starting the pings. It is also the startup delay before beginning pings. Its purpose is to give the target machine time to boot up, or reboot.
User Manual v4.10 Email notifications The Email tab is used for sending secure, AES encrypted email notifications from the module. Up to eight (8) email notifications may be set up, selected by Email No. box. Setting up emails is quick and easy. You just need the recipients email address, a notification message which will be the email subject line and the trigger event.
User Manual v4.10 Peer to Peer This tab allows you to configure events on this module to control relays on another. Up to eight (8) Peer to Peer events may be set up, selected P2P No. box. Control of the target relay is by using the binary command set only. This can optionally use AES encryption.
User Manual v4.10 Sequencer The sequencer runs a continuous loop of up to 120 steps. At each step you can specify a time delay and the outputs. The K1 – K12 outputs are updated and the start of the delay time. The example above shows the simplest sequence possible.
User Manual v4.10 Sequencer commands There are a set of 12 commands to control the sequencer. The simplest of these is just a number which is the time delay in seconds. 1234 Numbers may be up 4093 seconds.
User Manual v4.10 K Outputs The sequencer outputs are a set of 12 flags, K1 to K12. These may be used anywhere a bool- ean is used, to control relays etc. For simple sequences the K output can be used in the Relays pulse/Follow box.
Page 29
User Manual v4.10 Here we hold both lights at Red for 30 seconds to give traffic time to traverse the controlled area. Then Red + Amber for two seconds followed by Green for 60 seconds. We then stop the traffic with Amber for 3 seconds followed by Red.
Page 30
User Manual v4.10 Adding a pedestrian crossing to the sequence In many sequences there are common runs of instructions. Our sequencer allows you to sepa- rate out these common sequences and call them from elsewhere in the sequence. Having only a single copy of a sequence aids in maintaining the program.
Page 31
User Manual v4.10 Now we can modify the sequencer code. Change the 30 second delays on lines 1 and 5 and re- place them with C13. This is a call to line 13, which is on page 2. This will keep the pedestrian routine on one page for easier reading.
Page 32
User Manual v4.10 page 1 lines 1 and 5, where we replaced them with the C13 command. We still need this delay. Line 14 tests the pedestrian request latch, relay 22, and jumps to line 16 if active, otherwise it continues with line 15 which just return to the caller on page 1.
User Manual v4.10 Schedules The scheduler can schedule regular events. These can be once or twice daily with the two start and stop times and can happen on any selected weekdays. The Schedule No. is one of eight schedules that can be set up.
Page 34
User Manual v4.10 The timezone allows you to set the time for your location. For example; GMT leave this at 0. CET set this to 1. PST set this to -8 IST set this to 5:30 Daylight saving time may be checked if required. It advances the time by 1 hour between the last Sunday in March and the last Sunday in October.
User Manual v4.10 Counter/Timers Count input pulses or time events. There are a total of eight counter/timers available, selected with Counter No. box. Each counter can count digital inputs at a maximum speed of 20Hz (20 counts per second) or high speed counter inputs at a maximum speed of 2KHz (2000 counts per second).
Page 36
User Manual v4.10 Reset Input This input will reset the counter value to zero. If the capture Input has been left blank then it will store the current counter value in the capture register before resetting it to zero. You may use an input such as D3 or you can use the counter value itself.
Page 37
User Manual v4.10 The internal time base, T1 is derived from the crystal on the module. It’s accurate but will drift over time so that the capture event may not happen “on the hour”. Even if you started it on the hour is will drift out by a few seconds a day.
User Manual v4.10 The application page The last tab in the configuration pages takes you directly to the application page so you can quickly see the results of your configuration changes. The I/O indicators show grey when the I/O is inactive. When an active input is applied they show green.
User Manual v4.10 Accessing your webpage from the internet Now you have your webpage up and running on your local network, for example 192.168.0.150, and you can access the webpage and control the module. You just go to 192.168.0.150/index.htm, and the page is there.
User Manual v4.10 Boolean equations Both relay automation and email triggering use the boolean equation solver. The types that can be used in boolean equations are: 1. Relays, R1 – R2 2. Digital I/O's, D1 – D4 3. Analog inputs, A1 – A2 4.
Page 41
User Manual v4.10 To demonstrate a real world example, take the analog example above where we compared A1 with 1000 to operate R2. Whilst this would work its a not a good solution as the relay would jitter badly when A1 was hovering between 999 and 1000. What we need is some hysteresis.
User Manual v4.10 TCP/IP command sets There are four TCP/IP command sets on four selectable check boxes, of which one or none may be selected on the TCP/IP config tab. These are ASCII, Modbus, Binary and Binary with AES256 encryption.
Page 43
GC 1 Get Counter1 – responds with count, capture values. Note – on the tcp184, GI and GA are identical, getting the digital state or analogue value de- pending on the port configuration in the I/O Types tab. Typical PuTTY session.
Update all Relays 0x30 (decimal 48) Get Status (1 byte command, returning 8 bytes) This command returns 8 bytes of status data Module ID This will be 36 (0x24) for the tcp184 System Firmware Major 2 for example System Firmware Minor...
Page 45
User Manual v4.10 0x33 0x01 Get Relay (2 byte command – returning 5 bytes) This command is used to get the states of the relays. The second byte is the relay number, re- lay 1 in this case.
Page 46
User Manual v4.10 0x37 0xnn 0xnn 0xnn 0xnn Update all relays (5 byte command returning 1 byte) This command is used to update all relays with one command returning an ACK/NACK byte. ACK=0, NACK=non-zero. If a bit is high (1), the corresponding relay will be turned on. If a bit is low (0) the corresponding relay will be turned off.
User Manual v4.10 AES binary command set The AES Binary commands are the same as the Binary commands described above. The only difference is that they are AES encrypted and always 16 bytes in length. The first bytes are the same as described in the Binary command set.
Page 48
User Manual v4.10 The following example shows how the Nounce provided by the module is used in the next Set Relay command. Get Status 0x30 Response 0x23 0x02 0x12 0x01 0x02 0x7D 0x01 0x0B 0x89 0xAB 0xCD 0xEF...
User Manual v4.10 Modbus commands The modbus command set accepts a subset of the standard Modbus-TCP frames as defined in Modbus protocol Specification MODBUS Messaging on TCP/IP Implementation Guide V1.0b Functions 1, 4, 5 & 15 are supported along with error codes 1, 2 & 3 should they occur.
User Manual v4.10 Function 05 (0x05) Write Single Coil This function is used to write to a single coil (relay). Coils 1-32 are the relays 1-32. Function 15 (0x0F) Write Multiple Coils This function is used to write to multiple coils (relays). Coils 1-32 are the relays 1-32.
In this order: 1. Start from this position: a. dScript Editor closed down. b. tcp184 not connected or powered. 2. Power-up the tcp184. 3. Hold down the reset button for a couple of seconds until the red LED comes on. This in- dicates the module is in boot-loader mode.
Page 52
User Manual v4.10 5. Run the dScript editor. Look in Help About and check you have the latest version of → dScript. In this case 4.10 6. If you have an earlier version you should uninstall it and install the new version from the installation folder, then start these instructions from the beginning.
Load up the app-tcp184-v4-10.dsj application in the editor, but before you upload it to the tcp184 you need to make a small change. Locate the thread "main" (click the word in the right panel is quickest). Just below this is a commented out line "init()".
User Manual v4.10 The tcp184 provides four (4) volt free contact relay outputs with a current rating of up to 16Amp each, 8 flexible Inputs which can be analogue or digital or high speed counters and an RS485 serial port. The module has a universal AC mains input of 90 –...
User Manual v4.10 Analogue/Digital flexible I/O's The tcp184 has eight flexible Input ports, numbered 1-8, which can be your selection of: 1. Digital input with pull-up resistor (allows direct connection of Volt Free Contact, VFC). 2. Digital input without no pull-up resistor, suitable for driving with a 0-5v signal.
User Manual v4.10 RS485 Serial Port Connection The RS485 serial port is used by our default app to provide a Modbus Gateway. When programming in dScript it is freely available for your own purpose. A two pin link near to the RS485 terminal block should be shorted to use the on-board 120 ohm terminating resistor.
Need help?
Do you have a question about the tcp184 and is the answer not in the manual?
Questions and answers