Instruction Manual Universal Fieldbus-Gateway Unigate FC - Profinet 2port
Instruction Manual Universal Fieldbus-Gateway Unigate FC - Profinet 2port
Instruction Manual Universal Fieldbus-Gateway Unigate FC - Profinet 2port
Universal Fieldbus-Gateway
UNIGATE® FC - PROFINET 2Port
1 General introduction . . . . . . . . . . . . . . . . . . . . . . . . 8
2 The UNIGATE® FC . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Technical introduction . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.3 Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.4 The serial standard Interface . . . . . . . . . . . . . . . . . . . . . . 9
2.5 The synchronous serial Interface . . . . . . . . . . . . . . . . . . . . 9
2.6 The Debug-Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.7 UNIGATE® FC hardware survey . . . . . . . . . . . . . . . . . . . . 10
3 Hardware design. . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2.1 -Boot enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.2.2 Load out (SPI-Master: SS0-) . . . . . . . . . . . . . . . . . . . . . 12
3.2.3 Data out (SPI-Master: SS1-) . . . . . . . . . . . . . . . . . . . . . . 12
3.2.4 Data In (SPI: MISO) . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.5 Load In (SPI: MOSI) . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.6 Clock (SPI: SCK) . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.7 -Reset In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.8 Errror LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.9 Ground. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.10 State-LED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.11 -Config Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2.12 DbgTX, DbgRx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.13 TX, RX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2.14 TE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4 Basic line of proceeding . . . . . . . . . . . . . . . . . . . . . . . . 14
3.5 Connection examples . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.6 Layout examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.7 Handling (mounting the UNIGATE® FC on the carrier board) . . . . . 19
4 The serial interface . . . . . . . . . . . . . . . . . . . . . . . . 20
4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.2 Buffer sizes at the UNIGATE® FC . . . . . . . . . . . . . . . . . . . 20
4.3 Initialization of the serial interface . . . . . . . . . . . . . . . . . . . 20
4.4 Use of the serial interface . . . . . . . . . . . . . . . . . . . . . . . 20
4.5 Further operation modes . . . . . . . . . . . . . . . . . . . . . . . . 20
5 Synchronous serial interface . . . . . . . . . . . . . . . . . . . 21
5.1 Shift register operation . . . . . . . . . . . . . . . . . . . . . . . . . 21
5.1.1 Example-Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Disclaimer of liability
We have checked the contents of the document for conformity with the hardware and software
described. Nevertheless, we are unable to preclude the possibility of deviations so that we are
unable to assume warranty for full compliance. The information given in the publication is,
however, reviewed regularly. Necessary amendments are incorporated in the following editions.
We would be pleased to receive any improvement proposals which you may have.
Copyright
Copyright (C) Deutschmann Automation GmbH & Co. KG 1997 – 2016. All rights reserved.
This document may not be passed on nor duplicated, nor may its contents be used or disclosed
unless expressly permitted. Violations of this clause will necessarily lead to compensation in
damages. All rights reserved, in particular rights of granting of patents or registration of
utility-model patents.
Art.-No.: V3893E
1 General introduction
In the past the integration of a fieldbus connection required an enormous effort from the progress
engineers. On account of the large variety of communication systems it is not enough to compile
the right combination of communication hardware; due to their standards and fundamentals dif-
ferent busses also require the corresponding skills of the engineers.
This does not apply in case of the UNIGATE® FC by Deutschmann Automation any more. All dig-
ital functions, software, stack and driver are integrated on a UNIGATE® FC in correspondence
with the standard. In addition to the reduction of the required size, also different fieldbusses can
easily be integrated.
Since 1997 Deutschmann Automation has experience in the field of fieldbus gateways; this
enormous experience results in the UNIGATE® FC as a consistent sequel of this successful
product line.
Terminology
In the entire document and in all parts of the software that is to be used, the terms Input and Out-
put are used. Input and Output are ambiguous, always depending on the viewpoint. We see the
fieldbus as central interface and as integral component of your device; therefore in all places it is
always referred to data from the viewpoint of the Slave, that is Input data, as data from the Mas-
ter to the Slave - regardless of the used bus.
Representation of numbers
Numbers in decimal format are always represented without prefix and without suffix as well.
Hexadecimal numbers are always marked with the prefix 0x.
2 The UNIGATE® FC
2.1 Technical introduction
The UNIGATE® FC by Deutschmann Automation contains all components that are required for
the communication in a fieldbus in one single module. Therefore a developer does not have to
take care for that detail any more, only a hardware redesign is necessary in order to integrate the
UNIGATE® FC.
2.2 Availability
The module is available as PROFINET. Further Industrial Ethernet Buses are either planned or
being worked on. The hard- and software-interfaces of the Deutschmann UNIGATE® FC-series
are standardized and functionally identical. As a result, the exchangeability between the different
UNIGATE® FC-versions is guaranteed.
You can find an up-to-date list for all UNIGATE® FCs under:
http://www.deutschmann.com.
2.3 Firmware
UNIGATE® FC is programmed via scripts. On principle any script, that has been developed for a
UNIGATE® IC, can also be operated on the UNIGATE® FC.
3 Hardware design
This chapter gives basic advise that is required in order to load UNIGATE® FC into your own
hardware designs. In the following all ports of UNIGATE® FC are described in detail.
3.1 Ports
UNIGATE® FC features 64 pins in its layout with only 20 pins routed to the outside. The exact
mechanical dimensions can be taken from chapter 16 on page 39.
3.2 Pinout
Pin Technical Name Description
specifications Remark
1* 3.3V ± 5% < 550mA Vcc +3.3V voltage supply
2 INLogic -BE -Boot enable internally pulled up with 10 k
3 OUTLogic Load out strobe signal of output data of the syn-
(SS0-) chronous, serial Interface
4 OUTLogic Data out output data of the synchronous, serial
(SS1-) Interface
5 INLogic Data in input data of the synchronous, serial
(MISO) interface internally pulled up with 10 k
6 OUTLogic Load in strobe signal of the input data of the
(MOSI) synchronous, serial interface
7 OUTLogic Clock clock pulse signal for synchronous,
(SCK) serial interface
8 INReset -Reset in reset-input of the FC min. 10µs
9* connected to pin 1 Vcc +3.3V voltage supply
10 Error-LED Anode of the red LED
11 earth Ground (PE)
12* connected to pin 20 GND Ground supply voltage of the FC
13 State-LED Bus status LED (Anode of the green
LED)
14 INLogic -Config Mode signal to start the configuration mode internally pulled up with 10 k
15 OUTLogic DbgTX serial Debug TX
16 INLogic DbgRX serial Debug RX internally pulled up with 10 k
17 INLogic RX serial data RX internally pulled up with 10 k
18 OUTLogic TX serial data TX
19 OUTLogic TE Transmit enable Steuerung RS422/485-Driver
20* GND GND Ground supply voltage of the FC
3.2.7 -Reset In
• A reset generator is on board; with it in the normal case the reset input is not required. In this
case the reset input has to be connected with VCC, in order to avoid interferences (see chapter
3.6).
• If the customer’s application has to initiate a reset of the UNIGATE® FC, then the reset input
can also be connected with a reset output of the customer’s application instead of connecting it
with VCC. Here all specifications of the reset signal, mentioned in chapter 3.2 have to be kept.
The reset-impulse needs to last at least 10 µs.
Off No error
Flash PROFINET user flash test
On Error
3.2.9 Ground
This pin is directly connected to earth line (drilling Ø 3 mm) of the UNIGATE® FC.
3.2.10 State-LED
A green LED can be connected to this line (see chapter 3.6). It shows the bus status and can
have the following conditions:
3.2.13 TX, RX
Transmission and receive line of the serial interface. This interface is programmable in accor-
dance with the description in chapter 4 on page 20.
3.2.14 TE
The transmit enable signal allows the connection of RS485 drivers to the IC’s serial interface.
The signal is set to High whenever the FC sends via the line TX.
3.3 Software
The software executes script-commands, which in turn control the FC’s hardware and they pro-
cess their complete protocol by software. The script itself can be generated by the company
Deutschmann Automation or with the software Protocol Developer by yourself. For a detailed
description of the script.commands of the Protocol Developer see the instruction manual
Protocol Developer and the online documentation concerning script-commands.
After the RS232-driver has been replaced by the UNIGATE® FC, PROFINET is available at an
RJ45-socket.
The UNIGATE® FC independently processes the communication with the customer’s device via
the TTL-interface.
Here, only the synchronous serial interface is used, the asynchronous serial interface is basically
of no account. If you want to program the script in your completed application, then the use of a
connector for the asynchronous interface is recommended. With it you can carry out the ISP-pro-
gramming.
For this operating mode no additional controller is required on your application!
The following circuit diagram is an example for how shift register components can be connected
to the FC.
Valid for all versions: A planed plug connection of the serial interface in the application offers the
possibility of an update of the firmware or the software via an external connection.
• Mounting on a socket in the carrier board. If necessary solder the UNIGATE® FC to 2 or 4 pins
in the socket. Normally the FC can easily be pulled out after the soldering points have been re-
moved.
• Mounting via hole (drilling 3 mm) in the FC board. At the same time a good PE connection is
obtained.
• Make arrangements for two holes next to the socket in the layout. After the UNIGATE® FC was
plugged in the socket pull an isolated wire over the FC and solder it on the carrier board at the
specified holes.
• Fasten the UNIGATE® FC With a wire or a tie wrap on the socket.
• Manual soldering directly on the carrier board.
• Automatic soldering directly on the carrier board, whereas „selective“ soldering is essential (no
wave soldering)
The advantage of the socketed variant is the easy download of Script- and Firmware-updates, if
the carrier board is not designed for it. Besides, that way the Fieldbus can be changed easily by
changing the UNIGATE® FC. Another advantage is, that - normally - only a reflow soldering of
the carrier board is necessary.
The advantage of the soldered variant is, that the installation height is lower and a higher shock-
and vibration-safety is provided.
5.1.1 Example-Script
Note: The script example refers to the circuit example in chapter 3.5.
5.2.1 Example-Script
var L_Freq : long;
var b_Channel : byte;
var w_Len : word;
var a_BufOut : buffer[100];
var a_BufIn : buffer[100];
6 The Debug-interface
6.1 Overview of the Debug-interface
The UNIGATE® FC 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.
Note:
After a change (download of a new configuration or a new Script) it takes
up to one minute until the FC has saved this change and will be ready for
operation.
7.4.1 RS232/RS485/RS422
• RS-ype: RS232
• Start bit: 1
• Data bits: 8
• Stop bit: 1
• Parity: None
• Baud rate: 9600 Baud
Default setting. This configuration can be changed via the Script.
8 Generating a script
8.1 What is a script?
A script is a sequence of commands, that are executed in that exact order. Because of the fact
that also mechanisms are given that control the program flow in the script it is also possible to
assemble more complex processes from these simple commands.
The script is memory-oriented. It means that all variables always refer to one memory area.
While developing a script you do not have to take care of the memory management though. The
Protocol Developer takes on this responsibility for you.
have to be known as fixed values and are not available for the runtime. Another reason for the
configuration of the values in WINGATE is the following: After an update of the script these val-
ues remain untouched, i. e. the settings that were made once are still available after a change of
the script.
Only this way it is also possible that the same script operates on different Ethernet-Gateways,
that feature different IP-addresses.
9 FTP-Server
This UNIGATE® features an integrated FTP-Server, which allows access to the file system of the
device. The FTP-Server is password protected. With the predefined user name "deutschmann“
and the password “deutschmann“ a connection can be established. Ever since the Firmware-
Version 2.3.6 the login data can be defined by setting the Script parameters „FTP_Password“
and „FTP_UserName“.
Note: On write access to the file system the actual write process to the non-volatile memory is
taking place delayed (5 seconds after the last write access to the file system or when disconnect-
ing the FTP connection). Before restarting the device one must wait for the write process to the
non-volatile memory to complete to prevent data loss.
10 WEB-Server
This UNIGATE® has an integrated web server. The delivery condition has a HTML-Page in the
file system, which shows the system parameters of the device.
The Web Page can be changed by the customer as desired, or replaced with a self-created web
page. It can be written into the file system via FTP (see chapter 9).
<!--#exec=“command“-->
To issue any process data, additional Script variables can be given to the Web-Server with the
Script-Commands „SetHTMLOutputString“. The command assigns the variable a name,
which then can be used in the following command:
10.2 HTML-Formulare
The supporting of HTML Forms allows the Web Server to design interactive web pages. So, for
example, input forms for process values can be realized. The script command „SetHTMLInput-
String“ assigns a name to a script variable, which then can be used in the HTML form.
10.3 Examples
The interaction between Gateway-Script and HTML page can be taken from the example HTML
page „ssi.shtml“ and the example Script „example_Set_HTML_String.dss“. Both files are
accessable in the download area of our website www.deutschmann.com.
11 File System
The UNIGATE® has a file system which is being used by the integrated FTP-Server and the inte-
grated Web-Server (view chapter 10). Furthermore it‘s also used by some devices for storing of
device parameters.
If necessary the device parameter files can be created and initialized by the UNIGATE® automat-
ically. The following table shows an example of the contents of the file system in delivery condi-
tion (contents may vary depending on the device, subject to change without prior notice).
Table 1 File system content at delivery (example)
File Remark
devname.txt device name
nvdata non-volatile device parameter
bg.jpg device web site
bg_container.jpg
bg_footer.jpg
bg_topnavi.gif
bottom.gif
da-logo.gif
deutschmann.css
down.gif
favicon.ico
h4_pre.gif
header_schatten.jpg
headline.jpg
index.html
line.gif
profinet.gif
rnavmain_bg.gif
ssi.html
teaser_header.jp
system. To perform the formatting of your command-line please use the FTP client on
Microsoft® Windows® (Command Prompt -> ftp.exe). Make a connection to the FTP server
of the UNIGATE® and then run the command "del*.*". The string "*.*" is understood as
a request by UNIGATE® to format the file system.
12 PROFINET
If we‘re speaking of PROFINET, then the 100 Mb/s-version is automatically spoken of. Full-
duplex and switched Ethernet. The end device’s protocol is being converted in the UNIGATE®
via a Script.
The UNIGATE® supports PROFINET I/O-RT.
12.7 Literature
We recommend the book "Der Schnelleinstieg in PROFINET", author M. Popp and K. Weber, to
help you quickly get to grips with the subject of PROFINET. The book (German language) can be
ordered from the PROFIBUS User Organisation, Order No. 4.181.
Address:
PROFIBUS Nutzerorganisation e.V.
Haid-und-Neu-Str. 7
D-76131 Karlsruhe
Germany
Tel: +49 721 9658 590
13.2 Connectors
13.2.1 PROFINET connectors
The connectors for the connection to PROFINET is loacted on the upper side of the device. Pin
assignement P1 + P2 (2 x RJ45)
In the configuration mode these displays are not valid and only meant for internal use.
Error no. Error description
0 Reserved
1 Hardware fault
2 EEROM error
3 Internal memory error
4 Fieldbus hardware error or wrong Fieldbus ID
5 Script error
6 Reserved
7 RS-transmit buffer overflow
8 RS-receive buffer overflow
9 RS timeout
10 General fieldbus error
11 Parity-or frame-check-error
12 Reserved
13 Fieldbus configuration error
14 Fieldbus data buffer overflow
15 Reserved
Table 1: Error handling at UNIGATE® FC
15 Firmware-Update
15.1 Overview
UNIGATE® FC has an internal memory for the firmware. It can be replaced via the UNIGATE®
FC’s Ethernet-(PROFINET)-interface.
Configuration mode
In the configuration mode the UNIGATE® FC will carry out a self-test after the start (or after a
reset). After a successful self-test it will wait for further commands. Here it is possible to load a
translated Script into the unit or to configure the device.
16 Technical data
In this chapter you will find all necessary technical data on UNIGATE® FC.
All measurements in mm.
The pins of the UNIGATE® FC - PROFINET 2Port are arranged 2, 54 mm in the contact pitch.
17 Accessory
The following tools are available from Deutschmann Automation.
For a transparent data exchange you will find example scripts for the respective Fieldus under
"File->New" in the Protocol Developer.
18 Appendix
18.1 Explanations of the abbreviations
General
CL = Product group CL (Compact Line)
CX = Product group CX
FC = Produktgroup FC (Fast Connect)
GT = Galvanic separation RS-side
GY = Housing color gray
RS = Product group RS
SC = Product group SC (Script)
232/485 = Interface RS232 and RS485 switchable
232/422 = Interface RS232 and RS422 switchable
DB = Additional RS232 DEBUG-interface
D9 = Connection of the RS through 9-pin D-SUB instead of 5-pin screw-plug connector
PL = Board only without DIN-rail module and without housing cover
PD = Board only without DIN-rail module and with housing cover
AG = Gateway installed in a die-cast aluminum housing
EG = Gateway installed in a stainless steel housing
Fieldbus
ASI = AS-Interface (AS-i)
BI = BACnet/IP
BMS = BACnet MSTB
CO = CANopen
C4 = CANopen V4
C4X = CANopen V4-version X (see comparison table UNIGATE® IC for the respective
product)
DN = DeviceNet
EC = EtherCAT
EI = Ethernet/IP
FE = Ethernet 10/100 MBit
FEX = Ethernet 10/100 MBit-version X (see comparison table UNIGATE® IC for the
respective product)
IB = Interbus
IBL = Interbus
LN62 = LONWorks62
LN512 = LONWorks512
19 Servicing
Should questions arise that are not covered in this manual you can find further information in our
• Device designation
• Serial number (S/N)
• Article number
• Error number and error description
Monday to Thursday from 8 am to noon and from 1 pm to 4 pm, Friday from 8 am to noon. (CET)
http://www.deutschmann.com