Home

View / the Complete Manual

image

Contents

1. O 5 E DL405 GPU D2 DCM s ottom Po _ 2 TXD gt lt 2 TXD CPU 0 3 RXD 3 RXD Port 2 gt DL405 DCM 4 RTS 4 RTS or B or 5 CTS 5 CTS A DL205 DOM DFE Connect to any E oe 7OND or of these devices D2 DCM DL305 CPU or w 232 DCU DL305 w DCU 25 pin Connector 25 pin Connector Master DL340 CPU DL240 CPU DL450 CPU Bottom Port Phone Jack Connect to any of these devices D2 DCM DL340 CPU D2 DCM RS232C RS232C 2 TXD F 1 RXD 2 TXD 1 GND DL240 CPU 3 RXD 2 TXD 3 RXD 2 5V Bottom Port 4 RTS 3 RTS 4 RTS 3 RXD or 5 CTS 4 GND 5 CTS 4 TXD c DL450 CPU 4P4C 5 RTS Phone Jack 7 GND p 7 GND 6 GND oes ue dl 25 pin Connector 25 pin Connector Data Communications Module 2nd Edition 2 03 Cable Diagrams Point to Point These diagrams show the D2 DCM being used as a slave to a personal computer The RS232C personal computer would have to be capable of issuing commands using either DirectNET PC as Master or MODBUS RTU protocol A good example of this would be a personal computer running an Excel spreadsheet connected through our DSData Server Sounds complicate
2. PW TK Power or OK is off PW uma Dm OK 1 Master PLC power is disconnected gt NK EEO NK Dea 2 D2 DCM is defective 1 TO E HD TO EJ HO MA JET DT MT DT PW g jok Power and OK are on PW uma Mu OK 1 Switch setting on master station is gt NK J JEQ_ Master indicator is off NK Jm 38 incorrect 2 TO E HD TO E HD MA EH DT MA JH DT PW uz ok Power OK and MA are on PW Dual Dm OK 1 The master station CPU not in RUN gt NK MEQ EQ does not come on when NK EQ 2 Online Offline switch is set to OFF 3 1Q Ho the communications program is To ho 3 Communications program is not ma um or executed ME or correct PW uu Dok Power OK and MA are on PW punt Dm OK 1 COM Timeout is disabled gt NK mma EQ stays on but NK TO or NK Ea 4 TO Elo HD indicators do not come on TO HD 2 RTS and CTS signals are not mapa Dior at all MA 11 DT looped back on the D2 DCM end of the cable PW uz jok Power OK and MA are on PW ua DOK Pw mw Dex 1 RLL Communications programis gt NK mma EQ stays on and TO flashes NK Eee KT eo incorrect 5 TO E HO TO HD TO HD MA pa oT ma DT MA pr 2 Settings are different Only PW and OK OR EQ flashes 3 Cable problem PW g jok Power OK and MA are on PW mm OK PW OK 1 Settings are different S gt NK mmo EQ stays on and NK flashes NK p EQ KT
3. Possible Slaves D2 240 250 1 260 CPU bottom port D2 240 250 1 260 w D2 DCM D3 330 or D3 330P w DCU D3 340 either port D4 430 bottom port D4 440 bottom port D4 450 phone jack or bottom port Any DL405 CPU w D4 DCM The PLC program is really very simple and only requires a few instructions Appendix A provides an overview of the instructions Or see the DirectNET Manual for network details Using a D2 DCM as a Network Slave The D2 DCM can also be used with a D2 240 250 1 260 CPU to serve as a network slave station It cannot be used with a DL230 CPU In this case the D2 DCM listens to the network for any messages that contain the D2 DCM s address The D2 DCM deciphers the network commands carries out the request to read or write data and sends confirmation and or information to the master station Possible Masters D2 240 250 1 260 w D2 DCM D3 340 CPU bottom port Any DL405 CPU w D4 DCM D4 450 CPU bottom port Host computer w DirectSOFT DSData Server Data Communications Module 2nd Edition 2 03 6 Introduction As an Extra Communication Port As a MODBUSO Network Interface As an extra communication port the D2 DCM supports the DirectNET protocol just like the bottom port on the D2 240 250 1 260 CPU but at higher baud rates In general if you can connect a device to the bottom port on the D2 240 250 1 260 CPU then you can also conne
4. LD LA K201 D2 DCM SI ET ot Slave Address YO Y17 LD rid K3 Y20 Y37 Transfer 3 bytes LDA D 040600 Master Starting Address Type of Operation RX YO Slave Starting Address Slave Address 2 Data Communications Module 2nd Edition 2 03 RLL Communications Programs This example writes 3 bytes of data from the Master Station starting at V40600 to YO Y27 in Slave Station 1 CPU Slot 0 Slot 1 Slot 2 Slot3 Slot4 Master PLC V40600 Example RLL Program ouput output Communication Error SP131 Set Es KE 50 Communication Not Busy SP130 LD Dd K401 D2 DCM Slot Slave Address LD DA K3 Slave Address 2 Transfer 3 bytes LDA rd 040600 Master Starting Address Type of WX Operation YO Slave Starting Address The following paragraphs explain each operati
5. s s ssss Building the Cable Building the Communication Cable Consideration 1 Physical Configuration Consideration 2 Electrical Specification RS232C or RS422 Consideration 3 Cable Schematics Consideration 4 Cable Specifications Consideration 5 Installation Guidelines A Quick Test Cable Setting the Switches Setting the D2 DCM switches Host Computer or Operator Interface Connection DirectNET Interface Connection D2 DCM Switch Settings Address Selection Switch Online Offline Switch Insall the D2 DCM Install the D2 DCM and Starting the Network Install the D2 DCM Connect the Cables Verification amp Troubleshooting Verification and Troubleshooting Troubleshooting Quick Steps Troubleshooting Chart CONN NO O O1 O1 RPWWNHNMNND N DS Table of Contents Appendix A Cable Diagrams Point to Point RS232C D2 DCM as Master A 2 Point to Point RS
6. Main Ladder Program Begins X X After the parameter setup rung s above we begin the CU normal ladder program Use your actual program for this and the following rungs k y Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Choose the Proper Cables Connecting a Modem to your Personal Computer The exact cables needed really depend on your particular application In any case you will probably use one or more of the following connections e Personal Computer to modem connection e Modem to D2 DCM connection e Modem to DL240 connection Your choice of cable for connecting the modem to your personal computer depends on whether you have a 9 pin port or a 25 pin port on your COM card In either case it s usually easier to buy a cable rather than make one lt is suggested that you check your modem documentation to see what the manufacturer recommends If your documentation does not recommend a cable you could try the following sources e Radio Shack e 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 requirements NOTE The 9 pin diagram can be confusing because it shows TXD TXD and RXD RXD connections This is actually correct because the 9 pin connector conforms to the IBM standard for DTE and the 25 pin side conforms to t
7. 4 F to 158 F 20 to 80 C Operating Humidity 5 to 95 non condensing Air Composition No corrosive gases permitted Vibration JIS C0040 Shock JIS C0041 Voltage Isolation 1500 VAC 1 minute duration Insulation Resistance 10M ohms at 500 VDC Noise NEMA ICS3 304 Operating Specifications Power Budget Requirement 300ma 5 VDC Maximum number of modules limited only by 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 O or CPU slot Interface Serial RS232C RS422 half duplex DTE Asynchronous 8 bits character odd or no parity Baud Rates 300 to 38 4K baud switch selectable Maximum Distance RS232C 49ft 15 meters RS422 3300 feet 1000 meters Protocol DirectNET K sequence proprietary MODBUS RTU Diagnostics Automatic check of ROM RAM communications switch settings and LEDs Note 1 Also compatible with Hostlink and or CCM2 protocols These names were used by previous vendors of compatible Koyo designed products Data Communications Module 2nd Edition 2 03 DES Introduction Using your D2 DCM Five Steps STEP 1 Familiarize yourself with the communications options of D2 DCM in the Introduction STEP 2 Build the communication cable that fits your needs STEP 3 Set the D2 DCM
8. AUTOMATION DIRECT D2 DCM Data Communications Module Manual Number D2 DCM M WARNING Thank you for purchasing automation equipment from Automationdirect com We want your new DirectLOGIC automation equipment to operate safely Anyone who installs or uses this equipment should read this publication and any other relevant publications before installing or operating the equipment To minimize the risk of potential safety problems you should follow all applicable local and national codes that regulate the installation and operation of your equipment These codes vary from area to area and usually change with time It is your responsibility to determine which codes should be followed and to verify that the equipment installation and operation are in compliance with the latest revision of these codes At a minimum you should follow all applicable sections of the National Fire Code National Electrical Code and the codes of the National Electrical Manufacturer s Association NEMA There may be local regulatory or government offices that can also help determine which codes and standards are necessary for safe installation and operation Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and standards We do not guarantee the products described in this publication are suitable for your particular application nor do we assume any responsibility for your product des
9. disconnecting the system power To minimize the risk of equipment damage electrical shock or personal injury always disconnect the system power before installing or removing any system component Data Communications Module 2nd Edition 2 03 Setting the Switches Online Offline Switch On the front of the unit just to the left of the LEDs you ll notice a small slide switch This switch is labeled ON for online and OFF for offline If you want to communicate through the D2 DCM make sure this switch is in 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 D2 DCM will not communicate with the network If you move the switch to the ON position the D2 DCM will communicate with the network but not until the master sends another request for communication This does not operate like the reset switch on many personal computers Data Communications Module 2nd Edition 2 03 o a A gt E 3 0000000000000 O 000000000000 Install the D2 DCM Starting the Network ER Install the D2 DCM and Starting the Network Install the D2 DCM The D2 DCM can go in any slot of a DL205 base except Slot 0 which is right next to the CPU The D2 DCM will not wo
10. 4070 4095 Counter Contacts CT S Stage Status Bits Data Communications Module 2nd Edition 2 03 C 5 Using the D2 DCM with MODBUS DL250 1 Memory Type QTY PLC Range MODBUS MODBUS Dec Octal Address Range Data Type For Discrete Data Types Convert PLC Addr to Dec Start of Range Data Type pus 00 Special Relays SP SPO SP137 3072 3167 SP320 SP717 3280 3535 Control Relays CA co cr 256 Counter Contacts CT CTO CT177 6400 6527 Coil Stage Status Bits S 1024 S S1777 5120 6143 Coil For Word Data Types Convert PLC Addr to Dec Data Type Timer Current Values V VO V377 O 255 Input Register Counter Current Values V 1128 Vv1000 V1177 512 639 Input Register V Memory user data V 3072 V1400 V7377 768 3839 Holding Register 4096 V10000 V17777 4096 8192 V Memory system V 320 V700 V777 448 768 Holding Register V7400 V7777 3840 3735 0 Timer Contacts T 256 TO T377 6144 6399 Coil 0 Data Communications Module 2nd Edition 2 03 C 6 Using the D2 DCM with MODBUS Example 1 V2100 Example 2 Y20 Example 3 T10 Current Value Example 4 C54 Find the MODBUS address for User V PLC Address Dec Data Type location e100 V2100 1088 decimal E ene Memon ir Me table 1088 Hold Reg Holding Reg 1089 2 Convert V2100 into decimal 1089 3 Use the MODBUS data type from
11. or Base Connector D2 DCM 7 Online Offline Switch Ja E RS232C RS422 Communication Port Address Selection Switches L DIP Switches for communications dl and protocol parameters 2290000 00000 G 0000000 000000 tati tra CA PARREREN RERE No o ls ol bk 7 4 Na SL NES UTA TS ECC Self Test Indicator ON Send Receive Enquiry FLASHING Send Receive Header FLASHING Send Receive Data Packet FLASHING Module Power ON NK ON if a NAK is either sent or received TO ON if a timeout has occurred in the D2 DCM Master Mode ON if master o OFF if slave Status Indicators During communications only The DL205 Data Communications Module D2 DCM is a general purpose communications interface that can be used in a DL205 system that has a D2 240 250 1 260 Central Processing Unit CPU The D2 DCM cannot be used with a DL230 CPU The module can go in any base slot except for Slot 0 which is next to the CPU This module is primarily used for three reasons e Asa network master or slave interface to a DirectNET network e Asan extra general purpose communications port to connect a personal computer or operator interface e As a n
12. x Select the communications port that the PLC is connected to Modem support cannot be configured from the Link Wizard To select modem support you must use the manual configuration dialog by selecting Link Editor below Link Editor Bad Cancel Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems 3 The Configure Link dialog box should now be present First choose the PLC family and the PLC CPU Type Click once on the appropriate item in the PLC Family and a list of available CPUs for that family will appear to the right Click once to select the appropriate PLC Type Also give the link a name and description x Name ModemLink Description PLC Pat Protocol PLC Family PLC Type DirectLogic 05 Series DirectLogic 105 Series DirectLogic 205 Series DirectLogic 305 Series DirectLogic 405 Series Unspecified Cancel Help Auto 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 modem s configuration Follow the steps below e Select Modem in the Devices column e Select the modem type that you configured earlier in this procedure You can verify or modify the settings by clicking on the Properties button or you can create a new modem by clicking on the Add button e Enter the dialing information for your modem xl Name ModemLink Grasse PLC Po
13. 1200 ON ON OFF 2400 OFF OFF ON 4800 ON OFF 9600 OFF ON 19200 ON ON 38400 OFF OFF 7 8 OFF ON on wE Eo AS ea P 0000000000000 000000000000 SNS TL TE EH Y ME or D2 DCM je p Switch Positions Time _ 6 7 8 L 0 OFF OFF OFF 2 ON OFF 5 OFF OFF 10 ON OFF 20 OFF 50 ON 100 OFF 500 ON Delay time in milliseconds Port Pinouts RS232C fo O14 O15 O18 O17 O18 O19 O20 O21 100 O22 10 O23 O24 120 O25 130 Da RS232 TXD RS232 RXD RS232 RTS RS232 CTS 5V ov RS422 TXD RS422 TXD RS422 RXD RS422 RXD 5V ov RS422 RTS RS422 RTS RS422 RTS 1 RS422 RTS 1 RS422 CTS RS422 CTS RS422 TXD RS422 TXD RS422 RXD RS422 RXD RS422 pins are internally connected Data Communications Module 2nd Edition 2 03 A Cable Diagrams Cable Diagrams Point to Point These diagrams show the D2 DCM being used as the network master The cable diagram is RS232C the same when the D2 DCM is being used as a slave for those connections that could have D2 DCM as Master the master slave roles reversed This is true for the e D2 DCM to D4 DCM connection e D2 DCM to DL305 CPU with RS232C DCU or a D3 340 bottom port D2 DCM to DL405 CPU connection when used with a D4 450 CPU Possible Slaves
14. IN Termination Resistor Termination Resistor DL305 RS422 DCU Master er TEE DL205 DL405 CPU DL405 CPU DL405 CPU o 884 88 1588 D2 DCM Master Port 2 Port 2 Port 2 Rs422 rs422 sae _ El 7 GND 7 GND 7 GND 7 GND S al PT 10 RTS 19 RTS 19 RTS 19 RTS oO m 11 RTS 18 RTS 18 ATS 18 RTS 12 CTS 11 CTS 11 CTS 11 CTS 13 CTS 23 CTS 23 CTS 23 CTS 14 40UT 94N PO HIN 9 GIN 15 OUT 10 IN 10 IN 10 IN 0 Slaves NH 16 OUT 3 16 OUT Y 16 OUT Q 17 HN ___ 14 OUT 14 OUT 14 0UT lle DL405 CPU f Bottom Port 22 OUT 6 28 OUT Pp 24 IN a DL405 Termination Resistor Termination Resistor z CPU O i Bottom Port y o Ola DL405 CPU z Bottom Port o pl Data Communications Module 2nd Edition 2 03 Cable Diagrams DL205 D2 DCM Master Fa RS422 GND 7 RTS 10 RTS 11 CTS 12 CTS 13 OUT 14 OUT 15 Slaves IN 16 IN 17 j e OUT 22 OUT 23 IN 24 o Termination z Resistor DL340 CPU Pith FA UNICON Converter PU RS232 RS422 RXD 1 TXD 2 DL240 CPU H RTS 3 Bottom Port GND 4 Lo 4 0 0 o DL450 Phone Jack rs
15. 7 GND 10 RTS 11 RTS 12 CTS 13 CTS 14 OUT 15 OUT 16 IN Note 1 You must connect pin 20 to pin 25 2 RTS CTS are looped back internally and do not require external wiring 17 IN La 25 pin Connector Data Communications Module 2nd Edition 2 03 A 7 Cable Diagrams Multidrop These diagrams show the D2 DCM being used as the network master for a network RS422 consisting of various PLC stations using D2 DCMs CPU ports etc D2 DCM as Master Master DL205 DL205 D2 DCM Master D4 DCM D2 DCM DL305 w DCU RS422 Asa RS422 Ra 7 GND 7 GND 7 GND 7 GND TI 10 RTS m T 10 RTS r 10 RTS r 10 RTS n 11 RTS r 11 RTS NH 11 RTS 11 RTS 12 CTS TT 12 CTS PI 12 CTS PI 12 CTS 13 CTS 13 CTS 13 CTS 13 CTS 14 OUT 17 N 17 AN 7 gt _ 17 HN Slaves 15 OUT 16 IN 16 IN 16 IN 13 16 N 15 QU 15 OuUT 7 15 OUT DL405 or 17 N 14 40OUT __ _ 14 40UT 7 _ _ 14 OUT DL205 DCM 22 OUT 22 OUT 22 OUT 22 OUT 23 OUT 23 OUT 23 OUT 23 OUT RE 24 IN 24 IN 24 IN 24
16. D2 DCM can be used as a slave interface to a network using the MODBUS RTU protocol To use the D2 DCM with MODBUS your host software must send a MODBUS function code and a MODBUS address to specify a PLC memory location that is understood by the D2 DCM Host sends a MODBUS request a What s the status of YO S lt gt _ y o D2 DCM D2 DCM responds responds YO is ON with data It would be quite difficult to discuss all of the ins and outs of MODBUS in this document Instead the purpose of this Appendix is to e provide a quick overview of MODBUS Data Types and Function Codes e how to determine the proper MODBUS address necessary to allow the host software to access various memory locations in the DL205 system One key point to remember is that not all host software packages using MODBUS drivers operate exactly the same way That is there are a couple of different ways to achieve the same result especially when it comes to specifying the needed address for the PLC memory location Therefore it is important that you follow the instructions for your particular software package or network master Data Communications Module 2nd Edition 2 03 C 3 Using the D2 DCM with MODBUS MODBUS Function The host software package reads or writes information by sending a MODBUS function code Codes Supported to the D2 DCM The following table provides a description of the MOD
17. Host Computer or If you re using a host computer or operator interface as the master station you should set the Operator Interface D2 DCM to match the master station parameters Check the documentation that came with Connection your computer or operator interface panel to determine the available communication parameters You ll need to know the following things e Baud rate e Parity settings e Protocol required Your operator interface must use one of the following protocols e DireciNET e K sequence e Hostlink DirectNET was called Hostlink on the old TI or Simatic TI products Some Operator Interface manufacturers may still refer to it this way e MODBUSO RTU DirectNET Interface If you re using the D2 DCM as a DirectNET interface you ll need to know whether the Connection D2 DCM is being used in a master station slave station or peer station Once you ve determined how the D2 DCM will be used proceed with the dipswitch settings Master Slave Network Peer as Master Network en el D2 DCM as Master e AEREO ALE ALES 3 3 D2 DCM as Peer D2 DCM as Peer B D2 DCM as Slave Data Communications Module 2nd Edition 2 03 D2 DCM Switch Settings ir Livi NO bez NO ie mo 8 1 9 SG L 17 Setting the Switches
18. Module 2nd Edition 2 03 Using the D2 DCM with Modems LE 8 Click on the Advanced tab and choose 8 Data bits None Parity and 1 Stop bits Standard 28800 bps Modem Default Preference Ax General Advanced r Hardware Settings Dats bits EM Parity oe xl Stop bits A gl Modulation fi 18 Cancel 9 Click OK until all dialog boxes are closed This will setup your Windows driver so DirectSOFT32 can use the Windows TAPI control when accessing the modem Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Configuring the With the modem configured correctly the link to the PLC can now be established Link The next series of steps will provide the information necessary for configuring the link 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 number etc To activate the Link Wizard in the Launch Window right click on the Comm Links icon in the DSLaunch tree and select Add Link DSLaunch el Eg File View Help Applications EB DirectSott Programming 4 wage w Comm Links ED Projects ES 205RLL2 PRJ 205PLUS2 PRJ RLLEXMP2 PRJ RLLPLUS2 PRJ 105RLLPRJ 4 105PLUS PRJ Right Click to select Add Link D 2 Select Modem as the device and click the Next button Link Wizard
19. RS422 fa 7 GND 7 GND OND E 7 GND 10 RTS 10 RTS ie 00 E 10 RTS D4 DCM 11 RTS 11 RTS 11 RTS 11 RTS 12 CTS 12 CTS 12 CTS 12 CTS ot 13 CTS 13 CTS TI ES 1 0T 44 out o Port 14 OUT 17 IN D2 DCM 15 OUT 10 IN E He k a a 16 IN 16 OUT s B DL305 17 IN 14 OUT TAN 14 0UT w DCU 25 pin Connector 25 pin Connector 25 pin Connector 25 pin Connector Note Pin numbers are correct Pins are Note Pin numbers are correct Pins are shown out of order because it makes the shown out of order because it makes the drawing easier to comprehend drawing easier to comprehend Data Communications Module 2nd Edition 2 03 Cable Diagrams Master Possible Slaves DL340 CPU DL240 CPU Bottom Port Connect to any of these devices DL450 CPU Phone Jack Slave Connection D2 DCM FA UNICON Converter DL340 Dis E CPU Port 7 GND GND TXD 2 te 1 RXD 10 RTS 10 RTS pp O 11 RTS 11 RTS No ae 12 CTS 12 CTS Dion DL 4 anD 13 CTS 13 CTS 4P4C 14 OUT 14 IN 15 OUT 15 IN 16 N 16 OUT 17 IN 17 OUT HI Connector Note RTS CTS are looped back internally Slave Connection D2 DCM FA UNICON Converter 1 GND DL240 CPU RS422 2 5V Bottom
20. before the communications will operate correctly Usually you should use the highest baud rate possible unless noise problems appear If noise problems appear try reducing the baud rates Parity Position 4 on SW5 selects between the two parity options odd or none If you re using all DL205 equipment you should use odd parity Odd parity uses eleven bits total 1 start bit 8 data bits 1 stop bit and 1 parity bit Some devices require no parity which uses only 10 bits 1 start bit 8 data bits and 1 stop bit Self Test Position 5 on SW5 selects the factory self test and should always be switched off If the self test is on the module will not operate correctly Response Delay Time Positions 6 8 on SW4 set the response delay time The delay time specifies the amount of time the D2 DCM waits to send the data after it has raised the RTS signal line This is normally set to O and is typically only adjusted if you are using the D2 DCM with a radio modem If you are using the D2 DCM with a radio modem check your modem documentation to help you choose the proper setting Also if you re considering the use of a modem check out Appendix D It may be of some help Data Communications Module 2nd Edition 2 03 Setting the Switches Address Selection The D2 DCM station address is set by the two Switch rotary switches located on one of the D2 DCM s circuit boards Addresses are in hexadecimal an Td format with valid a
21. for you If you are using multi drop you must use RS422 If you are using point to point you may have a choice between RS232C and RS422 You can use RS232C if the cable length is less than 50 feet and if the cable will not be subjected to induced electrical noise that is commonly found near welders large motors or other devices that create large magnetic fields You must use RS422 for all other applications RS422 allows longer cable distances up to 3300 feet and provides higher noise immunity Although the network configuration and electrical specification are important the type of devices being connected to the D2 DCM are just as important The exact cable schematic needed really depends on a combination of all three things There are a wide range of possibilities when you consider that all three product families the DL205 DL305 and DL405 all offer DirectNET communication capabilities Hint Look at Appendix A to determine a cable possibility Some of these examples may need to be combined to design a cable for your application 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 cable See the cable diagram at the end of Appendix A The following diagram shows the port pinouts for the D2 DCM and the bottom port of the DL240 CPU These are the two most likely combinations t
22. in 2 byte increments The following table shows the byte ranges for the various types of DirectLOGIC products V memory 16 2 T C current value 16 2 Inputs X GX SP 8 1 Outputs 8 1 Y C Stage T C bits Diagnostic Status 8 1 Data registers 8 1 T C accumulator 16 2 I O internal relays shift 1 1 register bits T C bits stage bits Diagnostic Status 16 10 5 word R W Data Communications Module 2nd Edition 2 03 RLL Communications Programs Designating the master station memory area The Load Address LDA instruction specifies the V memory area of the master that will be LD used This is the starting address Additional K201 sequential locations may be used depending on the number of bytes that are being transferred Since all DL405 data is mapped into V memory you can easily access the data you need If you are reading information from the slave LDA station this is the destination area or the area 040600 where the master will store the information If you are writing information to the slave station this is the source area or the area Letter O where the master will obtain the information specifies an that will be transferred to the slave Octal Address LD K3 V memory Address Example V memory location 40600 will be the starting point of the data transfer area for the master The follo
23. information on using the D2 DCM with MODBUS protocol Data Communications Module 2nd Edition 2 03 Verification amp Troubleshooting Verification and Troubleshooting If you have used the guidelines shown previously in Step 3 Starting the Network you are now ready to verify that the unit is operating properly Check the D2 DCM indicators to verify the D2 DCM is operating correctly The following diagram shows the proper indicator conditions Note Online Offline switch has been removed from the drawing for clarity Module Power m A OK ON if self test is OK ON Prat EQ Send Receive Enquiry NK ON if a NAK pw Ex FLASHING is either sent or NK EQ HD Send Receive Header received e e FLASHING TO ON if a ae tmeout has TTEN occurred in the D2 DCM FLASHING D2 DCM I ES ON if master E OFF if slave PAN O O O O O O O O O O O O O O O5 20 O O O O O O KE p r j During Communication only Data Communications Module 2nd Edition 2 03 EN Verification amp Troubleshooting Troubleshooting If the D2 DCM does not seem to be working correctly check the following items Quick Steps These items represent the problems found most often 1 Cable and connections Incorrectly wired cables and loose connectors cause the majority of problems Verify you ve selected the proper cable co
24. is configured to use a modem YY Connect modem to validate link settings Data Communications Module 2nd Edition 2 03 D 17 Using the D2 DCM with Modems 7 After successfully 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 is highlighted the main launch window screen will change with all of the links information displayed DSLaunch File View Help Applications 7 g DirectSoft Programming 4 A n Tay a ESTE ya Version E ol Projects i 205RLL2 PRJ 205PLUS2 PRJ Name Remote 1 D RLLEXMP2 PRJ RLLPLUS2 PRJ Pump Sation 1 C 105RLL PRJ A 10sPLuS PRA Disabled E Sa Comm Links Ra 450 KSeq Last Error n Completed 0 Errors 0 Retries 0 Ready Data Communications Module 2nd Edition 2 03
25. logical choice for use with a modem It is not hard to establish remote communications with a PLC system via a modem This appendix provides some guidelines to help you setup the communications link System Components There are typically two types of communication paths for modem applications e Telephone modems e Radio modems Both serve the same basic function which is to enable data communications over a long distance However your choice really depends on your particular application Radio modems are typically more expensive and can be more difficult to use in some situations But if you don t have phone lines or dedicated cabling in the area your choice may be restricted to radio modems anyway For the DL205 family of products any system that is designed to handle modem communications usually contains components from the following list e DL240 PLC System with D2 DCM e PLC System with DL250 1 260 CPU bottom port e Personal Computer e 2 modems one on each end Telephone Modems Radio Modems Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Possible Even though most all systems have one or more of the system components there are a Configurations couple of ways that they can be used PC Master Some people need to use modems between a personal computer and the PLC system so that they can perform remote programming and or data monitoring
26. noise problems are still present and you have a good earth ground for the cabinet you must connect one end of the shield to the cabinet earth ground Don t ground both ends of the shield because this will create induced noise on the cable Step 1 Strip back about 2 5 of the shield Step 3 Secure the shield to the connector shell Data Communications Module 2nd Edition 2 03 Building the Cable Multi drop Termination Resistors It is important you add termination resistors at each end of the RS422 line This helps reduce data errors during data transmission You must select resistors that match the cable impedance For example a typical 22 AWG solid conductor cable with 4 5 twists per foot has a typical impedance of about 120 ohm There are two ways to actually connect the resistors e Line to Line this method balances the receive data lines IN and IN and requires one resistor at each end of the line The cable diagrams we ve provided show this method but you can use either e Line to Ground this 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 sum total of both resistors must match the cable impedance The following diagram illustrates the two options EE Terminate 0 at Master O O
27. 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 amplifier supplier on the internet One web site to look at is www idealsolution com or search for other RS422 amplifier web sites The following diagram illustrates some instances where an amplifier is necessary Serial Slave Connection 1 16 Slave Stations Master Station Parallel Slave Connection 1 16 Slave Stations RS422 Amp Master RS422 Station Amp RS422 Amp Data Communications Module 2nd Edition 2 03 A Quick Test Cable A OLD TERR Building the Cable AutomationDirect offers a Universal Cable Kit part number FA CABKIT This cable kit allows you to connect various types of DirectLOGIC products with an RS232C cable The kit consists of cable phone cable with male plugs already attached and several specially wired connectors The special connectors are a D sub style with built in female phone jacks The kit includes a wide variety of the special connectors so you can use one kit to connect products from the different DirectLOGIC family of products To use the kit with the D2 DCM just follow these steps 1 Plug the appropriate D sub connector onto the D2 DCM 2 Plug the appropriate D sub connector onto the other device you are connecting to the D2 DCM 3 Connect the cable to the two D sub conn
28. reaching our goal If you cannot find the solution to your particular application or if for any reason you need additional technical assistance please call us at 770 844 4200 Our technical support team is glad to work with you in answering your questions They are available weekdays from 9 00 a m to 6 00 p m Eastern Time We also encourage you to visit our website where you can find technical and nontechnical information about our products and our company www automationdirect com Data Communications Module 2nd Edition 2 03 Conventions Used NZ H NS Key Topics for Each Chapter Introduction MEJO The light bulb icon in the left hand margin indicates a tip or shortcut The note pad icon in the left hand margin indicates a special note The exclamation mark icon in the left hand margin indicates a warning or caution These are very important because the information may help you prevent serious personal injury or equipment damage The beginning of each chapter will list the key topics that can be found in that LE chapter Data Communications Module 2nd Edition 2 03 Introduction D2 DCM Hardware The following diagram shows the major D2 DCM components The address selection switches and the communication dipswitches are of special importance ALU N Status Indicators Y DATA y shown below on WE Ex A KE Era To C EH OFF ma
29. see Appendix A for detailed diagrams Vly LA Tip If you need a quick test cable you may want to try our FA CABKIT which allows Data Communications Module 2nd Edition 2 03 EU Building the Cable Consideration 1 The D2 DCM can be used in either a point to point or multi drop configuration A Physical point to point connection only has two stations a master and a slave Use the Configuration point to point configuration to connect 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 slave station Use the multi drop configuration to connect one master to two or more slaves 90 slave maximum Point to Point DL205 Master DirectNET PLC Slave Multi drop DirectNET DirectNET Slaves Masters 0 JE Data Communications Module 2nd Edition 2 03 Consideration 2 Electrical Specification RS232C or RS422 Consideration 3 Cable Schematics Building the Cable The D2 DCM can support RS232C or RS422 communication Your application and configuration choice will help determine which electrical specification is best
30. switches Baud rate parity etc STEP 4 Install the D2 DCM in any slot except for Slot 0 which is next to the CPU STEP 5 Verify correct network operation by using the indicators and the troubleshooting chart Data Communications Module 2nd Edition 2 03 6 0000000000 000000000 000 G 000 Install at N LI ouf 0000 aN La on wE Eok A NK TO 1 OFF MALL D2 DCM Building the Cable 9 Building the Communication Cable There are several considerations that help determine the type of cable needed for your D2 DCM application 1 Will the D2 DCM be physically connected in a point to point configuration or multi drop configuration 2 What electrical 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 discuss these considerations in detail you to quickly build several different types of cables See page 15 for more information If you re fairly comfortable with network or communications cabling requirements
31. this SP124 There are two SPs for each slot in the CPU LD base which are used only with the D2 DCM AI K201 For example slot O has SP120 and SP121 SP120 is the D2 DCM Busy relay and when D2 DCM LD turned on indicates the D2 DCM is busy Busy K3 SP121 indicates there is a communication error for slot 0 LDA You should always use the D2 DCM Busy SP 040600 in your RLL programs to ensure the D2 DCM is ready aK The communication error SP is optional but it YO is a good way to monitor the communication status in the RLL program If you use the communication error SP make sure you place it at the beginning of your communication routines This is because the communication error relay is always reset turned off whenever an RX or WX instruction is executed 1 0 Slot Location 0 i 2 3 4 5 6 7 Communication Busy N A SP122 SP124 SP126 SP130 SP132 SP134 SP136 Communication Error N A SP123 SP125 SP127 SP131 SP133 SP135 SP137 Data Communications Module 2nd Edition 2 03 RLL Communications Programs Multiple Read and Write Interlocks If you re using multiple reads and writes in the RLL program the routines need to be interlocked to be certain that all the routines are executed If the interlocks are not used then the CPU will only execute the first routine This is because the D2 DCM can only handle one trans
32. z DirectNET Slaves at Last Slave Terminate Line to Line Termination for the D2 DCM Master Slave Last Slave pp E be 7 GND 7 GND t 10 RTS 19 RTS 11 RTS 18 RTS 12 CTS 11 CTS 13 CTS 23 CTS 14 OUT 17 IN 3 15 OUT 16 IN 16 IN 15 OUT 17 IN 14 0UT 22 OUT 22 OUT 1200 23 OUT 23 OUT ET 24 N 24 IN Resistor 1200 25 IN 25 IN Resistor eae LT Line to Ground Termination for the D2 DCM Master Slave Last Slave nn 7 GND 7 GND r 10 RTS 19 RTS 11 RTS 18 RTS 12 CTS 11 CTS 13 CTS 23 CTS 14 OUT 9 N 15 OUT 10 AN 16 IN 16 OUT 17 N 14 0UT 22 OUT 62Q 3 23 OUT z 24 IN Resistors 25 IN En D aa ca ee 62Q Resistors Data Communications Module 2nd Edition 2 03 Building the Cable Network Amplifiers If you have more than 16 slave stations you must use an RS422 amplifier to maintain the signal levels The best amplifiers are regenerative that is they try to improve signal quality by reducing any noise signals that are present They amplify the signal and not the noise if possible Some amplifiers are not regenerative and amplify the noise as well as the signal You can purchase amplifiers from several sources The Black Box catalog is one
33. 17 IN 22 OUT 22 OUT 23 OUT 23 OUT 24 IN 24 IN 25 pin Connector 25 pin Connector Termination Resistor D2 DCM D2 DCM RS422 RS422 7 GND 7 GND m 10 RTS m 10 RTS 11 RTS 11 RTS 12 CTS 12 CTS 13 CTS 13 CTS 14 0UT 14 OUT 15 OUT 15 OUT 16 IN 16 IN z 17 N 17 N 22 OUT 22 OUT 23 OUT 23 OUT 24 IN 24 IN 25 pin Connector 25 pin Connector Termination Resistor Data Communications Module 2nd Edition 2 03 ES Cable Diagrams DV 1000 Cable Use the following cable diagram to connect a DV 1000 to D2 DCM This is still a simple master slave connection but the DV 1000 is the master and initiates the data exchange with the D2 DCM DV 1000 D2 DCM Pires 1000 D2 DCM DV 1000 RS232C 1 GND TXD 2 2 5V RXD 3 l 3 RXD RTS 4 i 4 TXD CTS 5 5 RTS 5V 6 Phone Jack styl a ene one Jack style connector RJ12 on the aA 6P6C DV 1000 25 pin Connector Data Communications Module 2nd Edition 2 03 RLL Communications Programs Data Communications Module 2nd Edition 2 03 RLL Communications Programs Why are networking instructions needed in your RLL The Master Initiates Requests Why Ladder Logic Since DirectNET is a ma
34. 2 DCM primarily uses two protocols DirectNET and MODBUSO RTU protocol Here s some information to help you choose Communications Port for DirectSOFT32 Programming lf you plan to program the CPU through the D2 DCM then you can use either DirectNET protocol or our proprietary protocol called K sequence Although it is not listed in the switch settings K sequence is also available whenever the D2 DCM is set for DirectNET slave operation Computer or Operator Interface l you re using the D2 DCM to connect a computer or operator interface check your documentation to see which protocol is being used Since the D2 DCM is always a slave station when it s connected to a computer or operator interface you should select DireciNET slave or MODBUS RTU slave Note there are also a handful of operator interfaces that have been designed to use our proprietary K sequence protocol If you have one of these or if you need to use K sequence for some reason make sure you set the D2 DCM for DirectNET Slave operation Peer to Peer works in Hexadecimal mode only DirectNET Master Slave In a DirectNET master slave network one D2 DCM should be set as a master and the rest should be set as slaves DirectNET Peer as Master This is a variation of the master slave protocol and should be selected when you only have two stations that can each initiate requests Each station must have a D2 DCM as the network interface MODBUS RTU Slave The D2 DCM
35. 232C PC as Master asus A Boks Tee PS A 3 Point to Point RS422 D2 DCM as Master A 4 Point to Point R8422 PC as Masters shee aed bag d bat Soe tiens A 6 Multidrop RS422 D2 DCM as Master A 7 Multidrop 5422 PC as Master ere nan aia eee a unes Se A 9 DV 1000 Cable ias cta is aera EME Usd cates O MO dt tee A 10 Appendix B RLL Communications Programs Why do you need networking instructions in your RLL B 2 The Master Initiates Requests 2 B 2 Why Cadder LOI is an is Dti DAS a is adn B 2 Identifying the master and slave locations amp addresses B 4 Specifying the amount of data to transfer B 5 Designating the master station memory area B 6 Identifying the slave station memory area to read or write B 7 Controlling the communications B 9 Communications Special Relays cada e PRE ee ee adds B 9 Multiple Read and Write Interlocks B 10 Appendix C Using the D2 DCM with MODBUS INIFOGUCHION sve fates clay sit a eae ae baler Ad C 2 How Does the D2 DCM work with MODBUS C 2 MODBUS Function Code
36. BUS function codes supported by the D2 DCM MODBUS Code DL205 Data Types Available 03 04 Read a value from one or V more registers Write a value into a single V register 1 Write a value into a group V of registers NOTE The maximum MODBUS secondary address supported by the D2 DCM is 60 5A hex MODBUS Data Types You are probably accustomed to seeing data types like X input Y output C control relay V Supported memory data registers 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 which MODBUS data type corresponds to the PLC memory location that you need The following table will help DL205 Memory Type Quantity PLC Range Corresponding Decimal Octal MODBUS Data Type 320 SP540 SP617 56 06 Counter Current Value V V1000 V1177 Input Register V Memory user data V 1024 V2000 V3777 Holding Register V Memory user data V 2 V4000 V4377 Holding Register Non volatile V Memory system V 1 V7620 V7737 Holding Register V7746 7777 Data Communications Module 2nd Edition 2 03 C 4 Using the D2 DCM with MODBUS Determining the MODBUS Address There are typically two ways that most host software packages allow you to specify a PLC memory location These are e By specifying the MODBUS data type and addr
37. CRU set DLA50 Note RTS CTS are looped back internally Phone Jack GND 1 FA UNICON Converter RXD 3 X TXD 4 RTS 5 GND 6 X 0 RS422 Note RTS CTS are looped back internally Termination Resistor Data Communications Module 2nd Edition 2 03 Cable Diagrams Multidrop RS422 PC as Master These diagrams show how to connect a network of D2 DCMs to a personal computer Personal Computer DTE RXD RS232C TXD D lt GND DCD DTR DSR RTS CTS AND FH WD 9 pin DTE Connector FA UNICON Converter Fe ol Note 1 You must connect pin 20 to pin 25 Personal Computer DTE RS232C TXD RXD GND RTS CTS DSR oO O1 BB J ND DCD 20 DTR La 25 pin DTE Connector 2 RTS CTS are looped back internally and do not require external wiring FA UNICON Converter Note 1 You must connect pin 20 to pin 25 2 RTS CTS are looped back internally and do not require external wiring D2 DCM D2 DCM RS422 RS422 7 GND 7 GND m 10 RTS m 10 RTS 11 RTS r 11 RTS H 12 CTS H 12 CTS 13 CTS 13 CTS 14 0UT 14 OUT 15 OUT 15 OUT 16 IN 16 IN 17 IN
38. Era 6 TO E HD TO HD TO HD MA paa oT ma DT MA EHlor 2 Cable problem or Slave is offline EQ amp NK come on OR EQ and HD flash PW g jok Power OK and MA are on pw Dual Dm OK 1 Settings are different gt NK mma EQ and HD come on TO NK Ju EQ 7 TO pao flashes TO Demo MA pa or ME Egor EQ amp HD come on PW g Dok Power OK and MA are on PW ua DOK Pw ok 1 RLL Communications programis gt NK meo EQ and HD come on EQ goes NK eo Dm Era incorrect 8 TO wmo off HD stays on and NK TO HD TONI HD mapa Dior flashes or stays on ME Egor ME Enr 2 Settings are different EQ 8 HD come on THEN EQ goes off HD and NK are on PW g ok Power OK and MA are on PW uma Dm OK 1 Electrical noise S gt NK JEA DT is on but NK flashes on NK EQ 9 TO HD occasion To HD MA uz A DT MAT DT Data Communications Module 2nd Edition 2 03 Verification amp Troubleshooting 1 Check the master PLC source power 2 Replace the D2 DCM 1 Disconnect the master station PLC power remove the D2 DCM and check positions 1 amp 2 on SW3 1 Place the CPU in RUN mode 2 Set the switch to the ON position 8 Make sure the RX or WX instruction is being executed Check the address slot number and amount and type of data used in the RX WX instructions 1 Disconnect the PLC power remove the D2 DCM and check position 3 on SWS 2 Remove master station connecto
39. Once again the switches should be set at the factory for the following type of operation e DirectNET Slave e 9600 Baud e Station Address 1 e Odd Parity e Hex Mode If these settings are acceptable then you can go ahead and install the D2 DCM into the base If not you ll have to change the switch settings There are two small banks of switches located next to the blue rotary switches on the one of the D2 DCM circuit boards These dipswitches are used to select the communications settings The following diagram shows the switch locations and their purpose Switch Positions Protocol 1 2 DirectNET Slave OFF OFF SW3 Network DireciNET Master OFF ON 1 Protocol DireciNET Peer ON OFF 2 MODBUS RTU ON ON COM Timeout Enable 3 COM Timeout Disable Hexadecimal Mode 4 _ ASCII Mode OFF ON SW5 Switch Positions Switch Positi i Baud 1 2 3 me k y 3 7 Baud Rate 300 ON OFF OFF 600 OFF ON OFF 0 OFF OFF OFF 3 1200 eN N OFF 2 ON OFF OFF A 2400 FF OFF N 5 OFF ON OFF NO Parity 4 ODD Parity 4800 ON OFF ON 10 ON ON OFF Set to OFF 5 Self Test 9600 OFF ON ON 20 OFF OFF ON 6 19200 ON ON ON 50 ON OFF ON Delay Time 38400 OFF OFF OFF 100 OFF ON ON oy 7 500 ON ON ON 8 Delay time in milliseconds OFF ON Data Communications Module 2nd Edition 2 03 Setting the Switches Protocol Selection Positions 1 and 2 on SW3 select the D2 DCM protocol and the master or slave settings The D
40. Port 7 GND CA O 10 RTS 4 TXD or 11 RTS 5 RTS DL4 P vig gt lt 6 GND Phone Saak 13 CTS FJ 6P6C 14 OUT 15 OUT 16 IN 17 IN 25 pin Connector Note RTS CTS are looped back internally Data Communications Module 2nd Edition 2 03 Cable Diagrams Point to Point RS422 PC as Master Master Personal Computer DTE RXD RS232C These diagrams show the D2 DCM being used as a slave to a personal computer Since most personal computers come with RS232C communication cards we have shown an FA UNICON RS232 422 Converter being used to convert the signal The personal computer would have to be capable of issuing commands using either DirectNET or MODBUS RTU protocol DL205 DCM FA UNICON RS232 422 Converter FA UNICON Converter TXD GND DCD DTR RTS DSR AON ODO Bb 010 ND CTS 9 pin DTE Connector Personal Computer DTE RS232C RS422 D2 DCM 7 GND 10 RTS 11 RTS 12 CTS 13 CTS 14 0UT 15 OUT Note 1 You must connect pin 20 to pin 25 2 RTS CTS are looped back internally and do not require external wiring FA UNICON Converter TXD RXD GND RTS CTS DSR O O1 BR ND DCD 25 pin DTE Connector 20 DTR RS422 17 N 25 pin Connector D2 DCM
41. action at a time In the example once the RX instruction is executed CO is set When the D2 DCM has finished the communication task the second routine is executed and CO is reset If you re using RLLPLUS you can just put each routine in a separate program stage to ensure proper execution In most all cases RLLPLUS can be a more efficient way to create an automation program The DirectNET manual provides a master slave example with both RLL and RLLPLUS program descriptions Data Communications Module 2nd Edition 2 03 Interlocking Relay noe ae LD ka 17 K201 LD K3 LDA 040600 RX YO Co E SP124 CO Interlocking Relay LD H K201 LD K3 LDA 040400 WX YO D C RLL Communications Programs Multiple Read and This example is showing three slaves In this case the address conversions are very simple Write Interlocks Check the Conversion Hints shown above for a more complex example Slot of E D K260 m Slave Address X10 3 A La CS x1 C SUA Data Communications Module 2nd Edition 2 03 Using the D2 DCM with MODBUS Data Communications Module 2nd Edition 2 03 C 2 Using the D2 DCM with MODBUS Introduction How Does the D2 DCM work with MODBUS The
42. alues in the table 8 3001 3009 2 Convert T10 into decimal 8 3 Add the MODBUS starting address for the mode 3001 For Word Data Types PLC Address Dec Appropriate Mode Address Tener Current Vales 9 128 WO V7 0187 GoD 20007 mur ns Counter Current Values 4 128 v1000 41177 512 639 3001 30001 Input Reg Y Memory user data V 1024 V2000 Y3777 1024 2047 4001 40001 Hold Reg Example 4 C54 Find the MODBUS address for Control Relay PLC Addr Dec Start Address Mode 584 984 Mode C54 C54 44 decimal 1 Find Control Relays in the table 44 3072 1 13117 2 Convert C54 into decimal 44 3 Add the starting address for the range 3072 4 Add the MODBUS address for the mode 1 Gus 7 54 sem 1 Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Introduction There are some applications that require a remote connection to the PLC These remote connections require you to use a modem to communicate between the Personal Computer and the PLC system Although this manual tends to focus on using the D2 DCM in networking applications there are a tremendous number of people who simply use the D2 DCM as an extra communications port The D2 DCM provides additional flexibility in configuration and baud rates compared to the built in port on the CPU so it s a
43. can also be a MODBUSO slave in the RTU or HEX mode The D2 DCM cannot be a MODBUS master station If you re going to use MODBUS make sure your software package supports the DL205 products See Appendix C for more information Communication Timeout Position 3 on SW3 selects the communication timeout For most cases you should leave this switch in the OFF position Communication Timeout Disable 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 timeout disabled and a communication error does occur you must restart communications by sending a retry or an End of Transmission EOT command If you want to know more see the DirectNET manual for details ASCII HEX Mode Position 4 on SW3 selects between ASCII and HEX modes of data representation If you want the fastest communication possible use HEX mode which is the default The difference is in the way the data is represented The same data is twice as long in ASCII format so if there s more data it takes longer to transfer If you have a device on the network that requires ASCII mode then set the switch for ASCII mode otherwise use HEX mode Baud Rate Positions 1 3 on SW5 are used to set the baud rate for the D2 DCM There are eight baud rate selections available ranging from 300bps to 38 4Kbps All stations must have the same baud rate
44. can connect the modem to the D2 DCM also used with the MDM TEL modem You ll need the following parts which can be obtained at most any electronics store Since there seems to be a Radio Shack on every corner we ve included their part numbers e D3 DSCBL 2 Automationdirect DL305 Programming Cable e 26 1496 Radio Shack DB25 Null Modem Adapter e 26 1388 Radio Shack DB25 Male to DB9 Male Adapter NRS Md 25to25P 5t025Pn MS Null Modem Adapter 9 to 25 Pin EE Y q Adapter 2 9 Pin Adapter Connecting a Modem Use the cable diagram shown here to connect RJ12 to 25 pin Cable to the DL240 a modem to the bottom port of a DL240 CPU P DL240 Modem RS232C o 4 TXD 2 TXD 3 RXD 3 RXD 1 GND 7 GND 2 5V 4 RTS 4 5 RTS 5 CTS _ 6 GND 6 DSR RJ12 Connector 8 DCD 20 DTR 4 25 pin Connector wa Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Using the MDM TEL RS232 Connections The MDM TEL Setup Wizard The MDM TEL industrial modem which is fully supported by AutomationDirect is a sensible choice for your application The MDM TEL User Manual which can be downloaded from the AutomationDirect website will provide more detailed information Use a straight through or equivalent serial cable to connect the modem s RS232 female port DB9 cable male end to the RS232 male port on a PC
45. ct the same device to the D2 DCM These devices can be a variety of things such as operator interfaces or personal computers Since the D2 DCM does not require any programming you can simply set the D2 DCM communication parameters connect the appropriate RS232C or RS422 cables and start transferring data Quickly add extra communication ports Number 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 capable of issuing the MODBUS commands to read or write the appropriate data Appendix C provides additional information on using the D2 DCM as a MODBUS slave interface This manual does not describe the MODBUSO protocol We recommend that you reference the Gould MODBUSO Protocol Reference Guide P1 MBUS 300 Rev B for details on the protocol There may be more recent editions of this manual so check with your MODBUS supplier before ordering the documentation MODBUS Master a Network EE As a slave station Network Slave H responding to network re Slave quests with D2 DCM Data Communications Module 2nd Edition 2 03 Specifications Environmental Specifications Introduction Operating Temperature 32 F to 131 F 0 to 55 C Storage Temperature
46. d but it s really quite simple Check out our catalog for more information on our powerful DSData Server Master Slave DL205 DCM Personal Computer D2 DCM Personal Computer D2 DCM RS232C RS232C 2 RXD 2 TXD 2 TXD 2 TXD 3 TXD 3 RXD 3 RXD 3 RXD 5 GND 7 GND 7 GND 7 GND 1 DCD 4 RTS 4 RTS 4 RTS 4 DTR 5 CTS 5 CTS 5 CTS 6 DSR 6 DSR 7 RTS 8 DCD 8 CTS 20 DTR 9 pin Connector 25 pin Connector 25 pin DTE 25 pin Connector Connector Data Communications Module 2nd Edition 2 03 Cable Diagrams Point to Point These diagrams show the D2 DCM being used as the network master The cable diagram is RS422 the same when the D2 DCM is being used as a slave for those connections that could have D2 DCM as Master the master slave roles reversed This is true for the D2 DCM to D4 DCM connection e D2 DCM to DL405 CPU connection when used with a D4 450 Master Possible Slaves e O g DL405 CPU Bottom Port o a gt DL405 B DCM or DL205 o DCM Connect to any of these devices err El DL305 with oe RS422 DCU D2 DCM ae Due RS422
47. ddresses from 0 only used q for the master station to hexadecimal 5A The addresses do not have to be consecutive but each station must have a unique address The top rotary switch is used to set the most significant digit of the HEX address The bottom switch is used to set the least significant digit of the HEX address For example to set a D2 DCM address of HEX 10 decimal 16 set the top rotary switch to 1 and the bottom rotary switch to 0 If you re using the D2 DCM as a master make sure you select address 0 Even though the D2 DCM address is set in hexadecimal its 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 DirectSOFT32 Programming Software and our DSData Server all use the decimal equivalent of the HEX address It s easy to convert from hex to decimal Example Switches set for 3C HEX Format 0123456789 ABC D EF TIN LIT PTS x4 10 1112 13 14 15 Mey HEX 3C 3x16 48 C 12 60 decimal Warning The D2 DCM address switch settings are only read at power up If you want to change the address you must remove the module from the base to access the switches Your system can be damaged if you install or remove system components before wt gt TENN
48. ditional information on setting up your modem Modem Setup The first series of examples were performed in Windows 2000 and will illustrate how to configure the modem connected to your PC The examples may differ depending on your Windows operating system 1 Install the modem if not already installed Refer to the modem s documentation for installation information If the modem is to be used for other devices you will need to install it a second time 2 Once you have successfully installed the modem you will need to edit its properties In the Windows Start field select Settings gt Control Panel olx File Edit View Favorites Tools Help Bath gt al search Folders HGhistory Wis Gy x A Er Address a Control Panel Go in umi i Ha f gt Accessibilty Add Remove Add Remove Administrative AvantGo Control Panel Options Hardware Programs Tools Connect Phone and Modem Options EA SH GT Configures your telephone dialing rules and modem properties Date Time Display Fax Find Fast Folder Options Windows Update Windows 2000 Support Pa amp A Gaming Internet Keyboard Options Options 2 amp au Network and Sa Power Options Printers Dial up Co RightF Ax Scanners and Scheduled Sounds and Client Cameras Tasks Multimedia Configures your telephone dialing rules and modem properties la My Computer Data Communications Module 2nd Edition 2 03 Us
49. dress Address Octal 484 Mode 584 984 Mode Data Type Global Inputs GX GX0 GX1746 1001 1999 10001 10999 GX1747 GX3777 11000 12048 Inputs X X0 X1777 A 12049 13072 Special Relays SP SP0 SP777 RRA 13073 13584 Global Outputs GY Outputs Y Stage Status Bits S S0 S1777 Data Communications Module 2nd Edition 2 03 C 8 Using the D2 DCM with MODBUS Word Data Types Registers PLC Range Input Holding Input Holding Octal 484 Mode 584 984 Mode V Memory Timers VO V377 3001 4001 30001 40001 V Memory Counters V1000 V1177 3513 4513 30513 40513 V Memory Data Words V1200 V1377 3641 4641 30641 40641 V1400 V1746 3769 4769 30769 40769 V1747 V1777 a 31000 41000 V2000 V7377 ee 41025 V10000 V17777 ns 44097 MODBUS Function 04 New Feature The DL 250 DL 350 and DL450 will support function 04 read input register Address 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 LD The Maximum constant possible is 4128 This K101 is due to the 128 maximum number of Bytes that the RX WX instruction can allow The LD Ser value of 4 in the most significant position of the K4128 word will cause the RX to use function 04 30001 range LDA 04000 RX YO 1 Refer to your PLC user manual for t
50. e 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 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 a 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 nie tout int r t dans les autres marques et d signations Copyright 2001 Automationdirect com Incorporated Tous droits r serv s Nulle partie de c
51. e 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 Incorporated Automationdirect com conserve les droits exclusifs l gard de tous les renseignements contenus dans le pr sent document Manual Revisions NS If you contact us in reference to this manual please remember to include the revision number Title DL205 Data Communications Module Manual Number D2 DCM M 5 96 Original Issue Original Rev A 5 98 Downsize to spiral Rev A Minor changes 2nd Edition 2 03 Upgrade with DLO6 and DirectSOFT32 added MDM TEL information Table of Contents Introduction OVEIVIGW ce is AAA RE AAA AAA The Purpose of this Manual Supplemental Manuals Who Should Read this Manual Technical Support es eee ends nn nr date Conventions Used Key Topics for Each Chapter D2 DCM Hardware asias AA caves SU a a aile Applications caracas ar As a DirectNET Interface As an Extra Communication Port As a MODBUS Network Interface SPecifICA ON mara AAA ARA RARA Environmental Specifications Operating Specifications Using your D2 DCM Five Steps
52. ectors 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 electrical noise Electrical noise can cause unpredictable operation that may result in a risk of personal injury or damage to equipment Use the cable specifications described earlier in this manual to select a cable suitable for actual applications Build A Test Cable In 30 Seconds 1 Attach Universal Cable Adapter to the D2 DCM 2 Attach another Universal Cable Adapter to the Device which will connect to the D2 DCM 3 Attach the Universal Cable Universal 9 pin D sub connector Universal 25 pin D sub connector Cable Kit Contains one 1 each of RJ12 to RJ12 non shielded cable S24 RJ12 to RJ11 Phone jack to 9 pin Phone jack to 9 pin Phone jack to 15 pin Universal 25 pin non shielded cable female D sub connector D sub connector Data Communications Module 2nd Edition 2 03 Setting the Switches Setting the D2 DCM switches The D2 DCM has two banks of dipswitches that allow you to select the communication parameters necessary for your application In quite a few cases you may not have to change the switches at all The D2 DCM comes set from the factory for e DirectNET Slave operation e 9600 Baud e Station Address 1 e Odd Parity e Hex Mode
53. es 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 nie toute garanti
54. ess e By specifying a MODBUS address only If the Host Software Many host software packages allow you to specify the MODBUS data type and the MODBUS Requires the Data address that corresponds to the PLC memory location This is the easiest method but not all Type and Address packages allow you to do it this way The various MODBUS data types were presented earlier but they have been included again in the following table 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 e Discrete X SP Y CR S T contacts C contacts e Word V Timer current value Counter current value In either case you 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 Dec Octal Address Range Data Type For Discrete Data Types Convert PLC Addr to Dec Start of Range Data Type Inputs X XO X477 2048 2367 Input Special Relays SP SPO SP137 3072 3167 Input SP540 SP617 3280 3471 Timer Contacts T Coil For Word Data Types Convert PLC Addr to Dec Data Type Counter Gurent Values V gt V Memory user data V 256 V4000 V4377 2048 2303 Holding Register non volatile V Memory system V 106 V7620 V7737 3984 4063 Holding Register V7746 V7777
55. etwork interface to a MODBUS network using the RTU protocol Data Communications Module 2nd Edition 2 03 Applications As a DireciNET Interface Introduction 5 The D2 DCM can be used as a network interface for applications that require data to be shared between PLCs or between PLCs and an intelligent device such as a host computer The D2 DCM can be configured as either a master or slave station and allows you to upload or download virtually any type of system data including Timer Counter data I O information and V memory information DirectNET Masters Issue requests to slave stations ei Response el Si PC or D2 DCM s8 master can communicate with a DirectNET Slaves S a A C LI j Request Using a D2 DCM as a Network Master The DL205 D2 DCM can be used with a D2 240 250 1 260 CPU to serve as a network master Your CPU must have firmware V1 8 or later It cannot be used with a DL230 CPU A master is the network station that initiates requests for data from other stations on the network You simply use special RLL instructions RX and WX inside of your RLL program to initiate the 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 another network station DirectNET Slaves Slaves respond to the master s request
56. f cables may work for your application we recommend you Cable Specifications use a cable that is constructed to offer a high degree of noise immunity A cable constructed equivalent to Belden 9855 is sufficient The following specifications are to be used as a guideline Structure Shielded twisted pair RS232C only uses two wires and a ground Conductor size 24 AWG or larger Insulation ansias Polyethylene Shield uses sssrenasenpeesane Copper braid or aluminum foil Impedance 1002 E 1MHz GApacitaneS s cosita vin 60pf meter or less Consideration 5 Your company may have guidelines for cable installation If so you must check those Installation before you begin the installation Here are some general things to consider Guidelines e Don t run cable next to larger motors high current switches or transformers This may cause noise problems e 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 e Consider redundant cabling if the application data is critical This allows you to quickly reconnect all stations while the primary cable is being repaired Cable Shield Grounding It is important to ground the cable shield to minimize the possibility of noise The preferred method is to connect one end of the cable shield to the connector housing If
57. ftware Some host software packages do not allow you to specify the MODBUS data type and Requires an Address address Instead you specify an address only This method requires another step to ONLY determine the address but it is not difficult Basically MODBUS also separates the data types by address ranges as well This means an address alone can actually describe the type of data and location This is often referred to as adding the offset One important thing to remember here is that two different addressing modes may be available in your host software package These are e 484 Mode e 584 984 Mode We recommend that you use the 584 984 addressing mode if the host software allows you to choose This is because the 584 984 mode allows access to a higher number of memory locations within each data type If your software only supports 484 mode then there may be some PLC memory 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 e Discrete X GX SP Y CR S T contacts C contacts e Word V Timer current value Counter current value In either case you basically convert the PLC octal address to decimal and add the appropriate MODBUS starting address as required The following tables show the exact range used for each group of data Discrete Data Types Memory Type PLC Range Ad
58. hanging data with a DL305 system it is important to understand how to reference the DL305 memory locations For example the DL305 I O points are accessed with the V data type or the GY data type even though the DL305 does not actually have those data types present in the CPU The table on the next page provides a detailed cross reference Slot 1 Slot 3 Slot 4 a Q o a 2 D ef Master PLC ee ee YO Y17 Y20 Y37 Slave Address 2 Data Communications Module 2nd Edition 2 03 B 8 RLL Communications Programs D3 330 D3 340 CPUs To get TMR CNT Current Values R600 TMR CNT Status Bits CT600 CT601 Data Registers R401 R4002 R403 R4022 GY600 GY601 R677 GY677 CT677 R777 R7762 To get 1 0 Points IO 157 GY1571 To get TMR CNT Current Values R600 R601 Control Relays CR160 CR161 Shift Registers SR400 SR401 GY160 GY161 CR377 GY377 D3 330P CPUs SR577 TMR CNT Status Bits CT600 CT601 Data Registers R401 R4002 R403 R4022 GY600 GY601 i O R677 CT677 GY677 R777 R7762 To get I O Points IO 000 IO 001 IO 157 GY157 CR277 To get Stage Status Bits roa E
59. hat you will use Notice that the D2 DCM has two sets of RS422 pins These pins are internally connected and can make it easier to wire multidrop connections D2 DCM Pinouts D2 240 Bottom Port HL Dara RS232C RS422 on NET Dix ha ME D en A Nk Clea a Ou O 14 RS422 TXD DL240 A MI Etro o 20 15 RS422 TXD pu ru NME Er RS232 RXD 9 en Ie RE D2 DCM RS232 RTS se 40 A 017 O 17 RS422 RXD O ce RS232 CTS se 50 Ez E O18 O 18 KO 5V 50 O19 5V 00 o ma As ov 70 ov 70 O O20 O 20 oQ 8 Da RS422 RTS o x PORT oe 90 RS422 RTS se oi O 2 RS422RTS 218 09 uP ee i e 2o RS422 TXD ront So wo 07 pour aros we 024 18422 AXD 68 10 93 dies ore 10 2 75422 AXD So KT _ poo Port 2 Pinouts 3 _ 90 RS422 pins are internally connected Pin Signal Definition L 90 La KL y 0 y Phone Jack L 3 RS232C DTE RXD Connecter 4 RS232C TXD 5 Request to Send 6 ov NOTE The DL205 CPU ports only support RS232C signal levels If you are going to have more than one slave station you will have to use RS422 and a FA UNICON RS232 to RS422 converter for each slave station See the cable diagrams shown in Appendix A for detailed diagrams Data Communications Module 2nd Edition 2 03 Building the Cable Consideration 4 Although many types o
60. he correct memory mapping size of your PLC Some of the addresses shown above might not pertain to your particular CPU 2 For an automated MODBUS Koyo address conversion utility download the file modbus_conversion xls from the www automationdirect com website Data Communications Module 2nd Edition 2 03 C 9 Using the D2 DCM with MODBUS Example 1 V2100 Find the MODBUS address for User V PLC Address Dec Mode Address 584 984 Mode acato V2100 V2100 1088 decimal 1 Find V memory in the table 1088 40001 41089 2 Convert V2100 into decimal 1088 3 Add the MODBUS starting address for the mode 40001 For Word Data Types PLC Address Dec Appropriate Mode Address Timer Current Values 4 YO 177 0 127 3001 30001 Input Reg Counter Current Values 4 128 v1000 W117 512 639 3001 N 30001 Input Reg Y Memory user data 4 1024 V2000 3777 1024 2047 4001 40001 Hold Reg Example 2 Y20 Find the MODBUS address for output Y20 PLC Addr Dec Start Address Mode 584 984 Mode 1 Find Y outputs in the table Y20 16 decimal 2 Convert Y20 into decimal 16 16 2048 1 3 Add the starting address for the range 2048 4 Add the MODBUS address for the mode 1 Spas EE vo vere fanny ar LEE fear Example 3 T10 Find the MODBUS address to obtain the PLC Address Dec Mode Address Current Value current value from Timer T10 TA10 8 decimal 484 Mode i i E 1 Find Timer Current V
61. he standard for DCE This results in the slight confusion over the terminology used to label the TXD and RXD pins 9 to 25 Pin Cable 25 to 25 Pin Cable PC Modem PC Modem CC rRe RS232C ERAD 2 TXO 2 TXD 2 TXD 3 TXD gt lt 3 RXD AXD s AD 5 GND 7 GND 7 GND 7 GND 1 060 8 DCD 4 RTS 4 RTS 4 DTR 20 DTR 5 CTS 5 CTS 6 DSR 6 DSR 6 DSR 6 DSR 7 RTS 4 RTS 8 DCD 8 DCD 8 CTS 5 CTS 20 DTR 20 DTR 9 RI 22 RI O 9 pin Connector 25 pin Connector 25 pin Connector 25 pin Connector Data Communications Module 2nd Edition 2 03 D 7 Using the D2 DCM with Modems Connecting a Modem The PLC is on the other end of the remote communication link and will typically have a to the D2 DCM D2 DCM as the communications interface Just as you needed a cable to connect your personal computer to the modem you ll also need a cable between the PLC system D2 DCM and the receiving modem Since the D2 DCM and the modem have 25 pin connectors use the straight through 25 pin to 25 pin cable diagram shown here 25 pin to 25 pin Cable 25 pin to 25 pin Cable Phone Modem D2 DCM Radio Modem D2 DCM RS232C RS232C 2 TXD 2 TXD 3 RXD 3 RXD 7 GND 7 GND 4 RTS T 4 RTS 5 CTS 5 CTS 6 DSR 6 DSR 8 000 8 20 20 DTR 20 DTR VA i a Tip You can use our D3 DSCBL 2 with a null modem adapter to quickly build a cable which
62. ia tad pened ee a ee are D 6 Connecting a Modem to your Personal Computer D 6 Connecting a Modem to the D2 DCM occcccccccccc teens D 7 Connecting a Modem to the DL240 D 7 Table of Contents RU Using the MOM TEL E25 25 6 vee ts Pa a iS Ud es ee eed D 8 RS232 COMMECUONG eked e ae hit Cote wha Celia nn ce ced nd Giclee tenon ODA D 8 The MDM TEL Setup Wizard ssi eave dots sen e e in eer dese date D 8 D2 DGM aS Master 240220000 at di is vee tee ive Bee ee ede eee Ye D 9 If You are Using a D2 DCM as Master D 9 Using DIfeCISOPT 32 oir o Aves A weaves Peer fe D 10 Creating a Modenilink aca abi s eat D 10 Modem SUN arar A ee D 10 Gonfiguring ne LINK sta cess Cate es hulle Ges bic reirse iras D 14 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 Verification and Troubleshooting Data Communications Module 2nd Edition 2 03 DEJO Introduction Overview The Purpose of this Manual Supplemental Manuals Who Should Read this Manual Technical Support This manual is designed to allow you to setup and install your DL205 Data Communications Module D2 DCM This is the only manual you will need if you are using the D2 DCM as an extra general
63. ign installation or operation Our products are not fault tolerant and are not designed manufactured or intended for use or resale as on line control equipment in hazardous environments 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 which the failure of the product could lead directly to death personal injury or severe physical or environmental damage High Risk Activities Automationdirect com specifically disclaims any expressed or implied warranty of fitness for High Risk Activities For additional warranty and safety information see the Terms and Conditions section of our Desk Reference If you have any questions concerning the installation or operation of this equipment or if you need additional information please call us at 770 844 4200 This publication is based on information that was available at the time it was printed At Automationdirect com we constantly strive to improve our products and services so we reserve the right to make changes to the products and or publications at any time without notice and without any obligation This publication may also discuss features that may not be available in certain revisions of the product Trademarks This publication may contain references to products produced and or offered by other companies The product and company names ma
64. ing the D2 DCM with Modems 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 bottom Phone And Modem Options 3 2x1 Dialing Rules Modems Advanced pS The following modems are installed Modem AttachedTo 2 Standard 2880 00 bps Modem COM2 Add Remove Properties corea 5 Choose 9600 as the Maximum Port Speed Standard 28800 bps Modem Properties alx General Diagnostics Advanced Port COM2 Speaker volume Lov High Dial Control weit for dial tone before dieting Cancel Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems 6 Select the Advanced tab and click on Change Default Preferences Standard 28800 bps Modem Properties 2 x General Diagnostics Advanced Extra Settings Extra initialization commands EEE Change Default Preferences Cancel 7 Make Port speed 9600 and choose None for Flow control Standard 28800 bps Modem Default Preferences aiid JP General Advanced m Call preferences F Disconnect a callifidle for more than mins Cancel the call if not connected within secs m Data Connection Preferences Port speed Data Protocol y Compression E Elow control None y Cancel Data Communications
65. l This input to the PLC is used to initiate RX or WX commands from the RLL program If you do not have either a sourcing DC output or a sinking DC input you will need to add a D2 08CDR module to your system in order to control the signals to from the modem Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Using DirectSOFT32 Creating a Modem DirectSOFT32 uses Telephony Application Programming Interface TAPI for Link modem configurations The TAPI protocol allows applications to control modems or other telephony devices for operations such as dialing answering or disconnecting a connection With the TAPI protocol all of the modem support is centralized by the Windows operating system By using the TAPI interface you will use the Windows modem setup utilities to configure the modem Configuring the modem in this matter should simplify the setup process and allow you to select the most recent drivers for your modem If there is an existing modem connected to your PC for Internet or fax use the modem setup will have to be changed Some 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 Windows will change the name by adding a number to the end i e modemname 2 each time you add the same modem to your PC Refer to your PC and or modems installation manual for ad
66. n Protocol Modem to use Devices Standard 28800 bps Modern Properties gt Where you re calling 1 Ee United Sides otAmenca Ji Area Cade 770 I Use county and area codes Phone No 9 18001111111 124 r Your location My Location Properties Data Communications Module 2nd Edition 2 03 D 6 Using the D2 DCM with Modems 5 Click the Protocol tab to display the communication protocol dialog box This dialog allows you to further define the communication parameters xj nat o 6 Ul PLC Port Protocol Pisces na sl Scusnced Series Adds 1 Imaan She Date Tmas 000 nc Beties 5 3 e Select the communication protocol to use Refer to the chart in Appendix A for a breakdown of the various CPUs and which protocols are supported on which ports e lfthe PLC has been given a node Address other than 1 enter the new address now e You can adjust the time outs and retries on this dialog however the default values should work for you 6 Click the Accept button to save this link configuration The following dialog will appear If you click Yes DirectSOFT32 will dial the modem and attempt to verify that it can communicate with the PLC connected to the other modem using the parameters defined in the link DirectSOFT32 will hang up once the connection is made If you click No the link configuration will simply be saved to disk Attention Link
67. nfiguration and check the cable making sure it is wired correctly 2 Dipswitch settings Make sure you ve set 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 software can use the DirectNET Hostlink CCM2 or MODBUS RTU protocol 4 Communications program Check the communications program for errors Consult the DirectNET Manual or the manuals that came with your host computer software or operator interface for details 3 NOTE If you need more in depth troubleshooting see the chart on the next page It provides several different indicator patterns that may help identify your exact problem Data Communications Module 2nd Edition 2 03 Verification amp Troubleshooting Troubleshooting Chart The following chart identifies the indicator status possible cause and corrective off on ET action for a wide variety of commonly found problems
68. odule to slots in base and slide in Push the retaining clips in to secure the module to the DL205 base Connect the Cables Make sure you have all the cables connected and that all the network devices have the same communication parameters baud rate parity etc If you re using The PLC master station must contain an RLL program that has the appropriate RX or DirectNET WX instructions necessary to initiate the communications See Appendix B for details on the RX and WxX instructions The master station CPU must be in Run mode in order to execute the communications program The slave station CPUs do not absolutely have to be in Run mode because the D2 DCM will still transfer the data Whether you put the slave stations in Run mode depends on your application requirements Data Communications Module 2nd Edition 2 03 22 Install the D2 DCM Starting the Network If you re using an Connect the cables and follow the procedures outlined in the documentation that Operator Interface or came with your host computer software or operator interface You ll have to execute Host Computer 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 If you re using Connect the cables and follow the procedures outlined in your MODBUS Host MODBUSO software package to start the communications See Appendix C for more
69. on and provide some helpful hints to make your programs simple and easy to follow Data Communications Module 2nd Edition 2 03 RLL Communications Programs Identifying the master and slave locations amp addresses The first Load LD instruction identifies the slot location of the D2 DCM master and the address of the slave station Remember the slot numbers start at 0 The constant K portion of the instruction actually contains two pieces bytes of information The first two digits specify the D2 DCM master location and the second two digits specify the slave station address It is necessary 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 Conversion Hints Valid Slot Range 0 7 Valid Slave Address 1 90 Example Master in Slot 2 Slave Address 3C HEX 60 decimal Convert the HEX address to decimal 0123456789ABCDEF HEX 0 1 23 4 5 6 7 8 9 10 11 12131415 DEC HEX 3C 3x16 48 C 12 60 decimal NOTE The LD instruction K value is entered in decimal but the D2 DCM master and slave addresses are in HEX The HEX addresses must be converted to their decimal equivalent for this instruction See the conversion hints above This example is showing three slaves In this case the address conversions are simple Check the Conversion Hints shown above for a m
70. or other Data Terminal Equipment DTE device DB9 cable female end The diagram below details the pin out of a straight through serial communications cable suitable for connecting a DCE device MDM TEL to a DTE device PC PLC or other device A sutable DB9 RS 232 cable is provided with the MDM TEL MODEM RS232 Connections Cable for MODEM to IBM COM Port IBM COM Port MODEM RS232 Port Female DB9 Male DB9 PCD DOD 4 D y PXD RXD o 35 2 TO vg DIRA miea 5 gt GND cite 5 6 gt DSR DSR lt 6 7 gt RTS RTS lt 7 8 CTS CTS vg yg yA Ag MODEM CABLE WIRING Standard DB9 Cable To simplify the connection between the D2 DCM and the MDM TEL modem purchase a D3 DSCBL 2 cable available from AutomationDirect The null modem adapter supplied with the modem is required when using this cable NOTE A suitable serial cable and a null modem adapter are provided with the MDM TEL The provided null modem adapter is not required for normal serial communications between the MDM TEL and a PC A modem setup utility is provided on the MDM TEL CD to help you quickly configure the modem In most applications no knowledge of modem AT commands or S register contents is necessary Pre configured profiles for common situations are provided for convenience Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems D2 DCM as Master If You are Using a If you are using the D2 DCM a
71. ore complex example Slot of D2 DCM da wa Slave Address Data Communications Module 2nd Edition 2 03 oY LA EF X10 3 9 A y SR CS X1 C gt A RLL Communications Programs The second LD instruction indicates the amount of data that needs to be transferred in bytes 128 maximum You have to specify the amount of data in complete bytes For example YO Y27 would be three bytes of data There are 24 bits for the output range of YO Y27 these I O addresses are in octal From the charts below we see that we can obtain 8 bits per byte for this type of memory Therefore 24 bits yields 3 bytes of 8 bits each The charts below can be very helpful Notice that the different PLC families do not always use the same types of memory or the same byte boundaries For example the DL305 does not use a separate data type for input and output points Specifying the amount of data to transfer LD Example K201 LD Number of Bytes in decimal 3 bytes of data to be transferred The number of bytes specified also depends on the type of data you want to obtain For example the DL405 Input points can be accessed by V memory locations or as X input locations However if you only want XO X27 you ll have to use the X input data type because the V memory locations can only be accessed
72. ouple of things that you may have to take into Slaves consideration If you are using a radio modem connected to V7632 the bottom port of a DL240 you will probably have to set a delay time for the CPU port You MSB LSB can do this by loading a BCD value into X X X X V7632 This is a special V memory location which defines the baud rate and or time delay Delay Codes Baud Rate Codes for the bottom port It is recommended that 00 No delay 00 300 baud you do this on the first scan within your ladder 01 2ms delay 01 1200 baud program The following diagram provides a 02 5ms delay 02 9600 baud table of the settings and an example of some 03 10ms delay 03 19200 baud simple setup logic that could be included in 04 20ms dela your RLL program A 05 50ms delay 06 100ms delay 07 500ms delay Example First Scan Only Load Delay Time of 5ms amp Baud Rate of 19200 for Bottom Port V7632 Delay Time Baud Rate Es Sedans bad CLEO 7654321 EA T 00 No delay 00 300 baud 02 5ms delay 02 9600 baud CCCECCEC EREREENE 02 10ms delay 03 19200 baud 0 2 0 3 04 20ms delay 05 50ms delay 100ms delay Setup Rung SPO Use the LD Load instruction to load the BCD codes for LD each parameter into the accumlator The number 0203 is 1 203 just the code used for our particular example which is a 5ms delay 19 2K baud OUT Place the value in memory location V7632 V7632
73. purpose communication port for your DL205 PLC system If you plan on using the D2 DCM as a network master or slave for a DirectNET network this manual covers the basic steps for setting up the D2 DCM and the RX WX instructions needed in your RLL program If you plan on using a personal computer as the network master it may be helpful to read the DirectNET manual first In either case the DirectNET manual can be useful because it provides detailed descriptions of network configurations various cable connections etc Depending on which products you have purchased there may be other manuals that are necessary or helpful for your application These are some suggested manuals User Manuals e DirectNET Network Guide part number DA DNET M e DirectSoft32 Programming Software part number 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 HMI or PC Control software or to an Operator Interface panel you will need to refer to the documentation for that product If you need an additional communications port for your DL205 PLC and you understand the basics of installing and programming PLCs this is the right manual for you This manual gives you the information you need to set up an active port on the D2 DCM module We strive to make our manuals the best in the industry and rely on your feedback in
74. r ensure that RTS amp CTS are connected according to the cable diagram 1 Check the address slot number and amount and type of data used in the RX WX instructions 2 Make sure baud rate parity and mode HEX ASCII match between the master and slave 3 Verify that the cable is wired properly 1 Make sure baud rate parity and mode HEX ASCII match between the master and slave 2 Verify that the cable is wired properly Also make sure slave is online 1 Make sure baud rate parity and mode HEX ASCII match between the master and slave 1 Check the amount and type of data being transferred 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 has good earth grounds Only one end of the cable shield must be grounded 2 If you re using RS232C try RS422 EEEE Switch Settings Network 1 Protocol Switch Positions Protocol 1 2 DirectNET Slave OFF OFF DirectNET Master OFF ON DirectNET Peer ON OFF MODBUS RTU ON ON 3 COM Timeout Disable SW3 k m COM Timeout Enable Hexadecimal Mode 4 ASCII Mode OFF ON NO Parity Set to OFF SW5 1 2 3 4 ODD Parity 5 Self Test 6 Delay Time Baud Rate Switch Positions Baud 1 2 3 300 ON OFF OFF 600 OFF ON OFF
75. rk in Slot O If you re using a D2 DCM as the network interface in a PLC master station remember to make a note of the slot location You will have to refer to this address at some point 8 NOTE The D2 DCM can not be mounted in a base that does not contain a D2 240 250 1 260 CPU Also the D2 DCM requires 300mA of 5V base power Make sure you will not exceed the available base power budget by installing the D2 DCM See the DL205 User Manual for complete details on power budget calculations WARNING Your system can be damaged if you install or remove system components before disconnecting the system power To minimize the risk of equipment damage electrical shock or personal injury always disconnect the system power before installing or removing any system component wt OLD TERR 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 seated in the backplane connector Once the module is inserted into the base push in the retaining clips located at the top and bottom of the module to firmly secure the module to the base A oo FA 0000 0000 0000 0000 Y nal On Align m
76. s Supported C 3 MODBUS Data Types Supported C 3 Determining the MODBUS Address C 4 If the Host Software Requires the Data Type and Address C 4 Example 12100 bas bro ake tor ta Sen OS Dt TIC URL C 6 Example 2 X20 SSSR A der ta le A inne Se ec der D men a C 6 Example 3 T10 Current Value 24524 sas dues bande Sheet Re RE RIRES ER C 6 Example 4 C54 42 rame Seed ee elo deniers els et een logis C 6 If the Host Software Requires an Address ONLY C 7 Example 1 V2100 584 984 Mode 3245000 ei nue bee OS BEL eR ee C 9 Example 2 Y20 584 984 Modes Srita O A a C 9 Example 3 T10 Current Value 484 Mode C 9 Example 4 C54 584 984 Mode C 9 Appendix D Using the D2 DCM with Modems Li Lee 10 Te 1 01 RER IAE A A A D 2 System Components saiia E A A A ald A NA ST NE DN D 2 Possible Configurations 27 45 1066 2 SoS TRE IRON Dre ENS EE ce tee DR ge Race D 3 Choosing a Modem 2 e tt tal io recae D 3 Set the D2 DCM Switches 2 0 on aaa alii D 4 Baud Rate amp Parita A Bod A la D 4 Dela TIMO queria dad a AN E n D 4 Delay Time Considerations for Networks with DL240 Slaves D 5 Choose the Proper Gables aio cams ost
77. s a master connected directly to a modem then you must be D2 DCM as Master using one of two types of modems In either case there are no special procedures that are required e Leased line Modem If you have a leased line modem it tries to establish communications with the remote modem as soon as the power is turned on The carrier stays active as long as the power is on That s why they call them dedicated lines After they are connected 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 automatically causes the D2 DCM s Request to Send line to go high The modem responds with a Clear to Send and the communications begins e 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 automatically causes the D2 DCM s Request to Send line to go high The modem responds with a Clear to Send and the communications begins The radio modem broadcasts the request and hopefully the remote station will receive it and respond accordingly e MDM TEL If you have a MDM TEL modem you can have the modem dial a preconfigured phone number by applying 24VDC to the From PLC terminal on the modem When the modem connects to another modem and establishes communications the modem will then apply 24VDC to the to PLC termina
78. sist of 1 start bit 8 data bits 1 parity bit and 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 to the same baud rate Delay Time If you re using a radio modem you may have to set a delay time for the communications This time is necessary to allow time for the radio to key up before the data is transmitted You must match the settings required by your modem E MN SW5 Switch Positions dq Baud 1 2 3 2 Baud Rate 300 ON OFF OFF h 600 OFF ON OFF 3g 1 9600shown 4500 ON ON OFF A 2400 OFF OFF ON E NO Parity 4 4800 ON OFF ON p Set to OFF 5 9600 OFF ON ON 6 19200 ON ON ON L LJ Switch Positions Delay Time 7 90400 OFF OEP ORF Time __6 7 8 see modem 8 O OFF OFF OFF Manual 2 ON OFF OFF OFF ON 5 OFF ON OFF 10 ON ON OFF 20 OFF OFF ON 50 ON OFF ON 100 OFF ON ON 500 ON ON ON Delay time in milliseconds Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Delay Time A couple of scenarios have been mentioned where you may be using a D2 DCM connected Considerations for to a modem as the master station and a DL240 CPU connected to a modem as the slave Networks with DL240 station If you have such a situation there are a c
79. ster slave network the master station must initiate requests for network data transfers If you re using a PLC as the master station you use simple RLL instructions to initiate the requests Since the D2 DCM network interface does not contain a program you have to use the PLC to issue the commands to tell the D2 DCM where to read or write data The D2 DCM gets information from the PLC and then converts the information into the appropriate DirectNET commands The RLL instructions use or identify the following items 1 2 3 4 5 6 Uses the special relays assigned to the slot to control the communications Slot location of the D2 DCM master and the slave station address LD instruction Amount of data in bytes decimal you want to transfer LD instruction Area of memory to be used by the master LDA instruction see the DL205 User Manual for a detailed memory map Area of memory to be used by the slave and whether it is a read or write operation RX or WX instruction Interlocks for communication timing and multiple RX and WX routines This example reads 3 bytes of data from Slave Address 1 starting at YO into the Master PLC starting at V40600 Control Relays Example RLL Program SP125 Communication Error SP124 Communication Not Busy CPU Slot 0 Slot 1 Slot 2 Slot 3 Slot 4 m i IEE Master PLC 0 5a BS em 27 27 Set 150 a
80. tasks with PC based software such as DirectSOFT32 or a SCADA system In this case the personal computer is the master and the PLC system is the remote slave station D2 DCM Master In other situations you may be using a D2 DCM as the remote communications master instead of a personal computer If you are considering this you must have one of the following situations e You have a Leased line You can have a leased dedicated phone line if modems are used A dedicated line is necessary because the D2 DCM cannot issue the dial up command s so the carrier must be active at all times e You have a Radio Link You also have the option of using radio modems This is useful when it is not feasible to have hard wired communications cabling between the remote stations e You have a MDM TEL It has the capability of on contact initiated dialing In either case the cabling and setup requirements share many similarities which are covered later in this Appendix PC as Master D2 DCM as D2 DCM as Master Sa Choosing a Modem With today s prices it is possible to buy a high quality modem for a reasonable price It is recommended that you purchase a modem not because it is inexpensive but because it has a good reputation This will save you money and time over the long run It is also suggested that you spend a few extra dollars to get an external modem if possible The internal versions typically do not have sta
81. the table Timer Current Values 45 YO 177 0 127 Nil Input Register Counter Current Values 4 41000 1177 512 639 Ninput Register Y Memory user data 9 1024 2000 Y3777 1024 2047 Holding Register gt Find the MODBUS address for output Y20 PLC Addr Dec Start Addr Data Type 1 Find Y outputs in the table Y20 16 decimal 2 Convert Y20 into decimal 16 16 2049 Coil 3 Add the starting address for the range 2049 4 Use the MODBUS data type from the table omen E w e EA CU ax Control Relays CR 256 O C377 3072 Find the MODBUS address to obtain the PLC Address Dec Data Type current value from Timer T10 TA10 8 decimal 1 Find Timer Current Values in the table 8 Input Reg Input Reg 8 2 Convert T10 into decimal 8 3 Use the MODBUS data type from the table Timer Current Values 4 YO V177 0 127 Input Register Counter Current Values 4 W1000 Y1177 512 639 Find the MODBUS address for Control Relay PLC Addr Dec Start Addr Data Type Con C54 44 decimal 1 Find Control Relays in the table 44 3073 Coil Coil 3117 2 Convert C54 into decimal 44 4 3 Add the starting address for the range 3072 4 Use the MODBUS data type from the table A ECN IS Control Relays CR co 0377 Q973 3551 Cail Data Communications Module 2nd Edition 2 03 C 7 Using the D2 DCM with MODBUS If the Host So
82. tus indicator lights and are much harder to debug during setup or modem communication failure We recommend using AutomationDirect s MDM TEL Industrial Telephone Modem It is an external modem which is DIN rail mounted This is a rugged industrial telephone modem which has been designed for operation in electrical enclosures which are installed in harsh environments This MDM TEL supports all standard Hayes AT commands Fax Class 1 and Class 2 commands and S registers therefore it can be setup as an external modem on any PC This industrial modem is compatible with any telecommunications or dial up networking software The MDM TEL is also fully supported by AutomationDirect s technical support team More detailed information can be located at www automationdirect com Data Communications Module 2nd Edition 2 03 Using the D2 DCM with Modems Set the D2 DCM Switches For the most part we suggest that you follow the setup instructions shown earlier in this manual That is choose the protocol you re using set the station address etc However there are a couple of important differences which are discussed here Baud Rate Parity It is important that you select the following communications parameters when you use the D2 DCM for remote communications e 9600 baud e NO parity The parity setting is most important Most popular modems cannot transmit an odd number of bits per character If parity is enabled each character would con
83. wing locations will be used to store the data MEE V40600 188 15 0 SS V40601 ren 15 0 NOTE Since V memory words are always 16 bits you may not always use the whole word For example if you only specify 3 bytes and you are reading Y outputs from the slave you will only get 24 bits of data In this case only the 8 least significant bits of the last word location will be modified The remaining 8 bits are not affected Data Communications Module 2nd Edition 2 03 B 7 RLL Communications Programs Identifying the slave station memory area to read or write The Read Network RX or Write Network WX is the last instruction in the routine Use LD the RX if you want to read data from the slave K201 or use the WX instruction if you want to write data to the slave LD You have to specify the data type and the K3 starting address for the slave Remember you have to specify a data type that will work correctly with the number of bytes specified aa seod If you use the RX instruction the data will be Data Type read from the slave starting at the address and specified If you use the WX instruction the Address REX data will be written to the slave starting at the YO address specified Example Read from slave starting at YO NOTE If you are exc
84. xample Read current value from R400 1 ie into memory location V2000 1 Read 2 51 If you re just obtaining I O or bytes Timer Counter values the task is 1 fairly simple But when you work Store in a ih ea edie its bit more V2000 PF involved Here s why To get R400 You must have CPU firmware V1 9 To get R400 you examine the use V100 or greater to use the GY data type table and find that you must use in the RX WX instructions reference VO You will also notice LD To Two bytes of DL305 register data that you always get at least 2 are returned with one DL205 V registers So you get R400 and Use ANDD memory location R401 Since you only want the oa contents of R400 you have to add some ladder logic to get rid of Store the result ina the data from R401 different V location Control Relays CR160 CR161 Shift Registers SR200 SR201 GY160 GY161 GY277 SR277 Data Communications Module 2nd Edition 2 03 RLL Communications Programs Controlling the communications Communications Whenever communication is executed with a Special Relays D2 DCM chances are the communication will SP125 Y50 take longer than the actual PLC scan If the Set D2 DCM is busy another request should not I pe be initiated until it is finished Fortunately Communication Error there is an easy solution for
85. y be trademarked and are the sole property of their respective owners Automationdirect com disclaims any proprietary interest in the marks and names of others Copyright 2001 Automationdirect com Incorporated All Rights Reserved No part of this manual shall be copied reproduced or transmitted in any way without the prior written consent of Automationdirect com Incorporated Automationdirect com retains the exclusive rights to all information included in this document AVERTISSEMENT Nous vous remercions d avoir achet l quipement d automatisation de Automationdirect com Nous tenons ce que votre nouvel quipement d automatisation DirectLOGIC 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 a 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 applicabl

Download Pdf Manuals

image

Related Search

Related Contents

Important - Interruption  Conceptronic Universal Netbook Car Adapter 40W  Homeowners Guide  SPAN1    

Copyright © All rights reserved.
Failed to retrieve file