background image

Script and configuration 

Deutschmann Automation GmbH & Co. KG

28

Instruction manual UNIGATE

®

 IC - Powerlink V. 2.3

21.4.15

7.4.2

RS232/RS485/RS422

RS-ype:

RS232

Start bit:

1

Data bits:

Stop bit:

1

Parity:

None

Baud rate:

9600 Baud

Default setting.

This configuration can be changed via the Script.

Содержание UNIGATE IC - Powerlink

Страница 1: ...uses Instruction Manual Universal Fieldbus Gateway UNIGATE IC Powerlink Manual Art No V3705E Deutschmann Automation GmbH Co KG Carl Zeiss Str 8 D 65520 Bad Camberg Tel 49 6434 9433 0 Hotline 49 6434 9433 33 Fax 49 6434 9433 40 www deutschmann com ...

Страница 2: ......

Страница 3: ...S1 13 3 2 4 Data In SPI MISO 13 3 2 5 Load In SPI MOSI 13 3 2 6 Clock 13 3 2 7 Reset In 14 3 2 8 LED PL 14 3 2 9 Config Mode 14 3 2 10 DbgTX DbgRx 14 3 2 11 TE 14 3 2 12 TX RX 14 3 3 Software 14 3 4 Basic line of proceeding 15 3 5 Connection examples 15 3 6 Layout examples 18 3 7 Handling mounting the UNIGATE IC on the carrier board 21 3 8 Requirement for Ethernet Interface 22 4 The serial interfa...

Страница 4: ...ript 29 8 1 What is a script 29 8 2 Memory efficiency of the programs 29 8 3 What can you do with a script device 29 8 4 Independence of buses 29 8 5 Further settings at the gateway 29 8 6 The use of the Protocol Developer 30 9 FTP Server 31 9 1 Script update via FTP 31 9 2 System configuration update via FTP 31 10 WEB Server 32 11 Powerlink 34 11 1 Data exchange mode 34 11 2 Powerlink address ass...

Страница 5: ... 15 5 Developerkit UNIGATE IC AB IC 39 15 5 1 Developerboard UNIGATE IC AB 39 15 5 2 Quick start 40 16 Appendix 41 16 1 Explanations of the abbreviations 41 16 2 Basis board 42 16 2 1 Overview basis board for PN EI PL 3 3V 42 16 2 2 Connectors of the basis board 46 16 2 2 1 Connector to the external device RS interface 46 16 2 2 2 Powerlink connector 47 16 2 2 3 Power supply of the basis board 47 ...

Страница 6: ...Deutschmann Automation GmbH Co KG 6 Instruction manual UNIGATE IC Powerlink V 2 3 21 4 15 ...

Страница 7: ... 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 2015 All rights reserved This document may not be passed on nor duplicated nor may its contents be used or disclosed unless expressly permitted Violatio...

Страница 8: ...Deutschmann Automation GmbH Co KG 8 Instruction manual UNIGATE IC Powerlink V 2 3 21 4 15 ...

Страница 9: ...also differ ent fieldbuses can easily be integrated Through the flexible firmware of UNIGATE IC no software changes are required on the side of the customer Since 1997 Deutschmann Automation has experience in the field of fieldbus gateways this enormous experience results in the UNIGATE IC as a consistent sequel of this successful product line Terminology In the entire document and in all parts of...

Страница 10: ...with a serial asynchronous interface with a TTL level It is directly connected with the TTL interface of the UNIGATE IC For more information on this serial interface see chapter 4 on page 23 2 5 The synchronous interface In addition to the standard interface there is also the possibility of the synchronous input and out put That way for instance digital IOs can be connected through shift register ...

Страница 11: ...E IC Powerlink V 2 3 11 Deutschmann Automation GmbH Co KG The UNIGATE IC 2 7 UNIGATE IC hardware survey The hardware of the UNIGATE IC consists of some few standard components The picture below shows the functional structure of the IC ...

Страница 12: ...of the synchronous serial interface internally pulled up with 10 k 6 OUTLogic Load in MOSI input data of the synchronous serial interface alternatively strobe signal of the output data 7 OUTDriver Clock SCK clock pulse signal for synchronous serial interface 8 INReset Reset in reset input of the IC internally pulled up with 100 k 9 connected to pin 1 Vcc 3 3V voltage supply 10 12 nc nc no pin 13 a...

Страница 13: ...ata is output on the synchronous serial interface The most significant bit of the data is output first In SPI mode this Pin serves as a low active Slave Select Signal 3 2 4 Data In SPI MISO Data is read in on the synchronous serial interface via this signal The most significant bit of the data is expected first In SPI mode this Pin serves as data transfer from Slave to Master 3 2 5 Load In SPI MOS...

Страница 14: ...3 2 9 Config Mode If the pin has the level GND then the IC starts in the configuration mode 3 2 10 DbgTX DbgRx They are transmission line and receive line as well of the IC s Debug interface For the function description of the Debug interface see chapter 6 on page 26 3 2 11 TE The transmit enable signal allows the connection of RS485 drivers to the IC s serial interface The signal is set to High w...

Страница 15: ...d to be assembled as shown above will now be mod ified in a way that the Powerlink is available at the 9 pol socket However a hardware redesign is necessary in order to keep the assignment in standard form After the RS232 driver has been replaced by the UNIGATE IC Powerlink is available at an RJ45 socket 3 5 Connection examples Here you will find some advise that offers help for a re design In the...

Страница 16: ...L interface Version 2 Use of UNIGATE IC for digital or analog I O modules 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 ad...

Страница 17: ...ster components can be connected to the IC Version 3 Example for digital I Os The serial synchronous and the asynchronous interface as well can be operated by UNIGATE IC at the same time Here the possibility results that an existing application can be extended by additional digital or analog I Os In chapter 5 2 you find an example for a script that operates these I Os ...

Страница 18: ...struction manual UNIGATE IC Powerlink V 2 3 21 4 15 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 3 6 Layout examples ...

Страница 19: ...o KG Hardwaredesign When connecting the UG IC and the RJ45 connector it is important to make sure the signal lines RD RD resp TD TD run as short as possible paral lel and equal in length Because this is for analog signals it is also advisable to not place digital lines in close proximity ...

Страница 20: ...3 21 4 15 The 74HCT595 used in this example has an undefined on position but therefor can set the outputs to the tri state condition via the OutEnable Pin 13 If it is more important to have a defined on position in an applica tion and the OutEnable pin is not necessary the 74HCT594 can be used here ...

Страница 21: ...d in the socket pull an isolated wire over the IC and solder it on the carrier board at the specified holes Fasten the UNIGATE IC 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 F...

Страница 22: ... Open Circuit Inductance 350 uH min 10 mV 10 kHz Insertion Loss 1 1 dB max 1500 Vrms dielectric 1 minute Required parameters for RJ45 connector CAT5 shielded if possible To enable a quick start in the selection of appropriate components we have compiled a list of order numbers of Würth Elektronik below where we source our components Of course other manufacturers are possible so the following list ...

Страница 23: ...tion this protocol as well or a Script after an adaptation can be processed by the IC Anyway the IC will take over the communication with the fieldbus independently 4 2 Initialization of the serial interface The initialization of the interface is carried out by script commands such as Set baudrate Set databits Set parity For a detailed description of these commands see the online documentation for...

Страница 24: ...tType allow the use of different shift register types which differ in the polarity of the shift register signals To use the shift register types 74595 and 74165 for example the values RiseClk_RiseLoad and RiseClk_LowLoad can be set The shift register width is set by the parameter ShiftRegisterInputBitLength and ShiftRegisterOutputBitLength The maximum width is 256 bits The data exchange with the c...

Страница 25: ...sets the operating type the mode signal polarity and phase and the clock frequency The data exchange ensues with the command ExchangeSPI The maximum clock frequency is between 1 and 5 MHz depending on the hardware For details please see the IC Pinout list in the download area of our website Please also refer to the script commands documentation in the online help of the Protocol Developer 5 2 1 Ex...

Страница 26: ... 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 parameter 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 6 4 Possibilities with the Debug interface Usually the...

Страница 27: ...n GmbH Version 1 0 Date 21 08 2001 SN 47110001 IP 10 10 10 10 MAC 00 14 11 15 19 81 7 3 Update the script The preferred option is to insert the UNIGATE IC into the base board from Deutschmann Developer Board UNIGATE IC AB and use the Deutschmann tools software WINGATE with Write Script under File or with the software ScriptProgramTool On request the procedures how to overwrite the included script ...

Страница 28: ...mation GmbH Co KG 28 Instruction manual UNIGATE IC Powerlink V 2 3 21 4 15 7 4 2 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 ...

Страница 29: ...can you do with a script device Our script devices are in the position to process a lot of commands In this case a command is always a small firmly outlined task All commands can be put into classes or groups A group of commands deals with the communication in general This group s commands enable the gate way to send and receive data on the serial side as well as on the bus side 8 4 Independence o...

Страница 30: ...neration of a script for our script gateways Its operation is exactly aimed at this use After starting the program the script that was loaded the last time is loaded again provided that it is not the first start Typical for Windows script commands can be added by means of the mouse or the keyboard As far as defined and required for the corresponding command the dialog to the corresponding command ...

Страница 31: ... txt script sys The remaining files belong to the WEB Server Further information can be found in the corres ponding chapter WEB Server 9 1 Script update via FTP The dcs file generated by the Protocol Developer has to be stored as script dcs by the FTP on the Gateway subdirectory flash When the Gateway starts up it identifies converts and inte grates this file into the file script sys where the Scr...

Страница 32: ...Side Include SSI In case the UNIGATE detects the variable s placeholder that is described by a variable s name see below it places the corresponding String at the variable s place The other way round Strings that are passed on via POST by the HTML page with the corresponding variable name are copied in to the corresponding Script buffer The Syntax looks as follows exec cmd_argument xxxxx For xxxxx...

Страница 33: ...ion GmbH Co KG WEB Server A good exmple for the interaction between Gateway Script and HTML page ca be taken from the Example HTML page ssi html and the Example Script example_Set_HTML_String dss that can both be found in the download area on our homepage at www deutschmann com ...

Страница 34: ... will carry out the downloaded Script 11 2 Powerlink address assignment The Powerlink address can either be assigned through WINGATE or the Script 11 3 Project planning Use any project planning tool for project planning A sample XDD file can be found on the Internet www deutschmann com free of charge Gener ating the XDD file is also provided as service from Deutschmann Automation 11 4 Possible dat...

Страница 35: ...ion purposes and are then automatically reset If such warnings occur frequently please inform After Sales Service The system error can be read out via the Script 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 er...

Страница 36: ...13 3 2 Adjustment by software If the UNIGATE IC is in the configuration mode see chapter 7 2 it can be brought to the firm ware update mode interactively through the command CTRL F 0x06 After sending the com mand a security query follows that has to be answered with J or N J Yes N No After a positive confirmation the IC is re started in the firmware update mode 13 4 Note on safety The firmware upd...

Страница 37: ...nical data on UNIGATE IC All measurements in mm 14 1 Mechanics of the UNIGATE IC 14 1 1 General dimensions of UNIGATE IC 14 1 2 Dimensions UNIGATE IC Powerlink only The pins of UNIGATE IC Powerlink are arranged with a grid spacing of 2 54 mm In case you intend to use other fieldbus ICs the maximum overall height of 20 mm including pins has to be taken into consideration ...

Страница 38: ...Set via WINGATE or via Script Bus baud rate 10 and 100 MBaud autodetect UART baud rate Up to 625 Kbaud adjustable via script Supported Ethernet protocols UDP IP TCP IP Technology 32 bit processor Others I Os analogous signals shift registers LEDs switches and so on can be connected externally Dimensions 45 x 12 x 25 mm WxHxD version without transformer 45 x x7 x 25 WxHxD Installation 32 DIL Weight...

Страница 39: ...he FirmwareDownloadTool is available for download from our homepage it is required for an update of the firmware Condition for it is that a PC can be connected to the serial of the IC The software describes the procedure of an update itself 15 4 Protocol Developer The Protocol Developer is the development environment for scripts that also contain the Debug ger This software package also contains t...

Страница 40: ...The bus connections according to standard or market standard are available to test the respec tive bus side Optionally Deutschmann Add on packages bus master simulation are available The board contains 32 bit input and 16 bit output provided with one LED each Different connec tors allow an easy coupling to your processor A hole matrix field with the most important signals voltage IOs allows a cust...

Страница 41: ...n 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 IC Product group IC IC design DIL32 IO8 Option I O8 16 Script memory expanded to 16KB 5V Operating voltage 5V 3 3V Operating voltage 3 3V Fieldbus ASI...

Страница 42: ... the respective product PBDPX PROFIBUS DP version X see comparison table UNIGATE IC for the respective product PBDPV0 PROFIBUS DPV0 PBDPV1 PROFIBUS DPV1 RS Serial RS232 485 422 16 2 Basis board The basis board that is described in this chapter was supplied until the end of 2008 A new board is available since the beginning of 2009 see chapter 15 5 1 16 2 1 Overview basis board for PN EI PL 3 3V ...

Страница 43: ... of the connector see chapter 16 2 2 2 P 4 Earth terminal 6 3 mm for basis board P 7 This plug is the basis board s serial connection to the customer s device and the connection to the PC Debug interface For the pin assignment see chapter 16 2 2 1 P 8 The illustration shows the arrangement of the pins On this connector strip the signals of the serial connection between IC and RS drivers are wired ...

Страница 44: ...s signal of the IC Plug connector P 13 Pin Signal 1 Vcc 2 Gnd 3 RESET 4 RX of the IC TTL level 5 TX of the IC TTL level 6 TE Pin IC TTL level 7 TX Debug of the IC TTL level 8 RX Debug of the IC TTL level P 14 Input shift register For a detailed assignment and for information on which pin is assigned to which bits see also chapter 5 Connection Pin Meaning P 14 1 Input 9 8 Input 16 P 15 SW1H SW1L In...

Страница 45: ...be brought into the configmode If the jumper is plugged and if the UNIGATE IC is restarted by power off and power on or by reset then the UNIGATE IC will start in the configmode In order to use the configmode with Deutschmann software tools the interface of the board has to be in RS232 position and the PC has to be connected with the nor mal interface where otherwise your application is connected ...

Страница 46: ...h volt age D9 D15 D18 D20 LEDs that are connected to the shift register components D19 LED LINKACT This LED is directly controlled by the processor and shines when the gateway is in an operable network link pulses are received and it flickers when network data traffic takes place 16 2 2 Connectors of the basis board 16 2 2 1 Connector to the external device RS interface The connection cable to the...

Страница 47: ... must be powered with 10 8 30 VDC The power i supplied through the separate 2 pin screw type plug connector Please pay attention to the fact that devices of the series UNIGATE cannot be operated with AC voltage 16 2 2 4 Shield terminal lead The shield signal for the electronic circuitry is connected to the top hat rail via the connector pro vided The shield signal for the Powerlink cable shield is...

Страница 48: ...egrated in the gateway must be activated In order to do this slide the slide switch to position ON In all other cases the slide switch must remain in position OFF Please refer to the general RS485 literature for further information on the subject of bus ter minations If the integrated resistor is used please allow for the fact that this also activates a pull down resistor 390 to ground and a pull ...

Страница 49: ... reach us during hotline hours which are as follows Monday to Thursday from 8 am to midday and from 1 pm to 4 pm Friday from 8 am to midday CET Deutschmann Automation GmbH Co KG Carl Zeiss Straße 8 D 65520 Bad Camberg Germany Central office and sales department 49 6434 9433 0 Technical hotline 49 6434 9433 33 Fax sales department 49 6434 9433 40 Fax technical hotline 49 6434 9433 44 E mail technic...

Страница 50: ......

Отзывы: