+ All Categories
Home > Documents > Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The...

Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The...

Date post: 19-Aug-2020
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
72
The Ethernet WEB server module DigiWEB 2 Digitronic Automationsanlagen GmbH Auf der Langwies 1 D - 65510 Hünstetten-Wallbach Tel. +49 6126 9453-0 Fax -42 Internet: http://www.digitronic.com E-Mail: [email protected]
Transcript
Page 1: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

The Ethernet WEB server module

DigiWEB 2

Digitronic Automationsanlagen GmbH Auf der Langwies 1 D - 65510 Hünstetten-Wallbach Tel. +49 6126 9453-0 Fax -42

Internet: http://www.digitronic.com E-Mail: [email protected]

Page 2: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 2/72

Notification This booklet corresponds with the state of the software from 12.8.2005, Software Version: 2.146 und der Java Applet Version v2.583. The company Digitronic Automationsanlagen GmbH has reserved all rights to alterations without prior notice, if these are followed by an improvement of the quality or the functioning of this piece of equipment. The instruction booklet has been edited exercising maximum care, but mistakes are not exactly out of the question. We are grateful for any hints concerning possible mistakes in the booklet.

UP-Date: This manual can be downloaded in the newest version on http://www.digitronic.com.

Qualified personal only Commissioning and operation of the device may only be carried out by qualified personal. Qualified personal are persons, authorized with commissioning, grounding and labelling devices, systems and electrical circuits according to the applicable standards of security

LIABILITY (1) The salesperson is liable for any damages for which he or the rightful owner is responsible up to the amount of the actual sales price. Liability concerning missed profits, failed-to-appear savings, indirect damages and consequential damage is excluded. (2) The liability restrictions above are not valid concerning assured characteristics and damages, which are caused by intention or coarse negligence.

PROTECTION The software and this booklet are protected by copyright. All rights are reserved. Neither the software nor this document may be partly or wholly copied, photocopied, reproduced, translated or transferred onto any electrical media or forms which are readable by machine without prior, written permit through the company Digitronic Automationsanlagen GmbH.

Note: The products of Digitronic are so well constructed that they will not be affected by the millennium.

Note: CamCon is a registered trademark of the company Firma Digitronic Automationsanlagen GmbH.

Note: The cam controllers of the CamCon series fulfil the norms regarding electromagnetic emission: EN 55011, EN 55022, EN 55024 Part 2, EN 50082 Part 2, ENV 50140, VDE 0843 Part 2, VDE 0843 Part 4, VDE 0871, VDE 0875 Part 3 ("N"), VDE 0875 Part 11, VDE 0877 Part 2, IEC 801 Part 3, IEC 801 Part 2, IEC 801 Part 4, IEC 801 Part 5.

(c) Copyright 1992 - 2018 / File: DIGIWEBe.DOC

Digitronic Automationsanlagen GmbH Auf der Langwies 1

D-65510 Hünstetten - Wallbach Tel. (+49)6126/9453-0 Fax. (+49)6126/9453-42

Internet: http://www.digitronic.com E-Mail: [email protected]

Page 3: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 3/72

Table of contents

1. Introduction ........................................................................................................................................... 6

2. Installation ............................................................................................................................................. 7 2.1. Dimensions ........................................................................................................................................ 7 2.1.1. Standard DigiWEB .......................................................................................................................... 7 2.1.2. DigiWEB with MPI Option ............................................................................................................... 7

3. Electrical Connections .......................................................................................................................... 8 3.1. Clamping allocation at standard DigiWEB ......................................................................................... 8 3.1.1. Clamping allocation of the Power supply ........................................................................................ 8 3.1.2. Clamping allocation of the serial interface ...................................................................................... 8 3.1.2.1. Clamping allocation of the serial RS232 interface ....................................................................... 8 3.1.2.2. Clamping allocation of the serial RS485 interface ....................................................................... 8 3.1.2.2.1. Closedown-resistors of the serial RS485 interface ................................................................... 8 3.2. Clamping allocation at DigiWEB with MPI ......................................................................................... 9 3.2.1. Clamping allocation of the power-supply at DigiWEB with MPI ...................................................... 9 3.2.2. Clamping allocation to the serial interface at DigiWEB with MPI .................................................... 9 3.2.3. Clamping allocation of the serial 232 interface at DigiWEB with MPI ............................................. 9 3.2.4. Clamping allocation of the serial 485 interface at DigiWEB with MPI ............................................. 9 3.2.5. Pin allocation of the MPI Bus .......................................................................................................... 9 3.3. Clamping allocation of the Ethernet RJ45 ....................................................................................... 10 3.4. The I/O Interface (external interface)............................................................................................... 10 3.4.1. Clamping allocation of the I/O Interface ....................................................................................... 10

4. The Status LED .................................................................................................................................. 11

5. Commissioning ................................................................................................................................... 12 5.0.1. Commissioning on a system without Windows™ ......................................................................... 13 5.1. Configuration ................................................................................................................................... 13 5.1.1. Configuration DHCP ..................................................................................................................... 13 5.1.2. Configuration IP - Address............................................................................................................ 14 5.1.3. Configuration Subnet mask .......................................................................................................... 14 5.1.4. Configuration Gateway ................................................................................................................. 14 5.1.5. Configuration Ftplogin ................................................................................................................... 14 5.1.6. Configuration Ftppass................................................................................................................... 14 5.1.7. Reset DigiWEB ............................................................................................................................. 14 5.2. Configuration, extended "config.htm" .............................................................................................. 15 5.2.1. Configuration DNS Server ............................................................................................................ 16 5.2.2. Configuration TCP Timeout .......................................................................................................... 16 5.2.3. Configuration FTP - Hostname ..................................................................................................... 16 5.2.4. Configuration NTP Time Server ................................................................................................... 16 5.2.5. Configuration SMTP respective E-Mail ......................................................................................... 17 5.2.5.1. Configuration SMTP Server IP .................................................................................................. 17 5.2.5.2. Configuration SMTP Name ........................................................................................................ 17 5.2.5.3. Configuration SMTP E-mail - Adr. ............................................................................................. 17 5.2.5.5. Configuration SMTP Login Password ........................................................................................ 17 5.2.5.6. Configuration SMTP Time ......................................................................................................... 17 5.2.6. Configuration of an RS232/485 interface ..................................................................................... 18 5.2.6.1. Configuration of an RS Interface/Protocol ................................................................................. 18 5.2.6.2. Configuration DigiWEB BUS address. ....................................................................................... 18 5.2.6.3. Configuration Device Default Adr. ............................................................................................. 18 5.2.6.4. Configuration RK512 Cell Size .................................................................................................. 19 5.2.7. Configuration of the I/O interface .................................................................................................. 19 5.2.8. Configuring the standard language ............................................................................................... 19 5.3. Setting a password protection for the configuration ........................................................................ 19

6. Programming ...................................................................................................................................... 20 6.1. A simple example: ........................................................................................................................... 21 6.2. General facts about the DigiWEB programming ............................................................................. 22 6.3. Variable display ................................................................................................................................ 22

Page 4: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 4/72

6.3.1. Formatting the display .................................................................................................................. 22 6.4. Text display ...................................................................................................................................... 23 6.5. Text display using a selector ........................................................................................................... 24 6.6. Graphic display of variables ............................................................................................................. 25 6.6.1. Controlling a graphs colour ........................................................................................................... 25 6.7. Cyclical display of variables and graphs using the Java.-Applet ..................................................... 26 6.7.1. Java - Applet – overview of parameters ....................................................................................... 27 6.7.1.1. General parameter .................................................................................................................... 27 6.7.1.2. Parameter for position designation: ........................................................................................... 27 6.7.1.3. Parameter for the graphic display: ............................................................................................. 28 6.7.1.4. Parameter for colour changes for graphic- or text display: ........................................................ 28 6.7.1.5. Parameter for text display: ......................................................................................................... 28 6.7.1.6. Parameter for HTML Links in the applet: ................................................................................... 28 6.7.1.7. Parameter for diagram display: ................................................................................................. 29 6.7.1.8. Additional parameter: ................................................................................................................. 29 6.7.1.9. Error messages of the Java - Applets ....................................................................................... 30 6.8. Input functions on an HTML-page ................................................................................................... 30 6.8.1. Variable input ................................................................................................................................ 30 6.8.2. Text - respective string input ........................................................................................................ 31 6.8.3. Variable input using selector or dropdown menu.......................................................................... 32 6.8.4. Bit – Input using check boxes (tick boxes) ................................................................................... 33 6.9. Expressions ..................................................................................................................................... 33 6.9.1. Expressions during input .............................................................................................................. 33 6.9.2. Addressing .................................................................................................................................... 34 6.9.2.1. Addressing of data blocks ......................................................................................................... 34 6.9.2.1.1. Addressing for data blocks with unit number .......................................................................... 34 6.9.2.2. Addressing in the S7 format ...................................................................................................... 35 6.9.2.2.1. Addressing for data blocks ..................................................................................................... 35 6.9.2.2.2. Addressing for in-/outputs and registers ................................................................................. 35 6.9.2.2.3. Addressing for counters .......................................................................................................... 35 6.9.2.2.4. Addressing for timers .............................................................................................................. 35 6.9.2.3. Indirect addressing .................................................................................................................... 36 6.9.3. Operators ...................................................................................................................................... 36 6.9.3.1. Arithmetical operators ................................................................................................................ 36 6.9.3.1.1. Calculations > 32 Bit ............................................................................................................... 36 6.9.3.2. Boolean operators ..................................................................................................................... 36 6.9.3.3. Logical operators ....................................................................................................................... 37 6.9.3.4. String - respective character band operators ............................................................................ 38 6.9.3.4.1. Determine String – respectively character band length .......................................................... 38 6.10. Local variable ................................................................................................................................. 39 6.10.1. Transfer variables as parameters ............................................................................................... 39 6.10.2. Variable function "##defined()" ................................................................................................... 39 6.11. Display control ............................................................................................................................... 40 6.11.1. The "#if" condition ....................................................................................................................... 40 6.11.2. The "#while" loop ........................................................................................................................ 40 6.11.3. The "#until" loop .......................................................................................................................... 41 6.12. Access control respective password protection ............................................................................. 41 6.12.1. Entering passwords .................................................................................................................... 41 6.12.2. Password request fort he protection of a complete HTML - page .............................................. 42 6.12.3. Password request for input-protection ........................................................................................ 43 6.13. Change the language configuration in the DigiWEB ..................................................................... 43 6.14. The DigiWEB data bank ................................................................................................................ 45 6.14.1. Functions of the DigiWEB SQL – data bank .............................................................................. 45 6.14.2. Data bank examples: .................................................................................................................. 46 6.14.2.1. Data logger in the DigiWEB ..................................................................................................... 46 6.15. File management ........................................................................................................................... 47 6.16. The „TXH“-file ................................................................................................................................ 48 6.16.1. Backup and Restore using the TXH - file ................................................................................... 49 6.17. Functions, overvieww .................................................................................................................... 50 6.18. Error messages on the HTML - page "*", "?", "-", "$", "^" or ERROR-CODE: -?? ......................... 51

Page 5: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 5/72

6.18.1. Detect the last error messages number ..................................................................................... 52 6.18.2. ERROR-Codes ........................................................................................................................... 52

7. Copy data into the DigiWEB via FTP .................................................................................................. 54

8. Sending E-Mails .................................................................................................................................. 55

9. Firmware Update ................................................................................................................................ 57 9.1. Differences to the previous versions ............................................................................................... 58

10. The internal data chart of the DigiWEB ............................................................................................ 58 10.1. The Digitronic I/O interfaces .......................................................................................................... 59 10.1.1. The SSI – position or impulse measuring system input at the DigiWEB I/O interface ............... 60 10.1.1.1. Configurations of the speed display ......................................................................................... 61 10.2. The network configuration status display and configuration of the RS - interface ......................... 62 10.3. The registers of the DigiWEB ........................................................................................................ 63

11. The external data charts respective attachment of external controllers ........................................... 64 11.1. Allocation of the data charts of a CamCon .................................................................................... 64 11.2. Allocation of the data charts of a ColorNet .................................................................................... 64 11.3. Clamping allocation for Schildknecht DATASNAKE MPI .............................................................. 64

12. The serial protocols fort he software developer ................................................................................ 65 12.1. The 3964(R) Protocol .................................................................................................................... 65 12.2. The RK512 protocol ....................................................................................................................... 66

13. Technical data .................................................................................................................................. 67

14. Glossary ............................................................................................................................................ 68

15. Register ............................................................................................................................................ 69

Page 6: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 6/72

1. Introduction The internet and is TCP/IP standard has recently become a matter of course for most companies. This technology enables, for example, downloading and/or gathering information from all over the world. The DigiWEB is a fully functional embedded Web server, which is able to visualise data from an attached PLC or CamCon cam switch unit via its 10BaseT Ethernet interface. A password protection with different user areas enables a safe, worldwide access to maintenance and monitoring displays of factory automation machinery. This helps the user to reduce the service complexity. In case of malfunctions, the occurrence of defined and programmed incidents can be used to trigger e.g. sending e-mails with the unit‟s actual status.

An integrated data-bank function (SQL) makes it possible to switch the programs language, create data sheets out of measured data, administrate a user-defined number of participants as well as many more functions.

A standard WWW-Browser and an E-mail client, like they are included as standard in every system software, are used as display.

DigiWEB helps you to display and alter presets and actual values and enables the animation of diagrams and charts as well as GIF-files. The optional Digitronic I/O interface makes it possible to write or read in or control and display inputs, outputs and analogue values.

Programming the DigiWEB is done by adding simple commentaries and special functions within the

HTML-files and can therefore be done using a broad choice of editors (like, e.g.. Microsoft FrontPage

or Macromedia Dream weaver). No special programming knowledge is required design a DigiWEB HTML-page. The only required programs are an FTP (Internet – File Transfer – Protocol) program,

like e.g. Windows Commander or the FTP program integrated in Microsoft Windows) for downloading the files into the DigiWEB as well as an HTML – editor are required.

The values that are read or written in a CamCon cam switch or another kind of controller, have to be addressed using the Siemens RK512 procedure. This is built on tabular and can access every possible value.

In addition, the S5‟s PG interface and the AS511 protocol, or the DigiWEb with MPI option of an S7 can be used for the S5 PLC controllers.

The address of the specific value, that shall be displayed, can be found in the description of the chart for the DigiWEB itself in chapter

"10. The internal data chart of the DigiWEB" on page 58, for the CamCon cam controller and the "ColorNet" in chapter "11. The external data charts respective attachment of external controllers" on page 64.

For PLCs or any controller (e.g. CamCon cam switch, S5 or S7) a user connects to the DigiWEB‟s serial interface, a wide range of serial protocols is available (see also chapter "5.2.6.1. Configuration of an RS Interface/" on page 18).

Please notice: Windows ® and FrontPage ® are registered trademarks of Microsoft Corporation.

Dreamweaver ® is an registered trademark of Macromedia Corporation.

Windows Commander ® is an registered trademark C. Ghisler & Co.

DATASNAKE ® is an registered trademark Schildknecht company.

Page 7: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 7/72

2. Installation The device is snapped onto an "EN - carrier rail" in the switchboard (see chapter "2.1. Dimension" on page 7). The grounding connections and the cable coverings are to be put on the shortest possible way to the serial grounding clip next to the device. The grounded assembly plate and its electrical connection to the "EN carrier rail" allow an excellent grounding of the disturbances onto the covering. All cable connections are to be switched in a cold state! We must ask you to use a category 5 Patch cable (Cat5) absolutely!

The DigiWEB‟s I/O interface is connected to the “external interface IN” respectively

“ext.Int. IN” of the DC16 I/O module, using a type KK16/IO cable. All additional devices

are connected to the plug "external Interface OUT" respectively. "ext.Int. OUT" (if available, using the same type of cable. The cable length must not exceed 8cm. The supply voltage (24V DC +/- 20%) has to be connected separately for every module.

2.1. Dimensions

.

2.1.1. Standard DigiWEB

2.1.2. DigiWEB with MPI Option

Example

Page 8: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 8/72

3. Electrical Connections

There are two types of devices 1. Standard DigiWEB 2. DigiWEB with MPI

The connections vary, depending on the type of device. For right electrical connections follow your DigiWEB device type and take a look at the housing label of your module.

3.1. Clamping allocation at standard DigiWEB .

3.1.1. Clamping allocation of the Power supply Clamp 1: 0V power supply Clamp 2: 0V power supply Clamp 3: +24V +/- 20% power supply Clamp 4: +24V +/- 20% power supply

Please notice: 0V Clamps 1 and 2 are connected to each other. +24VDC Clamps 3 and 4 are connected to each other.

3.1.2. Clamping allocation of the serial interface The serial interface of DigiWEB can be ordered as RS232 or as RS485 interface, and is used to communicate with the controller unit in charge of the process. This can be e.g. your own controller with RK512 connection, a CamCon cam switch or a S7 respectively S5 PLC. See also chapter"11. The external data charts respective attachment of external controllers" on page 64.

3.1.2.1. Clamping allocation of the serial RS232 interface Clamp 5: 0V Signal mass Clamp 6: RxD Clamp 7: TxD

3.1.2.2. Clamping allocation of the serial RS485 interface Clamp 5: 0V Signal mass Clamp 6: A (+) Clamp 7: B (-)

Please notice: At the RS485 interface, the ends of the data cables have to be switched by closedown resistors. Please also see the next chapter concerning this topic.

3.1.2.2.1. Closedown-resistors of the serial RS485 interface Using an RS485 serial interface, both ends of the data-line have to be equipped with closedown resistors. The DIP-switch situated at the top includes the resistors for the DigiWEB site. If the switch is closed, the RS485-line is equipped with 150 Ohm (ON).

Page 9: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 9/72

3.2. Clamping allocation at DigiWEB with MPI .

3.2.1. Clamping allocation of the power-supply at DigiWEB with MPI Clamp 1: 0V power supply Clamp 2: +24V +/- 20% power supply

3.2.2. Clamping allocation to the serial interface at DigiWEB with MPI The serial interface of DigiWEB MPI can be realised as RS232 or as RS485 interface, and it can be used for the MPI communication with the PLC, for example an older Siematic S5 PLC or a CamCon cam switch. See also chapter "11. The external data charts respective attachment of external controllers" on page 64.

3.2.3. Clamping allocation of the serial 232 interface at DigiWEB with MPI Clamp 3: 0V Signal mass Clamp 4: RxD Clamp 5: TxD

3.2.4. Clamping allocation of the serial 485 interface at DigiWEB with MPI Clamp 3: 0V Signal mass Clamp 4: A (+) Clamp 5: B (-)

Please notice: The DigiWEB/ MPI does not have any closedown resistors on board for the RS485 interface. By using RS485 the interface closedown resistors have to be connected external.

3.2.5. Pin allocation of the MPI Bus Pin 1,2,4,7,9: not allocated. Pin 3: A(+) Pin 8: B(-) Pin 5: GND Pin 6: VCC

Please Notice: Use e.g. an Profibus plug with integrated closedown resistors, Siemens order number: 6ES7 972-0BA10-0XA0.

Page 10: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 10/72

3.3. Clamping allocation of the Ethernet RJ45 The Ethernet bus of the DigiWEB-1 and DigiWEB-1/MPI are designed for 10MBit / 10BaseT. RJ45 Pin 1: Tx RJ45 Pin 2: Tx RJ45 Pin 3: Rx RJ45 Pin 4,5: not allocated RJ45 Pin 6: Rx RJ45 Pin 7,8: not allocated RJ45 Pin : Shielding

Notice: Use a category 5 patch cable (cat5).

3.4. The I/O Interface (external interface) The I/O interface is used to establish a data exchange to a CamCon DC16/IO, AWA/2X12B or a CamCon DAC16 module. This makes it possible to read or control in- and outputs via internet (DC16/IO), read analogue values (AWA/2X12B) or put out analogue values (DAC16). Every CamCon

I/O module is equipped with two 10pole plugs, the "ext.Int.IN" and "ext.Int.OUT" connections. The ext.Int.IN is used fort he data exchange with the DigiWEB, while the ext.Int.OUT is used fort he data exchange with further CamCon I/O modules. This type of switching helps the user to create a BUS-system for different kinds of applications.

3.4.1. Clamping allocation of the I/O Interface Pin 1,10: Shield Pin 4,7: Mass (0V) Pin 2: TxD - Pin 3: TxD + Pin 5: CLK - Pin 6: CLK + Pin 8: RxD - Pin 9: RxD + The maximum wiring distance for the external interface is 40mm.

DC16/IO DigiWEB

Page 11: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 11/72

4. The Status LED Standard DigiWEB:

DigiWEB has four status - LEDs. These are:

RS: The LED flashes: A data-transfer via serial interface (RS232/485) is in progress The LED shines Serial data-transfer is troubled. The LED is dark: The serial interface is running, but there is no data-transfer at the moment.

DISK: The LED glints: The DigiWEB reads or writes data into the flash-memory. The LED shines: After a Power UP the control-sum is checked.

LAN: The LED shines: The Ethernet interface is OK. The LED is dark or glints: The Ethernet interface is not correctly connected.

LINK: The LED flashes: A data-transfer via Ethernet interface is in progress. DigiWEB with MPI option:

DigiWEB with MPI has five status-LEDs. These are:

RS: The LED flashes: A data-transfer via serial interface (RS232/485) is in progress The LED shines: Serial data-transfer is troubled. The LED is dark: The interface is running, but there is no data-transfer at the moment.

DISK: The LED glints: The DigiWEB reads or writes data in the flash-memory. The LED shines: After a Power UP the control-sum is checked.

LAN: The LED shines: The Ethernet interface is OK. The LED is dark or glints: The Ethernet interface is not correctly connected.

LINK: The LED flashes: A data-transfer via Ethernet interface is in progress.

POWER: The LED shines as long as the operating voltage is provided.

Page 12: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 12/72

5. Commissioning

Please check the DigiWEB‟s wiring before the first time you switch on the device. See also "3. Electrical Connections" on page 8 fort his purpose.

For the commissioning, an Ethernet network connection is necessary. Use a Cat5 cable for this purpose, connecting it using a 10 or 10/100 megabit HUB or switch with your LAN (local area network). Should the DigiWEB be used at a single position without LAN-connection, a 10 or 10/100 megabit network card with TCPIP protocol and defined IP address has to be installed at the PC. In this case, the DigiWEB has furthermore to be attached using a turned Cat5 cable (Cross-Over-Cable).

Before the voltage at the DigiWEB is witched on, the desired IP-address at your network has to be defined. Start the DigiWEB windows setup program of the included CD or floppy disk or download it from the internet (DigiWEB setup tools). Open the specific drive and start the program "SETUP_DIGIWEB.EXE" with a double-click.

A dialogue-box will open, in which you enter the IP (Internet Protocol) and

MAC (Media Access Control) respectively Ethernet - Address of the DigiWEB.

The MAC address can be found on the DigiWEB‟s type plate. It is a 12-digit hexadecimal number , separated by colons. You are free to enter he last three digits at will. For the IP-address, the program itself will search for a free IP. You are, nevertheless, able to define an IP-address yourself.

Attention: Every IP-address must not be given more than once within the network. The IP-address suggested by the setup program is possibly only temporarily available. In case of doubts, ask you network operator.

Having entered the IP and MAC addresses, activate the „format DigiWEB“ button, to trigger a complete deletion of the DigiWEB as well as a reset to the company‟s standard setting. Click „OK“ to have the program waiting for the switching on off the power supply at the DigiWEB.

After having been switched on, the DigiWEB responds with a shining DISK status LED. After an internal check-up the system is booting (e.g. checksum of EPROM and EEPRom are determined). This process takes several seconds.

Once the DigiWEB‟s setup detects the DigiWEB which has been erased before, an Internet Explorer is started and the DigiWEB configuration page (config.htm) opens automatically. See also the picture on page 13. This can also be accessed later on, using the Internet Explorer, by feeding in the address

http://ihre.ip.adresse.bitte/config.htm.

For the following configuration, see chapter "5.1. Configuration" on page 13.

Notice: Has the DigiWEB configuration page not been opened within a minute, or an error message occurs in the Internet Explorer, please repeat the setup procedure and check respectively compare the entered MAC-address with the number on the DigiWEB‟s type plate. Or open it manually,

using "http://your.ip.adress.please/config.htm". If the Internet Explorer is not installed on your PC, open the configuration page manually using a different WEB browser.

If a Proxy server is used in your LAN, which is registered at the Internet Explorer (IE), the server has to be switched off fort he local LAN address. “Avoid Proxy server for local addresses“ = active. The Proxy server settings can be accessed using e.g. the menu

Extras -> Internet options -> connections -> LAN - configuration.

For some networks, the local LAN address has to be entered in the "extended..." parameters in the “Exception” field (e.g. 192.168.2.*) to switch off the Proxy for the LAN.

Page 13: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 13/72

5.0.1. Commissioning on a system without Windows™

If you are not able to use the "SETUP_DIGIWEB.EXE", since you are using e.g. a Macintosh- or Linux-system, the DigiWEB‟s IP-address can be also set using the order “arp –s” (Firmware version 2.092 or higher).

Begin with opening a command level. Using Windows, this can be done by using “Start Execute CMD (or Command)”. Using Linux, open a sheet and log in as user “root”. Enter the command „arp –a“. A list of MAC and IP-addresses like the one to the right should be displayed, and you can continue by entering the command “arp –s”, a free IP – address followed by the DigiWEB MAC address.

This could be for example: "arp - s 192.168.2.254 00-50-C2-1E-20-06".

Attention: The chosen IP-address must be in the same SUB – network like the PC‟s IP-address. Please regard the Subnet mask defined at the PC. In case of doubts, ask you network operator.

Once the command was executed without error-message, the DigiWEB‟s config.-page can be accessed via the chosen IP-address to configure the ultimate IP – address respectively the network configurations. (e.g.: "HTTP://192.168.2.254/config.htm"). Please keep in mind to set the IP – address categorical at the config. Page and to confirm your changes by pressing the “OK”-button (changes done with „arp°-s“ are only temporarily).

Notice: The „arp“-programs syntax can vary slightly, depending on the used system. Windows e.g. separates the MAC-address with an "-" while Linux uses an ":“. Please keep this in mind in case error messages occur.

5.1. Configuration

This page is used to configure the DigiWEB, respectively to display the firmware‟s version number and the Ethernet MAC-address. This is the initial minimum configuration after having formatted the unit.

Having entered all required data, send to the DigiWEB them by clicking „OK“ – furthermore, the data is saved in the EEProm storage remantly.

5.1.1. Configuration DHCP

Three modes can be set here: DHCP off: The DHCP option is switched off and the IP – address must be set manually. DHCP Boot: The DigiWEB requests unrecurring after switching on the power supply, it‟s IP-address from a DHCP-

server (Dynamic Host Configuration Protocol). For this purpose, the DigiWEB‟s MAC-address must be entered in the DHCP server by your network operator.

Notice: If the IP-address was set automatically by the DHCP – server from an IP-address range (no MAC address was entered at the DHCP), you will have to ask your network operator fort he given address.

Once the DigiWEB detects a DHCP server within the network, it reports „DHCP detected“, even if the DHCP option has been switched off. If the DHCP was set to „boot” or „on“, no additional input at the menu points „IP“, “Subnet mask“ and/or “Gateway” is necessary.

Page 14: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 14/72

5.1.2. Configuration IP - Address

The field „IP“ is used to enter and/or change the network address that was selected by the setup-program.

Notice: If the DHCP option is activated (see chapter before), no additional input is necessary here.

5.1.3. Configuration Subnet mask

Use the "Subnet mask" field to enter a network mask. This input is only necessary if a "Gateway" is used. If you are not sure about this, please ask your network operator.

Notice: If the DHCP option is activated, no additional input is necessary here.

5.1.4. Configuration Gateway

The "Gateway" is used to enter the IP-address of the network router. This will only be necessary if your network consists of several network segments, or if you want to visualise the DigiWEB on the internet. If you are not sure about the IP-address, please ask your network operator.

Notice: If the DHCP option is activated, no additional input is necessary here.

5.1.5. Configuration Ftplogin

Use this field ("Ftplogin") to enter he DigiWEB supervisor respectively Ftp (File Transfer Protocol) name. This is necessary to be able to transfer the data via Ftp into the DigiWEB. The name must not exceed 10 digits and has case sensitivity. Only alpha numerical characters may be used.

5.1.6. Configuration Ftppass

use the field "Ftppass" to enter the password of the supervisor. The password must not exceed ten digits and has case sensitivity. Only alpha numerical characters may be used.

5.1.7. Reset DigiWEB

Once this checkbox is activated and confirmed by pressing „OK“, the DigiWEB is re-started (reset).

Notice: Do not enter any changes in the configuration menu, while this checkbox is activated (they would not (or only incorrectly) be accepted.

Page 15: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 15/72

5.2. Configuration, extended "config.htm"

The file respective page "config.htm" with the extended input options is not available, for the lack of space, after having formatted the data storage and has to be transferred to the DigiWEB via FTP of the DigiWEB setup CD. Please see also chapter "7. Copy data into the DigiWEB via FTP" on page 54.

Notice: the standard minimum "config.htm" file in the DigiWEB is switched off, once the new configuration data is copied into the DigiWEB.

This page is used to set the e-mail functions (SMTP), real-time clock (NTP), the serial interface‟s protocol and several additional TCP/IP parameters.

Having entered all desired data, these will be send to the DigiWEB and remanently saved at the EEProm by clicking „OK“.

HINT: All configuration data of the DigiWEB is saved in addition at a CSV data chart (config.csv) for safety reasons. This data chart is compared to the data saved at the EEProm during every start of the system. If changes were found necessary, the changed data is saved at the EEProm. This can help to make a full reconstruction of the system data, if the csv-file, which was created during e.g. a backup, gets copied back into the DigiWEB via FTP.

Page 16: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 16/72

5.2.1. Configuration DNS Server

The field "DNS Server" is used to enter your DNS (Domain – Name – Service) – servers IP-address. This is the server that is used to find the numeric IP-address that belong to names or URLs, like e.g. www.digitronic.com.

There is no need to enter an IP-address here, unless you have to feed in an URL-address or a computer name in your DigiWEB-project (like e.g. the host name of a passive FTP – connection or to access the function ##DNS() via DigiWEB).

5.2.2. Configuration TCP Timeout

If the transfer of an HTML-page got interrupted with the message „page could not be displayed“, it is most certainly, that this transfer exceeded 7 seconds. This is he standard TCP timeout – time of the DigiWEB.

Here, in the "TCP Timeout"- field you are able to increase the timeout time in Steps of one second. Once a value has been entered, the standard timeout of <= 7 seven seconds is used.

5.2.3. Configuration FTP - Hostname

If you want to establish an FTP connection to the internet using the DigiWEB, with the DigiWEB situated behind an internet – router, this is only possible by using passive FTP as well as a router with Port – Routing.

For this purpose, route the Port 33100 of the internet IP to the local IP of the DigiWEB, followed by

entering the DNS – Internet – name of the internet IP in the field "Hostname for passive FTP". This can be e.g. a “DynDNS” or a “no-IP” name, by which the internet IP of the router can be questioned on the Internet.

In case you do not want an FTP connection from the internet to the DigiWEB, leave this file blank.

5.2.4. Configuration NTP Time Server

In case you need an actual time and date in the DigiWEB, use the field "NTP Time Server IP" to enter the IP of an NTP server. This is necessary since the DigiWEB itself does not have an integrated real-time clock. The DigiWEB will try to contact the time server and to read the actual time. This will be

transferred as GMT (Greenwich - Mean – Time). The field "Time offset to GMT" helps you to set the displayed time to your regional local time by entering an offset to GMT (in seconds) here (e.g. -18000 for New York, USA).

Attention: GMT has no daylight saving time, so please take care of this once you are setting the offset. For the “New York”-example, the offset would be -14400 seconds during daylight saving time.

If the DigiWeb was able to find the NTP server and set the time (can be seen in the DigiWEB Register „##000173b0“), you can read the time as a text from the register "#$000172" or in seconds since 1900 from the register "##000171".

Here is a list of IP-addressees of NTP time servers: 192.53.103.103 / 192.53.103.104 / 131.188.3.220 / 131.188.3.221 / 131.188.3.222 / 131.188.3.223 / 131.188.1.40 / 131.188.1.45 / 131.188.1.31

Notice: At the DigiWEB with MPI Option, the time can also be read out of the S7. See for example the file "TIMSETUP.TXH".

Page 17: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 17/72

5.2.5. Configuration SMTP respective E-Mail

5.2.5.1. Configuration SMTP Server IP

Use the "SMTP Server IP" field to enter your e-mail servers IP address (SMTP = Simple Mail Transfer

Protocol). This is necessary if the DigiWEB shall be used to send e-mails independently triggered by pre-defined events. See also chapter "8. Sending E-Mails" on page 55.

Notice: If you do not want the DigiWEB to send e-mails o rare not able to do so, you can use the SMTP data chart for other functions, like e.g. logic links or data logging. For this purpose, you will have to enter a Dummy SMTP – server IP (e.g. the DigiWEB‟s own IP).

5.2.5.2. Configuration SMTP Name

Enter the sender name for the DigiWEB‟s e-mail in the field "SMTP Name:“. A maximum of 50 Digits is possible.

5.2.5.3. Configuration SMTP E-mail - Adr.

Enter the e-mail address of the sender here, in the field "SMTP email - Adr.". A maximum of 50 Digits is possible.5.2.5.4. Configuration SMTP Login User

Use the "SMTP User" field to enter the user name for the e-mail account on the SMTP server. A maximum of 50 Digits is possible.5.2.5.4. Configuration SMTP Login User

Notice: If the server does not support SMTP authentication, this field must be left blank.

5.2.5.5. Configuration SMTP Login Password

A password for the e-mail account can be entered in the field "SMTP Password". This must not exceed a length of 10 digits.

Notice: If the server does not support SMTP authentication, this field must be left blank.

5.2.5.6. Configuration SMTP Time

Use the "SMTP Time" field to enter the time lag (in ms) between the processing of two datasets respectively commands from the SMTP data sheet. Please see also chapter "8. Sending E-Mails" on page 55.

Notice: The minimum processing time of a dataset is approximately 5ms. Values below this will not lead to a quicker processing.

Page 18: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 18/72

5.2.6. Configuration of an RS232/485 interface

5.2.6.1. Configuration of an RS Interface/Protocol

In the "RS Interface/Protocol" field, you are able to choose a transfer protocol at the DigiWEB‟s serial interface (clamp 5-7 respectively 3-5 at DigiWEB-MPI).

At the moment, 12 protocols are available for the serial interface:

1. Siemens 3964(R) 9600/8/N/1 (for Siemens S7/S5 Caps (respectively CP340) or custom) 2. Siemens 3964(R) 38400/8/E/1 (with higher Baud rate) 3. Siemens S5L1 (for Siemens S5 CPUs at the second interface) 4. Siemens AS511. (for Siemens S5 CPUs an PG interface) 5. DATASNAKE® MPI. (for Schildknecht DATASNAKE® MPI Converter for S7) 6. Digitronic Multi-user (for Digitronic CamCon cam controllers) 7. Digitronic CamBus (for Digitronic CamCon cam controllers with RS485) 8. Digitronic RS232, 9600Baud (for simple point to point communication RS232) 9. ColorNet Master (Networks for colour supply systems in the Master mode = I-clock) 10. ColorNet Slave (Networks for colour supply systems in the Slave mode) 11. ColorNet passive (Networks for colour supply systems in the read-only Mode) 12. Fronius2 (for solar power system inverters of Fronius corp.)

A detailed description of these protocols can be found on the internet, in the manuals RK512.PDF, IRK512.DPF and DATASNAKE.PDF, as well as on our webpage http://www.digitronic.com.

Notice: DATASNAKE ® is a registered trademark of the company Schildknecht.

5.2.6.2. Configuration DigiWEB BUS address.

Use the field "DigiWEB BUS Adr." to enter the address number of the DigiWEB. This is necessary for serial BUS protocols and must categorically be entered for the following protocols: "Digitronic Multi-user", "Digitronic CamBus", "ColorNet" and "Schildknecht DATASNAKE MPI.

For the protocols "Digitronic Multi-user" and "CamBus", this is normally 61. For the protocol “ColorNet Slave” a 1 to 6 is possible, for ColorNet master use 7, for ColorNet passive, no input is required and for the "Schildknecht DATASNAKE MPI" this is a free address in the S7 MPI BUS e.g. 7.

The protocols "Siemens 3964(R)", "Siemens AS511", "Siemens S5L1" and "Digitronic RS232 9600Baud" are point to point protocols. The input of the unit numbers (Gnu) is not necessary in this case, they have no function.

5.2.6.3. Configuration Device Default Adr.

The field "Device Default Adr." is used to enter the address of the communication partner, with which the DigiWEB communicates usually. For “ColorNET” no input is necessary while for Schildknecht DATASNAKE MPI this is the S7 – CPU – MPI address, which, e.g. for a new S7 is always set to two.

Notice: The communication partner‟s address can also be set later during the configuration of the HTML-pages. This individual input makes it possible to display and or enter values of more than one device on one page in the BUS.

If the additional checkbox MPI is activated, the default unit number for DigiWEB units with integrated

MPI option (order no.: DW1 2/MPI or DW1 4/MPI) is set to the MPI – interface. For every other MPI address an offset of 128 has to be added to the original unit number (during input).

Example:

Two S7 CPU (MPI – addresses 2 + 3) and an S5 CPU (viaRS232/TTY) are connected to the DigiWEB MPI. The default address is set to two and the MPI checkbox is activated. The DigiWEB's MPI address is set to 7.

To be able to read the first input byte (EB0) of the S5, the expression "##EB0G0" has to be put in here. For the first input byte of the S7 with address 3 the expression "##EB0G131" (3+128) must be typed in.

Page 19: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 19/72

5.2.6.4. Configuration RK512 Cell Size

Use the field "RK512 Cell Size" to choose the wide of the data structure of the DigiWEB communication partner.

For a cam controller of the CamCon series, the data structure is „4 Byte“. For an S5 CPU or every other Siemens RK512 - structure compatible controller, this value has to be set to „2 Byte“. For a DigiWEB with MPI option, AS511 communication protocol or a DATASNAKE MPI adapter, no further input is necessary (it is internal set to “1Byte” respective “2Byte”).

Background information: The CamCon‟s data structure is designed for 4 byte, the one of an S5 for 2 byte, and an S7 for 1 byte. E.g. at an S5, the DDI consumes a part of DD0 or the DD3 consumes a part (16bit) of DD4 (DD=data double-word, respective DINT with 32bit).

5.2.7. Configuration of the I/O interface

The fields "I/O Interface Config: Output" and "Input" are used to configure the I/O interface of the DigiWEB.

The maximum number of in- and outputs in the DigiWEB is limited to 64 Bit. These can, nevertheless be gathered to registers of 8, 16 or 32 Bits (e.g. 2 registers with 32 Bits each or 8 registers with 8 Bit each). This can be used to use the in-and outputs more efficiently.

The values at the output and input field are 16 Bit wide each and contain 2Bit fort he configuration of each of the in- and output registers (0 = 8 / 1 = 16 / 2 = 24 and 3 = 32 Bit for each register).

Example: When using a „DC16 I/O“, a „DAC16“ and an „AWA 2x12B“ connected to your DigiWEB. The 16 in- and outputs of the DC16 I/O should be entered in the register 0. For this purpose, a 1 in each input- and output-field must be entered. The 16Bit for the two analogue outputs of the DAC16 should be set to 16 Bit each in the output registers 1 and 2. Enter a 1, but in multiplied with 4 respective 16. For the analogue inputs, two registers with 16Bit each are necessary, so that the same values are needed here. In the output field, you now have to enter "Output" = (1*0) + (1*4) + (1*16) = 21 in the input field "Input" = (1*0) + (1*4) + (1*16) = 21 (Dual: 10101) have to be entered.

Please see also chapter " 10.1. The Digitronic I/O " on page 59

5.2.8. Configuring the standard language

If a language data sheet was set in the DigiWEB (language. CSV), the field "Default language" can be used to enter the number of the standard language that is used if a page is upgraded.

5.3. Setting a password protection for the configuration

To equip the access to the configuration page with a password protection, you have to write a

commentary "#userlevel:=XX" in the file "config.htm" as it is described in the chapter "6.12. Access control respective password protection" on page 41 , with the “XX” defining the user level. The user levels begin at 1 and are limited to a maximum of 10 (at the moment). User level 0 means no password protection.

Transfer this file via FTP into the DigiWEB (see chapter "7. Copy data into the DigiWEB via FTP" on page 54).

If now the configuration page is accessed, a username and password with specific user level have to be entered. Regard the case sensitivity and use only alphanumerical characters.

Notice: The standard "config.htm" respectively minimum file is switched off once a new configuration file is copied into the DigiWEB.

Page 20: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 20/72

6. Programming

Programming the DigiWEB is done using the HTML programming language, which is best known fort the display of internet contents. Input and/or definition of an HTML-page is done using a simple HTML

– editor like, e.g. FrontPage or Dreamweaver.

Notice: In addition to HTML - files (*.htm) understands and interprets the DigiWEB also JavaScript (*.js), XML (*.xml) as well as pure text (*.txh) files

In case you do not have installed an editor, this has to be done now. The links below point to addresses where a corresponding program can be downloaded.

http://www.macromedia.com or http://www.namo.com

or install the HTML – editor FrontPage of Microsoft Office

Independent of the editor you use, all HTML-files for DigiWEB are created following more or less the same rules:

Begin with creating a subdirectory, in which all necessary HTML – files, pictures and control files of a DigiWEB- project.

Attention: at the moment, the DigiWEB is only able to save files with names in the 8.3 format and

one subdirectory level. That means, an HTML filename may only have a maximum of 8 characters with the ending „.htm“, „.gif“ etc. All files are saved within the same directory, or in the one below. DigiWEB filenames do not regard case sensitivity (Index.HTM = index.htm)

The first file of your project must be the „INDEX.HTM“ file. This is always displayed, if you enter the IP address of the DigiWEB in the address field of your Web-browser. (e.g. http://your.ip.address.please).

Every further HTML – page, which is to be displayed or opened, using the DigiWEB, can then be accessed like „normal“ web-pages by clicking a link or hyperlink which points to a new HTML file.

Please regard: a link to another HTML – file in the DigiWEB must always be a relative link. A relative link is entered without the previous "http://www.test.de" or a character indicating a file.

Recommendation (Example):

The so called frame technology helps the user to create a clear, concise page and/or display. For this purpose, the index-page serves as a frame-main page. This then loads the sub pages (e.g. three frames named Top, Left and Right). Every frame is an HTML-file of its own, which can be filled with data by the DigiWEB. It can be useful to e.g. display the cyclical status displays in the main- or top-page while the left frame would be a good place for navigation tools, links etc. while the right frame could be used to enter texts and variables. Use the font to create HTML-pages and the "UTF-8" to transfer umlauts or to display several languages on one HTML – page. Regard the following meta line as an example <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

To begin, we recommend following the directions for the simple example, which is described in the next chapter.

Having successfully tested the example, you are able to do further tests with further inputs and displays.

All commands that are allowed in HTML or JavaScript can be integrated in the page. Please keep in

mind that "Plug-In" programs do not (or not correctly) work. If the DigiWEB is used to display graphs, e.g. the fill charge of a barrel or a lamp‟s status, only „GIF“ files may be used.

Page 21: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 21/72

6.1. A simple example:

Having connected the DigiWEB to a CamCon cam controller (via serial interface) and set a corresponding configuration, you are able to display the actual value respective actual angle of the CamCon.

For this purpose, write an arbitrary text (e.g. „actual_value:”). Add

the HTML comment ##201000 (respectively ##000187 for the DigiWEB timer, if no CamCon is attached). In most cases, this can be done by simply double-clicking to open and enter the comment. Included HTML comments may differ in they way they are displayed according to the used Editor (in this example, a small box with an exclamation mark). The comment tells the DigiWEB, to read the data 0 (actual value) out of the data block 201. Behind the HTML comment, replacement characters “#” for the displayed value must be entered (possibly, an own digit for the algebraic sign can be necessary). The DigiWEB will replace this replacement characters if the page is transferred to the browser by the corresponding values read in by the CamCon. A decimal place can be created by adding a single decimal point as the only allowed peculiar can be entered. For

an unknown number of digits, the wildcard "#" can be used.

Copy the file “Index.htm” using an FTP-program to the DigiWEB. Please see also chapter "7. Copy data into the DigiWEB via FTP" on page 54.

If the DigiWEB‟s IP address is now entered at the Internet Explorer (e.g. http://your.ip.address.please) the index page will open on which the CamCon‟s actual values are displayed. New actual values are displayed by clicking “refresh”.

Notice: For testing purposes of the DigiWEB without a CamCon or another communication partner use the DigiWEB timer. This is increased by one every millisecond, and is 32 Bit wide. For this purpose, enter the data block 000 with the data

word 187 in the comment (##000187b5_14). The included "b5_14" is used to define, that only the Bits 5 to 14 are used

If the actual value is displayed cyclically, the Internet Explorer has to refresh the page in cyclical intervals. This can be done by adding a replacement character in the HTML – page.

Add an HTTP-EQUIV variable with the name „refresh“ and a value (e.g. 1) in the page attributes. A “one” would mean that the browser refreshes the page each second.

The included HTML-code is the following:

<meta http-equiv="refresh" content="1">

If your Editor does not enable including HTTP-EQUIV-variables, you will have to type this code in directly in the HTML – code of the „head“ section of the page.

Using the frame technology, the „http-EQUIV“ variable only needs to be entered at the frame page to display cyclical values (e.g. Top.htm).

Notice: To get a cyclical display of the variables, you are also able to use the Java-Applet. Please also see chapter "6.7. Cyclical display of variables and graphs using the Java.-Applet" on page 26.

Notice: Some examples are also included on the DigiWEB setup CD or can be downloaded from the internet.

Page 22: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 22/72

6.2. General facts about the DigiWEB programming

The DigiWEB is able to detect commands in instructions from the comments or variables that are included in the HTML code (e.g. comments = <!-- -->, graphs = <IMG> and inputs = <Form>). These begin always with one or two octhorpes („#“; „##“ or „#$“) and a following address (please see also chapter "6.9.2. Addressing" on page 34) as well as additional possible operations (calculations, conditions, see also chapter "6.9.3. Operator" on page 36). The combination of addresses is also designated as a term that controls the function respective display. In the following chapters the possible functions to display or input variables, texts and graphs.

Notice: It is possible that not all HTML-editors enable the input of specific variables. If this is the case, the necessary HTML codes are described here, so that they can be directly included.

6.3. Variable display

- Add an HTML comment with the desired address respective instruction of the variable (see also chapter "6.9. " on page 33).

Input example: ##000187 HTML Code: <!--##000187 -->

- Supplement this by adding calculation (if necessary):

Input example: ##000187-5 HTML Code: <!--##000187 - 5 -->

- Add now the corresponding number of „#“ replacement characters for the CamCon‟s values directly

behind the comment. You can also add a decimal point or a # if no formatting is required. In this case, all output characters are displayed.

Input example: ###.#° HTML Code: <!--##000187 - 5 -->###.#°

- change size, colour and font type of the replacement characters in which the value shall be displayed later on according to your wishes.

Input example: ###.## (e.g. the colour = RED for the characters) HTML Code: <!--##000187 - 5 --><b><font color=“red“>###.#°</font></b>

As displayed in the HTML - Editor as displayed in the Browser

6.3.1. Formatting the display

To format the variable display, the replacement character „#“ is used in most cases. The number of “‟” characters corresponds to the expected digits of the displayed value. A display with a flexible number

of digits can be created by using the "#" as a wildcard.

If the format shall be altered dynamically by a variable respectively a string (e.g. if the decimal place shall be shifted ort he display shall be done hexa decimal (HEX) or binary (BIN), the function #$FORMAT() must be used.

This function has two parameters: the first parameter forms the format string, the second one is the value that shall be displayed.

Example of decimal display:

HTML Code: actual value: <!--#$FORMAT('####',##201000)-->#

As displayed in the HTML - Editor as displayed in the Browser

Page 23: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 23/72

Example binary output:

If the format string has the characters „#b“ or „#B“ attached to it, the output is done in binary code:

HTML Code: actual value: <!--#$FORMAT('#b#########',##201000)-->#*

As displayed in the HTML - Editor as displayed in the Browser

Example hexadecimal output:

If the format string has the character „#x“ attached to it, the output is done in hexadecimal code with the minor characters “a-f”

HTML Code: actual value: <!--#$FORMAT('#x###',##201000)-->#*

As displayed in the HTML - Editor as displayed in the Browser

Example hexadecimal output:

If the format string has the character „#X“ attached to it, the output is done in hexadecimal code with the capital characters “A-F”

HTML Code: actual value: <!--#$FORMAT('#X###',##201000)-->#*

As displayed in the HTML - Editor as displayed in the Browser

Example octal output

If the format string has the character „#o“ attached to it, the output is done in octal code.

HTML Code: actual value: <!--#$FORMAT('#o###',##201000)-->#*

As displayed in the HTML - Editor as displayed in the Browser

6.4. Text display

- Add an HTML comment with the start address of text and the length (b10). The length designation with a following „b“ is strictly necessary (b10 mean that ten digits are read in from the DigiWEB

Input example: #$000100b10 HTML Code: <!--#$000100b10 -->

- Add the desired number of „#“ replacement characters directly behind the comment:

Input example: ########## HTML Code: <!--#$000100b10 -->##########

- Change size, colour and font type of the replacement characters according to your wishes.

Input example: ########## (e.g. character colour = BLUE HTML Code: <!--#$000100b10 --><b><font color=“blue“>##########</font></b>

As displayed in the HTML - Editor as displayed in the Browser

Page 24: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 24/72

6.5. Text display using a selector

This function makes it possible to select and display a specific text via a corresponding variable value.

- For this purpose, add an HTML – comment with the address respective the expression, that contains the number of the value that shall be displayed (please see also chapter "6.9. " on page 33).

Input example: ##000187 HTML Code: <!--##000187 -->

- Complement the comment now by allocating your text to the corresponding variable value. Any number of texts and values can be entered. A “default” text, which is displayed, if the value is not defined or no text is available for the specific value, can be created. Error messages can be done by adding an “error”. They could be used if e.g. the variable value can not be read in case of communication problems.

Input example: ##000187 { error= communication error 0='CamCon OK' 1='CamCon has actual error 1' 2='CamCon has actual error 2' 4='CamCon has output error default='CamCon unknown error }

Please regard: The text must be placed between the (') – characters, and no spaces or other characters may appear between the value, the „=“ – character and the first exclamation mark.

The error input has to be the first, the “default” – input has to be last that is entered in the list.

HTML Code: <!--##000187 { error= communication error 0='CamCon OK' 1='CamCon has actual error 1' 2='CamCon has actual error 2' 4='CamCon has output error default='CamCon unknown error }

- Add the corresponding number of „#“ characters as replacement characters fort he displayed text.

Input example: "########################" HTML Code: <!--##000187 {

error= communication error 0='CamCon OK' 1='CamCon has actual error 1' 2='CamCon has actual error 2' 4='CamCon has output error default='CamCon unknown error }quot;########################&quot;

- Change size, colour and font type of the replacement characters according to your wishes.

As displayed in the HTML - Editor As displayed in the Browser for value 4 as displayed in the Browser for values unequal 0,1,2 or 4

Page 25: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 25/72

6.6. Graphic display of variables

This function makes it possible to display a variable‟s value graphically. This can be used to e.g. display the charge level of a barrel or the actual status of a lamp.

This image must always be an animated GIF-file. An animated GIF-file is a primitive film formed of several images. To display a variable graphically, the GIF-image must consist of a corresponding number of pictures (frames). The DigiWEB reads the variables value during “refreshing” and sends the corresponding frame of the GIF-image to the browser that is used as a display.

To display an on/off-status, a GIF-file with two pictures is necessary. This example is an LED with a symbolic “on/off” film-display, using two frames.

This picture ("LEDGN.GIF") enables the DigiWEB, to display the status of a 1Bit variable.

- For this purpose, add a GIF-file as an image in the HTML page and configure position respective size.

Input example: HTML - Editor via the "Include"-menu -> "image” -> choose image -> OK HTML Code: <img src="ledgn.gif" width="13" height="13" border="0">

- Add also the attributes of the image with a variable address respective an expression (see also chapter "6.9. " on page 33).

Input example: ##000187b1

Notice: At some Editors, this value has to be entered in the HTML-code.

HTML Code: <img src="ledgn.gif" width="13" height="13" border="0" name="##000187b1">

- Add now the additional attributes of the image with the expressions fort he GIF – manipulation.

- Speed of the animation "#spd:=xxx;" (xxx = speed in percent (%) of the original time display in the GIF - file)

- Number of displayed images "#frm:=xxx;" (xxx = number of images from the variable value).

Attention: Entering "#spd" and "#frm" is only allowed if the GIF-images contains several frames/pictures, that shall be displayed (e.g. a flashing light).

Input example: ##000187b1_5; #frm:=2; #spd:= 50; HTML Code: <img src="ledgn.gif" width="13" height="13" border="0"

name="##000187b1_5; #frm:=2; #spd:= 50;" >

Displayed in the HTML - Editor Displayed in the Browser for Bit 1 Displayed in the Browser for Bit 0

with colour change (flash) without colour change (flashes not)) without colour change (flashes not)))

Notice: A converting program with the name "GIFPREP32" is included at the DigiWEB setup floppy-disk. It can be used to optimise the speed of the displayed GIF-images.

6.6.1. Controlling a graphs colour

By adding the parameter "#col:=" to an images attributes, a graphs colour can be influenced. For this purpose it is necessary that the colour that shall be changed or controlled, was designed with the

colour value: red=0, green=0 and blue=1(in HEX 000001 = 0xRRGGBB). The "#col:="-function of the DigiWEB changes this colour to the desired colour value during the building up of the page.

Input example: #col:=(##000187%256)+0xFFFF00 HTML Code: <img src="farbe.gif" width="10" height="10" border="0"

name="#col:=##000187b1?0xFFFFFF:0xFFFF00">

Displayed in the HTML - Editor Displayed in the Browser Displayed in the Browser

with colour value 000001 for Bit 1 = 0 in the register ##000187 for Bit 1 = 1 in the Register ##000187

= yellow = white

Page 26: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 26/72

6.7. Cyclical display of variables and graphs using the Java.-Applet

If a cyclical display of variables, graphs, images and charts shall be done without refreshing the entire page, a „Java Applet“ included on the DigiWEB‟s setup disk can be used. This requires an installed Java VM Plug-in at your browser, which should be version 1.1.6 or higher. Microsoft Internet Explorer version 5 or higher already contains this plug-in, it nevertheless has t be enable using the internet options. Please also compare the applets version with the version o the manual. See also chapter

"Please regard" and the „Java command line“, menu „view” in the Internet Explorer.

The applet is used to display variable values as texts or graphs. For a graphic display, a GIF-image is required also here.

While loading the HTML – page, the Applet is loaded and started as well. This is cyclical and the image or text from the DigiWEB corresponding to the variable value is included within the page without refreshing the entire page.

- Begin with copying the file "ani.jar" of the DigiWEB setup floppy disk into your project directory and (via FTP) into the DigiWEB.

- Now include the Java Applet with the name „ani.class“ at the desired position within the HTML page (e.g. „menu: include“ „object“ „applet“ or „extended“ „Java Applet“). Change the applet size to the minimum necessary value, necessary for a correct display of graphs or texts.

Input example: (see picture to the right)

HTML Code: <applet code="ani.class" archive="ani.jar" width="70" height="16"> </applet>

Notice: For some web editors you will have to enter his manually, since thy do not offer and input field for „archive“.

- By „Adding“ parameters, the applet can be

parameterised. Different parameters are available. The parameter “EXP” is the only must parameter. This contains the variable address respective the expression (see also chapter "6.9. " on page 33) that shall be configured.

Notice: For further parameters of the applet, see also chapter "6.7.1. Java - Applet – " on page 27.

Input example: (see picture to the right) HTML Code:

Actual value: <applet code="ani.class" archive="ani.jar" width="70" height="16"> <param name="EXP" value="##000187"> <param name="FMT" value="###.#°"> <param name="FAC" value="Serif"> </applet> Degree

Applet – display in the HTML - Editor Cyclical display in the Browser (every 3 seconds after the applet is started).

Notice: If more than one variable shall be displayed cyclical on one page, an applet respective applet-frame will be necessary.

Page 27: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 27/72

6.7.1. Java - Applet – overview of parameters

Parameters are used to tell the applet which variable shall be displayed where, with which colour etc. every parameter with a numerical value can be parameterised by a variable or expression (see chapter "6.9. " on page 33). To display several variables in one applet frame, the parameters are broadened by adding an index, e.g. "EXP[##Index]". This can be done as following: "EXP" (only one variable), "EXP0" (static index) or "EXP[##Index]" (variable index). Not all parameter can be equipped with an index, since these parameters are used globally for the complete applet. All parameters where indices are possible are marked with an "[]" in the following description.

The index value is divided into three ranges: 0..999, 1000..1999 and 2000..2999.

0..999 Variables, images, texts etc. that are transferred with this index value as a parameter are displayed cyclically. The necessary parameters are also read in cyclically.

1000..1999 Parameter with this index value are drawn in the background. If variables are necessary, they are read in only once, at the start.

2000..2999 Parameter with this index value are drawn in the foreground. If variables are necessary, they are read in only once, at the start. The foreground can be designated as a mask, covering the background and the cyclical variables (dot mask).

6.7.1.1. General parameter

EXP[] - The parameter can contain out off 5 different values (at least at the moment):

1. EXP[] = Variable Used to display a variable, that is defined by a variable address respectively an expression. Please see also chapter "6.9. " on page 33 (e.g.: ##000187).

2. EXP[] = LINE If the text „LINE“ is entered instead of a variable, a line with the parameter X,Y, W, H and FGC is drawn.

3. EXP[] = RECT If the text „RECT“ is entered instead of a variable, a rectangle with the parameter X, Y, W, H, FGC and BGC is drawn. The rectangular content is lucent, if no background colour was selected.

4. EXP[] = Diagram For a diagram display , the parameter is used to define the number of displayed measuring values.

5. EXP[] = If no parameter is set, the parameter FMT (for static text) respective PIC (for static image) must be entered.

6.7.1.2. Parameter for position designation:

X[] - Absolute X - position of the text, graph or link range in the JAVA-applet frame.

Y[] - Absolute Y - position of the text, graph or link range in the JAVA-applet frame.

W[] - Wide respective second X-position compared to the first X-position at the line, the rectangle ort he link range.

H[] - Height respective second Y-position compared to the first Y-position at the line, rectangle or the link range.

DX[] - The actual X-position is changed by the value DX[].

DY[] - The actual Y-position is changed by the value DY[].

ALI[] - Text alignment or anchor point at the text. Possible values are "LEFT", "RIGHT", "CENTER". If this parameter is left blank, the standard alignment “LEFT” is used.

VALI[] - Text alignment or anchor point at the text. Possible values are BOTTOM, MIDDLE and TOP. BOTTOM has the anchor point situated at the basis line of the text and not on the descenders. If this parameter is left blank, the standard alignment “BOTTOM” is used for texts, while “TOP” is used for all other (graphic) objects (rectangles, lines, images and diagrams).

Page 28: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 28/72

6.7.1.3. Parameter for the graphic display:

PIC[] - File name of the GIF-file that shall be displayed. If this parameter is left blank, the applet displays the variable as a text.

FRM[] - Number of displayed images (frames) from the variable value respective the value of the expression EXP [].If this parameter is left blank, only the image corresponding to the variable value is displayed.

SPD[] - Speed of the animation respective turnover time in percent (%) of the original time display at the GIF-file. If this parameter is left blank, the original time from the GIF file is used.

LOOP[] - Number of repeats of the animation 0 = infinite repetition.

6.7.1.4. Parameter for colour changes for graphic- or text display:

FGC[] - For text displays, this is he text colour in RGB format (in HEX). For lines and rectangles, this is the colour of the lines. Graphic displays use this colour instead of the standard 0x000001.

BGC[] - Background colour in RGB format in HEX. Rectangles are filled up using this colour value, e.g. "0xFF0000" for red and "0x00FF00" for green. If no value is entered, the standard 0xFFFFFF for white is used.

6.7.1.5. Parameter for text display:

FMT[] - Tex format e.g. ###.# kg.

SIZ[] - Text height or thickness of lines in dots. If this value exceeds the applet frame, the text is cut. If no value is entered, the standard setting 12 is used.

STY[] - Style of the text display. Possible values are: "Sans Serif", BOLD or ITALIC. If this parameter is not set, the standard "Sans Serif" is used.

FAC[] - Font used for the text display. Possible values are: "Sans Serif" = "Windows Arial", "Serif" = Windows "Times New Roman", "Monospaced" = Windows "Courier New". If this parameter is not set, the standard "Sans Serif" is used.

6.7.1.6. Parameter for HTML Links in the applet:

URL[] - Link - respective URL address. This parameter creates a link in the applet to another HTML – page.position and size definitions can be used to define a range. If this range is “clicked”, the corresponding HTML – page is called upon. In addition, a parameter can be transferred.

Example: <param name="URL4" value="page.htm?##Timer:=##000187"> <param name="X4" value="0"> <param name="Y4" value="0"> <param name="W4" value="100"> <param name="H4" value="100"> <param name="TARGET4" value="_self"> TARGET[] - This parameter defines (together with the URL-parameter) where the page that is

opened using the link is displayed. Possible settings are: "_blank" = new window,

"_self" = in the same frame as well as "_parent" = superior frame.

Notice: The URL – parameter can also be set for images, texts, lines and rectangles.

Page 29: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 29/72

6.7.1.7. Parameter for diagram display:

The Java Applet can also be used to create an X/Y-diagram. This can be used to display e.g. a pressure or temperature course.

EXP[] - defines the number of measuring points that shall be displayed (expression or variables are possible). e.g. <param name="EXP[]" value="16" >

DIAX[] - Is used to define the calculation formula of the X-position for a diagram point. The running variable “EXP” (careful: not the parameter EXP[]!) is set in this formula. The running variables maximum value is appointed by the parameter EXP[]. (e.g. <param name="DIAX[]" value="EXP*10" >)

DIAY[] - Is used to define the calculation formula of the Y-position for a diagram point. The running variable “EXP” (careful: not the parameter EXP[]!) is set in this formula. The running variables maximum value is appointed by the parameter EXP[]. (e.g. <param name="DIAY[]" value="##000[EXP+256]" >)

Example: If the expression in the parameter EXP[] = 16, 16 measuring values are displayed.. In this case, the running variable “EXP” covers a value range from 0 to 15, which can be used as an index.

X[], Y[], W[], H[] - define the applet‟s display – range, e.g.

<param name="X[]" value="10"> <param name="Y[]" value="10"> <param name="W[]" value="150"> <param name="H[]" value="150">

ALI[] - sets the X-axis zero point. e.g. <param name="ALI[]" value="LEFT">

VALI[] - sets the X-axis zero point. e.g. <param name="VALI[]" value="BOTTOM">

6.7.1.8. Additional parameter:

CCH - Size of the storage that is reserved for images by the applet. This can be used to enter the number of pictures that are buffered in the browser. If, e.g. an image is used to display a lamp (2 frames, on/off, in the GIF – file), this value should be set to “2”. This minimises/speeds up the transfer between the browser and the DigiWEB, since the pictures are already saved at the browser. If this parameter is left blank, the corresponding picture respective the frame is loaded from the DigiWEB every time it is needed.

UPD - The image or variable value shall be refreshed every millisecond (0..600000). If this parameter is not set, a value of 3 seconds is used.

TMO - Defines how long the applet program has to wait for an answer from the DigiWEB, before an error message is displayed. ). If this parameter is not set, a standard value of 1 second is used.

Example:

Page 30: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 30/72

6.7.1.9. Error messages of the Java - Applets

In addition to the DigiWEB error messages, the Java Applet is able to display own error messages in the HTML – pages applet frame.

"?" The data transfer to the communication partner failed = Timeout. Reason: Electrical error between the DigiWEB and an attached controller, unit not connected

properly, protocol set incorrect or unit number wrong as well as disturbances during data transfer.

"[x:y]" The image can not be displayed. Reason: The images (GIF-file) picture number is smaller 0 or exceeds 32000 and can not be

displayed. The x is a replacement character fort he variables number, while y is he frame/picture-number that shall be displayed.

"<<<" The Java applet has no contact to the DigiWEB. Reason: the DigiWEB is switched off, not available, has crashed, the network connection

was interrupted or not possible.

"-----" Variable not found. Reason: The variable questioned by the applet is not defined.

"No display" the applet was not started or has crashed. Reason: To detect the reason, see the menu point „Java-

console“ in the browser‟s „display“-menu.

Notice: The java-console must be switched on using the Internet explorer, menu „Extras“„extended internet options.”

6.8. Input functions on an HTML-

page

To enter data in the DigiWEB a so called „formulary“ must be included on the HTML – page. This formulary can be used to include input fields for the text- and variable input as well as dropdown menus and checkboxes. Every input in the “formulary”-field has to be transferred using the “submit”-button. On an HTML page, several include fields can be created, with each having its own submit-button. The DigiWEB will transfer this data to the corresponding addresses of the attached controllers. In addition, the input can be

secured using a password protection. Please see also chapter "6.12.3. Password request for input-protection" on page 43.

6.8.1. Variable input

This function can be used to enter variables and to transfer them to the DigiWEB or attached controller units..

- Include a one-line formulary field at the desired position in the HTML-page (“menu includeformulary/formulary fieldone –line text field”). This text fields name is made off the desired address, respective the expression of the variable (please see also chapter "6.9. " on page 33) that you wish to enter here. In the original -/start value, enter a corresponding number of “#” characters as replacement characters. You are also able to write a decimal point as a peculiar. By using the “wide in digits”, the overall wide of the text field can be determined. If the selection “password” is activated, a “*” is displayed instead of a text.

Page 31: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 31/72

Input example: (see picture to the right.) HTML Code: <form name="form1">

setpoint: <input type="text" name="##201000" value="#####" size="5"> </form>

- To limit the entered values respectively to grant that the range of values is not exceeded, the function ##minmax() can be used to check the entered value before it is saved. Therefore, it is necessary to extend the name field by one additional expression.

HTML Code: <form name="form1"> set temperature: <input type="text" name="##100000:=##minmax(#INPUT,2,1000) ;##100000" value="#####" size="6"> </form>

#INPUT corresponds to the given number. The following two values (2 and 1000) are minimum or maximum values to which the value is limited by the function ##minmax(). Please see also chapter "6.9.1. " on page 33.

- Now create a „Push.-Button„ in the formulary and set the button type to „transfer“ or „submit“. If this button is later on activated on the HTML page using the mouse or the “return”-key, the

input values in the corresponding form – area (dotted line ) are send. Enter the name of the submit button in the field “value” (e.g. submit, transfer). The field name has no function at the moment and can be left blank.

Input example: (see picture to the right HTML Code: <form name="form1">

preset temperature: <input type="text" name="##000256" value="#####" size="5"> <input type="submit" name="Push-Button" value="adopt"> </form>

Notice: for all inputs at the formulary range (dotted line) one single submit button is needed.

(e.g. ).

Displayed in the HTML - Editor Displayed in the HTML - Editor in the submit button Displayed in the Browser during the input

6.8.2. Text - respective string input

The input of text does not differ (in general) from the input of variables (see the previous chapter). In the addressing, the introduction of the expression “##” must be changed to “#$”. This tells the DigiWEB that a text input is going to follow.

Attention: A text or string input absolutely requires a length-.

Example: <!--#$DB1.DBB10b6-->#* 6 Bits from the data byte 10 on are read.

Notice: at an S7, the length of the string as well as the number of characters that can be saved are saved at the beginning of the string. The first byte is the number of bytes that can be saved while the second byte is the effective string length. The actual characters follow. Example for an input of a string at the DB1.DBB14:

<input .... name= "#$DB1.DB16b[##DB1.DBB14]:=#$INPUT;##DB1.DBB15:=##strlen(#$INPUT);#$DB1.DB16b[##DB1.DBB14]" ....>

Example for an output of a string at DB1.DBB8: <!--#$DB1.DBB10b[##DB1.DBB8]-->#*

Page 32: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 32/72

6.8.3. Variable input using selector or dropdown menu This function can be used to select a specific variable from a variable list and to transfer it to the DigiWEB/ the attached controller.

- Include a dropdown menu at the desired position in the HTML – page („menu include

formulary/formulary field dropdown menu”9. the following symbol is displayed .

- Open it‟s attributes by e.g. double clicking (see picture below). The dropdown menus name is (in this case, the name of the desired address/the variables expression you wish to enter). Please see also chapter "6.9. " on page 33.

Input example: (see picture to the right) HTML Code: <form name="form1">

<select name="##000258" size="1"> </select> </form>

- Add a new value or a new menu point in the dropdown menu (option). In this case the text displayed in the menu as well as the variable value which is transferred to the DigiWEB or the attached controllers are the object(/the selection name).

Input example: (see picture to the right) HTML Code: <form name="form1">

<select name="##000258" size="1"> <option value="255"> Unknown</option> <option value="0">SSI 256</option> <option value="1">SSI 360 Gray</option> <option value="2">SSI 512</option> </select> </form>

Attention: The Digiweb does not support several answers. This checkbox must not be switched on.

- Add now a „Push-Button“ in the formulary and set the button type to „send2 or „transmit“, if no

transmit-button is available in the formulary range (dotted line ) so far.

Input example: Please see chapter "6.8.1. Variable input" on page 30. HTML Code: <input type="submit" name="Push-Button" value="Adopt">

Displayed in the HTML - Editor Displayed in the Browser Displayed in the Browser

during input during input of an arbitrary height in 3 cells.

Page 33: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 33/72

6.8.4. Bit – Input using check boxes (tick boxes) This function can be used to enter single Bits that can be transferred to the DigiWEB and/or an attached controller.

- Include a checkbox in the HTML page at the desired position („menu include formulary/formulary field checkbox“). A symbol like the following will appear: .

- Open it‟s attributes by e.g. double clicking (see picture below). The check box‟s name is in this case the Bit address respective expression you want to set (see also chapter "6.9. " on page 33).

Input example: (see picture to the right) HTML Code: <form name="form1">

<input type="checkbox" name="##000256b1"> </form>

Attention: The input field for the value must be left blank.

Add now a „Push-Button“ in the formulary and set the button type to „send2 or „transmit“, if no

transmit-button is available in the formulary range (dotted line ) so far.

Input example: Please see also chapter "6.8.1. Variable input" on page 30. HTML Code: <input type="submit" name="Push-Button" value="Adopt">

Displayed in the HTML - Editor Displayed in the for Bit = 0 Displayed in the for Bit = 1

during the input of several Bits

6.9. Expressions

The combination of addresses, operators and conditions is called „expression“. This „expression“ is necessary to control or determine the display or input of variables in the DigiWEB.

An expression can consist of several addresses, operators and conditions (logic operators). Several expressions can be separated by semicolons, so that always the result of the last expression is displayed:

e.g.: ##000256 := 5; (##000257 * ##000258 + ##000256) > 5 ? ##000256 : 60

Notice: if the value from the calculations (##000257 * ##000258 + ##000256) is smaller than 5, a “60” is displayed.

Please see also the chapters "6.9.2. Addressing" and "6.9.3. Operator".

6.9.1. Expressions during input

If a variable is calculated with a factor or offset during input, this can be made possible by using two expressions. In this case, the first expression must contain the key word “#input”, which the DigiWEB uses to detect the input expression. If e.g. a value shall be multiplied with 2, the input value is multiplied with two so that the output value of the last expression must be divided by two.

Example: input expression separator ";" output expression

##000256:=##minmax(#input *2,2,100) ; ##000256 / 2

The variable value is initially divided by two and displayed. After the input (submit), the value is multiplied (times two) and limited/checked by the ##minmax(#INPUT,min,max) function (and corrected, if necessary). Subsequently, the value is saved into the variable.

Notice: The last expression must not contain an "#input"!

Page 34: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 34/72

6.9.2. Addressing To be able to read or write a value on an HTML-Page with the DigiWEB, you have to include its

address into an HTML-comment or a variable. According to the configured "RK512 Cell Size" (see also chapter "5.2.6.4. Configuration RK512 Cell Size" on page 19), the DigiWEB puts out 1, 2 or 4 Byte for each address. The different addressing possibilities are explained below:

6.9.2.1. Addressing of data blocks

Addressing ##XXXYYY 8, 16 or 32 bits are read/written (with algebraic sign) of a cell. e.g. ##000187 XXX = decimal number of the data block.

YYY = decimal number of the data word.

##XXXYYYb 8, 16 or 32 bits are read/written (without algebraic sign). e.g. ##000187b

Addressing ##XXXYYYbnn one bit is read/written. of a single Bit. e.g. ##000187b11 nn = decimal bit number.

Addressing ##XXXYYYbnn_zz several bits are read/written (without algebraic sign). Of several Bits. e.g. ##000187b1_2 nn = decimal bit number of the first bit. zz = decimal bit number of the last bit.

##XXXYYYsnn_zz several bits are read/written (with algebraic sign).. e.g. ##000187s1_2 here, the last bit (2) defines the algebraic sign.

Notice: If the configured “cell size” is left during a bit access, several cells are read/written correspondent to the number and position of bits.

Addressing: #$XXXYYYbZZZ A text (Z-character) from the cell on is read or written. (String) e.g. #$000100b6 XXX = decimal number of the data block.

YYY = decimal number of the data word. ZZZ = number of digits that are read/written.

6.9.2.1.1. Addressing for data blocks with unit number

Addressing: ##XXXYYYGZZ 8, 16 or 32 bits are read/written. Of one device e.g. ##201000G01 XXX = decimal number of the data block.

YYY = decimal number of the data word/offset. ZZ = unit number of the CamCon or MPI Adr. Of the S7.

Addressing: ##XXXYYYbnnGZZ The Bit nn in the device ZZ is read/written. Of one device e.g. ##201000b00G01

Addressing: ##XXXYYYbnn_vvGZZ Several Bits (nn to vv) are read /written (without algebraic sign) in the device ZZ.

Several Bits e.g. ##201000b01_05G01 in one device.

Addressing: ##XXXYYYIPZ.Z.Z.Z It is also possible to read a value out of a second DigiWEB. For this purpose, enter the second devices IP-address as unit number

E.g. via IP-Addressee. e.g. ##000000IP192.168.2.42

Notice: If no unit number is selected, communication is established to the "Device Default Adr." From the configuration (please see chapter "5.2.6.3. Configuration Device Default Adr." on page 18). The DigiWEB with MPI option has in addition to the 64 unit numbers at the serial interface another 128 to 254 addresses available at the MPI- interface. In case that a connection shall be established to an S7 CPU with MPI address 2, the unit number 130 has to be used.

Page 35: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 35/72

6.9.2.2. Addressing in the S7 format

In addition to the addressing types described on the previous page, the S7 or S5 addressing is possible. For this purpose, two octhorpes have to be added as an introduction. The same syntax is used for both the S5 and the S7.

Be careful: The "RK512 Cell Size" is, for this kind of addressing set to fix 1 (for an S5, it‟s a fix 2) independent of the adjusted value in chapter "5.2.6.4. Configuration RK512 Cell Size".

6.9.2.2.1. Addressing for data blocks

Bit: ##DBx.DBXy.z x = Data block number

y = Data byte address

z = Data bit number

Byte: ##DBx.DBBy x = Data block number

y = Data byte address.

Word: ##DBx.DBWy x = Data block number

y = Data word address.

Double-word: ##DBx.DBDy x = Data block number

(DINT) y = Data double-word address.

Timer preset: ##DBx.DBTy x = Data block number

y = Data word address for the timer preset.

Counter preset: ##DBx.DBZy x = Data block number

y = Data word address for the counter preset.

Floating point: ##DBx.DByFz x = Data block number

(S7 only) y = Decimal place z = Data double-word address.

6.9.2.2.2. Addressing for in-/outputs and registers

Bit: ##Ex.y x = Input byte address

y = Bit number.

Byte: ##EBx x = Input byte address.

Word: ##EWx x = Input word address.

Double word: ##EDx x = Input double word address.

Notice: The syntax of outputs and registers behaves analogue to the syntax of the inputs "E".

the only different is hat the characters "A" for outputs and "M" for registers are used instead of the “E”.

6.9.2.2.3. Addressing for counters

Counter: ##Zx x = counter number. the maximum possible counter value is 999.

6.9.2.2.4. Addressing for timers

Timer: ##Tx x = Timer number Timer values are transferred in 10 ms resolution, and must therefore possibly be multiplied with 10.

Notice: Counters and timers can not be altered by the DigiWEB.

Examples: "##DB50.DBX7.1" = Data block 50 - Bit 7.1, "##E5.1" = Input bit 5.1, "##Z1" = Counter 1, "##T20" = Timer 20 "##AB5" = Output Byte 5 "##DB50.DB3F20 = Floating point in DD20 "##DB20.DBD10" = Data block 20 - DInt 10 3 internal decimal laces

Page 36: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 36/72

6.9.2.3. Indirect addressing

In all kinds of addressing, indirect addressing is possible (Index), also fort he IP – address. By adding [ ] brackets, data blocks, data word, bit position and unit number can be addressed indirectly (indicated). This can be necessary to program loops.

Example 1: ##000[##000256+1]b[##000257], ##[##Index]000 or ##[##Index1][##Index2]

As an S7 address: ##DB50.DBW[##Index], ##DB[##data block].DBW[##dat word] or ##DB50.DB3F[##Index]

Example 2: ##DB50[##Index1].DBW[##Index2]G[128+##MPI_ADR]IP192.168.2.[42]

6.9.3. Operators

The DigiWEB can use one variable read by one of it‟s communication-partners (CamCon, S5, S7 or any other controller) for further calculations using so called operator or to alter it using „conditions“. Different kinds of operators and conditions are available and can be gathered in expressions.

6.9.3.1. Arithmetical operators

Use the usual multiplication and division before addition and subtraction. All calculations are executed in 32Bit values with algebraic sign without decimal places. If several calculations have to be executed, they can be separated by semicolons. The result of the last expression is displayed (e.g. ##000256 := 5; ##000257 * ##000258 + ##000259).

Addition: ##000187 + ##000256

Subtraction: ##000187 - ##000256

Multiplication: ##000187 * ##000256

Division: ##000187 / ##000256

Modulo: ##000187 % ##000256

Brackets: ##000187 * (5 + ##000256) or (##000187 + 0x5) * ##000256

Assignments: ##000187 := 5

Attention: The assignment writes a value directly into the DigiWEB‟s communication partner the moment the HTML page is loaded.

Constants: Constants can be fed in decimal (5) or hexadecimal (0x5).

6.9.3.1.1. Calculations > 32 Bit

To calculate values, with extensions bigger than 32 Bit, please use the ##muldiv(x,y,z) function, which does its internal calculations with a 64 Bit value.

Multiplication / Division: ##muldiv(value1,value2,value3) Value 1 and 2 are multiplied with each other and then get divided by value 3.

6.9.3.2. Boolean operators

AND ##000187b1 & ##000187b2

OR ##000187b1 | ##000187b2

Shift right ##000187 >> 6 (e.g. shift value 6 Bit to the)

Shift left ##000187 << 2 (e.g. shift value 2 Bit to the left)

XOR ##000187 ^ ##000256

NOT respective invert ##000050b5 && !##000050b1 (e.g. if Bit 5 and NOT Bit 1)

Overthrow respectively invert Bit ~##000050b0_3 (e.g. 1001 becomes 0110)

Page 37: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 37/72

6.9.3.3. Logical operators

Question or condition (#if) ##000187b1 ? 5 : 6 If Bit 1 is set, a 5 is put out as the result (in this case), and for a not set Bit 1 a 6 is put.

Question: equal? ##000187 == ##000257 ? 5 : ##000258 is ##000187 equal ##000257, the result 5 is displayed, for unequal value, the value from ##000258 is shown.

Question: unequal? ##000187 != ##000257

Question: bigger? ##000187 > ##000257

Question: smaller? ##000187 < ##000257

Question: bigger/equal? ##000187 >= ##000257

Question: smaller/equal? ##000187 <= ##000257

AND, logical ##000187 == 5 && ##000257 == 6

OR, logical ##000187 == 5 || ##000257 == 6

Examples for a logical operation in an "#if" command: A "#if" command:

<!--#if(##000187 != ##000257)--> This text is displayed if ##000187 and ##000257 are unequal. <!--#endif-->

Example for a logical operation using a "#while" loop: A "#while" command: <!--##Index:=1-->

<!--#while( ##Index < 5 )--> Cam output <!--##Index--># = On: <input type="text" name="##[##Index]001" size="4" value="###°"> - Off: <input type="text" name="##[##Index]002" size="4" value="###°"> <!--##Index:=##Index+1--><br> <!--#endwhile-->

Page 38: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 38/72

6.9.3.4. String - respective character band operators

Question/condition (#if) ##000187b1 ? 'Text1' : 'or Text2' If the Bit 1 is set, the text "Text1" is displayed, in other cases „or Text 2".

Addition (attach string): #$Str1 + #$Str2 When adding strings, the content of one (#$Str2) string is simply

attached to another one (#$Str1). Therefore, also a combination of strings and variables is possible

Example: #$Str2:='Offset'; ##Type:=178; #$Str1:= 'Text1: ' + ##Type + ' mm ' + #$Str2 Result: #$Str1: 'Text1: 178 mm Offset'.

Subtraction: #$Str1 - 10 The first digits of the string are cut (e.g. 10).

Modulo (cut character band): #$Str1 % 5 the string is limited to a maximum of 5 digits, the string is cut once it‟s longer than 5 digits.

Assignation: #$Str0 := 'Text1' + ' and ' + 'Text2'

Question: equal? #$Str0 == #$Str1

Question: unequal? #$Str0 != #$Str1

Question: bigger? #$Str0 > #$Str1

Question: smaller? #$Str0 < #$Str1

Question: bigger or smaller? #$Str0 >= #$Str1

Question: smaller/equal? #$Str0 <= #$Str1

Notice: For all comparing operators: the result becomes „true“ if the question is answered with „yes“. The digits of a string are compared successively. The first digit that differs, „decides“ the result of the comparison.

Example 1: 'Text1' and 'Text2' - 'Text1' is smaller (<) than 'Text2' since '1' is smaller than '2'.

Example 2: '1-Text' and '2-Text' – also here 'Text1' is smaller (<) than 'Text2' since '1' is smaller than '2'.

Example 3: 'Text1' and 'Text' – in this case, 'Text1' is bigger (>) than 'Text'.

Attention: Strings or character bands must always be placed between two " ' " signs (Ticks).

Example 1: <!--#$Str0:='S'--> <!--##Type:=7--> S7 test page<br> <!--##ED0--> <!--#$Status:=(##errno()?no ':' ')+#$Str0+##Typ+' found.'-->Status:#################

Example 2 with time-string: <!--#if( ( #$000172 - 16 ) % 3 == ':00' ) --> Seconds is EQUAL :00; full minute is reached <!--#else--> Seconds are unequal :00 <!--#endif-->

6.9.3.4.1. Determine String – respectively character band length

To determine the length of a string or character band, use the function ##strlen(#$var). Transfer the string variable to it and you will get the string length.

This function is needed for example to write a string into an S7, since you have entered the string length into a register.

Example of the input of a character band for an S7:

Name="#$DB1.DB16b[##DB1.DBB14]:=#$INPUT;##DB1.DBB15:=##strlen(#$INPUT);#$DB1.DB16b[##DB1.DBB14]" The definition of the character band for the S7 begins at DB1.DB14. The first characters, nevertheless begin at DBB16. ##DB1.DBB14 is the maximum possible number of Bytes that can be saved. ##DB1.DBB15 is the effective length of the character band.

Page 39: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 39/72

6.10. Local variable

Local variable can be predefined using a parameterisation. Furthermore they cab be modified on the page, making their application nearly as manifold as e.g. the indirect addressing using loops.

Example: <!--##Index:=256--> Assignment of the index-variable. <!--##000[##Index]-->### Addressing of a DigiWEB variable (range 000) using this index

variable. <!--##Index:=##Index+1--> Increase the index variable by 1. <!--##000[##Index]-->### New address of the variable from the DigiWEB.

Example of a loop via exposition control: <!--##Index:=1--> <!--#while(##Index<5)--> Cam output: <!--##Index--># = On: <input type="text" name="##[##Index]001" size="4" value="###°"> - Off: <input type="text" name="##[##Index]002" size="4" value="###°"> <!--##Index:=##Index+1--><br> <!--#endwhile-->

Displayed in the HTML - Editor Displayed in the Browser

6.10.1. Transfer variables as parameters

If a local variable shall be allocated as a parameter for a second HTML-page, this can be done using a DigiWEB register (see also chapter "10.3. The registers of the DigiWEB" on page 63) or using the parameter transfer via hyperlink.

If a hyperlink is used, the parameter can either be from a local variable of the addressed page or be directly delivered by the hyperlink.

Example of a local variable: http://x.var.htm?##Wert:=##Wert <a href="var.htm?##Wert:=##Wert" >with parameter</a>

Example of a direct addressing within the hyperlink: http://x.var.htm?##Wert:=5 <a href="var.htm?##Wert:=5" > with parameter = 5</a>

If an HTML-page, that usually expects a parameter, is opened without parameter an error message will occur. To avoid this, and therefore to be able to open the page without parameter, use the variable function “##defined()” to check whether a variable or parameter was defined. By using the display control and this function, you will be able to avoid further error messages.

Example: <!--#if(##defined(##Parameter))--> This page was opened using a parameter.<br> This is the parameter value: <!--##Parameter-->#### <!--#else--> This page was opened without a parameter. <!--#endif-->

Displayed in the HTML - Editor Displayed in the browser displayed in the browser without parameter

with parameter although a parameter is required.

6.10.2. Variable function "##defined()"

The Digiweb supports function that is used to check if a variable has already been defined. It consists of the expression “##defined(VarName)” with variable name in the brackets. Has the variable already been defined, the result is “true” and can be found in the display control. Please also see the previous chapter

Page 40: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 40/72

6.11. Display control

The display control can be used to output parts of n HTML-page conditional (#if) or multiple (#until, #while). This can be used to create e.g. tables and charts and offers an important help when it comes to configuring a page. Three types of control are available at the moment. These are: the "#if" – condition with an "#else" branch (either or), the "#while" – loop (while x do z until y).

A command for the display control always consists of at least two up to a maximum of three comments and can be 9 levels deep.

6.11.1. The "#if" condition

The „#if“ command consists of two or three HTML – comments. The first comment must be always contain the character band “#if” and the logic condition, given in brackets. The second comment contains either the character band “#endif” for the end or the character band “#else”. The “#else” command is always executed if the “#if” condition was proven false. Anyhow, the last comment of an “if”-condition must always be “#endif”. The DigiWEB displays only the HTML-code between the comments, depending on the conditions.

Example with two comments: <!--#if(##000187b5)--> This text is displayed if the Bit 5 of the DigiWEB register ##000187 is one. <!--#endif-->

Example with three comments respective "#else" - branch: <!--#if(##000187b5)--> This text is displayed if the Bit 5 of the DigiWEB register ##000187 is one. <!--#else--> This text is displayed if the Bit 5 of the DigiWEB register ##000187 is zero. <!--#endif-->

Displayed in the HTML - Editor Displayed in the HTML - Editor

with"#else" - branch.

Displayed in the Browser Displayed in the Browser with "#else" - branch Displayed in the Browser with "#else" - branch

if the condition is proven true. if the condition is proven true.

6.11.2. The "#while" loop

The „#while“ condition consists of two HTML – comments. The first comment must always be the character band “#while(condition” and the logic condition, given in brackets. The second comment marks the end of the loop “#endwhile2. the DigiWEB repeats the HTML – code between the two comments, as long as the condition is true. If the condition was not true (false) from the beginning on, nothing will be displayed (on the contrary to the “#until”-loop).

Example : <!--##Index:=1--> <!--#while(##Index<5)--> Cam output: <!--##Index--># = On: <input type="text" name="##[##Index]001" size="4" value="###°"> - Off: <input type="text" name="##[##Index]002" size="4" value="###°"> <!--##Index:=##Index+1--><br> <!--#endwhile-->

Displayed in the HTML - Editor Displayed in the Browser

Page 41: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 41/72

6.11.3. The "#until" loop

The „#until“ loop consists of two comments. The first one of them must contain the end-condition fort he loop („#until(condition)“ with the logic condition given in brackets). The DigiWEB repeats the HTML-code between the two comments as long as the condition is true. On the contrary to the “#while”-loop, the condition is only checked at the end, so that the HTML – code is read at least once.

Example: <!--##Index:=5--> <!--#repeat--> Cam output: <!--##Index--># = On: <input type="text" name="##[##Index]001" size="4" value="###°"> - Off: <input type="text" name="##[##Index]002" size="4" value="###°"> <!--##Index:=##Index-1--> <!--#until(##Index<1)-->

Displayed in the HTML - Editor Displayed in the Browser

6.12. Access control respective password protection

The opening of HTML-files with a browser can be password-protected. The DigiWEB can archive an arbitrary number of users (depending on the used language) with name, password, validity, language setting and his rights respective access to user levels in the DigiWEB SQL data bank. In addition one supervisor/operator can be defined (name and password). Passwords may consist of alphanumerical characters only (regard the case sensitivity).

6.12.1. Entering passwords

The password and name of the supervisor are adjusted during configuration (see chapter "5.1.5. Configuration Ftplogin" and chapter "5.1.6. Configuration Ftppass" on page 14.

User names and passwords can be configured using the HTML-file “SETPASS.HTM” and saved in the DigiWEB data-bank file “PASS.CSV”. The HTML-file and the CSV are copied using the FTP into the DigiWEB (please see also chapter"7. Copy data into the DigiWEB via FTP" on page 54).

Open the password configuration with your browser by entering the URL-address "http://your.ip.address.please/setpass.htm".

Here you are able to set users and user names (maximum length 10 digits) and corresponding passwords (maximum length 10 digits), the maximum access time (validity) and the possibilities to extend the validity (validity refresh), the users standard language and the access levels for the user (10 levels is the maximum).

Page 42: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 42/72

Use the field “validity” to enter a maximum validity for each user (in minutes from 0 to 99) for which his access is activated. A zero means unlimited validity.

If the checkbox „validity refresh“ is switched on, the access is always set back to a maximum validity once the user opens his access.

The ranges help you setting different user levels, so that e.g. a user is only able to open HTML-pages that are enabled for him. If the supervisor access respective the FTP-password is entered, these are set back to one for all ranges.

By pressing the buttons „save“, „delete“ and „insert“ the correspondent data set is saved, deleted or a new user is configured.

Notice: If a value is altered, this change must be confirmed by pressing „save“. Each save-button only saves the data from the correspondent line.

Notice: Should you require more than 10 user levels, you can increase their number up to a maximum of 250 by expanding the data bank and the „SETPASS.HTM“.

6.12.2. Password request fort he protection of a complete HTML - page To protect an HTML-page using a password, it is enough to add a simple comment in this page. This comment must contain the text

#userlevel:=xx, with xx forming the required user level. At the moment, levels from 1 – 10 are available. A userlevel 0 means no password protection.

If an HTML-file contains the comment <!--#userlevel:=1-->, the page “pass.htm” will open before the desired page, where the user enters his password and confirms by clicking “transfer”.

If a level is enabled for the specific user (here e.g. = 1) the corresponding page will be opened.

If another page is opened (via hyperlink) from this page, no further password request is required.

A new password request will occur if e.g. a new another (not enabled) level is opened, the maximum validity is exceeded or a page is opened via hyperlink which is not protected (comment <!--#userlevel:=1--> not available).

Notice: The HTML-page used to configure user name and pass word is positioned on the DigiWEB setup-floppy disk. You can alter it and copy it into the DigiWEB, to replace the

standard-file. The “pass.htm” page may only be opened via the DigiWEB and not via another page (using an HTML-link).

Page 43: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 43/72

6.12.3. Password request for input-protection To protect not only the variable but also the text input of an HTML-page using a password, an invisible field must be entered in the corresponding input formulary.

- Add a hidden formulary field in the formulary („menu include formulary/formulary field

„hidden“). Enter the text “userlevel” in the “name”-field. The field “value” must be used to enter the necessary level, which is enabled for a specific user, to transfer or adopt the values.

Input examples: (see picture to the right) HTML Code: <form name="solltemp">

<input type="hidden"

name="userlevel" value="9"> Preset temperature: <input type="text" name="##000256" value="##########" size="10"> <input type="submit" name="Push-Button" value="adopt"> </form>

If the user is found to be not enabled when pressing the „adopt“-button, the page „pass.htm“ will be opened to enter a password with a corresponding user level.

Once this range is enabled, the transferred data will be accepted by the DigiWEB and transferred to the attached controller.

For insufficient user levels, the „pass.htm“ page is shut and must be left by clicking „return“. If the same or another transfer-button is used on this page (with the same required user level) no further password request is necessary.

6.13. Change the language configuration in the DigiWEB

The DigiWEB has an integrated data bank that enables a language configuration, depended on the user. Each user can configure the display of HTML-pages for his language.

To use this function, all displayed texts of the HTML – page must be equipped with a label or bookmark. A bookmark always begins with two dollar signs “$$” and the direct (no space or HTML-peculiars) following label name (e.g. $$Text1). In addition the character set „multi-language UTF8“ must be set for each HTML-page (<meta content="text/html; charset=utf-8">).

The translations of the different languages can be entered using the HTML-file “language.htm” on the DigiWEB setup disk and saved in the data bank file “LANGUAGE.CSV”. Copy the HTML – page and the CSV-file can be copied via FTP to the DigiWEB (see chapter "7. Copy data into the DigiWEB via FTP" on page 54). Then open the text input using your browser by entering the URL-address "http://your.ip.address.please/language.htm".

Now choose a standard language (default) and a translated language (trans) and confirm each by pressing „ok“. A new entry in the language data bank can be done by clicking “insert”. Enter the name of the label respective bookmark in the first line without the introducing “$$”-signs.

Notice: A bookmark must not exceed 20 digits and may only be chosen once.

Page 44: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 44/72

The second line is used to enter he text of the adjusted standard language, the third line is entered to enter the translation in the selected language. Use the “save”-button to confirm and save your changes.

Notice: If a text is changed, the corresponding „save“-button must be confirmed, since only the data of the corresponding line is saved.

If the DigiWEB discovers a bookmark during transfer to the browser, this bookmark is searched in the language data bank. If a matching entry is found, the text from the data bank is transferred or displayed according to the selected user settings (selected standard language or selected language).

If no data set book mark is found or he selected language is not defined only the name of the book mark itself will be displayed.

Displayed in the HTML - Editor Displayed in the Browser Displayed in the Browser Displayed in the Browser

with language 0 = Deutsch with language 1 = English with language 2 not identified

Notice: The number of the selected standard language is saved in the DigiWEB register ##000177. The included example data bank is set for three languages at the moment, can nevertheless be extended to a maximum of 250 languages (one data bank field per language)

Page 45: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 45/72

6.14. The DigiWEB data bank The DigiWEB uses an internal SQL-data bank function to manage e.g. e-mail, password protection, language configuration and data logging.

DigiWEB emulates an SQL – server with limited instruction set. The tables are saved on the8MB flash disk in CSV – files. To display and alter single data blocks, use the following functions:

6.14.1. Functions of the DigiWEB SQL – data bank

##SqlConnect('Name','User','Passwort') Establishes the connection to the DigiWEB SQL – server with data bank name, user name and password.

Notice: No parameter is necessary fort he DigiWEB. <!--##SqlConnect('','','')-->

##SqlDisconnect () Interrupts the connection to the server.

##SqlQuery( 'select * from table.csv' ) Selects all data sets from the table. By adding a “where” condition, only certain data sets are selected. (see examples).

Example 1: <!--##SqlQuery( 'select * from table.csv where Dataset = 3' )--> Only the third data set is selected.

Example 2: <!--##SqlQuery( 'select * from table.csv where Dataset > 20' )--> All data sets bigger than 20 are selected.

Example 3: <!--##SqlQuery( 'select * from table.csv where Text = \'BSPTEXT\' ' )--> All data sets are selected that have the text "BSPTEXT" in the data bank field “Text”.

##SqlFetch() Command to read the first respective next data set from the data sets selected with "SqlQuery". (-1 = no data set/no additional data set available/ 0 = successful).

#$SqlField('Field-name') Command to read or write text (Strings).

##SqlField('Field -name') Command to read or write value.

##SqlUpdate('table.csv',condition) Update – command / change data set. The parameter „condition” specifies, which data set shall be altered.

Example: <!--##SqlUpdate( 'table.csv', 'Dataset=' + ##SqlField( 'Dataset' )):=1-->

##SqlDelete('table.csv', condition) delete – command / delete data set. The parameter „condition” specifies which data set shall be deleted.

Example: <!--##SqlDelete( 'table.csv', 'Dataset=' + ##SqlField( 'Dataset' )):=1-->

##SqlInsert('table.csv') Command to create a data set in a chart without using the data set number / ID. Data, like e.g. values or texts (strings) have to be entered in the corresponding fields before.

Example: <!--#$SqlField('Text'):='Input'--> <!--##SqlInsert( 'table.csv'):=1-->

##SqlInsertMax('table.csv', field name) Command to create a data set with a data set number in a numerical field (e.g. data set). The DigiWEB follows this order by taking the biggest data set number from the field, increasing it by 1 and saving the new data set. Also in this case, the data must be previously entered in the corresponding fields.

Page 46: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 46/72

6.14.2. Data bank examples: .

6.14.2.1. Data logger in the DigiWEB

When saving the following example to a „TXH“-file, that is accessed every ten minutes using e-mail control, this can be used to save e.g. the actual date and time, the DigiWEB‟s timer value and the actual value of a CamCon. These data is saved in the data bank "Logger.csv".

File: Logger.txh

<!--##SqlConnect('','','')--> open data bank <!--#if(##000173b0)--> time is entered for synchronous time of day only. <!--#$SqlField('Date') := #$000172 % 19 --> enter date <!--#else--> <!--#$SqlField('Date') := 'no NTP-Server' --> no date available. <!--#endif--> <!--##SqlField('Value1') := ##000187--> enter value, e.g. DigiWEB timer register: 000187

since the last power up. <!--##SqlField('Value2') := ##201000--> enter value or e.g. CamCon actual value register:

201000 <!--##SqlInsertMax('logger.csv','Dataset'):=1--> attach data set. <!--##SqlDisconnect()--> close data bank.

File: Logger.csv empty

Dataset; Date; Value1; Value2

File: Logger.csv with data

Dataset; Date; Value1; Value2 1; 2004-02-24 16:40:39; 5191470; 253 2; 2004-02-24 16:40:42; 5194010; 62 3; 2004-02-24 16:40:45; 5196840; 251 etc..... To include the necessary data in the e-mail control-data bank „smtpfile.csv“ also an SQL-access at an HTML-page can be used.

Example HTML - Code:

<form method="POST" <input type = "hidden" name = "#$SqlField('Expression') := #input; '##000187/1000/600'" value="#####################" > <input type = "hidden" name = "#$SqlField('Text')" value="logger.txh" > <input type = "hidden" name = "#$SqlField('Subject')" value="Logger restart every 10 minutes" > <input type="submit" name="##SqlInsertMax('smtpfile.csv','Id')" value="Include Logger commands every 10 minutes" ></p> </form>

If the button „Include logger command every 10 minutes“ is confirmed, the logger command is included into the "smtpfile.csv" data bank.

Notice: The greater the number of data sets of a new data bank is, the more time the will be needed by the DigiWEB to include new data sets.

Attention: Every writing access to a data bank file will burden the flash memory. The DigiWEB‟s

flash memory can be deleted and filled anew approximately 100000 times and will, nevertheless, carry out a self-test to check if the memory is still OK. Defect memory cells are detected and marked internal, having the consequence that less memory is available at the flash. See also chapter "10.2. The network configuration status display and configuration of the RS - interface", DigiWEB register ##000198.

Page 47: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 47/72

6.15. File management The DigiWEB has four functions to manage files in the flash memory. These are:

##EXISTS( 'Name.csv' ) This function gives back a 1 as the result, if the file does not exist. If the file exists, this function reports the file‟s length. Examples: <!--#if(##EXISTS('logger.cs')!=-1) --> <!--#if(##EXISTS('logger.csv') > 8192 )-->

##DELFILE( 'Name.csv' ) Deletes a file in the DigiWEB. Reports the results: 0 = no errors -1 = error during execution.

##RENFILE( 'Name.old', 'Name.new' ) the file named 'Name.old' gets renamed to 'Name.new'. If a file with this name does already exist, it will be overwritten. Reports the results: 0 = no errors -1 = error during execution.

##CPYFILE( 'Source.csv', 'Target.csv' ) The file with the name 'Source.csv' is copied into the file 'Target.csv'. If a file with this name does already exist, it will be overwritten. Reports the results: 0 = no errors -1 = error during execution.

Attention: For the functions DELFILE, RENFILE and CPYFILE the function result must not be directly used in an “#if” – command. It must always be saved in a local variable to be later on processes or checked.

example: <!--##Ergeb:= ##[DEL][REN][CPY]FILE( 'Name......' )--> <!--#if(##Ergeb==0)--> OK <!--#endif-->

##COMMENTOUT('logger.csv') This command is used to create a new file. All following

DigiWEB specific data with an „^“ character at the end of the output range „#“ are written into the new created file. This can be use to e.g. create new data banks or command files.

##COMMENTOUT('') The same command is used to save and close the opened file.

example: <!--##COMMENTOUT('logger.csv') --> A new data bank is created. <!--#$Dummy:='Dataset;Date;DB;Value0;Value1\r\n'-->#*^ <!--#$Dummy:='This text I not saved in the file.\r\n'-->#* <!--##COMMENTOUT('')-->

Notice: Please regard the left free Flash memory. The remaining Flash memory kilobyte can be read from the DigiWEB register##000198.

Page 48: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 48/72

6.16. The „TXH“-file

The DigiWEB „TXH“ file is used to, e.g. send e-mails as pure text e-mails (without HTML), but can nevertheless also be used as an event-controller or to control a backup- and restore system.

Just as in an HTML-file, most DigiWEB specific commands can be used here. Anyway, no functions that require an input (e.g. "<input ..>") and no graphic display (e.g. "<img...>") is possible.

The advantage of TXH-files compared to HTML is that the code is leaner and can therefore be executed faster. In addition, a CVS – data bank file can be automatically created or its data sets can be read if a CVS – file with the same name as the ones of a TXH-file are transferred via FTP. See also chapter "6.16.1. Backup and Restore using the TXH - file" on page 49.

Example 1:

File: TimSetup.txh

This page is accessed by the SMTP/event – control (see chapter "8. Sending E-Mails" on page 55) of the DigiWEB and synchronises the DigiWEB‟s time of the day with the real time clock of an attached S7.

By accessing the page, the DigiWEB time is synchronised with the time of the S7.

Notice:

To access this page add a command in the SMTP data bank. It will be

Executed, if the Bit 1 is set in the register 173. This Bit is set to 1

Synchronise the time.

e.g."10;##000173==1?0:##000187/10000;;timsetup.txh;time synchronise every hour"

As long as the synchronisation was not finished successfully, it is repeated every 10

seconds

Here the actual time from the S7 is read.

Year: <!--##Year:= ##DB5.DBB8b0_3 + (##DB5.DBB8b4_7 * 10) + 2000-->####

Month: <!--## Month:= ##DB5.DBB9b0_3 + (##DB5.DBB9b4_7 * 10) -->## Day: <!--##Tag:= ##DB5.DBB10b0_3 + (##DB5.DBB10b4_7 * 10) -->##

Hour: <!--## Hour:= ##DB5.DBB11b0_3 + (##DB5.DBB11b4_7 * 10) -->## Minute: <!--##Minute:= ##DB5.DBB12b0_3 + (##DB5.DBB12b4_7 * 10) -->##

Second: <!--##Second:= ##DB5.DBB13b0_3 + (##DB5.DBB13b4_7 * 10) -->##

If reading the time was finished successfully, the time is set.

<!--#if(!##errno())-->

Seconds since 1900:<!--##000171:=(367*##Year+(##Tag-7*(##Year+(##Monat+9)/12)/4-3*((##Year+

(##Monat-9)/7)/100+1)/4+275*##Monat/9)-693992)*86400 + (##Hour*3600+##Minute*60+##Sekunde)

-->############################

Offset:<!--##000174:=7200-->######## ( 7200 = Time Offset for daylight saving time/ 3600 =

Time Offset for Winter time )

NTP Server IP:<!--##000170:=0--># = no NTP SERVER IP

!!! Time was set.

<!--#else)-->

!!! Time was NOT set, communication to the S7 failed.

<!--#endif)-->

Example 2:

File: Logger.txh

If this file is accessed cyclically (e.g. every 60 seconds), two values e.g. ##000187 in Value1 and ##201000 in Value2 + the actual time and date are saved in the CSV – data bank. The data bank can be loaded later on via FTP for further processing.

Demo for data bank logger in the DigiWEB

<!--##SqlConnect('','','')--> open data bank

<!--#if(##000173b0)--> enter time if synchrony.

<!--#$SqlField('Date') := #$000172 % 19 --> enter time and date

<!--#else-->

<!--#$SqlField('Date') := 'no NTP-Server' --> any time and date available for entries.

<!--#endif-->

<!--##SqlField('Value1') := ##000187--> enter value e.g. DigiWEB Timer.

<!--##SqlField('Value2') := ##201000--> enter value OR e.g. CamCon actual value.

<!--##SqlInsertMax('logger.csv','Dataset'):=1--> attach data set.

<!--##SqlDisconnect()--> close data bank.

Page 49: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 49/72

6.16.1. Backup and Restore using the TXH - file

For all TXH-files saved at the DigiWEB, a temporary CSV – file (data bank) with the same name is created. This CSV- file is filled with outputs from the TXH-file with the same name, so that a data bank or backup of free defined data can be created. If the CSV-file is read from the DigiWEB via FTP transfer, a temporary file is created (backup of actual data) and transferred when ready.

If a DigiWEB conform syntax is followed, the expressions from the databank are executed during the writing of a CSV – file via FTP (if a TXH – file with the same name exists).

Example:

File: Backup.txh

Register;Value;Info

<!--'##DB1.DBT0;' + ##DB1.DBT0 + ';Timer Preset 1'-->#*

<!--'##DB1.DBT2;' + ##DB1.DBT2 + ';Timer Preset 2'-->#*

<!--'##DB1.DB3F4;' + #$FORMAT('########,###',##DB1.DB3F4) + ';Real value'-->#*

<!--'##DB1.DBZ8;' + ##DB1.DBZ8 + ';Counter preset 1'-->#*

<!--'##DB1.DBZ10;' + ##DB1.DBZ10 + '; Counter preset 2'-->#*

<!--'#$DB1.DBB16b10;' + #$DB1.DBB16b10 + ';Sting 1'-->#*

<!--'##DB1.DBB15;##STRLEN(#$DB1.DBB16b10);Calculate String Len for String 1'-->#*

<!--'#$DB1.DBB28b10;' + #$DB1.DBB28b10 + ';Sting 2'-->#*

<!--'##DB1.DBB27;##STRLEN(#$DB1.DBB28b10);Calculate String Len for String 2'-->#*

<!--'##DB1.DBX38.0;' + ##DB1.DBX38.0 + ';Bit 1'-->#*

<!--'##DB1.DBX38.1;' + ##DB1.DBX38.1 + ';Bit 2'-->#*

<!--'##DB1.DBX38.2;' + ##DB1.DBX38.2 + ';Bit 3'-->#*

<!--'##DB1.DBX38.3;' + ##DB1.DBX38.3 + ';Bit 4'-->#*

<!--'##DB1.DBX38.4;' + ##DB1.DBX38.4 + ';Bit 5'-->#*

This file creates the following temporary CSV-files from its output (during FTP – data transfer with the actual data from an S7‟s DB1).

File: Backup.csv

Register;Value;Info

##DB1.DBT0;1000; Timer Preset 1

##DB1.DBT2;1000; Timer Preset 2

##DB1.DB3F4;12,345; Real value

##DB1.DBZ8;50; Counter preset 1

##DB1.DBZ10;50; Counter preset 2

#$DB1.DBB16b10;Martin;Sting 1

##DB1.DBB15;##STRLEN(#$DB1.DBB16b10);Calc Sting Len String 1

#$DB1.DBB28b10;Schultz;Sting 2

##DB1.DBB27;##STRLEN(#$DB1.DBB28b10);Calc Sting Len String 2

##DB1.DBX38.0;1;Bit 1

##DB1.DBX38.1;1;Bit 2

##DB1.DBX38.2;1;Bit 3

##DB1.DBX38.3;1;Bit 4

##DB1.DBX38.4;1;Bit 5

If the CSV – file is transferred back into the DigiWEB via FTP, it is checked whether the data sets contain a DigiWEB expression in the first field. If this is the case, the value that shall be written is read from the second field.

E.g. in the example above a timer preset of 1000ms is written into the DB1.DBW0.

Page 50: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 50/72

6.17. Functions, overvieww

An overview of all (at the moment) functions available at the DigiWEB in alphabetical order.

Function, parameter dis. Parameter Return value Function

##COMMENTOUT(1) File - Redirect the DigiWEB‟s output into a file.

##CPYFILE(2) Source file, Target file

0 = OK -1 = error

Copy a file.

##DATETOSTR(1) 32 Bit number String Change the date (32Bit number) into a character band.

##DEFINED(1) Variable name true false

Checks whether a local variable was defined or set.

##DELFILE(1) File name 0 = OK -1 = error

Deletes a file from the Flash memory

##DNS(1) URL names 0 = error IP -Address

Puts out a 32 Bit IP - address or 0, if no IP – address was found.

##ERRNO(0) - Error code Puts out the number of the firs error message on a page

##EXISTS(1) File name -1 = error >=0 = length

Checks if a file exists.

##FLUSH(0) - - Writes all variables from the cache into the remote station (e.g. S7 or CamCon).

#$FORMAT(2) Format string, Value

String Formats a number using a format string

##MINMAX(3) Checked value, min. value, max. value

Checked value.

Function for input limitation. The returned value is cut.

##MULDIV(3) Value, Multiplier, Divisor

Value Calculates an expression with 64 Bit extension.

##RENFILE(2) Filename old, Filename new

0 = OK -1 = error

Changes a file‟s name.

##SQLCONNECT(3) Please see chapter"6.14.1. Functions of the DigiWEB SQL – data bank"

##SQLDELETE(2) on page 45.

##SQLDISCONNECT(0) " "

##SQLFETCH(0) " "

##SQLFIELD(1) " "

#$SQLFIELD(1) " "

##SQLINSERT(1) " "

##SQLINSERTMAX(2) " "

##SQLQUERY(1) " "

##SQLUPDATE(2) " "

##STRLEN(1) String Value Puts out the number of digits of a string.

##STRTODATE(1) String 32 Bit value Changes a character band to a 32 bit date and time value. The string must have the following design: e.g. "2005-07-20 15:40:02"

#$URLENCODE(1) URL URL The peculiars in the URL are encoded using % display. e.g. '# #' = '%23+%23'

##USERLEVELS(0) - Value Puts out the user-level of the user that is logged as a Bit – mask.

Example: Are the levels 1,2 and 3 enabled for a user, the function puts out a 14 as the result. Bit 0 displays the Superuser status.

Page 51: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 51/72

6.18. Error messages on the HTML - page "*", "?", "-", "$", "^" or ERROR-CODE: -??

If an error is detected while reading or writing a value from the DigiWEB, the device displays the

characters "*", "?", "-", "$", "^" or "ERROR-CODE: -?? !" instead of a value.

"?" the data transfer to the communication partner failed = timeout.

Possible reasons: Electrical error, device not connected, protocol incorrect set or unit number wrong.

"*" The value is too big and can not be displayed. Cause Not enough replacement characters „#“ to display the variables available.

Increase the number of „ – characters or use the “#*”-format string for a flexible number.

"-" No value can be displayed = no Variable.

Cause: The selected variable is not available/not used.

"$" No value can be displayed = Buffer exceeded. Cause: T many variables are displayed on the HTML-page. A maximum of 256

variables is allowed.

"^" The data transfer to another DigiWEB via Ethernet is not possible. Cause: Network error, IP - Address wrong or unit not ready.

"§" The variable that shall be read or written is protected. Cause: The user level of the user that is logged in at the moment is not sufficient.

"ERROR-CODE: -??" The DigiWEB does not understand the order respective function and Stops the transfer of the HTML page.

Cause: A command is fed in the HTML-page that is not understood by the DigiWEB or contains an error. See also chapter "6.18.2. ERROR-Codes" on page 52.

"Page is not displayed" The displayed page is empty. Cause: There is an error in the display control. Please see also chapter "6.11. "

on page 40 and open this pages source code (right mouse key in the window).

"Page is not displayed " Message: „The page can not be displayed“ Cause: The page transfer was interrupted after standard timeout of 7 seconds. It

is possible that the page is to complex or the transmission takes to much time.

The timeout can be increased, please see also chapter "5.2.2. Configuration TCP Timeout" on page 16.

"Page is not displayed " Message. „Page not found". Cause: The HTML file or page was not found at the DigiWEB. Check the name and keep in mind that the DigiWEB accepts only file

names in the 8.3 format (DOS - format).

Page 52: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 52/72

6.18.1. Detect the last error messages number The function "##errno()" in an expression can be used to determine the number of the first error message on the page. This may help to take a certain influence on the display of the HTML-page via the display control (see chapter "6.11. " on page 40).

At the moment values from -100 to -105 are supported. Please see also the next chapter concerning the topic.

Notice: The error number is set back once this function is accessed. If it is necessary to alter or influence the display according to this variable, this must be saved in a local variable.

Example: <!--##EB0--> <!--##Status:=##errno()--> <!--#if(##Status==-102)--> Kom. Error <!--#endif--> <!--#if(##Status==-101)--> Data Error <!--#endif-->.

6.18.2. ERROR-Codes

-1 Unknown error/code not assignment. -10 Number of brackets incorrect, closing bracket „)“ is missing. -11 Variable does not begin with „#“. -12 Address ##xxxyyy xxx or yyy incorrect. -13 Parameter misses a closing bracket ")" at the correspondent place. -14 Index error [x], x must not be a character band (String). -15 Index error [x], closing bracket „]“ is missing. -16 Constant number or „[" expected. -17 '.' in an IP-address expected. -18 Error in S7 Syntax, does not start with "DB". -19 Error in S7 Syntax, does not continue with ".DB”. -20 Error in S7 Syntax, Syntax unknown. -21 #Input left of ":=". -22 No inputs string. -23 Closing bracket „)“ expected. -24 Variable does not begin with a letter. -25 Local variable not defined or can not be installed. -26 Function not defined or unknown. -27 Closing bracket „)“ expected. -28 Constant string to big. -29 Algebraic sign does not suit string -30 Operand incorrect for string processing. -31 Operand incorrect for value processing. -32 String addition to long. -33 Colon ":" after question mark operator "?" expected. -34 Error in string processing, possibly to little memory. -35 Unexpected character, expected semicolon ";". -36 Error in expression, storage overflow. -37 Closing bracket „]“ expected in the expression. -38 Error in expression, character ":=" not found. -39 String would be to long for URL-decoding. -40 String would be to long for formatting. -41 Length variable for string processing is missing (#$DB50.DBW0b5 = 5Byte). -42 Division by ZERO. -43 Error during access to the DigiWEB SQL – data bank. -49 Expression can not be decoded, expression possibly incorrect (no expression). -50 Character "=" not found in the script. -51 Error during execution, storage overflows during parameter processing. -52 Timeout during parameter transfer to the Java Applet. -53 Storage overflow during parameter transfer. -54 Parameter can not be decoded. -55 Diagram parameter X not found.

Page 53: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 53/72

-56 Diagram parameter Y not found. -72 File not found/error. -73 Expression can not be decoded. -74 Expression can not be decoded, end is missing. -75 Error during execution, storage overflows at MEM CMD. -76 Error during execution, storage overflows at STR CMD. -77 Error during execution, storage overflows at FILL CMD. -78 Quotation mark " is missing. -79 Quotation mark in the attribute is missing, e.g. <input attr=" ....>. -80 String Variable at this place is incorrect. -81 Error during execution, storage overflows. -82 Nesting to complex. IF can not be nested any deeper. -83 Loop error, UNTIL without REPEAT. -84 Opening bracket "(" expected. -85 Closing bracket ")" expected. -86 Error during execution, storage overflows at Fill CMD. -87 Error during execution, storage overflows at string processing. -88 Error during execution, storage overflows at string processing. -89 Error during string processing, no number. -90 Unexpected file extension (EOF). -91 error in the GIF filename. -92 Error during execution, storage overflows at Print CMD. -93 Error during execution, Internal Loop Error. -100 Error during communication, the data transfer memory (Cache) is full. -101 Error during communication, variable in the remote station (e.g. S7, CamCon) does not

exist. -102 Error during communication, no answer by remote station (e.g. wrong MPI address, wrong

unit number set or cable not connected). -103 No contact during TCP/IP - transfer. -104 Variable is read-protected. -105 Variable is write-protected. Notice: The error messages -1 to -93 interrupt the transmission of the page. The error number

-100 and further have to be questioned using the ##errno() function.

Page 54: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 54/72

7. Copy data into the DigiWEB via FTP

To transfer the WEB pages (designed for DigiWEB) into the device, an ftp-program respective ftp-

client is required (e.g. "Windows Commander", "Cuteftp" or the FTP-program integrated in

"Windows").

The program integrated in windows is controlled by commands from the prompt or by a batch - "SendtoDigiWEB.bat" and a command "send.txt". These two files are included on the DigiWEB setup disk.

Copy these into the DigiWEB program achieve and set the IP-address, username (Ftplogin from the configuration = 1 word after „user“) and the password (Ftppass from the configuration = 2nd word after “user“) in the “send.txt”-file according to your wishes.

By double-clicking the batch-file "SendtoDigiWEB", all files with the corresponding file extensions (e.g. "htm", "gif", "csv", etc.) are send to the DigiWEB.

Attention: All files with the same name that are already saved at the DigiWEB are overwritten by this process.

If wanting to transfer other files or groups of files, you can add an additional command line into the "send.txt" file. The line "mput *.jpg" will transfer all .jpg images from the selected directory to the DigiWEB. A specific file is copied using the command "send bspdatei.txt". The command "mkdir test" can be used to create a sub directory, to witch you can switch by adding "cd test". The command “cd..” will set you back to the main directory.

You are nevertheless able to use your own favoured FTP-program for data transfer.

Also in this case you will have to select IP-address, the Ftploginname and the Ftppassword to establish connection.

The picture to the right shows the „Windows Commander“ in FTP mode. It can be used to mark files in the right window which you want to copy into the DigiWEB or you can delete data on the DigiWEB.

Notice: A maximum of four users at the same time can be logged on the DigiWEB via FTP. The connection is automatically cut by the DigiWEB after four minutes if no further data transfer takes place.

Attention: The DigiWEB contains an 8 Megabyte FlashRom-memory. A maximum of 800 files can be saved there. The main directory can be divided into 120 sub directories (no further subdirectories in existing subdirectories are possible). The files can be allocated at will in both the main- as well as the subdirectories.

HINT: The remaining free memory can be detected from the DigiWEB register ##000198 it is also displayed at the (config.htm)-page.

Page 55: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 55/72

8. Sending E-Mails

The DigiWEB is able to send e-mails, execute logic links or to re-date cyclically according to certain pre-defined parameters, variable values or expressions (Chapter "6.9. " on page 33). The required data are stored at the DigiWEB‟s SMTP data bank and switched on at the configuration page..

To enter and activate the SMTP functions, copy the HTML file "SMTPPARS.HTM" and the DigiWEB data bank "SMTPFILE.CSV" from the DigiWEB setup disk via FTP into the DigiWEB (see also chapter "7. Copy data into the DigiWEB via FTP" on page 54). Then set the required parameter like SMTP-server IP etc, on the configuration page (see chapter "5.2.5. Configuration SMTP respective E-Mail" on page 17).

Notice: If you do not want/are not able to send e-mail with the DigiWEB, but wish to use the SMTP-data bank for other purposes, a Dummy SMTP - Server IP has to be fed in (e.g. the DigiWEB‟s own IP) and the “destination e-mail address” – field must be left blank.

To select the desired actions (E-Mail, linkages, Logger) open the SMTP data bank via your browser by entering the URL address.

"http://ihre.ip.adresse.bitte/smtppars.htm".

Every data set corresponds to a request/condition. The DigiWEB checks continuously one by one data set, searching for differences to previous checks. In case it detects changes in the data set, the DigiWEB is able to send an e-mail or execute a pre defined command. Between these checks a break according to the configuration at the SMTP configuration is made.

A data set always consists of four fields that are processed using “insert”, “save” and “delete”. If a value is changed, the “save”-button of the corresponding line has to be used, since the “save”-buttons only save the value of the line to which they refer.

Expression: Address of the value or expression that is monitored. If the value changes, the according action is executed respective an e-mail is send. A change to ZERO does not lead to any action. (e.g. ##201034 = CamCon Status byte).

Destination

E-Mail Address: E-Mail Address, to which the DigiWEB sends the e-mail (e.g. [email protected]).

Message / File: Message, expression or file name of the HTML respective TXH – file from the DigiWEB, that is send with the e-mail. The file can contain values and information (e.g. actual values or temperature at the time of the change of the value). A TXH-file is a pure ASCII-text file, that is send as e-mail-text, to e.g. enable a forwarding of the e-mail as SMS.

Subject: Text of the e-mail‟s „subject“ line (e.g. machine 1 malfunction).

The sender is the SMTP-name and SMTP – e-mail address, the mail is set send to the e-mail server selected in the SMTP-IP-address. as configured in the configuration

Page 56: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 56/72

Example 1: Expression: = ##000000:=##000000+1 Destination E-Mail Address: = Message / File: = Subject: = Simple calculation in the DigiWEB, without e-mail communication

Result: The value at the DigiWEB register ##000000 (I/O interface output range) is increased by one for every cycle of the SMTP – data bank. No further thing happens.

Example 2: Expression: = ##201034 Destination E-Mail Address: = [email protected] Message / File: = message.htm Subject: = Status change at the CamCon.

Result: If the value at the register ##201034 of the CamCon cam switch attached via the serial interface (status of CamCon), an e-mail is send to the selected address with the text from the file „ message.htm“.

Example 3: Expression: = ##000186b0 Destination E-Mail Address: = [email protected] Message / File: = meldung.htm Subject: = ! Attention: Report from the serial interface !

Result: In this example, an e-mail is send if the communication between DigiWEB and CamCon is jammed.

Example 4: Expression: = ##000187/1000/3600 Destination E-Mail Address: = [email protected] Message / File: = email.txh Subject: = ! Status: DigiWEB every hour !

Result: In this example, an e-mail is send every hour (text only mail from the „EMAIL.TXH“).

Example 5: Expression: = ##000050b0+1 Destination E-Mail Address: = [email protected] Message / File: = maileing.htm Subject: = Status change at input 1.

Result: An e-mail is send, if a signal change at the input 1 of the I/O extension occurs. Since signal changes from 1 to 0 usually do not trigger an action of the DigiWEB, the value is increased by one, to gain a signal change from 1 to 2 respective from 2 to1 if the input is switched on or off.

Example 6: Expression: = ##000050b1+1 Destination E-Mail Address: = Message / File: = ##000002b0:=(##000050b1&&##000050b0)?1:0;

##000002b1:=!##000002b1 Subject: = If input 1 has a change and input 2 is set, set or reset Bit 0 in

register ##000002 and invert Bit1 in the register #000002.

Result: Two inputs and two outputs of the DigiWEB I/O interface are linked, if a change at input 1 is detected. No e-mail is send.

Page 57: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 57/72

Example 7: Expression: = ##000173==1?0:##000187/10000 Destination E-Mail Address: = Message / File: = timsetup.txh Subject: = synchronise time every hour

Result: Use this example, if you want to synchronise the time of the DigiWEB with an S7. As long as the synchronisation could not be done properly (##000173b1), the file timesetup.txh is accessed every 10 seconds which tries to set back the time. The DigiWEB itself sets back the synchronic-Bit after an hour, so that a new synchronisation can be done.

Example 8: Expression: = !##000186b8 Destination E-Mail Address: = [email protected] Message / File: = meldung.htm Subject: = ! Attention: MPI interface malfunction !

Result: In case the MPI communication is jammed, an e-mail is send.

Example 9: Expression: = ##000186b8 Destination E-Mail Address: = [email protected] Message / File: = meldung.htm Subject: = ! Attention: MPI interface is OK !

Result: An e-mail is send if the MPI communication is OK again.

9. Firmware Update

The firmware actually installed at the DigiWEB is displayed at the configuration page (http://IP-

Adresse/config.htm) or can be read from the internal data sheet of the DigiWEB (see chapter "10.2. The network configuration status display and configuration of the RS - interface" on page 62).

To update the firmware, a file with the name "Digiwebf.blt" or e.g. "Digiwebf-Vx-xxx.blt” is required. It contains the new firmware and can be downloaded for example from the internet on

http://www.digitronic.com/ftp/digiweb_tools_vxxxx.exe (xxxxx = version number)

This file is integrated into a self-expanding archive, and started by double clicking. Then choose the selected target directory, in which the file „Digiwebf.blt“ as well as several examples is stored.

Transfer it via FTP to the DigiWEB. A “.blt”-file with attached version number, e.g. "Digiwebf-V-2.144.blt", can also be transferred directly. The DigiWEB will automatically cut the super numerous digits.

Restart the DigiWEB by switching on and off the voltage supply or by using the „reset“ button on the configuration page. The read LED “DISK” indicates (by glowing) that the new firmware was adopted. If this was successful, the new file "Digiwebf.blt" in the DigiWEB is deleted and the device is restarted.

Notice: The normal files installed at the DigiWEB are not lost due to this Firmware update.

The firmware update is now finished. The new version number can be checked after reloading the configuration page.

Notice: If the file still exists at the DigiWEB after restarting, the update was not finished successfully. This can be caused by a defect or wrong update file. Please try to load the file anew (from the internet) and repeat the process.

Page 58: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 58/72

9.1. Differences to the previous versions Differences between V2.044 -> V2.144:

- The input limitation was changed, minimum and maximum values are no longer input in the „value“ field, but checked by the function ##minmax(#INPUT,min,max). See also chapter "6.9.1. " on page 33.

- Instead of a corresponding number of #-characters the character band #* can be used as a replacement character for values. The DigiWEB fills then fills this character band with the total number of characters or numbers that the according expression contains (e.g. <!--##000186-->#*).

- Texts or strings can now be read or written from an S7 PLC, but nevertheless a length specimen (e.g. b6) must be set. The length of the string and the number of digits that can be saved at the S7 at the beginning of the string . The first Byte is the number if Bytes that can be saved, the second byte is the effective string length followed by the actual string characters.

S7 String Example at the input for a string at DB1.DBB14: #$DB1.DB16b[##DB1.DBB14]:=#$INPUT;##DB1.DBB15:=##strlen(#$INPUT);#$DB1.DB16b[##DB1.DBB14]

S7 String Example at the output for a string at DB1.DBB8 <!--#$DB1.DBB10b[##DB1.DBB8]-->#*

- The IP-address can from now on also be set without the "SETUP_DIGIWEB" program using the “arp-s” command, if e.g. no Windows system is used.

- The TCP timeout can be changed to transfer complex pages. - An IP-address can be got via a DNS request from a name server. - In addition to HTML and TXH files, also XML and JS files are interpreted now. - The command ##COMMENTOUT('') can be used to write the DigiWEB output into a file. This

can be used to create HTML-pages or data banks The function ##errno() was changed. From now on, different error codes are reported.

- A division by zero triggers an error report -42 (e.g. ##000513:=0; ##000512/##000513). - A backup and restore system was included using the TXH file. - The variable output can now be done in hexa decimal, binary and octal form, using the function

#$FORMAT. - Instead of an SSI position measuring system, an impulse counter-input (mono impulse only) can

be defined. Please see also chapter "10.1.1. The SSI – position or impulse measuring system input at the DigiWEB I/O " on page 60.

- The "SETUP_DIGIWEB" – program has been changed. Data input can now be done from the setup on and the programs language can be switched.

10. The internal data chart of the DigiWEB The internal data chart of the DigiWEB (data range 0 of the RK512 table) is used to save the configuration or status data of the DigiWEB.

The data sheet is separated in 1000 registers. A register can be occupied by a value (32 Bit) or a string/character band.

If the register shall be read as a string, the second octhorpe in the address must be replaced by a dollar sign. Also, the length that shall be read must be added (in Byte).

Example: ##000256 = Value #$000256b10 = String with 10 digits. This string occupies not only register #$000256 but also 257 and the half (2 Byte) of 258.

Notice: For registers with numbers below 256 and the $ (=°string) in front of the register number no longitudinal declaration is necessary/possible, since these are special registers of the DigiWEB.

Page 59: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 59/72

10.1. The Digitronic I/O interfaces

Range 0 / Register

Bytes / (Wert)

DigiWEB I/O configuration and I/O status reading(r) / writing(w) possible

0 1..4 Output range 1 of the optional I/O interface (r/w)

1 1..4 Output range 2 of the optional I/O interface (r/w)

2 1..4 Output range 3 of the optional I/O interface (r/w)

3 1..4 Output range 4 of the optional I/O interface (r/w)

4 1..4 Output range 5 of the optional I/O interface (r/w)

5 1..4 Output range 6 of the optional I/O interface (r/w)

6 1..4 Output range 7 of the optional I/O interface (r/w)

7 1..4 Output range 8 of the optional I/O interface (r/w)

8..39 - Reserve

40 2 Output range Configuration (number of output Bytes) Bits 0+1 = 1..4 Byte in the output range 1 Bits 2+3 = 1..4 Byte in the output range 2 " " Bits 14+15 = 1..4 Byte in the output range 8

(r/w)

41..49 - Reserve

50 1..4 Input range 1 of the optional I/O interface (r)

51 1..4 Input range 2 of the optional I/O interface (r)

52 1..4 Input range 3 of the optional I/O interface (r)

53 1..4 Input range 4 of the optional I/O interface (r)

54 1..4 Input range 5 of the optional I/O interface (r)

55 1..4 Input range 6 of the optional I/O interface (r)

56 1..4 Input range 7 of the optional I/O interface (r)

57 1..4 Input range 8 of the optional I/O interface (r)

58..89 - Reserve

90 2 Input range configuration (number of input Bytes) Bits 0+1 = 1..4 Byte in the input range 1 Bits 2+3 = 1..4 Byte in the input range 2 " " Bits 14+15 = 1..4 Byte in the input range 8

(r/w)

Please see also chapter "5.2.7. Configuration " on page 19.

Page 60: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 60/72

10.1.1. The SSI – position or impulse measuring system input at the DigiWEB I/O interface

Range 0 / Register

Bytes / (value)

SSI - position or impulse measuring system input (Encoder or mono impulse counter)

reading(r) / writing(w) possible

91 1 Counter type: 0 = SSI - Encoder 1 = mono impulse counter with a maximum counter frequency of 50Hz.

(r/w)

92 4 Value of capping for capped Gray code (0= no capping) (ignored for counter type “1”)

(r/w)

93 1 This register contains the counter type 0 = Position of the first SSI Bit (MSB) in the I – range. 1 = Input bit of the mono impulse counter in the I – range.

(r/w)

94 1 Number of SSI Bits that are evaluated = 0 … 28 (0 = off) (ignored for counter type “1”)

(r/w)

95 1 Position of the error bits (Stop bit) (ignored for counter type “1”)

(r/w)

96 4 Bits 0..29 = actual position of the position measurement system Bit 30 = SSI - Start bit not found. Bit 31 = SSI - Err orbit (Stop bit) not found. (For counter type „1“, the counter value is 32 Bit wide)

(r)

97 4 Actual speed of the position measurement This value is calculated at the DigiWEB using the following formula:

Value = Impulse(per 10ms) * 2 Exponent

* 2 Damping * 2

Notice: Please see also the following chapter.

(r)

98 4 Damping of the speed measurement. Notice: Please see also the following chapter.

(r/w)

99 4 Exponent of the speed display Notice: Please see also the following chapter.

(r/w)

Attention: The I/O interface works with a clock frequency of approximately 700kHz. The connection cable for the position measurement system must not be longer than 30 meter. You can order an already configured angle encoder attachment cable (12 pole Stegman standard). It consists of an adapter with the order number "KK EXT/OUT-0.05" and the SSI – cable "KK EXT/S-XX" (cable length = XX in meters):

Notice: Please see also the example page/file "Encoder.htm".

Page 61: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 61/72

10.1.1.1. Configurations of the speed display

To get the speed display as calm and exact as possible, the speed display is acquired using a low-pass filter. The filter needs two values: 1 the damping and 2 the exponent.

At first the damping is set. The required damping depends on the maximum allowed display error (in %) and the maximum speed (in impulses per second).

Damping = Log 2 (1000/(display-error(in%)*max. impulse (per sec.))

Attention: The damping must always be rounded up and must not be smaller than 1 or bigger than 15.

Resulting in a total measuring- respective actualisation time of

Total measuring time = 0.01Sek. * 2 (damping)

Notice: If the aquiration of the speed takes to much time, this can be reduced at the expense of the precision, by setting a smaller damping.

The precision of the measuring end value is calculated using the following formula:

Display error (in %) = 10000

Max.Impulse(pro Sek.) * 2 (damping * 2)

The exponent has to be set in a way that prevents an overflow of the speed value acquired by the DigiWEB at normal speed (<31 Bit). The maximum speed is calculated using the following formula:

Max. speed value = Max. impulses (per sec.) * 0.01 * 2 exponent

* 2 (damping * 2)

The exponent, nevertheless should be set as big as possible to gain the best possible precision of the calculation The biggest possible exponent can be calculated as follows:

Exponent = Log 2

2

31 * 100

2 (damping * 2) * Max.impulses(per sec.)

Attention: The exponent must always be rounded and be between 0 and 31:

Notice the exponent is set and the speed in the register ##000097 is calculated, exponent and damping must be calculated to gain the desired display value. Furthermore, the display has to be scaled according to the following formula:

Speed = ##000097 * 100 / ( ( 2 (damping * 2)

* 2 exponent

) * (scal. factor) )

Example: An SSI encoder with 360 impulses per revolution runs with a maximum of 550 revolutions per minute (0 3300 impulses per second). The display error should not be bigger than 1%.

Damping = Log 2( 10000 / ( 1 * 3300) ) = Log

2(3.03) = ~ 2

exponent = Log 2( 214748364800 / ( 16 * 3300)) = Log

2(4067203) = ~ 21

To get the value expressed in r.p.m., the multiplier has to be calculated kin a way that sets the time back to minutes and the impulses back to revolutions:

Speed (in impulses per second.) = ##000097 * 100 / ( 2 2 * 2

* 2 21

) = ##MULDIV(##000097,100,33554432)

Speed (in r.p.m.) = ##MULDIV(##000097,100,33554432) / resolution * 60 seconds

or

the factor „/ resolution*60 seconds“ is directly integrated into the calculation. The factor, nevertheless has to be cancelled so that no parameter of the ##MULDIV function exceeds 2

31:

Speed (in r.p.m.) = ##MULDIV(##000097,100,201326592)

Notice: The logarithm of 2 is calculated as follows: Log 2 =

Log(x)Log(2)

Page 62: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 62/72

10.2. The network configuration status display and configuration of the RS - interface

Range 0 / Register

Bytes DigiWEB network configuration and status display reading(r) / writing(w) is possible

150 4 IP address (4 x 8 Bit) (r/w)

$151 17 MAC address (formatted string "00:AA:FF:11:22:33") (r/w)

152 4 Gateway address (4 x 8 Bit) (r/w)

153 4 Number of free sockets of the server (r)

154 4 Subnet Mask (4 x 8 Bit) (r/w)

155 50 SMTP user name for auth. SMTP (String) (r/w)

156 4 SMTP server IP address (4 x 8 Bit) (r/w)

157 10 SMTP password for auth. SMTP (String) (r/w)

$158 50 SMTP sender name (String) (r/w)

$159 50 SMTP sender e-mail address (String) (r/w)

$160 10 DigiWEB FTP login name (String) (r/w)

$161 10 DigiWEB FTP password (String) (r/w)

162 4 SMTP Parser delay timed (in ms) (r/w)

163 4 MPI - PG function / target - IP (4 x 8 Bit) (r/w)

164 2 MPI - PG function / target - Port (default 38147) (0 = default 1..65535)

(r/w)

165 1 MPI - PG function / target - MPI – station address (0..126) (r/w)

166 - Reserve

167 4 TCP Timeout (default = 7 seconds...60 seconds) (r/w)

168 Reserve

169 - Reserve

170 4 NTP time server IP (4 x 8 Bit) (r/w)

171 4 Time in seconds since 1.1.1900 (32 Bit) (r/w)

172 4 Actual time in the format "YYYY-MM-DD hh:mm:ss" (String) (r)

173 1 NTP time status (Bit encoded) Bit 0 = time successfully set at the DigiWEB Bit 1 = time request running

(r)

174 4 Time offset in seconds compared to GMT. (32 Bit) (r/w)

175 - Reserve

176 - Reserve

177 1 Number of the standard language (0..250) (r/w)

178 - Reserve

179 - Reserve

180 1 Protocol at the serial interface 0 = Digitronic, CamBus 1 = Digitronic, RS232 standard 9600/8/N/1 2 = Digitronic, multi-user 3 = Siemens, S5L1 4 = Siemens, 3964(R) / 9600/8/N/1 5 = ColorNet, slave mode 6 = Schildknecht, DATASNAKE MPI 7 = Siemens, AS511 (S5) 8 = Siemens, 3964(R) / 38400/8/E/1 9 = ColorNet, master mode (I-Clock) 10 = ColorNet, passive (writing into the WEB not possible) 101 = Fronius2, protocol for solar power system inverter 255 = RS switched off

(r/w)

181 1 DigiWEB unit number in the RS485 BUS (0..63) Or at MPI (0..126)

(r/w)

182 1 Default unit number in RS485 BUS (0..63) (r/w)

183 1 RK512 word size (0..4) 1 = 1 Byte for S7 MPI 2 = 2 Byte for S5 (Standard) 4 = 4 Byte (Digitronic CamCon Extended)

(r/w)

Page 63: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 63/72

Range 0 / Register

Bytes DigiWEB network configuration and status display reading(r) / writing(w) is possible

184 4 Devices connected to the RS485 BUS (Bit encoded) Bit Nr.: 0..31 set = unit number 0..31

(r)

185 4 Devices connected to the RS485 BUS (Bit encoded) Bit Nr.: 0..31 set = unit number 32..63

(r)

186 4 DigiWEB status (Bit encoded) Bit 0 = serial interface (0 = error / 1 = OK) Bit 1 = I/O interface (0 = OK / 1 = output error) Bit 1 = acknowledgement for output errors Bit 2 = DigiWEB trigger reboot Bit 3-4 = DHCP server (0 = DHCP off) (1 = DHCP on) (2 = DHCP only requested during booting) Bit 7 = DHCP detected Bit 8 = MPI interface (0 = error / 1 = OK)

(r) (r) (w) (w)

(r/w)

(r) (r)

187 4 DigiWEB Timer 32Bit in ms units (r)

188 - Reserve

189 - Reserve

190 - Reserve

191 - Reserve

192 - Reserve

193 - Reserve

194 - Reserve

195 - Reserve

196 - Reserve

197 - Reserve

198 4 Remaining flash memory (r)

$199 20 Software version of the DigiWEB firmware (String) (r)

200..255 - Reserve

10.3. The registers of the DigiWEB

These registers are used to archive values respective additional variables or register, which can be used to control the HTML page.

744 registers with 32 Bit each are available. The registers 256 to 511 of these are saved remanent and secured against voltage drops in an EEProm.

Range 0 / Register

Bytes DigiWEB network configuration and status display reading(r) / writing(w) is possible

256..511 4 DigiWEB Remanent register range (r/w)

512..999 4 DigiWEB Register range (r/w)

Page 64: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 64/72

11. The external data charts respective attachment of external controllers External data charts are used to access values of an S7, a CamCon cam switch or any arbitrary controller (with serial interface and RK512 procedure) that shall be altered or displayed.

11.1. Allocation of the data charts of a CamCon The CamCon cam switches provide an RK512 interface that can be accessed from the DigiWEB. Descriptions of the CamCon RK512 chart can be found on:

http://www.digitronic.com/ftp/rk512.pdf

Or use the order number: "H-RK512".

11.2. Allocation of the data charts of a ColorNet Descriptions of the ColorNet RK512 chart can be found on:

http://www.digitronic.com/ftp/irk512.pdf

Or use the order number: "H-IRK512". The DigiWEB with RS232 interface must be connected to the I-clock V2 or V3 using the 9 pole D-SUB plug.

DigiWEB clamp 5: 0V Signal GND <-> I-clock PIN 5: 0V DigiWEB clamp 6: RxD <-> I- clock PIN 2: TxD DigiWEB clamp 7: TxD <-> I- clock PIN 3: RxD

11.3. Clamping allocation for Schildknecht DATASNAKE MPI

The connection of the DigiWEB with RS 232 interface to the S7 – coupling is done

using the external DATASNAKE MPI module of the company Schildknecht. The DigiWEB must therefore be connected to the RS232 interface of the DATASNAKE (requires 25 ole D-SUB female plug) as follows:

Notice: DATASNAKE ® is a registered copyright of the company Schildknecht.

DigiWEB clamp 5: 0V Signal GND <-> DATASNAKE PIN 7: 0V DigiWEB clamp 6: RxD <-> DATASNAKE PIN 2: TxD DigiWEB clamp 7: TxD <-> DATASNAKE PIN 3: RxD

Order the DATASNAKE MPI module using the following address:

Firma Schildknecht Einstein Str. 10 74372 Sersheim

Tel: 07042/84106-0 Fax: 07042/840051

Item: DATASNAKE MPI/ALU

Order number.: 10385

Page 65: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 65/72

12. The serial protocols for the software developer

12.1. The 3964(R) Protocol The 3964® protocol is used for point to point communication between PLC controllers and PCs. They are available for most PLC controllers and IPC as communication processors or Windows DLL-drivers. If having to integrate the 3964® protocol into an own controller, use the following short description. Telegram Assembling in general in HEX:

PC, SPS or DigiWEB sends CamCon or remote system answers

0x02

0x10

Data (RK512 Telegram request) Attention: If the data contains the characters 0x10, it has to be send twice!

0x10, 0x03, BCC

0x10

PC, SPS or DigiWEB answers: CamCon or remote system sends:

0x02

0x10

Data (RK512 telegram acknowledgement) Attention: If the data contains the characters 0x10, it has to be send twice!

0x10, 0x03, BCC

0x10

BCC: The checksum BCC is the exclusive – OR – sum of the data and the characters 0x10 and

0x03. A double 0x10 character is added to the checksum. Error: If an error in the protocol is detected, the corresponding remote station answers by

sending the characters 0x15 for a negative acknowledgement. Timeout: The communication timeout is set to 220ms

Page 66: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 66/72

12.2. The RK512 protocol RK 512 telegrams are always started by sending two ZERO Bytes. If te telegram was understood, the corresponding data are send back via an answer telegram.

Notice: The CamCon camswitch is (at the moment) only able to use the „write data range / data set” with a block length of 128 Byte maximum (= 32 words of 32 Bit each (DINT)).

Example for a request: The PC, DigiWEB or PLC sends: 1. Byte: 0h Identification of the telegram 2. Byte: 0h " " 3. Byte: Identification of the type of assignement value: "A" or "E" 3. Byte 45h "E" = Read data from CamCon. oder 3. Byte 41h "A" = Write data into the CamCon. 4. Byte: Identification of the data range value: "D" = data set. 5. Byte: Target data range (component) values: 1 - 255 6. Byte: Start address (Offset) values: 0 - 255 7. Byte: number of data words High value: always 0h 8. Byte: " " Low Wert: 2 - 64 (Anz. 16Bit-Worte) 9. Byte: Co-ordination register-Byte value: always FFh for on 10. Byte: Co-ordination register -Bit value: always FFh for off n. Byte: Data Number: maximal 128 Byte Steuerung antwortet: 1.Byte: 0h Identification of the answer telegram 2.Byte: 0h " " 3.Byte: 0h " " 4.Byte: Error number values: 0 = no error value: 16 = unknown command (only dat set "D") value: 20 = beyond dat set value: 22 = unknown command (only I and O) value: 52 = to much data value: 54 = general error n.Byte: Data Number: 128 Byte mximum

Attention: To get a wider address range, a extended (to 32 Bit/4Byte) data word structure is used at CamCon camswitches. If a standard RK512 driver for S5 controllers is used, it has to be taken that the data double words do not overlap for both reading and writing. At an S5 e.g. DD1 allocates a part of the DD0 or the DD3 allocates a part of the DD4. For the CamCon, nevertheless every single DD is a 32 Bit wide register of it‟s own.

Page 67: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 67/72

13. Technical data Display LED ........................................................ 4 * status,

1 x LAN, 1 x Link, 1 x RS active 1 x Flash Disk active + 1 x normal voltage for DigiWEB with MPI option.

Display HTTP - server ........................................ HTML via WWW Browser. Display e-mail ..................................................... Condition trigger sending of e-mails. Interface 1 ........................................................... 10 MBit. Ethernet TCP/IP. Interface 2 ........................................................... RS232 / RS485. Interface 3 ........................................................... Digitronic I/O interface for e.g. DC16/IO

adequate also for SSI position measuring systems. Interface 4 (optional) ........................................... S7 MPI (187.5kBits) Length of the connecting cable between DigiWEB and CamCon DC16/IO ......... maximum of 40mm. Programming ...................................................... HTML. Animation ............................................................ using GIF images, Java-Script or Java Applet. Protocol ............................................................... HTTP, SMTP, FTP, DHCP, NTP, AS511, 3964(R),

S5-L1, CamBUS, MPI... FTP Protocol ....................................................... with 4 minutes timeout for a maximum of one user. SMTP Protocol .................................................... with password request (Authentification) at the SMTP

server. Data storage ....................................................... 8Mb Flash. WEB space for 800 files with 120 sub

directories in one level.

Supply voltage .................................................... 24VDC 20 %. Power consumption ............................................ approximately. 200mA. Adapters for: LAN ..................................................................... via plug screw clamps RJ45. Voltage supply .................................................... via plug screw clamps IP20. RS232/RS485 ..................................................... via plug screw clamps IP20. MPI (optional) ..................................................... via 9 pole D-SUB socket plug

(order no. Siemens = 6ES7 972-0BA10-0XA0). Assembling ......................................................... comfortable snap-on assembling, carrier rail according

to EN 50 022, can be aligned with a gap of 10mm. Disassembling .................................................... by drawing back the safety catch . Dimensions ......................................................... Please see chapter 2.1. Dimension on page 7. Protection category ............................................. casing corresponds to IP20. Working temperature .......................................... 0°C ... + 50° C. Weight ................................................................ approximately 200g.

Page 68: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 68/72

14. Glossary

3964(R) Communication - protocol, used for point to point coupling of industrial controllers via a serial interface RS232/485/TTY.

CamBUS Communication – protocol by Digitronic company for CamCon controllers. CamCon Cam switch/cam controller by Digitronic company. CSV file Comma - Separate - Values, databank files in which the DigiWEB saves

passwords and names, the texts fort he language switch and the controls for the sending of e-mails.

DHCP Dynamic - Host - Configuration - Protocol, dynamic allocation of IP-Addresses from an address-pool in a LAN.

DNS Domain - Name - Service, tracing service that finds numerical IP-addresses to domain names like www.wikipedia.org.

FTP File - Transfer - Protocol, FTP is a protocol based upon TCP/IP that helps to transfer entire files between two network partners (DigiWEB – PC).

Gateway Gateways, respective. router connects several networks with each other, like e.g. a LAN to the Internet.

GMT Greenwich - Mean - Time HTML Hypertext - Mark-up - Language

Language that defines (using keywords) how certain contents is displayed in the browser.

HTTP Hyper - Text - Transfer - Protocol Data transfer protocol for pages on the internet.

Your.ip.address.please refers to the IP address your DigiWEB has within your LAN. e.g. 192.168.1.1.

IP Internet - Protocol Protocol that enables the connection of different users that are positioned in several different networks.

IP - Address Definite 32 Bit address of a computer within an IP – network, e.g. the Internet or your LAN.

LAN Local - Area - Network, local network, limited to a defined area using a fast transfer medium like e.g. Ethernet. An IP-address within a LAN usually begins with 192.168.

MAC - Address Media - Access - Control, the un-altered, physical address of a network component.

MPI Programming interface respective protocol for Siemens S7 controllers. NTP Network - Time - Protocol, the NTP protocol is used to transfer time information

via Ethernet. RK512 Communication procedure of the company Siemens. Used for communication

between controllers (like e.g. SPS, DigiWEB, CamCon) to access tabular data ranges. Sets 3964®.

S5L1 Communication procedure of the company Siemens for S5 SPS. S7 / S5 PLC controllers of the company Siemens. Server Computer that supports a service for a network (e.g. HTTP -, SMTP -, FTP -,

File - Server). SMTP Simple - Mail - Transfer - Protocol, SMTP defines the e-mail communication

from the mail-client (DigiWEB) to the mail server (SMTP - server). SPS Memory programmable controller. SQL Structured - Query - Language, language to control a databank. Subnet mask 32-Bit-value, that defines, which part of the IP – address addresses the network

and which defines the network participant. TCP Transmission - Control - Protocol, protocol for a secured connection of the

participants during data transfer. TCP/IP Combination of IP and TCP, TCP adds upon IP. URL Uniform - Resource - Locator, address of an internet page. WAN Wide - Area - Network

Network covering a wide range like e.g. the internet. WWW World - Wide - Web

usually equated with the internet. XML Extensible - Mark-up - Language, extended display language.

Page 69: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 69/72

15. Register

##CPYFILE ............................................................................................................................................ 47 ##defined() ............................................................................................................................................. 39 ##DELFILE ............................................................................................................................................ 47 ##errno() ................................................................................................................................................ 52 ##EXISTS .............................................................................................................................................. 47 ##muldiv() .............................................................................................................................................. 36 ##RENFILE ............................................................................................................................................ 47 #$FORMAT() ......................................................................................................................................... 22 #else ...................................................................................................................................................... 40 #endif ..................................................................................................................................................... 40 #if ........................................................................................................................................................... 40 #repeat ................................................................................................................................................... 41 #until ...................................................................................................................................................... 41 Addressing ............................................................................................................................................. 34 Addressing, indirect ............................................................................................................................... 36 Addressing, S7/S5 format ...................................................................................................................... 35 Alert ....................................................................................................................................................... 55 ARP -s ................................................................................................................................................... 13 Backup via FTP ..................................................................................................................................... 49 Bit access .............................................................................................................................................. 34 Bit input .................................................................................................................................................. 33 Cable ....................................................................................................................................................... 7 Calculate ................................................................................................................................................ 36 CamCon data charts .............................................................................................................................. 64 Check box .............................................................................................................................................. 33 Clamping allocation ................................................................................................................................. 8 Clamping allocation to the serial interface at DigiWEB with MPI ............................................................. 9 Clamping allocation, Ethernet ................................................................................................................ 10 Clamping allocation, power supply .......................................................................................................... 8 Clamping allocation, RJ45 ..................................................................................................................... 10 Clamping allocation, serial interface ........................................................................................................ 8 Clamping allocation, voltage supply......................................................................................................... 9 Clamping allocation, with MPI-option ....................................................................................................... 9 Closedown-resistors, serial RS485 interface ........................................................................................... 8 ColorNet data chart ................................................................................................................................ 64 Commissioning ...................................................................................................................................... 12 Conditions .............................................................................................................................................. 36 Config.htm ............................................................................................................................................. 13 Configuration ................................................................................................................................... 13, 58 Configuration, extended ......................................................................................................................... 15 Configuration, minimal ........................................................................................................................... 13 Configuration, NTP ................................................................................................................................ 16 Configuration, real time clock ................................................................................................................ 16 Configuration, serial interface ................................................................................................................ 18 Configuration, SMTP ............................................................................................................................. 17 Configuration, time................................................................................................................................. 16 Controller, external S7, CamCon, I-Net ................................................................................................. 64 Data bank, SQL ..................................................................................................................................... 45 Data transcription ................................................................................................................................... 46

DATASNAKE MPI ............................................................................................................................... 64 Device Default Address ......................................................................................................................... 18 Device Default Address, MPI ................................................................................................................. 18 DHCP, server ......................................................................................................................................... 13 DigiWEB BUS address .......................................................................................................................... 18

Page 70: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 70/72

Dimensions .............................................................................................................................................. 7 Display --- .............................................................................................................................................. 51 Display $$$ ............................................................................................................................................ 51 Display *** .............................................................................................................................................. 51 Display ??? ............................................................................................................................................ 51 Display control ....................................................................................................................................... 40 DNS Server ............................................................................................................................................ 16 Domain - Name - Server ........................................................................................................................ 16 Earth connection ...................................................................................................................................... 7 E-Mail ..................................................................................................................................................... 17 E-Mail, send ........................................................................................................................................... 55 Endwhile, #endwhile .............................................................................................................................. 40 Error message, detect number .............................................................................................................. 52 Error messages on the HTML - page .................................................................................................... 51 Error messages, displayed by LED ....................................................................................................... 11 ERROR-CODE ...................................................................................................................................... 51 ERROR-Codes ...................................................................................................................................... 52 Example, simple .................................................................................................................................... 21 Expressions ........................................................................................................................................... 33 Expressions, string input........................................................................................................................ 33 File management ................................................................................................................................... 47 File, biggest ........................................................................................................................................... 47 File, copy................................................................................................................................................ 47 File, create new ..................................................................................................................................... 47 File, delete ............................................................................................................................................. 47 File, re-name.......................................................................................................................................... 47 Firmware Update ................................................................................................................................... 57 Flash memory, remaining ...................................................................................................................... 63 Font, UTF-8 ........................................................................................................................................... 20 Form ...................................................................................................................................................... 30 Formatting, DEZ, HEX, BIN, OCT ......................................................................................................... 22 FTP ........................................................................................................................................................ 54 FTP Hostname ...................................................................................................................................... 16 Ftplogin .................................................................................................................................................. 14 Ftppass .................................................................................................................................................. 14 Function, Graph ..................................................................................................................................... 25 Function, Text .................................................................................................................................. 23, 24 Function, Variables ................................................................................................................................ 22 Functions ............................................................................................................................................... 22 Functions, overview ............................................................................................................................... 50 Gateway ................................................................................................................................................. 14 Glossary ................................................................................................................................................. 68 GMT ....................................................................................................................................................... 16 I/O interface, configuration .................................................................................................................... 19 I/O interface, hardware .......................................................................................................................... 10 I/O interface, software ........................................................................................................................... 59 I/O interface, SSI measuring system ..................................................................................................... 60 Impulse counting.................................................................................................................................... 60 Input ....................................................................................................................................................... 30 Input limit ............................................................................................................................................... 30 Installation ................................................................................................................................................ 7 Interface, I/O, external ........................................................................................................................... 10 Introduction .............................................................................................................................................. 6 IP - Address ..................................................................................................................................... 14, 62 Java - Applet, error messages ............................................................................................................... 30 Java-Applet ............................................................................................................................................ 26

Page 71: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 71/72

Java-Applet, Parameter ......................................................................................................................... 27 Language, configuration ........................................................................................................................ 43 Language, default .................................................................................................................................. 19 LEDs ...................................................................................................................................................... 11 Level ...................................................................................................................................................... 42 Linux ...................................................................................................................................................... 13 Logging, Data ........................................................................................................................................ 46 Login ...................................................................................................................................................... 14 Macintosh .............................................................................................................................................. 13 Millennium ................................................................................................................................................ 2 MPI - Address, address CPU ................................................................................................................ 34 Net mask ............................................................................................................................................... 14 network .................................................................................................................................................. 62 Operators, arithmetical .......................................................................................................................... 36 Operators, Boolean ................................................................................................................................ 36 Operators, logical ................................................................................................................................... 37 Page is not displayed ............................................................................................................................. 51 Parameter, transfer ................................................................................................................................ 39 Password ............................................................................................................................................... 14 Password request for input-protection ................................................................................................... 43 PDF .......................................................................................................................................................... 2 Pin allocation MPI Bus ............................................................................................................................. 9 Ports, electricity ....................................................................................................................................... 8 Programming ......................................................................................................................................... 20 Protocol .................................................................................................................................................. 18 Protocol .................................................................................................................................................. 18 Protocol, 3964(R) ................................................................................................................................... 65 Protocol, RK512 ..................................................................................................................................... 66 Protocols fort he software developer ..................................................................................................... 65 Proxy server ........................................................................................................................................... 12 Registers ................................................................................................................................................ 63 Registers, remanent .............................................................................................................................. 63 Reset ..................................................................................................................................................... 14 Restore via FTP ..................................................................................................................................... 49 RK512 Cell Size ..................................................................................................................................... 19 RK512 chart 0 ........................................................................................................................................ 58 RK512 chart 1-255 of the CamCon ....................................................................................................... 64 RK512 chart for ColorNet ...................................................................................................................... 64 RK512 chart, external ............................................................................................................................ 64 Router .................................................................................................................................................... 14 S7 .......................................................................................................................................................... 64 Schildknecht .......................................................................................................................................... 64 Serial 232 interface, with MPI Option ...................................................................................................... 9 Serial 485 interface, with MPI Option ...................................................................................................... 9 Serial interface ....................................................................................................................................... 18 Serial interface, configuration ................................................................................................................ 62 Serial RS232 interface ............................................................................................................................. 8 Serial RS485 interface ............................................................................................................................. 8 SETUP_DIGIWEB.EXE ......................................................................................................................... 13 SMTP ..................................................................................................................................................... 55 SMTP sender name ............................................................................................................................... 17 SMTP Server IP ..................................................................................................................................... 17 SQL ........................................................................................................................................................ 45

Page 72: Digitronic Automationsanlagen GmbH - The Ethernet WEB server … · 2020. 6. 19. · Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2 Version: 06.01.2006 page: 6/72

Digitronic The Ethernet module Automationsanlagen GmbH DigiWEB 2

Version: 06.01.2006 page: 72/72

Status LED ............................................................................................................................................. 11 String ..................................................................................................................................................... 31 Strings .................................................................................................................................................... 38 Strings, #$strlen() .................................................................................................................................. 38 Subnet mask .......................................................................................................................................... 14 Table of contents ..................................................................................................................................... 3 TCP Timeout ......................................................................................................................................... 16 Technical data ....................................................................................................................................... 67 Text input ............................................................................................................................................... 31 Tick box ................................................................................................................................................. 33 TXH - file ................................................................................................................................................ 48 Unit number, addressing ....................................................................................................................... 34 UP - Date, Manual via Internet ................................................................................................................ 2 Validity / Refresh .................................................................................................................................... 41 Value is not displayed ............................................................................................................................ 51 Variable function .................................................................................................................................... 39 Variable input ......................................................................................................................................... 30 Variable input, Bits ................................................................................................................................. 33 Variable input, selector/dropdown menu ............................................................................................... 32 Variables, local ...................................................................................................................................... 39 Version, differences ............................................................................................................................... 58 While, #while.......................................................................................................................................... 40 Windows Commander ........................................................................................................................... 54 Wire shielding .......................................................................................................................................... 7 Y2K .......................................................................................................................................................... 2 Your.ip.address.please .......................................................................................................................... 68


Recommended