11 inputs via bidirectional opto-isolators 8 outputs via optocoupler 1a each 6 counter 32bit programmable logic tcp/ip and webserver lcd display (exdul-519e only) poe and lcd display (exdul-519poe only) (100 pages)
Summary of Contents for Wasco EXDUL-518PoE
Page 1
EXDUL-518E EDP No: A-374540 EXDUL-518S EDP No: A-374520 11 inputs via bidirectional opto-isolators 8 outputs via optocoupler 1A each 6 counter 32bit Programmable logic TCP/IP and webserver LCD display (EXDUL-518E only) PoE and LCD display (EXDUL-518PoE only) wasco ® Handbuch...
Page 2
This manual has been written for the EXDUL-518E, EXDUL-518PoE and EXDUL-518S modules. EXDUL-518E has an additional LCD display, EXDUL-518PoE an LCD display and power via PoE, all other functions of the modules are identical. The commands and functions related to the LCD display do not apply for the EXDUL-518S.
3.7 Programmable Logic ................... 11 3.8 TCP/IP Server......................11 3.9 Web Server ......................12 3.10 Timer for Communication Watchdog ..............12 3.11 LCD Display (EXDUL-518E and EXDUL-518PoE only) ........12 3.12 Power over Ethenet (EXDUL-518PoE only) ............12 4. Getting started ..........4.1 Connection to an Ethernet Port ................13 4.2 Power Supply Connection ...................13...
Page 4
® 6. 11 Optocoupler Inputs ........6.1 Pin Assignment of the Optocouplers on the Inputs ..........25 6.2 Input Circuitry .....................26 6.3 Input Current ......................26 7. 8 Optocoupler Outputs ........7.1 Optocoupler/FET Output Circuit .................27 7.2 Output Data ......................27 7.3 Freewheeling Diode ...................28 7.4 Programming of the Optocoupler Outputs ............29...
Page 5
® 14. Programming ..........14.1 Getting started ....................41 14.2 Programming Methodes ..................41 14.3 Programming under Windows using the .NET EXDUL.dll Library .....41 14.4 Programming with TCP Libraries ...............48 14.5 Receiver mode ....................82 14.6 Module access via LabVIEW and EXDUL.dll ............83 15.
The module is supplied with the necessary operation voltage by means of an external power supply unit. The EXDUL-518PoE can also be powered via Power over Ethernet. The programmable LCD display on the EXDUL-518E and EXDUL-518PoE alllows digital I/O status information or programmable user specific data to be displayed.
® 3.4 Digital Inputs via Optocoupler 11 bidirectional channels with galvanic isolation Over voltage protection diodes Input voltage range high = 10..30 Volt low = 0..3 Volt 3.5 Digital Outputs with FET Power Switches 8 channels with galvanic isolation via optocouplers...
3.10 Timer for Communication Watchdog Time window adjustable from 1 to 2 - 1ms 3.11 LCD Display (EXDUL-518E and EXDUL-518PoE only) 2-line,16-column matrix display with 16 characters per line Programmable to display application specific data or as I/O status display 3.12 Power over Ethenet (EXDUL-518PoE only)
The EXDUL-518E / EXDUL-518S requires a supply voltage from +10V ... +30V DC at terminal 23 (Vcc) and terminal 24 (GND) to operate. The EXDUL-518PoE can be powered both via the terminals 23 (Vcc) und 24 (GND) as well as via the Ethernet cable using PoE. The power supply via PoE is only used if no power is available at the terminals.
® 4.3 Integrated Webpage of the EXDUL-518 Any web or internet browser such as Mozilla Firefox, Chrome, Edge, Safari etc. can access the EXDUL-518’s webpage via a TCP/IP connection. The wepbage allows to read connection information and change password pro- tected configuration data.
® 4.5 Default Network Configuration In the factory default setting, the EXDUL-518 is set to DHCP (Dynamic Host Configuration Protocol) to obtain a dynamic IP address. During pow- er-up, the EXDUL-518 requests an IP address from the network (LAN). A network with an enabled DHCP server automatically assigns an IP address to the module.
® 4.7 Changing the Network Configuration To change the factory default configuration settings, connect the EXDUL-518 to a local network using the RJ45 socket and the standard network cable supplied. A power supply (+10V ...+30V) is also required at terminal 23 (Vcc) and terminal 24 (GND) of the module.
® Important note: The PC used and the EXDUL connected must be located on the same network to be able to communicate. For this, the computer‘s DHCP must be disabled and, for example, the first two number blocks (192.168) of the EXDUL IP address 192.168.1.83 (Subnet mask 255.255.0.0) must...
Page 18
® As soon as a stable Ethernet connection has been established, you can access the EXDUL-518 web page using any Internet browser. By entering the host name http://EXDUL-518, the browser should open the EXDUL-518 web page. Click on the TCP/IP Config button to open the following con-...
® Please ask your network administrator which IP address you are allowed to use. Using an unauthorised IP address may prevent access to the module. The main unauthorised addresses are blocked by the module. 4.9 Configuration with Dynamic IP Address (DHCP enabled)
® Important note: We strongly recommend that you consult your network administrator before enabling DHCP. If you want to integrate several identical EXDUL-5xx series modules into a network, the preset host names are to be changed. Each host name within a network must be assigned to only one device or module.
® 4.11 LCD Display during Operation (EXDUL-518E / 518PoE only) After booting, the display switches from information display to I/O status display or the UserLCD display, depending on the setting. When the I/O status is displayed, line 1 shows the current status of the inputs and line 2 shows the status of the outputs.
® 5. Accessing the EXDUL-518 As already mentioned, access to the configuration settings and to the inputs and outputs of the EXDUL-518 is possible via the EXDUL-518 web page or via the TCP/IP sockets. For this, the IP Address, the host name or MAC address is required.
® 5.2 Access via TCP/IP Sockets A reliable connection between the PC and the EXDUL-518 is achieved by using the TCP protocol. The protocol automatically takes action in case of data loss. The module is addressed by a 4-byte IP address (IPv4) or the assigned host name and a port number 9760.
® 6. 11 Optocoupler Inputs The EXDUL-518 provides 11 input channels, each of which is optically isolated by optocouplers. The isolation voltage between the ground of the computer and the input is 500 volts. The voltage within the input channels is limited to 50 volts.
® 6.2 Input Circuitry Optocoupler Protection Diode DIN_COM Fig. 6.2 Input circuit The optocoupler inputs are bidirectional. Normally the DIN_COM con- nector is connected to minus and a voltage is applied to the DINx con- nector. However, it is also possible to apply the positive voltage to the DIN_COM connector and the negative voltage to the DINx connector if this makes more sense in terms of circuitry.
® 7. 8 Optocoupler Outputs The EXDUL module provides 8 output channels, which are also optically isolated. The optocoupler output is amplified by a high power MOSFET, providing an output current of 1A per channel. A freewheeling diode is available for each channel for use in special situations.
® 7.3 Freewheeling Diode If the optocoupler outputs are used to switch loads with low inductance and it is not possible to connect a freewhelling diode directly to the induc- tance, a freewheeling diode is provided in the module for each channel.
® 7.4 Programming of the Optocoupler Outputs For programming the optocoupler outputs, several access functions are available. This allows all channels to be controlled simultaneously or individually. If the current output state cannot be stored in the user application, it can be retrieved using a read command. Please note that the read switching state only corresponds to the primary state (on the processor side).
® 8. Counters The module provides a self-contained, hardware-supported 32bit counter on each of the first 6 optocoupler inputs (DIN0 to DIN5). These can be activated individually, if required. They respond to each rising egde by incrementing the counter value. Any overflow is indicated by a retrievable flag.
® 9. Programmable Logic In some applications it may be useful for the module to react autonomously to input signals or input changes. Without this option, the only way to detect a change is by regularly polling the inputs. This type of polling places a increased load on the network and on the computer.
® 9.1 Logic Branch Four different logic branches can be used in the module. Each branch has four inputs, one logic operation (AND, OR) and one output. Logic inputs and outputs can be assigned different functions. The logic gate can be event-controlled (e.g.
® 9.3 Logic Operation Each logic branch has a logic operation. The following functions can be assigned: Operation Notes State/event AND link state/event OR link state/event 9.4 Logic Output Each logic branch has one logic output. The following functions can be...
® 9.5 Sending Message to PC If you want to send a message to the PC or application when an event occurs, you can do this via the message outputs. There are a total of 4 message function outputs, each of which sends an individual message to the PC.
® Four message arrays are provided to allow the PC to distinguish which logic block is sending the message. The following table shows the 4 possible byte arrays. The first 4 bytes represent the command, in this case always 0x0E, and the length byte (always 2).
® 10. Watchdog-Timer (WDT) The EXDUL module features a number of safety mechanisms to ensure a stable communication. However, if the communication is interrupted, e.g. due to routing problems, and it is not possible to re-establish the con- nection, you can use the module‘s integrated watchdog timer to solve the problem.
® 11. Error Register If any unplanned errors occur (e.g. a watchdog reset), they will be indicated in the two error registers. When an error occurs, the bit associated with the error is set. The error registers are maintained even after a reset or power off.
® 12. Information LCD and User Register 12.1 Register HW Identifier and Serial Number Byte 10 11 12 13 14 15 Identifier Table 12.1 Register HW Identifier and serial number The module name and the firmware version are stored in the HW Identifier register and can be read by the user to determine the product identity.
® 12.2 UserA, UserB, UserLCD1m* und UserLCD2m* Memory Areas Byte 10 11 12 13 14 15 UserA UserB UserLCD1m* UserLCD2m* Each of the UserA and UserB registers contains 16 digits (16 bytes) and can be used for your own purposes. The data is retained when you switch off, and the registers can be reset to the factory default settings.
® 13. Installing the Driver The Ethernet module EXDUL-518 does not require a driver. All that is required, is an existing network connection from a PC (network interface card with driver) or from a mobile device. Direct access to the module requires the TCP/IP libraries available in many high-level langu- ages such as C, C++, C#, Visual Basic or Java.
® 14. Programming 14.1 Getting started You can program using the standard TCP/IP protocol and therefore via TCP/IP sockets, for which standard libraries are available in the most common programming languages. The use of Microsoft‘s .Net Frameworks allows easy and quick implementation. By using the standard protocol, the module can also be connected to a variety of other operating systems besides Windows, such as Ubuntu (Linux-based) or Android.
Page 43
® Write to the UserLCD LCD register: line, text) void SetUserLCD(byte string line: 0 = 1st line / 1 = 2nd line Parameter: text: LCD text of up to 16 characters Result: Writes the UserLCD registers. The parameter line defines the line (0 or 1) and text the text of 16 characters.
® 14.4 Programming with TCP Libraries By accessing the module using standard TCP/IP socket libraries, you can program your application in a variety of languages on different platforms. On Windows you can use Delphi or Java in addition to the .Net Framework.
Page 49
® 14.4.2 Command and Data Format Data is exchanged by sending and receiving byte arrays. Each byte array to be sent or received consists of at least 4 bytes. The first three bytes represent the command and the fourth byte indicates the number of the 4 byte blocks to follow.
® 14.4.3 Password protection In order to protect the module from unauthorized access, a simple pass- word protection can be used for data exchange. If this is enabled (see security configuration command), the correct password (+8 Bytes) has to be appended to each byte array sent.
® 14.4.5 Command structure Writing to Info Registers The EXDUL module provides several writable information registers. UserA/B are two 16-byte areas for the user to store information into a non-volatile memory (FLASH). The registers can only be written as a complete 16-byte block.
Page 53
® Reading the info registers The EXDUL module provides Info area Info byte several 16-byte information areas UserA containing module information such UserB as the serial number or the hard- ware identifier. Additionally, the user Hardware ID Serial Number can also read out the writable user registers.
Page 54
® Example: Read out information area hardware identifier An 8-byte block is sent and a 20-byte block containing the hardware identifier is received Byte Send Notes Receive Notes Command code 1st byte Command code 1st byte Command code 2nd byte...
Page 55
® Example: Read out information area serial number An 8-byte block is sent and a 20-byte block is received with serial number Byte Send Notes Receive Notes Command code 1st byte Command code 1st byte Command code 2nd byte...
Page 56
® Writing to LCD registers The EXDUL module provides several writable LCD registers. UserLCD1 and UserLCD2 correspond to the two lines when the LCD display is used in UserMode. UserLCD1m and UserLCD2m are two 16 byte areas that are stored directly in non-volatile memory (FLASH) and loaded into the registers UserLCD1m or UserLCD2m when the module is started.
Page 57
® Reading LCD registers The EXDUL module provides several writable and readable LCD registers. UserLCD1 and UserLCD2 correspond to the two lines when the LCD display is used in UserMode. UserLCD1m and UserLCD2m are two 16 byte areas that are stored directly in non-volatile memory (FLASH) and loaded into the registers UserLCD1m or UserLCD2m when the module is started.
Page 59
® Writing the LCD mode The LCD display of the module provides several display modes. These can be set using the following command. The LCD mode is stored in a non-volatile memory and is also used after rebooting the module.
Page 60
® Reading the LCD mode The LCD display of the module provides several display modes. The set LCD mode can be read out using the following command. LCD mode LCD mode byte I/O mode User mode Example: reading the LCD mode...
Page 61
® Writing LCD contrast value This command is used to set the contrast of the display. Values from 0 to 4095 are accepted. The higher the value, the less contrast is displayed. A comfortable display is achieved in the range of 800 to 1800.
Page 62
® Writing Network Configurations This command is used to change all network configurations such as IP address, subnet mask, hostname, Gateway, DNS addresses and the setting of the DHCP client function. Example: writing the network configurations Hostname = „EXDUL-518“, IP = 192.168.0.63, Subnet mask = 255.255.255.0, Gateway = 192.168.0.1, Primary DNS = 192.168.0.1, Secondary DNS = 217.237.151.115...
Page 63
® 4th byte Subnet mask decimal value 0 3rd byte Subnet mask decimal value 255 2nd byte Subnet mask decimal value 255 1st byte Subnet mask decimal value 255 Gateway 4th byte decimal value 1 Gateway 3rd byte decimal value 0...
Page 64
® Reading network configurations This command is used to read all network configurations such as IP address, subnet mask, hostname, Gateway, DNS addresses and the setting of the DHCP client function or MAC address. Example: reading the network configuration Hostname = „EXDUL-518“, IP = 192.168.0.63, Subnet mask = 255.255.255.0,...
Page 65
® Gateway 4th byte decimal value 1 Gateway 3rd byte decimal value 0 Gateway 2nd byte decimal value 168 Gateway 1th byte decimal value 192 Primary DNS 4th byte decimal value 1 Primary DNS 3rd byte decimal value 0...
Page 66
® Writing the security configuration The EXDUL module provides a password protection for secure communi- cation. If this is enabled, the correct password needs to be sent with each transfer to the module. It is disabled by default. Security configuration...
Page 67
® Reading the Security configuration The EXDUL module provides a password protection for secure communi- cation. If this is enabled, the correct password needs to be sent with each transfer to the module. It is disabled by default. Security configuration...
® Changing the Password The EXDUL module is equipped with a password protection for secure communication. If this is enabled, the correct password is required for each transmission of data to the module. By default, the password is „11111111“...
Page 69
® Reading Optocoupler Outputs This command reads the current state of the optocoupler outputs. Optocoupler enabled = 1, optocoupler disabled = 0 Example: reading the optocoupler output state An 8-byte block is sent and an 8-byte block is received containing the current optocoupler...
Page 70
® Writing Optocoupler Outputs Separately This command is used to disable or enable individual output optocoup- lers. Optocoupler enabled = 1, optocoupler disabled = 0 Example: DOUT1 is to be enabled independently of the other outputs An 8-byte block is sent and an 4-byte block is received as an acknowledgement...
Page 71
® Setting Optocoupler Outputs This command is used to set the output optocouplers using a mask Enable output = 1, leave output unchanged = 0 Example: set all outputs selected by the mask (0x02 (= DOUT1 enabled, all other outputs keep their previous status x)
Page 72
® Reading the Optocoupler Inputs This command is used to read the current status of the optocoupler inputs Example: reading the optocoupler input status A 4-byte block is sent and an 8-byte block is received containing the optocoupler input states.
Page 73
® Counters This command gives access to the counters. The counter can be started, stopped, reset an read. In addition, the overflow flag can be read and reset. Code Counter command code start counter stop counter reset counter read counter value...
® Watchdog Timer This command gives access to the counters. The counter can be started, stopped, reset an read. In addition, the overflow flag can be read and reset. Code Counter command code Start watchdog timer Stop watchdog timer...
Page 77
® Initialising of a programmable logic branch This command enables one of the programmable logic branches to be initialised. Code Input function Code Output function NONE NONE (branch disabled) TRUE (logic 1) Send Message1 (event) FALSE (logic 0) Send Message2 (event) 03 ..
Page 78
® Example: Initialising the first logic branch Message1 is to be sent to the PC on each rising edge of the optocoupler input DIN0 (event). (IN0 = 32, IN1 = TRUE, IN2 = TRUE, IN3 = TRUE, Gate = 0, OUT = 4)
Page 79
® Reading the error registers This command is used to read the two error registers Byte Send Notes Receive Notes Command code 1st byte Command code 1st byte Command code 2nd byte Command code 2nd byte Command code 3rd byte...
Page 80
® Enabling the receiver mode This command is used to enable the programmable logic receiver mode. After a second TCP/IP connection has been established with the module, the receiver mode is enabled for this connection. There is no respond to this command.
Page 81
® Disabling the receiver mode counter (receiver mode command) This command is used to disable the programmable logic receiver mode. This command does not receive a response and only works with an enabled receiver connection. Byte Send Notes Command code 1st byte...
® 14.5 Receiver mode It is often the case that a change must be checked at regular intervals, e.g at the optocoupler inputs. This is usually done by polling the respective inputs. This can quickly lead to a considerable load on the network if the inputs are polled frequently and several modules are in use at the same time.
® Establish connection Enable reciever mode Event via p. logic Message to PC (Index(x)) Event via p. logic Message to PC (Index(x+1)) Close connection Please refer to our programming examples (e.g. Windows-C# examples) for a more detailed illustration of the receiver mode.
A power supply of +10V ... +24V DC via terminal 23 (Vcc) and terminal 24 (GND) or a PoE capable switch for the EXDUL-518PoE is required for ope- ration. Please check the screw terminal connections on the module as well as the power supply unit and the connections on the power supply unit.
Page 85
® Is there a stable Ethernet connection between the PC and the network? Check the network cable between the computer and the network outlet (RJ45 wall socket), active Ethernet switch or Ethernet hub. The Ethernet cable must be suitable for the Ethernet connnection, undamaged and correctly plugged in at both ends.
Page 86
® How to check your PC‘s network configuration? You can monitor your computer‘s TCP/IP settings from the Internet Protocol Version 4 (TCP/IPv4) Properties window or the LAN connection status (see „How to check and change your PC‘s IP address“), or by using the simple command line IPCONFIG.
Page 87
® How to check and change your PC‘s IP address Windows10: Start > Control Panel > Network & Internet > Status > Change adapter settings > select the required LAN connection (double click or right click) > Properties > Internetprotocol Version 4 (TCP(IPv4) > Properties...
Page 88
® How to switch to MS-DOS prompt Windows10: Start > Search programs > type cmd > press enter to confirm Start > Windows System > prompt Is it possible to locate EXDUL-5xx modules in an existing network and to determine the network data? All EXDUL-5xx modules send identification signals at certain intervals.
® 16. Technical Specification Optocoupler inputs 11 galvanic isolated bipolar channels Over voltage protection diodes Input voltage range high = 10..30 Volt low = 0..3 Volt Digital Outputs via FET Power Switches 8 channels with opto-coupler galvanic isolation Contact A of the FET (source, + connection) with one connection terminal...
Page 90
® Web Server Configuration Function test Firmware Update LCD Display (EXDUL-518E/PoE only) 2-line, 16-column matrix display with 16 characters per line Programmable to display application specific data or as I/O status display Connection Terminals 1 * 24-pin screw terminal block...
® 19. Product Liability Act Notes on Product Liability The German Product Liability Act (ProdHaftG) governs the liability of manu- facturers for damage caused by defective products. The obligation to pay compensation may already exist if the appearance of the product could mislead a non-commercial end user into believing that the product is safe, and also if the end-user can be expected to disregard the necessary safety instructions when handling the product.
Page 98
® * disconnect the mains plug before opening the unit or ensure, that no power is supplied to the unit. * You must not put any components, printed circuit boards or devices into service unless they have first been installed in a safe, touch-proof enclo- sure.
® 20. EC Declaration of Conformity This is to certify, that the products EXDUL-518PoE EDV-Nummer A-374550 EXDUL-518E EDV-Nummer A-374540 EXDUL-518S EDV-Nummer A-374520 comply with the requirements of the relevant EC Directives. This decla- ration will lose its validity if the instructions given in this manual for the intended use of the products are not fully complied with.
Page 100
® Reference system - intended use The EXDUL-518E, EXDUL-518PoE and EXDUL-518S multifunction modules are not intended to be stand-alone devices. CE-conformity can only be assessed if other computer components are in use simultane- ously. Therefore, CE conformity can only be confirmed if the following...
Page 101
® Messcomp Datentechnik has been working hard on the topic of sustaina- bility and saving resources and has changed a number of processes. As a further step in this direction, we have decided to stop including a CD with our manuals.
Need help?
Do you have a question about the EXDUL-518PoE and is the answer not in the manual?
Questions and answers