![Wenglor ZAG45FN01 Operating Instructions Manual Download Page 10](http://html1.mh-extra.com/html/wenglor/zag45fn01/zag45fn01_operating-instructions-manual_956886010.webp)
10
7. The Debug-interface
7.1
Overview of the Debug-interface
The Fieldbus Gateway
®
IC features a Debug-interface, that allows a step-by-step processing of a Script. Normally this interface is
only required for the development of a Script.
7.2
Starting in the Debug-mode
When applying power to the Fieldbus Gateway
®
(power up) the firmware will output the binary character 0 (0x00) after a self-test
was carried out on this interface. If the Fieldbus Gateway
®
receives an acknowledgement via this interface within 500 ms, it is in
the Debug-mode. The acknowledgement is the ASCII-character O (0x4F).
With the start in the Debug-mode the further execution of Script commands will be put to a stop.
7.3
Communication parameter for the Debug-interface
The Debug-interface is always operating with 9600 baud, no parity, 8 data bit, 1 stop bit. It is not possible to change this parame-
ter in the Protocol Developer. Please consider the fact that these settings have to be in accordance with those of the PC-COM-
interface and that the flow control (protocol) has to be set on „none“ there.
7.4
Possibilities with the Debug-interface
Usually the Protocol Developer is connected to the Debug-interface. With it a step-by-step processing of a Script, monitoring
jumps and decisions and looking at memory areas is possible. Moreover breakpoints can be set. It basically possesses all cha-
racteristics a software-development tool is typically supposed to have. However, it is also possible to carry out a Scrip-update via
this interface.
From Script version [27] on you can also output data with the Script command "SerialOutputToDebugInterface". Please also pay
attention to the remark in the manual ’Protocol Developer’.
7.5
Commands of the Debug-interface
The commands for the use of the Debug-interface are described in the instruction manual Protocol Developer.
8. Mode of operation of the system
8.1
General explanation
Communication can be split into seven layers, Layer 1 to Layer 7, in accordance with the ISO/OSI model.
The wenglor sensoric Gateways convert Layers 1 and 2 of the customized bus system (RS-485/RS-232/RS-422) to the correspon-
ding Fieldbus system. Layers 3 and 4 are being covered by the UDP/IP-protocol, TCP/IP-protocol. The Layers 5 and 6 are empty.
Layer 7 is converted in accordance with chapter 8.3.
8.2
Interfaces
The Gateway features the RS-232-, RS-422- and RS-485-interfaces.
8.3
Data exchange
All data is transferred by the Gateway in dependence of the downloaded Script.
8.4
Possible data lengths
The table below shows the maximum transferable data:
Input data
max. 1024 bytes
Variable: maximum value in this case
Output data
max. 1024 bytes
Variable: maximum value in this case
8.5
Startup phase
The Master sets up a TCP/IP- or a UDP/IP-connection to the Gateway during the startup phase. Only after a correct termination of
the startup phase the data exchange with external devices will take place.