Devantech dS2824 User Manual
Hide thumbs Also See for dS2824:

Advertisement

Quick Links

dS2824
dS2824
User Manual v4.12
dS2824
dS2824
User Manual Version 4.12
Copyright
© 2016-2021,
Devantech Ltd.
www.robot-electronics.co.uk
1
All rights reserved.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the dS2824 and is the answer not in the manual?

Questions and answers

Summary of Contents for Devantech dS2824

  • Page 1 User Manual v4.12 dS2824 dS2824 User Manual Version 4.12 Copyright © 2016-2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 2: Table Of Contents

    User Manual v4.12 Table of Contents Documentation history.........................4 A quick look..........................5 Introduction..........................6 Getting started...........................7 Locating the IP Address....................8 Configuring the dS2824......................10 Status page......................11 Network page......................12 Webpage security......................13 TCP/IP page......................15 Configuring relays.....................17 Relay automation.....................18 Input/Output configuration..................21 Connecting I/O to Virtual Relays..................22 dSx Configuration.....................23...
  • Page 3 User Manual v4.12 Error code 2........................59 Error code 3........................59 Modbus Gateway......................59 Loading the application firmware....................60 Erasing old configuration settings................62 dS2824 hardware........................63 LED indication......................64 Power supply......................64 Operating temperature....................64 Power relays......................65 Analogue/Digital flexible I/O's..................66 Connection examples.........................66 Temperatue sensor......................67 Power supply input voltage....................67 Analogue channels......................67...
  • Page 4: Documentation History

    User Manual v4.12 Documentation history 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.
  • Page 5: A Quick Look

    User Manual v4.12 A quick look Ethernet connected module, 10/100Mb auto negotiated. Relays – 24 x 16Amp 250Vac C/O. I/O – 8 x flexible I/O's NPN output, Volt free input or 12-bit analogue input. Power – 12VDC 1.5Amp supply required. 2.1mm center positive.
  • Page 6: Introduction

    Each relay has both normally open (NO) and normally closed (NC) as well as the common available on three terminals. In addition to the relays, the dS2824 has 8 flexible I/O channels which may be individually configured to be: 1.
  • Page 7: Getting Started

    User Manual v4.12 Getting started Start by plugging in the Ethernet cable to connect the module to your network, and the 12v jack plug from your adapter. Switch on and the first thing you will note is that the blue LED will flash 3 times.
  • Page 8: Locating The Ip Address

    IP address. Alternatively, if you have a DHCP server on your network (your router is normally the DHCP server) then the dS2824 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 dS2824 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...
  • Page 10: Configuring The Ds2824

    User Manual v4.12 Configuring the dS2824 There are a set of configuration pages to get the dS2824 operating as you want it. These pages are all _configx.htm, (that's a leading underscore character). _config.htm _config2.htm Anything that starts with _config is considered a special name for configuration pages and can only be seen if you have the the USB cable plugged in and connected to your PC.
  • Page 11: Status Page

    User Manual v4.12 Status page You should now see the following page: This status page shows you the system and application firmware revisions as well as the sup- plied voltage to the board and its internal temperature. If you hover your mouse cursor over the menu buttons on the left, the help panel will give you an overview of each one.
  • Page 12: Network Page

    User Manual v4.12 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.
  • Page 13: Webpage Security

    User Manual v4.12 now dead page. Make sure you change to your new IP address and load the page again. Webpage security The webpage security section allows you to prevent unauthorised personnel from accessing the application webpage or using it to control the module.
  • Page 14 User Manual v4.12 from loading the password. When the “Update Pending” light goes out re-boot the module again. 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.
  • Page 15: Tcp/Ip Page

    User Manual v4.12 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 dS2824 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.
  • Page 17: Configuring Relays

    User Manual v4.12 Configuring relays The next two tabs allow you to set the names of the 32 relays that will be displayed on the ap- plication page. Use the Relay No. box to select the relay to configure. There are 32 relays available. Relays 1- 24 are the physical relays on the module.
  • Page 18: Relay Automation

    User Manual v4.12 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.12 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.12 Set Reset & Toggle boxes When used, these three controls contain boolean equations. The “Set Relay” box will set the relay when the boolean equation becomes true. The other two boxes reset and toggle the relay when the boolean equation become true.
  • Page 21: Input/Output Configuration

    User Manual v4.12 Input/Output configuration The I/O Names tab is used to assign meaningful names to the I/O 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.
  • Page 22: Connecting I/O To Virtual Relays

    User Manual v4.12 Connecting I/O to Virtual Relays Any of the eight digital I/O lines may be connected to a virtual relay. This gives the digital out- put the same automation capabilities as the relays. Enter the relay number in the link box as shown above.
  • Page 23: Dsx Configuration

    I/O modules that are connected to the RS485 bus (serial port 3). Up to 16 dSx modules may be added, controlled by the dS2824 as if they are local I/O. The outputs are mapped to 2 of the 32 relays – real or virtual and the inputs can be accessed in the range 100-164.
  • Page 24: Dsx Mapping Table

    (real or virtual). Mapping a module to position 25 means that relays 1 and 2 on the dSx module will be controlled by virtual relays 25 and 26 on the dS2824. The mapping can be changed by selecting a new mapping with the drop-down box.
  • Page 25 User Manual v4.12 mapping by position. Mapped dSx42 modules are shown with a magenta outline. The input range for that module and its UID is displayed. The inputs received from the dSx42 are shown as an analogue value.
  • Page 26: Dsx Example

    User Manual v4.12 dSx Example As an example, lets assume the following: You need 2 dSx42 relay modules. You want relay 1 on one module to be controlled by input 2 from the other module using its analogue input. The dSx analogue inputs are 0-5v and use 10- bit conversion, which is a range of 0-1023.
  • Page 27 User Manual v4.12 So now the relay we wish to control is mapped to virtual relay 29 and the input that is going to control it is mapped to input 161, which is the 2 input on mapping 31. The input number was obtained from the table on a previous page.
  • Page 28: Sequencer

    User Manual v4.12 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.
  • Page 29: Sequencer Commands

    User Manual v4.12 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.
  • Page 30: K Outputs

    User Manual v4.12 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 31 User Manual v4.12 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 32 User Manual v4.12 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. We will expand our traffic light example to demonstrate the call and return instructions, by adding a pedestrian crossing.
  • Page 33 User Manual v4.12 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 34 User Manual v4.12 Line 13 is the 30 second delay where we hold all lights at Red. These are the two delays from page 1 lines 1 and 5, where we replaced them with the C13 command. We still need this delay.
  • Page 35: Schedules

    User Manual v4.12 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. These are selected with the Schedule No.
  • Page 36 User Manual v4.12 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.
  • Page 37: Counter/Timers

    User Manual v4.12 Counter/Timers Count input pulses or time events. There are a total of eight counter/timers available, selected with the Counter No. box. Each counter can count at a maximum speed of 10Hz (10 counts per second).
  • Page 38 User Manual v4.12 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 39 User Manual v4.12 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.
  • Page 40: Event Notifications

    User Manual v4.12 Event Notifications Event notifications will send a tcp/ip message to a remote computer when selected Inputs or Relays change state. Event triggers are boolean expressions. They may be a single or multiple I/O. R1 will send a notification when Relay 1 becomes active.
  • Page 41: Node-Red

    The remaining lines are any dSx modules attached to the dS2824, one per line. In this case we have a single dSx42L connected. The 4 inputs are presented as Digital and Analogue inputs.
  • Page 42: Peer To Peer

    User Manual v4.12 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 with the P2P No. box.
  • Page 43: Email Notifications

    User Manual v4.12 Email notifications The final configuration tab is the Email tab for sending secure, AES encrypted email notifica- tions from the module. Up to eight (8) email notifications may be set up, selected with the Email No. box.
  • Page 44: Pinging Remote Machines

    User Manual v4.12 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.
  • Page 45: Delay

    User Manual v4.12 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.
  • Page 46: The Application Page

    User Manual v4.12 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.
  • Page 47: Application Page Security

    User Manual v4.12 Application page security The configuration pages (any page name starting with _config) are only served when the USB port is connected. If the USB port is unplugged then no configuration pages are served. In- stead, you will be served a page saying “You do not have permission to view this page.”...
  • Page 48: Accessing Your Webpage From The Internet

    User Manual v4.12 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.
  • Page 49: Boolean Equations

    User Manual v4.12 Boolean equations Boolean equations are used in a number of places in the configuration screens. They are used for relay automation, triggering emails and peer to peer events and the count, capture and re- set for the counter/timers.
  • Page 50 User Manual v4.12 D2|(D3&D4) will now AND D3 with D4 and the result is Ored with D2. 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.
  • Page 51: Tcp/Ip Command Sets

    User Manual v4.12 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 52 GC 1 Get Counter 1 – responds with count, capture values. Note – on the dS2824, 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.
  • Page 53: Binary Command Set

    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 34 (0x22) for the dS2824 System Firmware Major 2 for example System Firmware Minor...
  • Page 54 User Manual v4.12 Binary Command Set – continued. 0x32 0x04 0x01 Set Output (3 byte command, returning 1 byte) This command turns an output on or off and returns an ACK/NACK byte. ACK=0, NACK=non- zero (actually the unknown I/O port number).
  • Page 55 User Manual v4.12 0x35 Get Analogue inputs (1 byte command returning 16 bytes) This returns all eight possible analogue inputs. 16 bytes are returned, 2 for each analogue in- put. Byte 1 byte 2 for example: 0x02 0x3E combined to 0x023E, or 574 decimal for input 1.
  • Page 56: Aes Binary Command Set

    User Manual v4.12 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 57 User Manual v4.12 The following example shows how the Nounce provided by the module is used in the next Set Relay or Set Ouput command. Get Status 0x30 Response 0x22 0x02 0x12 0x01 0x02 0x7D 0x01 0x0B 0x89...
  • Page 58: Modbus Commands

    User Manual v4.12 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.
  • Page 59: Function 05 (0X05) Write Single Coil

    User Manual v4.12 Function 05 (0x05) Write Single Coil This function is used to write to a single coil (relay or I/O). Coils 1-24 are the relays 1-24. Coils 25-32 are the virtual relays. I/O's 1-8 are remapped to coils 41-48.
  • Page 60: Loading The Application Firmware

    In this order: 1. Start from this position: a. dScript Editor closed down. b. dS2824 not connected or powered. 2. Power-up the dS2824. 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 61 User Manual v4.12 5. Run the dScript editor. Look in Help About and check you have the latest version of → dScript. In this case 4.12 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.
  • Page 62: Erasing Old Configuration Settings

    Load up the app-dS2824-v4-12 application in the editor, but before you upload it to the dS2824 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()".
  • Page 63: Ds2824 Hardware

    User Manual v4.12 dS2824 hardware Copyright © 2016-2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 64: Led Indication

    Power supply The dS2824 requires a 12v DC supply capable of supplying a minimum of 1.5A. This is most easily provided by a low cost mains adapter. A suitable universal adapter is available on our website and may be ordered along with the modules. Connection is via the 2.1mm DC jack socket.
  • Page 65: Power Relays

    The relay coil is powered by the 12vdc incom- ing supply on user command. Coil Relay in passive state Coil Relay in powered state A full datasheet for the relays used on the dS2824 is here: HF115FD datasheet Copyright © 2016-2021, Devantech Ltd. www.robot-electronics.co.uk...
  • Page 66: Analogue/Digital Flexible I/O's

    User Manual v4.12 Analogue/Digital flexible I/O's The dS2824 has eight flexible I/O ports, numbered 1-8, which can be your selection of: 1. Digital open collector output. 2. Digital open collector output with passive pullup to 12v 3. Digital input (0-12v, 2.5v threshold).
  • Page 67: Temperatue Sensor

    User Manual v4.12 Temperatue sensor There is an on-board temperature sensor (MCP9700A) which provides a 10mV/°C output on a 500mV offset (0°C = 500mV, 1°C = 510mV). This is accessed as analogue channel 100. The sensor is located between the Ethernet and RS485 connectors.
  • Page 68 User Manual v4.12 Representative flexible I/O schematic P1 controls the passive pull-up. It is automatically disabled in analogue modes and set by the option in the digitalport declaration in digital modes. Q1 controls the open collector NPN output. It is set by writing to the port.
  • Page 69: Serial Port Connections

    The two pin link near to the RS485 terminal block should be shorted to use the on-board 120 ohm terminating resistor. Notes. 1. Serial port 2 is not available on the dS2824. 2. Serial ports are available when programming in dScript Copyright © 2016-2021, Devantech Ltd.
  • Page 70: Ds2824 Dimensions

    User Manual v4.12 dS2824 dimensions Copyright © 2016-2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.
  • Page 71: Notes

    User Manual v4.12 Notes Copyright © 2016-2021, Devantech Ltd. www.robot-electronics.co.uk All rights reserved.

Table of Contents