background image

HMS F

IELDBUS 

S

YSTEMS 

AB

Pilefeltsgatan 93-95

S - 302 50 Halmstad

SWEDEN

Phone:

+46 - 35 - 17 29 00

FAX:

+46 - 35 - 17 29 09

e-mail:

 

[email protected]

www:

www.hms.se

®  

D

ESIGN 

G

UIDE

A

NY

B

US

®

 

D

ATA

T

RANSFER

P

ARALLEL 

I

NTERFACE

Doc. No. ABDT-DGP-1.12

Содержание AnyBus DataTransfer

Страница 1: ...LDBUS SYSTEMS AB Pilefeltsgatan 93 95 S 302 50 Halmstad SWEDEN Phone 46 35 17 29 00 FAX 46 35 17 29 09 e mail info hms se www www hms se DESIGN GUIDE ANYBUS DATATRANSFER PARALLEL INTERFACE Doc No ABDT DGP 1 12 ...

Страница 2: ...n interface for future use 10 3 1 2 Mounting devices for future use 10 4 Dual Ported RAM Interface 12 4 1 Signal Description 12 4 2 Memory Map 12 4 2 1 Input Area 000h 1DFh 13 4 2 2 Output Area 1E0h 3BFh 13 4 2 3 Fieldbus Specific Area 3C0h 3DFh 13 4 2 4 Control Register 3E0h 3FFh 14 4 3 Handshake Procedure 18 4 3 1 Initialisation 18 4 3 2 Data Exchange Mode 20 5 Interface Software Design 23 6 Mec...

Страница 3: ... Electrical Characteristics 29 Appendix A Connectors 30 A1 Application Connectors 30 A1 1 Surface Mounted 30 A1 2 Through Hole Mounted 30 A2 Recommended Connector Manufactures 32 A2 1 Molex 32 A2 2 Samtec 32 A2 3 Harwin 32 Appendix B Hardware Design Examples 33 B1 Power Supply 33 B1 1 Dual Galvanical Isolated Supply for BUS and Electronics 33 B1 2 Galvanically Isolated Supply for BUS Electronics 3...

Страница 4: ... of continuous product development The information in this design guide is subject to change without notice and should not be considered as a commitment by HMS Fieldbus Systems AB HMS Fieldbus Systems AB assumes no responsibility for any errors that may appear in this design guide ANYBUS is a registered trademark of HMS Fieldbus Systems AB All other registered trademarks are the property of their ...

Страница 5: ...2 1998 08 12 HMS FIELDBUS SYSTEMS AB Page 5 35 0 Revision Notes Index 1 2 3 4 Date 97 12 02 97 12 15 98 04 25 98 07 14 Chapter All Future use Author JoJ ChB LMA KaJ Revision Created 0 1 Revision 1 1 Revision 1 11 Revision 1 12 ...

Страница 6: ...tem commonly known as fieldbus There was also a growing need to integrate the various microprocessor based intelligent field devices so that users can take full advantage of a field network The fieldbus is a digital communication link between control systems and attached digital devices It has emerged to revolutionise the control environment and device characteristic in both process and manufactur...

Страница 7: ... over a fieldbus network The amount of data that can be sent and received by the ANYBUS module depends on the fieldbus network that is used From the user s point of view all different types of ANYBUS are interfaced in the same way The user does not have to consider any bus specific information or fieldbus technical settings and installations 2 1 Interface to the Application There are two ways to a...

Страница 8: ...can not access the dual port RAM via address and data bus but have a free serial link Therefore it is possible to operate through the serial interface The initialisation procedure will be held in a similar way to the Dual Port RAM solution The serial interface is available as an asynchronous interface RS232 with TTL level The asynchronous serial interface allows the ANYBUS DATATRANSFER module to e...

Страница 9: ... of output information can be handled Since for some applications this amount of data will not be sufficient it is possible to change the amount of data which can be handled by the DataTransfer module The maximum amount of data which can be handled by the Data Transfer module is 480 bytes of input data and 480 bytes of output data If this amount is still not sufficient enough for your application ...

Страница 10: ...ion should be implemented 2 00 mm 2 00 mm 34 00 mm 3 00 mm 34 1 Figure 3 Application interface connector Pin No Name Function 1 32 See chapter 7 1 33 A10 Not used for DT module reserved for address line 10 34 N C Not connected Table 2 Interface connector pin description 3 1 2 Mounting devices for future use 39 00mm 2 50mm 11 00mm 39 75mm 4 00mm Hole A Hole C Hole B 59 50mm Figure 4 Mounting holes ...

Страница 11: ...sign Guide Revision 1 12 1998 08 12 HMS FIELDBUS SYSTEMS AB Page 11 35 B Isolated hole For use with non conductive screws Connect to P E on carrierboard C Conductive hole Used for improved GND connection ...

Страница 12: ...est 480 Bytes 000h 1DFh are dedicated to the input area and the following 480 Bytes 1E0h 3BFh are dedicated to the output area The remaining 64 Bytes are divided into two 32 bytes areas The first area is used for fieldbus specific data and the last area is taken by different control registers The four different areas is mapped on the memory according the following Address Name Description 000h 03F...

Страница 13: ...only valid during initialisation 4 2 3 Fieldbus Specific Area 3C0h 3DFh read write AB DT application This area makes it possible to access data and functions specific for the supported fieldbus The area should only be used if the application needs access to this kind of data The contents and functions in this area differs between the different ANYBUS modules Not all ANYBUS modules uses this area T...

Страница 14: ...rted fieldbus system identifier 3F8h Input length Hi Higher byte for input size register 3F9h Input length Low Lower byte for input size register 3FAh Output length Hi Higher byte for output size register 3FBh Output length Low Lower byte for output size register 3FCh Fieldbus event Flag register for indication of fieldbus events 3FDh System status Fieldbus and module status register 3FEh Applicat...

Страница 15: ...done in Motorola mode The even byte consists of the upper 8 significant bits bit 8 15 bit 10 15 are always 0 the odd byte consists the lower significant bits bit 0 7 Any value set by the application that exceeds the maximum value of the fieldbus in use will be adjusted to maximum number of inputs or outputs by the AnyBus module 7 Output length 3FAh 3FBh read write during initialisation application...

Страница 16: ...B DT module and of the underlying fieldbus are shown in this register There are only two bits that can be reconfigured during initialisation and they are the bits that indicates output mode Function Contents in bits Description Operation mode xxxx xx00 xxxx xx01 initialisation phase module initialised Output mode xxxx 00xx xxxx 01xx if fieldbus is stopped all outputs are reset to 0 default all out...

Страница 17: ...rol 3FFh read only AB DT application These registers are used to perform a proper handshake between application and the AnyBus module A more detailed use can be found in the next chapter Function Contents Description Req OK 1111 0010 OK for application to have control over DPRAM Release OK 0000 0001 OK for application to release control over DPRAM Error app 1111 1111 error encountered control stay...

Страница 18: ...unctioning can be found in the following paragraphs 4 3 1 Initialisation After the application has finished its own initialisation process the initialisation of the DataTransfer module has to be performed These initialisation is basically done in the following steps 1 Write 00h to the AB DT control register 3FFh this will ensure a stable start up for the AnyBus DataTransfer module 2 Requesting acc...

Страница 19: ...s INIT COMPLETE STATUS BIT0 1 AB_IND 00 configure the data area in DT module skip if using the default values request release the DPRAM wait 0 1 m sec during this time checks thet DT module the the status bit in 3FDh is set respectively release OK if status 1 initialised successful write error encountered to APP_IND wait until DT could have respond restart initialisation with changed parameters in...

Страница 20: ...led by polling the AB DT control register 3FFh during the DPRAM access procedure In the interrupt driven mode the polling is substituted by waiting for the interrupt Both handshaking forms have in common that all action will be started by the application To reduce update overhead they can check the new data flag 3FCh before the updating of the output field is performed When the last feature is use...

Страница 21: ...L mode APP_IND 02 3FEh WAIT 0 1 ms AB_IND F2 AB_IND 0F ACCESS DPRAM request control over DPRAM ERROR encountered then retry request OK read output data clear new data flag 3fd write input data access time max 1 sec request release the DPRAM STOP APP_IND 01 WAIT 0 1 ms AB_IND FF AB_IND 01 ERROR encountered retry release release OK DPRAM accessing completed No Yes Yes No No Yes Yes No Figure 6 Poll ...

Страница 22: ...SS DPRAM request control over DPRAM wait until DT module responds ERROR encountered retry wait until DT module responds request OK if data was written wrong to the DPRAM an other INTERRUPT will occur read output data clear new data flag 3fd write input data access time max 1 sec request release the DPRAM STOP APP_IND 01 WAIT for INTERRUPT AB_IND FF AB_IND 01 ERROR encountered retry release release...

Страница 23: ...uide Revision 1 12 1998 08 12 HMS FIELDBUS SYSTEMS AB Page 23 35 5 Interface Software Design This section is still under development Please contact HMS for support and application examples of interface software ...

Страница 24: ...DATATRANSFER hardware like DPRAM CPU EPROM etc Is mounted 2 Fieldbus specific Area where fieldbus specific components that do not fulfil the mechanical specification of the electronics area are placed This includes components like fieldbus connector transformers protection capacitors etc Since different hardware is required for different fieldbus systems the worst case measurements is specified fo...

Страница 25: ... is placed in accordance the following specification on all modules Figure 10 Application connector For more information regarding the connectors please see Appendix A 6 2 2 Fieldbus Connector Only the first fieldbus D SUB connector is placed in the same position on all ANYBUS DATATRANSFER modules The placement of the other fieldbus specific components are unique for each ANYBUS module Figure 11 F...

Страница 26: ...two mounting holes are provided One of these holes is also used for a protected earth PE connection to the module Almost every fieldbus system uses this connection for shield installations Figure 12 Mounting holes A Isolated hole For use with non conductive screws or similar B Connected to PE For use with conductive screws or similar ...

Страница 27: ...vers 3 4 N C Isolation distance Not connected 5 5V Power to electronics 6 GND GND to electronics 7 TX Serial data transmit Please see corresponding chapter 8 RX Serial data receive Please see corresponding chapter 9 18 A0 A9 Address bus to DPARM 19 26 D0 D7 Data bus to DPRAM 27 BUSY DPRAM busy signal 28 IRQ DPRAM interrupt signal 29 RD DPRAM read signal 30 WR DPRAM write signal 31 CE DPRAM chip en...

Страница 28: ... normally equipped with a 55 ns or faster DPRAM D0 is LSB and D7 is MSB Pin 27 BUSY IIndicates simultaneously access of the same memory location from both sides of the DPRAM Active low signal Open collector output This signal has to be pulled up via a resistor on the application side When using the handshaking system the BUSY signal does not have to be implemented If the application side shall acc...

Страница 29: ... 25 V IIN Input current 120 200 mA Table 10 Electrical characteristics BUS electronics 7 3 2 Electronics Electrical Characteristics Symbol Description Min Typ Max Unit VCC Supply voltage 4 75 5 00 5 25 V IIN Input current 120 250 mA Table 11 Electrical characteristics electronics 7 3 3 Serial Interface Electrical Characteristics Not used by the parallel interface 7 3 4 DPRAM Electrical Characteris...

Страница 30: ... recommended connectors and manufactures are listed A1 1 Surface Mounted Pin length Application connector Order No Manufacturer 4 65mm 79 109 0215 Molex 4 65mm 79 109 0015 Molex 2 15mm 87 340 1622 2 pieces Molex 4 5mm M22 634 1622 Harwin 2 20mm CLT 116 02 F D Samtec 3 55mm SMM 116 02 F D Samtec Table 13 Surface mounted connectors A1 2 Through Hole Mounted Pin length Application connector Order No ...

Страница 31: ...Design Guide Revision 1 12 1998 08 12 HMS FIELDBUS SYSTEMS AB Page 31 35 Table 14 Through hole mounted connectors ...

Страница 32: ...A2 2 Samtec Europe Sweden Headquarters Samtec europe limited 117 Deerdykes View Westfield Cumbernauld Scotland G68 9HN Phone 44 1236 739 292 FAX 44 1236 727 113 Freber Elektronik AB Solkraftsvägen 31 S 135 70 Stockholm Sweden Phone 46 8 712 04 80 FAX 46 8 712 92 47 Samtec INC P O Box 1147 New Albany IN 47151 1147 Phone 1 812 944 6733 FAX 1 812 948 5047 A2 3 Harwin Europe Sweden Headquarters Harwin...

Страница 33: ... L2 EMI 1 2 3 C1 10uF D0 1N5819 1 2 C2 100nF C3 100uF C4 100nF C5 100uF Ref Component Note C1 Capacitor 10u 50V Electrolyte C2 C4 Capacitor 100n 63V Polyester C3 C5 Capacitor 100u 16V Electrolyte D0 Diode 1N5819 D1 Diode SMBJ24A Transient protection L1 L2 EMI filter NFM61R30T472 DC DC DC DC DH5W2 41 B1 2 Galvanically Isolated Supply for BUS Electronics This single power supply is galvanic isolated...

Страница 34: ...US SYSTEMS AB Page 34 35 Ref Component Note C1 Capacitor 10u 50V Electrolyte C2 Capacitor 100n 25V Ceramic C3 Capacitor 100u 16V Electrolyte D0 Diode 1N5819 D1 Diode SMBJ24A Transient protection L1 NFM61R30T472 EMI filter DC DC DC DC TRACO TEM2 2411 ...

Страница 35: ...3DFh C1 InterBus The InterBus module does not support the filedbus specific area in the DPRAM C2 Profibus DP The Profibus DP module does not support the filedbus specific area in the DPRAM Appendix D Data Sheets DPRAM The following data sheets are printouts from the Cypress semiconductors www page www cypress com ...

Отзывы: