Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 20 of 60

DL205 PLC User Manual, Volume 1 of 2, pages 191 to 200

Pages 191 to 200 of 598

The original document is the PDF (12 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the AutomationDirect D2-04TD1, AutomationDirect D2-08TD2, AutomationDirect D2-16ND3-2, AutomationDirect D2-32ND3, Konnect-It D2-04TD1, Koyo D2-04TD1, Konnect-It D2-08TD2, Koyo D2-08TD2, and 5 more models

Page 191

Chapter 4: System Design and Configuration

10BaseFL Network Cabling

1 2 3 4 5 Multimode Fiber Optic (MMF) Cable 6 7 8 9 Maximum Cable Length The maximum distance per 10/100BaseT cable segment is 100 meters (328 feet). Repeaters extend the distance. Each cable segment attached to a repeater can be 100 meters. Two 10 repeaters connected together extend the total range to 300 meters. The maximum distance per 10BaseFL cable segment is 2,000 meters (6,560 feet or 1.2 miles). Repeaters extend the 11 distance. Each cable segment attached to a repeater can be 2,000 meters. Two repeaters connected together extend the total range to 6,000 meters. 12 13 14 A B C D The H2-EBC-F and the H2-ERM-F modules have two ST-style bayonet connectors. The ST-style connector uses a quick release coupling which requires a quarter turn to engage or disengage. The connectors provide mechanical and optical alignment of fibers. Each cable segment requires two strands of fiber; one to transmit data and one to receive data. The ST-style connectors are used to connect the H2-Exx-F module to a PC or a fiber optic hub or repeater. The modules themselves cannot act as repeaters. The H2-EBC-F and the H2-ERM-F modules accept 62.5/125 multimode fiber optic (MMF) cable. The glass core diameter is 62.5 micrometers, and the glass cladding is 125 micrometers. The fiber optic cable is highly immune to noise and permits communications over much greater distances than 10/100BaseT. Transmit

Receive

Transmit

Transmit

Receive

Receive

Connecting your fiber optic EBC to a network adapter card or fiber optic hub

62.5/125 MMF cable with bayonet ST-style connectors

10Base–T Ethernet Control Network shown (also supports 10Base–FL Networks)

100 meters (328 feet)

100 meters (328 feet)

10Base–T Hub (required if using more than one Ethernet slave)

100 meters (328 feet)

100 meters (328 feet)

100 meters (328 feet)

DL205 User Manual, 4th Edition, Rev. D

4-25

Page 192

Chapter 4: System Design and Configuration

1 2

3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Add a Serial Remote I/O Master/Slave Module In addition to the I/O located in the local base, adding remote I/O can be accomplished via a shielded twisted-pair cable linking the master CPU to a remote I/O base. The methods of adding serial remote I/O are:

230 240 250-1 260

• CPUs: Remote I/O requires a remote master module (D2–RMSM) to be installed in the local base. The CPU updates the remote master, then the remote master handles all communication to and from the remote I/O base by communicating to a remote slave module (D2–RSSS) installed in each remote base. • and D2–260 CPU: The CPU’s comm port 2 features a built-in Remote I/O channel. You may also use up to seven D2–RMSM remote masters in the local base as described above (you can use either or both methods).

DL230

DL240 DL250–1 DL260

Maximum number of Remote Masters supported in the local CPU base (1 channel per Remote Master) CPU built-in Remote I/O channels Maximum I/O points supported by each channel none

2

7

7 none none none 2048

1 2048

1 2048

Maximum Remote I/O points supported none

Maximum number of Remote I/O bases per channel(RM–NET) Maximum number of Remote I/O bases per channel (SM–NET)

none none

Limited by total references available 7 31

7 31

Remote I/O points map into different CPU memory locations, therefore it does not reduce the number of local I/O points. Refer to the DL205 Remote I/O manual for details on remote I/O configuration and numbering. Configuring the built-in remote I/O channel is described in the following section. The figure below shows one CPU base, and one remote I/O channel with six remote bases. If the CPU is a DL250–1 or DL260, adding the first remote I/O channel does not require installing a remote master module (use the CPU’s built-in remote I/O channel). Remote Masters

Maximum of: 2 per CPU base (DL240) 7 per CPU base (DL250-1 & DL260) (for DL250-1 & DL260 the bottom port of the CPU can serve as an eighth master)

Masters can go in any slot except next to CPU.

Remote Slaves Maximum of 7 remote bases per channel

Allowable distance is from farthest slave to the remote master.

4-26

7 31

DL205 User Manual, 4th Edition, Rev. D

Page 193

Chapter 4: System Design and Configuration

Configuring the CPU’s Remote I/O Channel

240 250-1 260 230

1 2 3 4 5 6 • Port: From the port number list box at the 7 top, choose “Port 2.” •P rotocol: Click the check box to the left 8 of “Remote I/O” (called “M–NET” on the HPP), and then you’ll see the dialog box shown below. 9 •S tation Number: Choose “0” as the station number, which makes the DL250–1 or 10 DL260 the master. Station numbers 1–7 are reserved for remote slaves. •B aud Rate: The baud rates 19200 and 11 38400 are available. Choose 38400 initially as the remote I/O baud rate, and 12 revert to 19200 baud if you experience data errors or noise problems on the link. • Address: Choose a V-memory 13 address to use as the starting location of a Remote I/O configuration table (V37700 14 is the default). This table is separate and independent from the table for any Remote Master(s) in the system, and it is A 32 words in length. Then click the button indicated to send the Port 2 configuration to the CPU, and click Close. B NOTE: You must configure the baud rate on the Remote Slaves with DIP switches to match the baud rate C selection for the CPU’s Port 2. D This section describes how to configure the DL250–1 and DL260’s built-in remote I/O channel. Additional information is in the Remote I/O manual, D2–REMIO–M, which you will need in configuring the Remote slave units on the network. You can use the D2– REMIO–M manual exclusively when using regular Remote Masters and Remote Slaves for remote I/O in any DL205 system. The DL250–1 and DL260 CPU’s built-in remote I/O channel only supports RM–Net which allows it to communicate with up to seven remote bases containing a maximum of 2048 I/O points per channel, at a maximum distance of 1000 meters. If required, you can still use Remote Master modules in the local CPU base (2048 I/O points on each channel). You may recall from the CPU specifications in Chapter 3 that the DL250–1 and DL260’s Port 2 is capable of several protocols. To configure the port using the Handheld Programmer, use AUX 56 and follow the prompts, making the same choices as indicated below on this page. To configure the port in DirectSOFT, choose the PLC menu, then Setup, then Setup Secondary Comm Port.

DL205 User Manual, 4th Edition, Rev. D

4-27

Page 194

Chapter 4: System Design and Configuration

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4-28

The next step is to make the connections between all devices on the Remote I/O link. The location of Port 2 on the DL250–1 and DL260 is on the 15-pin connector, as pictured to the right. DL260 • Pin 7

Signal GND

• Pin 9

TXD+

• Pin 10

TXD–

• Pin 13

RXD+

• Pin 6

RXD–

Port 2

Now we are ready to discuss wiring the DL250–1 or DL260 to the remote slaves on the remote base(s). The remote I/O link is a 3-wire, half-duplex type. Since Port 2 of the DL250–1 and DL260 CPU is a 5-wire full duplex–capable port, we must jumper its transmit and receive lines together as shown below (converts it to 3-wire, half-duplex). RXD– 0V

TXD+ TXD–

DL250–1 / DL260 CPU Port 2 Remote I/O Master

6

D2-RSSS Remote I/O Slave

7

Cable: Use AutomationDirect L19954 (Belden 9842) or equivalent

9

120 ohms Termination Resistor TXD+ / RXD+

13

RXD+

10 (TXD, RXD are twisted pair)

T

D2-RSSS Remote I/O Slave (end of chain) Jumper

T

1

1

TXD– / RXD–

2

2

Signal GND

3

3

Internal 150 ohms resistor not used with 120 ohms cable

(use 2 grounds leads - twisted pair)

The twisted/shielded pair connects to the DL250–1 or DL260 Port 2 as shown. A termination resistor must be added externally to the CPU, as close as possible to the connector pins. Its purpose is to minimize electrical reflections that occur over long cables. A termination resistor must be present at both physical ends of the network. Ideally, the two termination resistors at the cable’s opposite ends and the cable’s rated impedance will all match. For cable impedances Add series T greater than 150 ohms, add a series resistor external at the last slave as shown to the right. If less resistor Internal 1 than 150 ohms, parallel a matching resistance 150 ohm across the slave’s pins 1 and 2 instead. resistor 2 Remember to size the termination resistor at Port 2 to match the cables rated impedance. 3 The resistance values should be between 100 and 500 ohms. NOTE: To match termination resistance to AutomationDirect L19827 (Belden 9841), use a 120 ohm resistor across terminals 1 and 2. NOTE: See the transient suppression for inductive loads information in Chapter 2 of this manual for further information on wiring practices.

DL205 User Manual, 4th Edition, Rev. D

Page 195

Chapter 4: System Design and Configuration

Configure Remote I/O Slaves After configuring the DL250–1 or DL260 CPU’s Port 2 and wiring it to the remote slave(s), use the following checklist to complete the configuration of the remote slaves. Full instructions for these steps are in the Remote I/O manual. • Set the baud rate to match CPU’s Port 2 setting. • a station address for each slave, from 1 to 7. Each device on the remote link must have a unique station address. There can be only one master (address 0) on the remote link.

Configuring the Remote I/O Table The beginning of the configuration table for the built-in remote I/O channel is the memory address we selected in the Port 2 setup. The table consists of blocks of four words which correspond to each slave in the system, as shown to the right. The first four table locations are reserved. The CPU reads data from the table after powerup, interpreting the four data words in each block with these meanings: 1. Starting address of slave’s input data 2. Number of slave’s input points 3. Starting address of outputs in slave 4. Number of slave’s output points The table is 32 words long. If your system has fewer than seven remote slave bases, then the remainder of the table must be filled with zeros. For example, a three–slave system will have a remote configuration table containing four reserved words, 12 words of data and 16 words of “0000.” A portion of the ladder program must configure this table (only once) at powerup. Use the LDA instruction as shown to the right, to load an address to place in the table. Use the regular LD constant to load the number of the slave’s input or output points. The following page gives a short program example for one slave.

Memory Addr. Pointer

37700

Remote I/O data Reserved

V37700 V37701 V37702 V37703 xxxx xxxx xxxx xxxx

Slave 1

V37704 V37705 V37706 V37707 xxxx xxxx xxxx xxxx

Slave 7

V37734 V37735 V37736 V37737

0000 0000 0000 0000

DirectSOFT SP0

LDA O40000 OUT V37704 LD K16 OUT V37705

DL205 User Manual, 4th Edition, Rev. D

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

4-29

Page 196

Chapter 4: System Design and Configuration

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4-30

Consider the simple system featuring Remote I/O shown below. The DL250–1 or DL260’s built-in Remote I/O channel connects to one slave base, which we will assign a station address=1. The baud rates on the master and slave will be 38.4KB. We can map the remote I/O points as any type of I/O point, simply by choosing the appropriate range of V-memory. Since we have plenty of standard I/O addresses available (X and Y), we will have the remote I/O points start at the next X and Y addresses after the main base points (X60 and Y40, respectively). Main Base with CPU as Master DL 260 CPU Port 2

Remote Slave Worksheet 1 Remote Base Address _________(Choose 1–7)

16

I X0-X17 V40400

16

16

I

I

16

O

X20-X37 X40-X57 Y0-Y17 V40401 V40402 V40500

16

O Y20-Y37 V40501

Remote Slave D2 RSSS Slave

Slot Module Number Name

INPUT

OUTPUT

Input Addr.

No. Inputs

Output Addr.

No.Outputs

0

08ND3S

X060

8

1

08ND3S

X070

8

2

08TD1

Y040

8

3

08TD1

Y050

8

4 5 6

8

I

8

I

8

O

8

O

7 40403 X060 Input Bit Start Address: ________V-Memory Address:V _______ 16 Total Input Points _____ Y040 40502 Output Bit Start Address: ________V-Memory Address:V _______

X60-X67 X70-X77 Y40-Y47 Y50-Y57 V40403 V40403 V40502 V40502

Remote I/O Setup Program Using the Remote Slave Worksheet shown above can help organize our system data in preparation for writing our ladder program (a blank full-page copy of this worksheet is in the Remote I/O Manual). The four key parameters we need to place in our Remote I/O configuration table are in the lower right corner of the worksheet. You can determine the address values by using the memory map given at the end of Chapter 3, CPU Specifications and Operation. The program segment required to transfer our worksheet results to the Remote I/O configuration table is shown to the right. Remember to use the LDA or LD instructions appropriately. The next page covers the remainder of the required program to get this remote I/O link up and running.

16 Total Output Points _____

DirectSOFT SP0

LDA O40403 OUT V37704 LD K16 OUT V37705 LDA O40502 OUT V37706 LD K16 OUT V37707

DL205 User Manual, 4th Edition, Rev. D

Slave 1 Input

Slave 1 Output

Page 197

Chapter 4: System Design and Configuration When configuring a Remote I/O channel for fewer than 7 slaves, we must fill the remainder of the table with zeros. This is necessary because the CPU will try to interpret any nonzero number as slave information. We continue our set-up program from the previous page by adding a segment which fills the remainder of the table with zeros. The example to the right fills zeros for slave numbers 2–7, which do not exist in our example system.

DirectSOFT

1 2 OUTD V37710 3 4 OUTD V37736 5 C740 6 SET On the last rung in the example program above, we set a special relay contact C740. This 7 particular contact indicates to the CPU the ladder program has finished specifying a remote I/O system. At that moment, the CPU begins remote I/O communications. Be sure to include 8 this contact after any Remote I/O set-up program. 9 Remote I/O Test Program Now we can verify the remote I/O link and DirectSOFT set-up program operation. A simple quick 10 check can be done with one rung of ladder, X60 Y40 shown to the right. It connects the first input OUT 11 of the remote base with the first output. After placing the PLC in RUN mode, we can go 12 to the remote base and activate its first input. Then its first output should turn on. 13 14 A B C D LD K0

DL205 User Manual, 4th Edition, Rev. D

4-31

Page 198

Chapter 4: System Design and Configuration

Network Connections to Modbus and DirectNET

1 Configuring Port 2 For DirectNET This section describes how to configure the CPU’s built-in networking ports for either Modbus 2 or DirectNET. This will allow you to connect the DL205 PLC system directly to Modbus networks using the RTU protocol, or to other devices on a DirectNET network. For more details on DirectNET, order our DirectNET manual, part number DA–DNET–M. 3

4 Configuring Port 2 For Modbus RTU Modbus hosts system on the network must be capable of issuing the Modbus commands to 5 read or write the appropriate data. For details on the Modbus protocol, please refer to the

Gould Modbus Protocol reference Guide (P1–MBUS–300 Rev. J). In the event a more recent version is available, check with your Modbus supplier before ordering the documentation. 6

You will need to determine whether the network connection is a 3-wire RS–232 type, or a 5-wire RS–422 type. Normally, the RS–232 signals are used for shorter distance (15 meters 7 (50 feet) maximum) communications between two devices. RS–422 signals are for longer distance (1000 meters (3280ft) maximum) multi-drop networks (from two to 247 devices). 8 Use termination resistors at both ends of RS–422 network wiring, matching the impedance rating of the cable (between 100 and 500 ohms). 9 10 11 12 13 14 A B C D 230 240

250-1 260

230 240

250-1 260

RXD+ RXD– TXD+ TXD– Signal GND

RS–422 Multi–drop Network

PC/PLC Master

9 TXD+ 10 TXD– 13 RXD+ 6 RXD– 11 RTS+ 12 RTS– 14 CTS+ 15 CTS– 7 0V

PORT 1: DL250–1, DL260 (slave only) PORT 2: DL240 (slave only) 1 0V 3 RXD 4 TXD

RS–232 Point-to-point DTE Device

Signal GND RXD RS–232 Master TXD

Port 1 Pinouts (DL250–1 / DL260)

6-pin Female Modular Connector

1 2 3 4 5 6

0V 5V RXD TXD 5V 0V

Power (–) connection (GND) Power (+) conection Receive Data (RS-232) Transmit Data (RS-232) Power (+) conection Power (–) connection (GND)

1

6

11

10

5

15

15-pin Female D-Sub connector

4-32

5V TXD2 RXD2 RTS2 CTS2 RXD2– 0V 0V TXD2+ TXD2 – RTS2 + RTS2 – RXD2 + CTS2 + CTS2 –

1 2 3 4 5 6

0V 5V RXD TXD RTS 0V

5 VDC Transmit Data (RS-232) Receive Data (RS-232) Ready to Send (RS–232) Clear to Send (RS–232) Receive Data – (RS–422) (RS–485 DL260) Logic Ground Logic Ground Transmit Data + (RS–422) (RS–485 DL260) Transmit Data – (RS–422) (RS–485 DL260) Request to Send + (RS–422) (RS–485 DL260) Request to Send – (RS–422)(RS–485 DL260) Receive Data + (RS–422) (RS–485 DL260) Clear to Send + (RS422) (RS–485 DL260) Clear to Send – (RS–422) (RS–485 DL260)

DL205 User Manual, 4th Edition, Rev. D

PORT 2 (DL250–1, DL260) RS–422 Slave

Port 2 Pin Descriptions (DL240 only)

Port 2 Pin Descriptions (DL250–1 / DL260) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Termination Resistor on last slave only

Power (–) connection (GND) Power (+) conection Receive Data (RS-232) Transmit Data (RS-232) Request to Send Power (–) connection (GND)

The recommended cable for RS-232 or RS-422 is AutomationDirect L19772 (Belden 8102) or equivalent. The recommended cable for RS-485 is AutomationDirect L19827 (Belden 9841) or equivalent. Note: The DL260 supports RS–485 multi–drop networking. See the Network Master Operation (DL260 Only) section later in this chapter for details.

Page 199

Chapter 4: System Design and Configuration

Modbus Port Configuration

240 250-1 260 230

In DirectSOFT, choose the PLC menu, then Setup, then “Secondary Comm Port.” • Port: From the port number list box at the top, choose “Port 2.” • Click the check box to the left of “MODBUS” (use AUX 56 on the HPP, and select “MBUS”), and then you’ll see the dialog box below. • The amount of time the port will wait after it sends a message to get a response before logging an error. • On Delay Time: The amount of time between raising the RTS line and sending the data. • Off Delay Time: The amount of time between resetting the RTS line after sending the data. • Number: To make the CPU port a Modbus master, choose “1.” The possible range for Modbus slave numbers is from 1 to 247, but the DL250–1 and DL260 WX and RX network instructions used in Master mode will access only slaves 1 to 90. Each slave must have a unique number. At powerup, the port is automatically a slave, unless and until the DL250–1 or DL260 executes ladder logic network instructions which use the port as a master. Thereafter, the port reverts back to slave mode until ladder logic uses the port again.

NOTE: The DL250–1 does not support the Echo Suppression feature

• Rate: The available baud rates include 300, 600, 900, 2400, 4800, 9600, 19200, and 38400 baud. Choose a higher baud rate initially, reverting to lower baud rates if you experience data errors or noise problems on the network. Important: You must configure the baud rates of all devices on the network to the same value. Refer to the appropriate product manual for details. • Bits: Choose 1 or 2 stop bits for use in the protocol. • Parity: Choose none, even, or odd parity for error checking. • Suppression: Select the appropriate radio button based on the wiring configuration used on port 2.

Then click the button indicated to send the Port configuration to the CPU, and click Close.

DL205 User Manual, 4th Edition, Rev. D

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

4-33

Page 200

Chapter 4: System Design and Configuration

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DirectNET Port Configuration

230 In DirectSOFT, choose the PLC menu, then Setup, then “Secondary Comm Port.” 240 • Port: From the port number list box, choose “Port 2.” 250-1 • Click the check box to the left of “DirectNET” (use AUX 56 on the HPP, then select “DNET”), and then you’ll see the dialog box below. 260

4-34

• The amount of time the port will wait after it sends a message to get a response before logging an error. • On Delay Time: The amount of time between raising the RTS line and sending the data. • Off Delay Time: The amount of time between resetting the RTS line after sending the data. • Number: To make the CPU port a DirectNET master, choose “1”. The allowable range for DirectNET slaves is from 1 to 90 (each slave must have a unique number). At powerup, the port is automatically a slave, unless and until the DL250–1 or DL260 executes ladder logic instructions which attempt to use the port as a master. Thereafter, the port reverts back to slave mode until ladder logic uses the port again. • Rate: The available baud rates include 300, 600, 900, 2400, 4800, 9600, 19200, and 38400 baud. Choose a higher baud rate initially, reverting to lower baud rates if you experience data errors or noise problems on the network. Important: You must configure the baud rates of all devices on the network to the same value. • Stop Bits: Choose 1 or 2 stop bits for use in the protocol. • Parity: Choose none, even, or odd parity for error checking. • Format: Choose hex or ASCII formats.

Then click the button indicated to send the Port configuration to the CPU, and click Close.

DL205 User Manual, 4th Edition, Rev. D