background image

AVERTISSEMENT

Nous vous remercions d’avoir acheté l’équipement d’automatisation de 

Automationdirect.com

E

.  Nous tenons à ce que

votre nouvel équipement d’automatisation 

Direct

LOGIC

 fonctionne en toute sécurité. Toute personne qui installe ou

utilise cet équipement doit lire la présente publication (et toutes les autres publications pertinentes) avant de l’installer ou de

l’utiliser.

Afin de réduire au minimum le risque d’éventuels problèmes de sécurité, vous devez respecter tous les codes locaux et

nationaux applicables régissant l’installation et le fonctionnement de votre équipement. Ces codes diffèrent d’une région à

l’autre et, habituellement, évoluent au fil du temps. Il vous incombe de déterminer les codes à respecter et de vous assurer

que l’équipement, l’installation et le fonctionnement sont conformes aux exigences de la version la plus récente de ces

codes.

Vous devez, à tout le moins, respecter toutes les sections applicables du Code national de prévention des incendies, du

Code national de l’électricité et des codes de la National Electrical Manufacturer’s Association (NEMA). Des organismes de

réglementation ou des services gouvernementaux locaux peuvent également vous aider à déterminer les codes ainsi que

les normes à respecter pour assurer une installation et un fonctionnement sûrs.

L’omission de respecter la totalité des codes et des normes applicables peut entraîner des dommages à l’équipement ou

causer de graves blessures au personnel. Nous ne garantissons pas que les produits décrits dans cette publication

conviennent à votre application particulière et nous n’assumons aucune responsabilité à l’égard de la conception, de

l’installation ou du fonctionnement de votre produit.

Nos produits ne sont pas insensibles aux défaillances et ne sont ni conçus ni fabriqués pour l’utilisation ou la revente en tant

qu’équipement de commande en ligne dans des environnements dangereux nécessitant une sécurité absolue, par

exemple, l’exploitation d’installations nucléaires, les systèmes de navigation aérienne ou de communication, le contrôle de

la circulation aérienne, les équipements de survie ou les systèmes d’armes, pour lesquels la défaillance du produit peut

provoquer la mort, des blessures corporelles ou de graves dommages matériels ou environnementaux (”activités à risque

élevé”). La société  

Automationdirect.com

E

 nie toute garantie expresse ou implicite d’aptitude à l’emploi en ce qui a trait

aux activités à risque élevé.

Pour des renseignements additionnels touchant la garantie et la sécurité, veuillez consulter la section Modalités et

conditions de notre documentation. Si vous avez des questions au sujet de l’installation ou du fonctionnement de cet

équipement, ou encore si vous avez besoin de renseignements supplémentaires, n’hésitez pas à nous téléphoner au

770–844–4200.

Cette publication s’appuie sur l’information qui était disponible au moment de l’impression. À la société

Automationdirect.com

E

, nous nous efforçons constamment d’améliorer nos produits et services. C’est pourquoi nous

nous réservons le droit d’apporter des modifications aux produits ou aux publications en tout temps, sans préavis ni quelque

obligation que ce soit. La présente publication peut aussi porter sur des caractéristiques susceptibles de ne pas être offertes

dans certaines versions révisées du produit.

Marques de commerce

La présente publication peut contenir des références à des produits fabriqués ou offerts par d’autres entreprises. Les

désignations des produits et des entreprises peuvent être des marques de commerce et appartiennent exclusivement à

leurs propriétaires respectifs. 

Automationdirect.com

E

 nie tout intérêt dans les autres marques et désignations.

Copyright 2001, Automationdirect.com

E

  Incorporated

Tous droits réservés

Nulle partie de ce manuel ne doit être copiée, reproduite ou transmise de quelque façon que ce soit sans le consentement

préalable écrit de la société 

Automationdirect.com

E

 Incorporated. 

Automationdirect.com

E

 conserve les droits

exclusifs à l’égard de tous les renseignements contenus dans le présent document.

Содержание D2-DCM

Страница 1: ...Page 11 Building the Cable The NOTE at the bottom of the page is incorrect Only the D2 230 and D2 240 CPUs support RS232 only D2 250 1 and D2 260 CPUs support RS232 422 485 without extra hardware Cha...

Страница 2: ...the following note near the first bullet point DirectNET Slave NOTE Although it is not listed in the switch settings K sequence is also available whenever the D2 DCM is set for DirectNET Slave operat...

Страница 3: ...IN IN 7 GND 10 11 12 13 14 15 16 17 RTS RTS CTS CTS OUT OUT IN IN Termination Resistor 2 2 4 S R 2 2 4 S R DL205 22 23 24 25 OUT OUT IN IN DL205 D3 422 DCU 7 GND 10 11 12 13 14 15 16 17 22 23 24 25 R...

Страница 4: ...D2 DCM Data Communications Module Manual Number D2 DCM M...

Страница 5: ...nts requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in w...

Страница 6: ...olue par exemple l exploitation d installations nucl aires les syst mes de navigation a rienne ou de communication le contr le de la circulation a rienne les quipements de survie ou les syst mes d arm...

Страница 7: ...o include the revision number Title DL205 Data Communications Module Manual Number D2 DCM M Issue Date Description of Changes Original 5 96 Original Issue Rev A 5 98 Downsize to spiral Rev A Minor cha...

Страница 8: ...ectrical Specification RS232C or RS422 11 Consideration 3 Cable Schematics 11 Consideration 4 Cable Specifications 12 Consideration 5 Installation Guidelines 12 A Quick Test Cable 15 Setting the Switc...

Страница 9: ...Interlocks B 10 Appendix C Using the D2 DCM with MODBUS Introduction C 2 How Does the D2 DCM work with MODBUS C 2 MODBUS Function Codes Supported C 3 MODBUS Data Types Supported C 3 Determining the MO...

Страница 10: ...ng the MDM TEL D 8 RS232 Connections D 8 The MDM TEL Setup Wizard D 8 D2 DCM as Master D 9 If You are Using a D2 DCM as Master D 9 Using DirectSOFT32 D 10 Creating a Modem Link D 10 Modem Setup D 10 C...

Страница 11: ...ule 2nd Edition 2 03 D2 DCM Data Communication Module In This Manual Introduction Building the Communication Cable Setting the D2 DCM Switches Installing the D2 DCM and Starting the Network Verificati...

Страница 12: ...mber PC DSOFT32 M If you plan to use your D2 DCM to communicate with another PLC you will need the appropriate user manual for the other PLC If you plan to use your D2 DCM module as an interface to HM...

Страница 13: ...nd margin indicates a special note The exclamation mark icon in the left hand margin indicates awarning or caution These are very important because the information may help you prevent serious persona...

Страница 14: ...t Indicator ON Send Receive Enquiry FLASHING Send Receive Header FLASHING NK ON if a NAK is either sent or received Status Indicators During communications only The DL205 Data Communications Module D2...

Страница 15: ...he data exchange The D2 DCM takes communication requests issued by the PLC program instructions and automatically converts these requests into network commands that read data from or write data to ano...

Страница 16: ...of D2 DCMs is lim ited by the available power budget The D2 DCM can be used as a slave interface to connect your DL205 system to a MODBUS network using the MODBUS RTU protocol The host system must be...

Страница 17: ...power budget CPU Required D2 240 250 1 260 minimum firmware V1 8 or later Location of module CPU base only any slot except Slot 0 or CPU slot Interface Serial RS232C RS422 half duplex DTE Asynchronou...

Страница 18: ...DCM in the Introduction STEP 2 Build the communication cable that fits your needs STEP 3 Set the D2 DCM switches Baud rate parity etc STEP 4 Install the D2 DCM in any slot except for Slot 0 which is n...

Страница 19: ...l specification is best for your application RS232C or RS422 3 What is the cable schematic 4 What are the relevant cable specifications 5 What installation guidelines are necessary The next few pages...

Страница 20: ...a personal computer an operator interface or an intelligent device to a single D2 DCM You must also use this configuration when you want to connect a DirectNET master station to a single DirectNET sl...

Страница 21: ...cation NOTE If you are using the D2 DCM to connect an OptiMation operator interface you must order our standard pre made cable part number OP 4CBL 2 If you are using a DV 1000 you must build a custom...

Страница 22: ...noise problems D Route the cable through an approved cable housing to minimize the risk of accidental cable damage Check local and national codes to choose the correct method for your application D Co...

Страница 23: ...method also balances the receive data lines but common mode noise rejection is improved significantly This method requires two resistors at each end of the line Also since there are two resistors the...

Страница 24: ...ces The Black Box catalog is one of many good places to start they sell direct Call 1 800 555 1212 and ask the 800 directory assistance operator for their phone number You can also look for a amplifie...

Страница 25: ...e cable to the two D sub connectors WARNING This cable is suitable for quick testing situations and must not be used in actual applications This cable is not shielded and is highly susceptible to elec...

Страница 26: ...e panel to determine the available communication parameters You ll need to know the following things D Baud rate D Parity settings D Protocol required Your operator interface must use one of the follo...

Страница 27: ...munications settings The following diagram shows the switch locations and their purpose Delay Time Baud 1 2 3 300 ON OFF OFF 600 OFF ON OFF 1200 ON ON OFF 2400 OFF OFF ON 4800 ON OFF ON 9600 OFF ON ON...

Страница 28: ...is normally used only if you re developing your own DirectNET programs By disabling the timeout you can send one DirectNET component without any communication timeout problems If you have this timeou...

Страница 29: ...though the D2 DCM address is set in hexadecimal it s a good idea to remember the decimal equivalent This is because the decimal address is used most often For example a RLL communications program the...

Страница 30: ...the ON position In the OFF position this switch logically disconnects the D2 DCM from the network just as if you pulled the cable from the connector Once this switch is moved to the OFF position the D...

Страница 31: ...emoving any system component To insert the module into the base align the circuit board s with the grooves on the top and bottom of the base Push the module straight into the base until it is firmly s...

Страница 32: ...your host or operator interface program before the communications can begin For example if you re using DirectSOFT32 you can just specify the station address and start working Connect the cables and f...

Страница 33: ...indicators to verify the D2 DCM is operating correctly The following diagram shows the proper indicator conditions TO ON if a timeout has occurred in the D2 DCM MA ON if master OFF if slave DA Send Re...

Страница 34: ...t the D2 DCM to match the communication parameters required by the master station D2 DCM operator interface or host computer 3 Incorrect protocol Make sure your operator interface or personal computer...

Страница 35: ...but NK TO or HD indicators do not come on at all 1 COM Timeout is disabled 2 RTS and CTS signals are not looped back on the D2 DCM end of the cable Power OK and MA are on EQ stays on and TO flashes 1...

Страница 36: ...ansferred Byte count may be set to 1 or an odd number for a data type that requires 2 bytes 2 Make sure baud rate parity and mode HEX ASCII match between the master and slave 1 Make sure the system ha...

Страница 37: ...1A Cable Diagrams...

Страница 38: ...RTS GND 5V 2 TXD 3 4 5 7 RXD RTS CTS GND 2 TXD 3 4 5 7 RXD RTS CTS GND RS232C 25 pin Connector 25 pin Connector 1 RXD 2 3 TXD RTS 4 GND 2 TXD 3 4 5 7 RXD RTS CTS GND 25 pin Connector DL405 CPU DL405 D...

Страница 39: ...spreadsheet connected through our DSData Server Sounds complicated but it s really quite simple Check out our catalog for more information on our powerful DSData Server Master Slave 2 TXD 3 7 4 RXD G...

Страница 40: ...ector Master Possible Slaves DL405 CPU DL405 DL305 DCM Bottom Port with Connect to any of these devices DL305 D4 DCM w DCU or or DL205 DCM D2 DCM or 17 IN 7 GND 10 11 12 17 RTS RTS CTS IN 13 CTS 16 IN...

Страница 41: ...IN 16 OUT 17 OUT DL340 CPU Port 1 RXD 2 3 4 TXD RTS GND 7 GND 10 11 12 14 RTS RTS CTS OUT 13 CTS 15 OUT 16 IN 25 pin Connector 17 IN 2 TXD 3 7 20 RXD GND DTR 7 GND 10 11 12 14 RTS RTS CTS IN 13 CTS 1...

Страница 42: ...9 pin DTE Connector FA UNICON Converter 25 pin Connector 7 GND 10 11 12 17 RTS RTS CTS IN 13 CTS 16 IN 15 OUT 14 OUT 2 TXD 3 7 20 RXD GND DTR 7 GND 10 11 12 14 RTS RTS CTS IN 13 CTS 15 IN 16 OUT 17 OU...

Страница 43: ...25 RTS RTS CTS CTS OUT OUT IN IN OUT OUT IN IN 7 GND 19 18 11 23 14 16 10 9 RTS RTS CTS CTS OUT OUT IN IN 7 GND 19 18 11 23 14 16 10 9 RTS RTS CTS CTS OUT OUT IN IN 7 GND 19 18 11 23 14 16 10 9 RTS R...

Страница 44: ...7 GND 10 11 12 13 14 15 16 17 RTS RTS CTS CTS IN IN OUT OUT FA UNICON Converter 1 RXD 2 3 TXD RTS 4 GND DL340 CPU 2 TXD 3 7 20 RXD GND DTR FA UNICON Converter Termination Resistor DL240 CPU Bottom Po...

Страница 45: ...RTS RTS CTS CTS IN IN OUT OUT D2 DCM 22 23 24 25 OUT OUT IN IN 7 GND 10 11 12 13 17 16 15 14 RTS RTS CTS CTS IN OUT OUT D2 DCM RS422 7 GND 10 11 12 13 17 16 15 14 RTS RTS CTS CTS OUT OUT IN IN D2 DCM...

Страница 46: ...This is still a simple master slave connection but the DV 1000 is the master and initiates the data exchange with the D2 DCM 1 2 3 4 5 6 RXD TXD RTS GND 5V RS232C 2 TXD 3 4 5 7 RXD RTS CTS GND 6 5V 25...

Страница 47: ...Data Communications Module 2nd Edition 2 03 B RLL Communications Programs...

Страница 48: ...ons 2 Slot location of the D2 DCM master and the slave station address LD instruction 3 Amount of data in bytes decimal you want to transfer LD instruction 4 Area of memory to be used by the master LD...

Страница 49: ...16pt Output 16pt Output Y0 Y17 Y20 Y37 V40601 V40600 Y50 Set SP131 SP130 LD K401 LD K3 LDA O40600 WX Y0 Communication Error Communication Not Busy Example RLL Program Slave Address D2 DCM Slot Transf...

Страница 50: ...cessary to specify both the master slot location and slave address because you can have more than one D2 DCM master in the base and you can have up to 90 slave stations for each master HEX 3C 3 x 16 4...

Страница 51: ...ample the DL305 does not use a separate data type for input and output points Example 3 bytes of data to be transferred Number of Bytes in decimal LD K201 LD K3 The number of bytes specified also depe...

Страница 52: ...ormation If you are writing information to the slave station this is the source area or the area where the master will obtain the information that will be transferred to the slave Example V memory loc...

Страница 53: ...ction the data will be read from the slave starting at the address specified If you use the WX instruction the data will be written to the slave starting at the address specified Data Type and Address...

Страница 54: ...401 IO 157 GY1571 CR277 GY2771 SR277 GY477 To get Stage Status Bits use S0 GY2001 S1 GY2011 S177 GY2771 1 You must have CPU firmware V1 9 or greater to use the GY data type i th RX WX i t ti g yp in t...

Страница 55: ...e D2 DCM is busy SP121 indicates there is a communication error for slot 0 You should always use the D2 DCM Busy SP in your RLL programs to ensure the D2 DCM is ready The communication error SP is opt...

Страница 56: ...X instruction is executed C0 is set When the D2 DCM has finished the communication task the second routine is executed and C0 is reset If you re using RLLPLUS you can just put each routine in a separa...

Страница 57: ...e is showing three slaves In this case the address conversions are very simple Check the Conversion Hints shown above for a more complex example 0 Slot of D2 DCM Slave Address LD K260 Slave 1 Slave 2...

Страница 58: ...Data Communications Module 2nd Edition 2 03 C Using the D2 DCM with MODBUS...

Страница 59: ...d outs of MODBUS in this document Instead the purpose of this Appendix is to D provide a quick overview of MODBUS Data Types and Function Codes D how to determine the proper MODBUS address necessary t...

Страница 60: ...gisters etc for the various types of memory in a DL205 system For example if you need to know the status of Y12 then you ask for Y12 MODBUS does not use these same data types so you have to determine...

Страница 61: ...basically convert the PLC octal address to decimal and add the appropriate MODBUS address if required The following tables show the exact equation used for each group of data DL205 Memory Type QTY1 De...

Страница 62: ...Y0 Y777 2048 2560 Coil Control Relays CR 1024 C0 C1777 3072 4095 Coil Timer Contacts T 256 T0 T377 6144 6399 Coil Counter Contacts CT 128 CT0 CT177 6400 6527 Coil Stage Status Bits S 1024 S0 S1777 512...

Страница 63: ...pe from the table PLC Addr Dec Start Addr Data Type Y20 16 decimal 16 2049 Coil Coil 2065 Find the MODBUS address to obtain the current value from Timer T10 1 Find Timer Current Values in the table 2...

Страница 64: ...locations that will be unavailable The actual equation used to calculate the address depends on the type of PLC data you are using The PLC memory types are split into two categories for this purpose...

Страница 65: ...ess 30001 To use function 04 put the number 4 into the most significant position 4xxx Four digits must be entered for the instruction to work properly with this mode The Maximum constant possible is 4...

Страница 66: ...ode 1 PLC Addr Dec Start Address Mode Y20 16 decimal 16 2048 1 2065 Find the MODBUS address to obtain the current value from Timer T10 1 Find Timer Current Values in the table 2 Convert T10 into decim...

Страница 67: ...Data Communications Module 2nd Edition 2 03 D Using the D2 DCM with Modems...

Страница 68: ...a a modem This appendix provides some guidelines to help you setup the communications link There are typically two types of communication paths for modem applications D Telephone modems D Radio modems...

Страница 69: ...aling In either case the cabling and setup requirements share many similarities which are covered later in this Appendix PC as Master D2 DCM as Slave D2 DCM as Master D2 DCM as Slave With today s pric...

Страница 70: ...d 1 stop bit making a total of 11 bits per character Since this is an odd number the modem would not work properly You can experiment with the baud rate settings but make sure all components are set t...

Страница 71: ...s 00 No delay 01 2ms delay 02 5ms delay 03 10ms delay 04 20ms delay 05 50ms delay 06 100ms delay 07 500ms delay Baud Rate Codes 00 300 baud 01 1200 baud 02 9600 baud 03 19200 baud V7632 MSB LSB X X X...

Страница 72: ...he following sources D Radio Shack D Black Box Catalog Some users prefer to build their own cable Here are the pinouts that are usually required Again check your modem documentation for the exact requ...

Страница 73: ...6 8 DSR DCD 20 DTR 25 pin to 25 pin Cable Tip You can use our D3 DSCBL 2 with a null modem adapter to quickly build a cable which can connect the modem to the D2 DCM also used with the MDM TEL modem Y...

Страница 74: ...M TEL 2 TXD RXD 1 DCD 3 7 4 RXD 5 6 8 MODEM CABLE WIRING MODEM RS232 Connections IBM COM Port Female DB9 Cable for MODEM to IBM COM Port MODEM RS232 Port Male DB9 2 1 3 TXD 4 5 6 7 8 9 9 DCD DTR GND D...

Страница 75: ...tions begins D Radio Modems If you have a radio modem the RX or WX instruction in the RLL program controls the data transmission between the stations That is when the RX or WX is executed it automatic...

Страница 76: ...me of the features will have to be disabled in order to communicate to the PLCs To avoid making any changes to the existing modem configuration you will need to install the same modem a second time Wi...

Страница 77: ...Communications Module 2nd Edition 2 03 3 Select the Phone and Modem Options icon A dialog box with all available modems installed will appear 4 Choose the Modems tab then click on Properties at the bo...

Страница 78: ...D 12 Using the D2 DCM with Modems Data Communications Module 2nd Edition 2 03 6 Select the Advanced tab and click on Change Default Preferences 7 Make Port speed 9600 and choose None for Flow control...

Страница 79: ...Module 2nd Edition 2 03 8 Click on the Advanced tab and choose 8 Data bits None Parity and 1 Stop bits 9 Click OK until all dialog boxes are closed This will setup your Windows driver so DirectSOFT32...

Страница 80: ...ink using DirectSOFT32 1 The LinkWizard can automatically determine the majority of the communication settings however you will need to manually setup the modem specific information modem type phone n...

Страница 81: ...e appropriate PLC Type Also give the link a name and description 4 Click the Port tab of the dialog to display the port configuration dialog This dialog allows you to setup up the port to match your m...

Страница 82: ...s D If the PLC has been given a node Address other than 1 enter the new address now D You can adjust the time outs and retries on this dialog however the default values should work for you 6 Click the...

Страница 83: ...lly creating a link the Launch Window will have an entry for the link that you have created The name that you assigned to the link should appear in the menu tree under the Comm Links icon If the link...

Отзывы: