background image

 

Ether I/O 24 Users Manual V1.3 

 

Elexol Pty Ltd      Version 1.3 

Page 1 

http://www.elexol.com

 

 

E L E

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 

 
 

Users Manual 

 
 
 
 
 
 

Version 1.3 

For Firmware Release 1.4 

Содержание Ether I/O 24

Страница 1: ...ther I O 24 Users Manual V1 3 Elexol Pty Ltd Version 1 3 Page 1 http www elexol com E L E 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 Users Manual Version 1 3 For Firmware Release 1 4 ...

Страница 2: ... I O N S Ether I O 24 Module Hardware I Æ Å D J H Æ Å C Å B ÅA E F G A Ethernet Connector B LED Indicators C Power Connector 2 1mm DC Jack Center D Power Connector Screw Terminal E Port A Connector F Port B Connector G Port C Connector H CONFIG Jumper Links J1 J3 I Optional 5V output screw terminal J Factory Programming Header ...

Страница 3: ...eristics 13 Module Connections 14 Module I O Connectors PORT A PORT B PORT C 14 Module Configuration Options Connector CONFIG J1 J2 J3 14 Ether I O 24 Factory Programming Header SX_PROG 15 Power In Connectors 15 5V Out Screw Terminal Block optional 15 Ethernet Connector 15 Command Summary 16 Command Set Quick Reference 18 Command Set 19 EEPROM Memory contents 29 Basic Programming 30 1 Reading data...

Страница 4: ...in life or for any other application in which the failure of the product could create a situation where personal injury or death may occur and should not be used for those applications The Ether I O 24 is warranted to be free from manufacture defects for a period of 12 months from the date of purchase Subjecting the device to conditions beyond the Absolute Maximum Ratings listed in this document w...

Страница 5: ...e module may be configured by jumper link to a fixed address to allow for initial programming operations Once programmed the device may have any IP address the user assigns Three Ports labeled Port A Port B and Port C are for connection of the module to external digital devices operating at 5V levels These ports are standard 10 way box headers with 0 1 pitch Each of these ports has 8 I O signals a...

Страница 6: ...e is not checked for changes If a PC controls the module the Programmer must have access to an UDP IP socket in order to communicate with the module The Winsock control in MS Windows operating systems provides for such communication in a simple and easy manner As other operating systems have different methods of programming network sockets please consult your operating system s specifications soft...

Страница 7: ... contacts rated to 250V AC or DC at 5Amps The 8 relays on the board can drive a multitude of devices Each of the 8 relays on the board has a matching LED to indicate its state Connector LED Board to provide for easy connection of larger wires to the Ether I O 24 module or to provide a buffered visual indication of the states of all the signals on a port The Connector LED Board can also be used sim...

Страница 8: ...rnet interface to the control system will allow for 160 000 inputs to be read per second or 500 000 outputs to be controlled per second using off the shelf Ethernet switches and Ether I O 24 modules Due to the nature of modern switched Ethernet and full duplex communications the CSMA CD system that plagued older non switched Ethernet networks with collisions packet loss and indeterminate transfer ...

Страница 9: ...ts use more affordable and easier to use than most other systems The star or multi linked star wiring of Ethernet makes for very easy fault diagnosis and the onboard LED indicators of the module allow the diagnostician to quickly ascertain whether a module is powered active or dormant and whether any Ethernet signals are reaching the module As all Ethernet switches also have link and activity LED ...

Страница 10: ... fact that most new PC hardware is equipped with an Ethernet port make the PC platform combined with Ethernet connectivity ideal for central control of most mid to large scale systems When linked to the Internet an automated building can be controlled and monitored from any Internet terminal Internet enabled mobile phone or other device anywhere on the globe Wireless connectivity will further enab...

Страница 11: ... numbers of I O connections the Ether I O 24 is an ideal solution Additional modules enable the Ether I O 24 module to connect to almost any electrical device and with appropriate sensors or actuators it can be used to control or monitor almost any simple or complex system With wireless Ethernet now coming as standard on many laptop computers and wireless access points becoming more economical the...

Страница 12: ...d unit costs of embedded controllers Your new devices software can now be easily updated or maintained via the web If a fault were to occur you could access all the machine s functions remotely via the Internet for instant diagnosis If higher speed or real time functions are required these can be implemented on your own boards with connection back to the Ether I O module for communication back to ...

Страница 13: ...er 24VDC Packet Timing Characteristics Parameter Conditions Min Typ Max Units Response Time 1 Read Command in Packet 80 100 200 μS Port Write Time Within one packet 1 5 μS Port Write Speed 250 writes per packet 500 000 Writes S Port Write Time 1 write per packet 100 μS Port Write Speed 1 write command per packet 10 000 Writes S Port Read Speed 1 read per packet 6 500 Reads S Port Read Speed 32 rea...

Страница 14: ...alue of 4 or 04 8 I O2 I O Programmable I O pin with bit value of 2 or 02 9 I O1 I O Programmable I O pin with bit value of 1 or 01 10 Ground PWR Ground Pin Common reference for all signals Module Configuration Options Connector CONFIG J1 J2 J3 The CONFIG connector is a 6 pin arranged as 2 rows of 3 pins To set an option jumper place one of the 2 supplied links across the 2 rows next to the corres...

Страница 15: ...ted through a panel either or both of the power in connectors may be used 5V Out Screw Terminal Block optional This terminal block if fitted allows for the 5v supply from the onboard regulator to be used to power user circuits and sensors The maximum current that user circuits may draw from the on board regulator is 500mA if this current is exceeded then the operation of the board may be adversely...

Страница 16: ...sed to set the ports options First and most critical of these options is Direction which can be set as input or output When set as output the I O line will be driven to the last value written to the port This value can be pre set by writing to the port before writing to the direction register When set as an output none of the other configuration commands have any effect The Pull Up configuration c...

Страница 17: ... MSB LSB Erase EEPROM word E address AA 55 Only the Read EEPROM command generates a response in the form of R address MSB LSB A special EEPROM command is used to reboot the module and cause it to load and activate any new settings Reboot Module dummy AA 55 Identification and Information Commands The module will always respond to a packet containing IO24 4 bytes in length sent to port 2424 The resp...

Страница 18: ...n A 40 41 3 Pull_Up Write Port A Pull Up Register B 40 42 3 Pull_Up Write Port B Pull Up Register C 40 43 3 Pull_Up Write Port C Pull Up Register A 23 41 3 Threshold Write Port A Threshold Register B 23 42 3 Threshold Write Port B Threshold Register C 23 43 3 Threshold Write Port C Threshold Register A 24 41 3 Schmitt Write Port A Schmitt Trigger Register B 24 42 3 Schmitt Write Port B Schmitt Tri...

Страница 19: ...lue for this port is 0 Operation Same as Write Port A Example Winsock1 SendData B Chr Value Write Port C ASCII Code Bytes Data Function C 2 Port Value Writes data to ports output lines A bit value of 1 sets the corresponding line high and a 0 sets it low The power up default value for this port is 0 Operation Same as Write Port A Example Winsock1 SendData C Chr Value Write Port A Direction Registe...

Страница 20: ...ng bit value of 0 have their pull up resistors turned on lines with a bit value of 1 have their pull up resistors turned off The power up default for Enable is 255 all pull up resistors turned off Operation This command affects all eight lines of port A whose direction is set as an input The Enable Value is written to the entire port with each of the bits in the byte affecting the corresponding I ...

Страница 21: ...I O line To change a single I O line s behaviour without affecting the others it is necessary to store the old value of the register or read its current value before writing a new value with only the corresponding bits changed To set the entire port with threshold voltage of 2 5V use Select 0 to set all the ports input thresholds at 1 4V use Select 255 to set 0 1 2 and 3 at 1 4V and 4 5 6 and 7 at...

Страница 22: ...ld inputs use Enable 240 Example Winsock1 SendData A Chr Enable Write Port B Schmitt Trigger Register ASCII Code Bytes Data Function B 3 Enable Writes data to port s Schmitt trigger enable register Lines with a corresponding bit value of 0 have their Schmitt trigger threshold latches turned on lines with a bit value of 1 have normal threshold sense inputs The power up default for Enable is 255 all...

Страница 23: ...ends the Value of Port C back to the host Operation The Value of the 8 lines of Port C 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 Example Winsock1 SendData c Read Port A Direction Register Function ASCII Code Bytes Data Command Sent a 2 ASCII Code Bytes Data Command Reply A 3 Register Va...

Страница 24: ...and Reply A 3 Register Value Sends the Pull Up Register value back to the host Operation The Pull Up Register is read and it s value sent back to the host Example Winsock1 SendData a Read Port B Pull Up Register Function ASCII Code Bytes Data Command Sent b 2 ASCII Code Bytes Data Command Reply B 3 Register Value Sends the Pull Up Register value back to the host Operation The Pull Up Register is r...

Страница 25: ...Register Value Sends the Threshold Register value back to the host Operation The Threshold Register is read and it s value sent back to the host Example Winsock1 SendData b Read Port C Threshold Up Register Function ASCII Code Bytes Data Command Sent c 2 ASCII Code Bytes Data Command Reply C 3 Register Value Sends the Threshold Register value back to the host Operation The Threshold Register is re...

Страница 26: ...c module information MAC address ASCII Code Bytes Data Command Reply IO24 12 6 Bytes being the Modules MAC Address 2 Bytes being the Modules Firmware Version Operation This Operation is used to find modules on the network as the module will respond to this command when broadcast When this command is received the Module s Information is sent back to the host the module s IP Address can be obtained ...

Страница 27: ...et This command function is built into the IO24 so that when two units are linked directly and the Auto Scan function is enabled the receiving unit will transmit a space character back to the sending unit in order to allow Ethernet switches to build their routing table Example Winsock1 SendData Read EEPROM Word Function ASCII Code Bytes Data Command Sent R 5 Address NU NU ASCII Code Bytes Data Com...

Страница 28: ...y Write or Erase commands can be performed The user cannot write addresses 0 4 at any time The EEPROM cannot be written or erased if the J2 jumper is on Example Winsock1 SendData E Chr Address Chr HAA Chr H55 Write Enable EEPROM ASCII Code Bytes Data Function 1 5 NU AA 55 The EEPROM memory is Write Enabled Operation The module will Write Enable the EEPROM memory allowing Write or Erase Operation t...

Страница 29: ...Pull up 28 Preset Port C Threshold 15 31 Reserved for Future Use 30 Preset Port C Schmitt Trigger 16 33 AutoScan Port B Mask 32 AutoScan Port A Mask 17 35 AutoScan Filter Count 34 AutoScan Port C Mask 18 37 AutoScan Scan Rate MSB 36 AutoScan Scan Rate LSB 19 39 AutoScan Target MAC Address 2 38 AutoScan Target MAC Address 1 20 41 AutoScan Target MAC Address 4 40 AutoScan Target MAC Address 3 21 43 ...

Страница 30: ...ereby saving CPU power as the program will not have to continually poll the socket for incoming data This method is accomplished by using the Winsock1_DataArrival event In the following examples we will show both methods where applicable or just the simple method if there is no reason to use the interrupt method 2 Working with individual bits As each I O line is one of a group of 8 we must know ho...

Страница 31: ... Identify command to all IO24 units While Winsock1 BytesReceived 0 Wait for data to Arrive Wend Loop the Wait N Winsock1 BytesReceived How many bytes arrived Winsock1 GetData a vbString N Read them into a buffer Debug Print Winsock1 RemoteHostIP Tell the user the IP Address End Sub If using the Interrupt mode rather than waiting for the data to arrive back from the module we use the Winsock1_DataA...

Страница 32: ...ock1_DataArrival event similar to what we did in the Finding the IP address code To read Port A we transmit a Read Port A command and then process the response The first example code does this by waiting for the data to arrive back from the module Winsock1 SendData a Send the Read Port A Command While Winsock1 BytesReceived 0 Wait for data to Arrive Wend Loop the Wait N Winsock1 BytesReceived How ...

Страница 33: ...threshold voltage is 1 4V and if low the threshold voltage is 2 5V The Schmitt Trigger Register overrides the threshold register when the corresponding bit is low enabling the Schmitt Trigger input state Finally the Pull Up register enables the corresponding pull up resistor when the bit is low The default power up state for all registers is all high bit TTL Input No Pull Up unless the EEPROM has ...

Страница 34: ...sc Mid a 3 1 256 ReadDone True End If End If Wend If ReadDone False Then Call MsgBox No Response from Module vbCritical Module Error Exit Sub The EEPROM Write command is used to write a byte to the EEPROM memory It is recommended to read the EEPROM in the module after any write command to ensure the data is correct after the write cycle Allow a 10ms delay between writing the EEPROM word and readin...

Страница 35: ...and Thus our commands to program the EEPROM look like this Winsock1 SendData W Chr 6 Chr 0 Chr 10 EEPROM Write Command Address MSB LSB Winsock1 SendData W Chr 7 Chr 100 Chr 0 EEPROM Write Command Address MSB LSB Keep in mind that to program this to our EEPROM we must have sent the Write Enable command to the module first and ensure that the J2 jumper link is not placed To then enable the Fixed IP ...

Страница 36: ...n this address will be that of the gateway or router whereas if your target device is on your local area network then this address will be that of the device itself Combined with the IP address of the target device and the port number there are 12 bytes of the EEPROM that relate to the target device s address and these occupy the addresses from 19 to 24 in the EEPROM Words 16 17 and 18 are used to...

Страница 37: ...track of the Address of each network device and manually assign it an address Port Number Each device on an IP network has an IP Address this would allow for only 1 link to be formed with another device without the use of a sub addressing scheme this scheme is referred to as the port number The numbers from 1 to 1024 are reserved for special functions and protocols such as DHCP or ICMP The Ether I...

Страница 38: ...nd before a read is sent Module Configuration Options Connector table amended default mode removed Ether I O 24 User Manual Version 1 3 Updated 20th June 2006 Command Set Function description updated for IO24 and function description for command was incorrect Updated document to include firmware revision history Firmware Revision History Ether I O 24 Firmware Version 1 0 Initial firmware release E...

Отзывы: