Wenglor ZAG45FN01 Скачать руководство пользователя страница 17

17

10.4.3  Fieldbus Gateway as MODBUS-Slave

10.4.3.1 Preparation

Before data exchange is commenced, the parameters "Trigger byte" and "Length byte", "Baud rate", "Parity", "Start bits", "Stop bits" 
and "Data bits" must be set.

At the rotary switch on the RS-side the MODBUS-ID has to be set, under which the gateway is addressed in the Modbus.

10.4.3.2 Data structure

10.4.3.3 Communication sequence

The gateway always acts as the Slave with respect to the fieldbus and also acts as Slave at the Modbus end. A data exchange is 
always initiated by the MODBUS-Master via the RS-interface. If the Modbus-address (1st Byte) which is sent out by the Modbus-
Master is identical with the address set on the gateway, the gateway sends the received data (without Modbus-address and CRC-
check sum) to the fieldbus-master (look picture above). With it the gateway optionally completes as an introduction a Trigger byte 
and a Length byte.
The fieldbus-master detects when it has to analyse a record via the Trigger byte which is incremented by the gateway at every 
inquiry. The number of the following Modbus-data is to be found in the length byte.

Now the fieldbus-master has to analyse the Modbus-inquiry and it has to send back the answer in the same format (optionally with 
the leading Trigger byte and Length byte) via the fieldbus to the gateway.
The gateway then takes this answer and completes the Modbus-address and the CRC and sends the data to the Modbus-Master 
via the RS-interface. With it the data exchange is completed and the gateway waits for a new inquiry from the Modbus-Master.

10.4.4  Fieldbus Gateway as Modbus-ASCII Master

On request!

 For the description see chapter 10.4.2 "Fieldbus Gateway as MODBUS-Master"

10.5  The trigger byte

In case the data records, that were supplied from the application to the gateway, do not change for a longer period, there is actu-
ally no need to send new data to the master.
The other way round, when it comes to a cyclical query of the gateway, a connected master has to be in the position to distinguish 
whether the application constantly provides identical data or if no new data were provided by the application for a longer period. 
For this reason, the user can set control of transmission via a trigger byte (data exchange 

 On Trigger). In this mode, the gateway 

always sends (and only then) when the trigger byte is changed.
Accordingly, the application program in the control in Normal mode cannot detect whether the gateway has received several iden-
tical telegrams. If Trigger-Byte mode is activated, the gateway increments the trigger byte each time a telegram has been received.
The first byte in the input/output data buffer is used as the trigger byte if this mode is activated.

10.6  The length byte 

The user can configure whether the transmit length is also to be stored as a byte in the input/output data area (Fieldbus lengthbyte 

 active). In transmit direction, as many bytes as specified in this byte are sent. On reception of a telegram the gateway enters 

the number of characters received.

Address

Data field

CRC-high CRC-low

Fieldbus

Function

LengthBus

Trigger

(optional)

(optional)

Data field

Function

RS

Sensoren für Ihren Erfolg

    www.

wenglor

.com    

Sensoren für Ihren Erfolg

    www.

wenglor

.com

Содержание ZAG45FN01

Страница 1: ...Operating Instructions Fieldbus Gateway Fast Ethernet V 1 3 ZAG45FN01 ZUB CD FB...

Страница 2: ...the Debug mode 10 7 3 Communication parameter for the Debug interface 10 7 4 Possibilities with the Debug interface 10 7 5 Commands of the Debug interface 10 8 Mode of operation of the system 10 8 1...

Страница 3: ...1 Hardware ports switches and LEDs 18 11 1 Device labeling 18 11 2 Connectors 18 11 2 1 Connector to the external device RS interface 18 11 2 2 Connector supply voltage and DEBUG interface 19 11 2 3 E...

Страница 4: ...ights of granting of patents or registration of utility model patents 13 2 4 General information on line routing 23 13 2 4 1 Shielding of lines 23 14 Representation of the data in Ethernet TCP IP 24 1...

Страница 5: ...ing the module 2 also follow the rules below on installation of the equipment and on working on switch cabinets 1 4 Installation of the unit Modules must be installed in electrical equipment rooms are...

Страница 6: ...ctrically isolated 10 100 Base T interface to Ethernet Ethernet controller W3100A and REALTEK RTL8201CP Microprocessor 89C51 RD2 RAM and FLASH Optionally electrically isolated on the RS side Serial in...

Страница 7: ...nging the switches S4 and S5 in position E All other switches will not be taken into consideration for the setting of the test mode Now the Gateway has to be restarted with these settings by a short d...

Страница 8: ...Baud Rate 5 3 Buffer sizes at the Fieldbus Gateway Fieldbus Gateway CL features at the serial side a buffer with the size of 1024 bytes for input data and output data each The FIFO of the application...

Страница 9: ...into the device Open WINGATE and activate the device in the configuation mode see chapter 4 1 Configurati on mode config mode an actuation message appears that looks in line with the following exampl...

Страница 10: ...ossesses 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 als...

Страница 11: ...ed reasonably There are no fixed rules how which Scripts have to operate properly When writing a Script you should take into account on which target hardware the Script is to be executed so the necess...

Страница 12: ...f baud rates at a 40 MHz crystal frequency with the corresponding errors 4800 baud 0 16 9600 baud 0 16 19200 baud 0 16 38400 baud 1 35 57600 baud 1 35 62500 baud 0 115200 baud 1 35 312500 baud 0 62500...

Страница 13: ...hould be too large in spite of these measures there is the possibility to generate a customized Script com mand that executes several tasks in one Script command Please contact our support department...

Страница 14: ...characters will be discarded at a Timeout Attention If Timeout is selected as end character then this byte has no significance 10 2 3 3 Data Area In this data area the user data will be transferred 1...

Страница 15: ...low priority communication partners 10 3 3 Data communication 10 3 3 1 Initiation of data communication by the low priority user If the low priority user also receives an STX in response to a transmi...

Страница 16: ...request on demand necessitates the first byte in the fieldbus containing a trigger byte see chapter 10 5 This byte is not transferred to the Modbus and serves only to start a Modbus transmission For t...

Страница 17: ...gateway waits for a new inquiry from the Modbus Master 10 4 4 Fieldbus Gateway as Modbus ASCII Master On request For the description see chapter 10 4 2 Fieldbus Gateway as MODBUS Master 10 5 The trig...

Страница 18: ...lable at the plug accessible on the upper side of the device Pin assignment X1 3 pole and 4 pole screw type plug connector Pin No Name Function 1 Rx 232 Receive signal 2 Tx 232 Transmit signal 3 AP GN...

Страница 19: ...3 V DC The voltage supply is made through the 4 pole screw plug connector at the device s bottom side Please note that the devices of the series Fieldbus Gateway should not be operated with AC voltage...

Страница 20: ...2 switchable Rx 422 terminating resistor for the serial interface Termination Tx 422 switchable Tx 422 or RS 485 terminating resistor for the serial interface Rotary coding switch S4 ID High for seria...

Страница 21: ...en two error categories Serious errors 1 5 In this case the Gateway must be switched off and switched back on again If the error occurs again the Gateway must be exchanged and returned for repair Warn...

Страница 22: ...andard screw type terminals one lead can be clamped per connection point It is best to then use a screwdriver with a blade width of 3 5 mm to firmly tighten the screw Permitted cross sections of the l...

Страница 23: ...these interference currents themselves becoming an interference source Wherever possible use only lines with braided shield The coverage density of the shield should exceed 80 Avoid lines with foil sh...

Страница 24: ...se of the data communication TCP features all mechanisms that are required in order to open a connection and to guarantee a flawless data transfer across the network and then again close the connectio...

Страница 25: ...placed or rather websites image files and Java applets can be called up This way it is also possible to represent the dynamically changing data of an application that is connected to the serial inter...

Страница 26: ...Storage transport temperature 40 C 70 C 10 Atmospheric pressure during operation during transport 795 hPa 1080 hPa 660 hPa 1080 hPa 11 Installation altitude 2000 m 4000 m Unrestricted Restricted Ambie...

Страница 27: ...ster CSMA CD Master slave Master slave 4 Number of users Transmitters Receivers 512 512 1 1 32 32 5 Cable length Maximum Depending on baud rate 100 m 15 m no 1200 m 93 75 kBd 1200 m 312 kBd 500 m 625...

Страница 28: ...or downloaded free of charge from our homepage at www wenglor com 16 3 Installation The Fieldbus Gateway FE module features protection type IP20 and is thus suitable for switch cabinet use The device...

Страница 29: ...pm Friday from 8 am to midday wenglor sensoric gmbh wenglor Stra e 3 DE 88069 Tettnang Central office and sales department 49 0 7542 5399 0 Technical hotline 49 0 7542 5399 246 Email Technical hotlin...

Страница 30: ...18 Annex 18 1 Hexadecimal table Hex Decimal Binary 0 0 0000 1 1 0001 2 2 0010 3 3 0011 4 4 0100 5 5 0101 6 6 0110 7 7 0111 8 8 1000 9 9 1001 A 10 1010 B 11 1011 C 12 1100 D 13 1101 E 14 1110 F 15 111...

Страница 31: ...31 Sensoren f r Ihren Erfolg www wenglor com Sensoren f r Ihren Erfolg www wenglor com...

Отзывы: