Page 1
X O L E L E C T R O N I C S O L U T I O N S ELEXOL Ether I/O 24 R Users Manual Version 1.0 For Firmware Release 2.0 Elexol Pty Ltd Version 1.0 Page 1 http://www.elexol.com...
Page 2
X O L E L E C T R O N I C S O L U T I O N S Ether I/O 24 R Module Hardware A. Ethernet Connector B. LED Indicators C. Power Connector 2.1mm DC Jack Center + D.
Programming the module’s ports default power up state ................38 Programming the AutoScan Mode ......................38 Resetting the Module ..........................38 Programmable Port Number ........................39 Glossary................................39 Document Revision History ..........................40 Firmware Revision History..........................40 Elexol Pty Ltd Version 1.0 Page 3 http://www.elexol.com...
This product and its documentation are provided as-is and no warranty is made or implied as to their suitability for any particular purpose. Elexol Pty Ltd will not accept any claim for damages arising from the use of this product or its documentation. This document provides information on our product and all efforts are made to ensure the accuracy of the information contained within.
Page 5
PC 4. One or more 5V operable devices or switches and connecting cables for operation by, or connection to the module. (A range of accessory devices are available from your ELEXOL distributor.) The module’s test and programming software is only operable on a PC with the Windows operating system.
The IP address of the module can be programmed to a fixed address by a windows PC running the ELEXOL Ether I/O 24 Test and Programming utility software (downloadable from the Elexol website). Alternately, the user may program the fixed IP address from their own software by using the EEPROM writing commands.
I O N S Accessory Boards In order to connect devices that are not 5V operated or require isolation, ELEXOL has pre-built accessory boards available. All accessory boards are equipped with box headers matching those on the Ether I/O 24 module and are supplied with 30cm long connecting cables. All external connections to the input or output channels of the accessory boards are by screw terminals that will accept cables 0.5 –...
Page 9
Using Ethernet allows companies to utilize their existing IT infrastructure to convey control information, messages or process data to various points throughout their facilities. The economical nature of the Ether I/O 24 makes this an attractive alternative to other systems. Elexol Pty Ltd Version 1.0 Page 9...
By automating these services, the chances of maintenance being overlooked and expensive malfunctions and downtime resulting will be minimized. When a fault does occur, downtime can be minimized by prompt, automatic notification to the correct people. Elexol Pty Ltd Version 1.0 Page 10 http://www.elexol.com...
If your device has an internal power supply the board can be fed from inside and the external connector used for powering ancillary external devices or an Ethernet switch. Elexol Pty Ltd Version 1.0 Page 11...
Page 12
Differences between Ether I/O 24 and Ether I/O 24R The Ether I/O 24 R is the next version of the Ether I/O 24. The End of life notice on the SX52 due to Non RoHS compliance / Packaging issues has forced Elexol to update the Ether I/O 24 to incorporate the Parallax SX48.
IP address 10.10.10.10 with Port 2424. Jumper J4, when placed will disable DHCP and override the EEPROM IP address settings and force the module to used IP address 192.168.0.10 with Port 2424. Elexol Pty Ltd Version 1.0 Page 14...
TXD + Transmit Data Positive Signal TXD - Transmit Data Negative Signal RXD + Receive Data Positive Signal RXD - Receive Data Negative Signal Pins 4, 5, 7 and 8 not used Elexol Pty Ltd Version 1.0 Page 15 http://www.elexol.com...
Page 16
Write Direction A !A data Write Pull Up A @A data Write Direction B !B data Write Pull Up B @B data Write Direction C !C data Write Pull Up C @C data Elexol Pty Ltd Version 1.0 Page 16 http://www.elexol.com...
Page 17
Identification and Information Commands The module will always respond to a packet containing IO24, 4 bytes in length sent to port 2424. The response contains the module’s six-byte MAC address and a two-byte firmware version number. Elexol Pty Ltd Version 1.0 Page 18...
NU represents a value that is Not Used; a dummy byte must be included to ensure correct operation - Means that there is no data or no response, do not insert data bytes All hex values represented by $xx represent a single byte having this value Elexol Pty Ltd Version 1.0 Page 19...
Page 19
To set the entire port as outputs use Direction = 0 to set all as inputs use Direction = 255 to set 0, 1, 2 and 3 as inputs and 4, 5, 6 and 7 as outputs use Direction = 15. SendData “!A” + Chr$(Direction) Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 20 http://www.elexol.com...
Page 20
1 have their pull up resistors turned The power up default for Enable is 255; all pull up resistors turned off Operation: Same as Write Port A Pull Up Register SendData “@B” + Chr$(Enable) Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 21 http://www.elexol.com...
Page 21
1.4V The power up default for Select is 255; all lines have a threshold of 1.4V Operation: Same as Write Port A Threshold Register SendData “#C” + Chr$(Select) Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 22 http://www.elexol.com...
Page 22
Operation: The Value of the 8 lines of Port A is read and sent back to the host. Those pins that are set as outputs are read as though they were inputs and their values sent back in the Port Value Byte. SendData “a” Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 23 http://www.elexol.com...
Page 23
Sends the Direction Register value back to the host Command ASCII Bytes Data Reply Code Register-Value Operation: The Direction Register is read and it’s value sent back to the host. SendData “!b” Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 24 http://www.elexol.com...
Page 24
Sends the Pull Up Register value back to the host Command ASCII Bytes Data Reply Code Register-Value Operation: The Pull Up Register is read and it’s value sent back to the host. SendData “@c” Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 25 http://www.elexol.com...
Page 25
Sends the Schmitt Trigger Register value back to the Command ASCII Bytes Data host Reply Code Register-Value Operation: The Schmitt Trigger Register is read and it’s value sent back to the host. SendData “$a” Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 26 http://www.elexol.com...
Page 26
When this command is received, the Module’s Information is sent back to the host, the module’s IP Address can be obtained from the Source Address of the packet. SendData “IO24” Winsock1. Example: Elexol Pty Ltd Version 1.0 Page 27 http://www.elexol.com...
Page 27
The user cannot write addresses 0-4 at any time. The EEPROM cannot be written or erased if the J2 jumper is on. SendData “’1” + Chr$(0) + Chr$(&HAA) + Chr$(&H55) Example: Winsock1. Elexol Pty Ltd Version 1.0 Page 28 http://www.elexol.com...
Page 28
Below are some examples of the commands Example: Winsock1.SendData “SA” + Chr$(&H2) + Chr$(&HAA) + Chr$(&H55) Where Chr$(&H2) is the number of data bytes to be sent via SPI and Chr$(&HAA) and Chr$(&H55) are the data bytes sent. Elexol Pty Ltd Version 1.0 Page 29 http://www.elexol.com...
Example image for SPI communications with the MCP3004/3008 using 8 bit segments taken from the MCP3004./3008 datasheet. (http://www.microchip.com) Elexol Pty Ltd Version 1.0 Page 30...
1, the Preset Port function a bit value of 2 and the AutoScan function a bit value of 4. Simply subtract the bit values of all the functions you wish to enable from 255 to calculate the value to write to the Control Bits 1 Location. Elexol Pty Ltd Version 1.0 Page 31...
To convert a line number 1-8 to a bit value 1 – 128 we use twos exponent with the exponent number being one less than the line number. BitValue = 2 ^ (Line – 1) Elexol Pty Ltd Version 1.0 Page 32...
‘ Show the IP address of the unit End Sub Now we know the IP address of our Ether I/O 24 module we can execute other commands to set up the ports for Input or Output of signals. Elexol Pty Ltd Version 1.0 Page 33 http://www.elexol.com...
To illustrate this point and the operation of the module and it’s programming, we have produced a series of application demonstration programs on output, input, EEPROM programming, using the AutoScan functions and interfacing to Clocked Serial devices. Elexol Pty Ltd Version 1.0 Page 34...
Once again, we have combined the four commands into a single packet thereby saving network traffic. Whenever possible, combine all your set-up commands into a single data packet whereby processing overhead will be lower and the module will be initialised more quickly. Elexol Pty Ltd Version 1.0 Page 35...
Winsock1.SendData "'0" + Chr$(0) + Chr$(0) + Chr$(0) These commands can be used to configure the module as described in the Advanced Programming section or to read and write the User data area in the EEPROM memory. Elexol Pty Ltd Version 1.0 Page 36...
1 to 4 at low and the other lines at high. We would need to ensure that the Port A Direction register was all high and the Port B direction register was all low bits, then set the Port B value register as appropriate for the desired output. Elexol Pty Ltd Version 1.0 Page 37...
Winsock1.SendData "'@" + Chr$(0) + Chr$(&HAA) + Chr$(&H55) All of these settings can be programmed using the Ether I/O 24 Test Programming Utility available for download from the Elexol website. Elexol Pty Ltd Version 1.0 Page 38 http://www.elexol.com...
IEEE Institute of Electrical and Electronic Engineers, The organization responsible for defining standards that will allow different devices to talk to each other, regardless of their specific manufacturer or country of origin. Elexol Pty Ltd Version 1.0 Page 39 http://www.elexol.com...
• Fix added so that the unit IO24 Command doesn't have to be sent from broadcast packet Ether I/O 24 Firmware Version 2.0 • Adapted firmware to run the new hardware, as well as adding new functionality of programmable port number, SPI and updating Autoscan features Elexol Pty Ltd Version 1.0 Page 40 http://www.elexol.com...
Need help?
Do you have a question about the Ether I/O 24 R and is the answer not in the manual?
Questions and answers