The text of a manual · part 21 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 4: System Design and Configuration, pages 185 to 194
Pages 185 to 194 of 592, from DL205 PLC User Manual, Volume 1 of 2
The original document is the PDF (13 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 PLC Direct D2-08ND3 and Koyo D2-08ND3
Page 185
Chapter 4: System Design and Configuration 10BaseT Networks A patch (straight-through) cable is used to connect a PLC (or PC) to a hub or to a repeater. Use a crossover cable to connect two Ethernet devices (point-to-point) together. It is recommended that pre-assembled cables be purchased for convenient and reliable networking. Patch (Straight–through) Cable
10BaseT
TD+ 1 TD– 2 RD+ 3 4 5 RD– 6 7 8
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
1 RD+ 2 RD– 3 TD+ 4 5 6 TD– 7 8
RJ45
Crossover Cable
1 2 3 4 5 6 78
8-pin RJ45 Connector (8P8C)
RJ45
TD+ 1 TD– 2 RD+ 3 4 5 RD– 6 7 8
RJ45
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
GRN/WHT GRN OR/WHT BLU BLU/WHT OR BRN/WHT BRN
1 2 3 4 5 6 7 8
TD+ TD– RD+ RD–
RJ45
The above diagram illustrates the standard wire positions of the RJ45 connector. It is recommended that Catagory 5, UTP cable, be used for all ERM 10BaseT cables. Refer to the ERM manual for using the fiber optic cable with the H2-ERM-F. An explanation of the use of the ERM Workbench software is too lengthy for this manual. The full use of the workbench and NetEdit utilities is discussed in the ERM manual.
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
4–21
Page 186
Chapter 4: System Design and Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Ethernet Base Controller, H2-EBC(100)(-F) The Ethernet Base Controller module, H2-EBC(100)(-F) provides a low-cost, highperformance Ethernet link between a network master controller and an DirectLOGIC PLC I/O slave system. Also, the H2-EBC100 supports the Modbus TCP/IP client/server protocol. The Ethernet Base Controller (EBC) serves as an interface between the master control system and the DL205/405 I/O modules. The control function is performed by the master controller, not the EBC slave. The EBC occupies the CPU slot in the base and communicates across the backplane to input and output modules. Various master controllers with EBC slaves are shown in the diagram below. Example EBC Systems: Various Masters with EBC Slaves Modbus TCP/IP Masters (H2-EBC100 only)
All H2/H4 Series EBCs UDP/IP, IPX 10Mbps
PC-based Control System
OR
OR
EBC Ethernet Hub Serial HMI
H2-EBC100 TCP/IP, UDP/IP, IPX Modbus TCP/IP 10/100Mbps
EBC
EBC
The H2-EBC module supports industry standard 10BaseT Ethernet communications, the H2-EBC100 module supports industry standard 10/100BaseT Ethernet communications and the H2-EBC-F module supports 10BaseFL (fiber optic) Ethernet standards. Specifications Communications Data Transfer Rate Link Distance Ethernet Port Ethernet Protocols Serial Port Serial Protocols Power Consumption
4–22
DirectLOGIC PLC/ WinPLC with ERM
H2-EBC
H2-EBC100
H2-EBC-F
10BaseT Ethernet
10/100BaseT Ethernet
10BaseFL Ethernet
10Mbps max.
100Mbps max.
10Mbps max.
100 meters (328 ft)
100 meters (328 ft)
2000 meters (6560 ft)
RJ45
RJ45 TCP/IP, IPX/Modbus TCP/IP, DHCP, HTML configuration RJ12 K-Sequence, ASCII IN/OUT, Modbus RTU 300mA @ 5VDC
ST-style fiber optic
TCP/IP, IPX RJ12 K-Sequence, ASCII IN/OUT 450mA @ 5VDC
DL205 User Manual, 4th Edition, Rev. A
TCP/IP, IPX None None 640mA @ 5VDC
Page 187
Chapter 4: System Design and Configuration
Install the EBC Module
1 2 3 • Module ID (IPX protocol only) 4 • IP Address (for TCP/IP and Modbus TCP/IP protocols) Set the Module ID 5 The two methods which can be used to set the EBC module ID are either by DIP switch or by software. One software method is to use the NetEdit3 program which is included with the EBC manual. To keep the setup discussion simple here, only the DIP switch method will be 6 discussed. Refer to the EBC manual for the complete use of NetEdit3. It is recommended to use the DIP switch to set the Module ID because the DIP switch is 7 simple to set, and the Module ID can be determined by looking at the physical module, without reference to a software utility. 8 The DIP switch can be used to set the Module ID to a number from 1-63. Do not use Module ID 0 for communication. 9 If the DIP switch is set to a number greater than 0, the software utilities are disabled from setting the Module ID. Software utilities will only allow changes to the Module ID if the DIP 10 switch setting is 0 (all switches OFF). NOTE: The DIP switch settings are read at powerup only. The power must be cycled each time the DIP 11 switches are changed. Setting the Module ID with the DIP switches is identical to setting the DIP switches on the 12 H2-ERM module. Refer to page 4-19 in this chapter. Insert the EBC Module 13 Once the Module ID DIP switches are set, insert the module in the CPU slot of any DL205 base. 14 A B C Insert H2-EBC in CPU slot D Like the ERM module discussed in the previous section, this will briefly describe the installation of the H2 Series EBCs. More detailed information is available in the Ethernet Base Controller manual, H24-EBC-M, which will be needed to configure the remote I/O. Each EBC module must be assigned at least one unique identifier to make it possible for master controllers to recognize it on the network. Two methods for identifying the EBC module give it the flexibility to fit most networking schemes. These identifiers are:
DL205 User Manual, 4th Edition, Rev. A
4–23
Page 188
Chapter 4: System Design and Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Network Cabling Of the two types of EBC modules available, one supports the 10/100BaseT standard and the other one supports the 10BaseFL standard. The 10/100BaseT standard uses twisted pairs of copper wire conductors and the 10BaseFL standard is used with fiber optic cabling. 10/100BaseT
RJ12 Serial Port RS232
RJ45 for 10/100BaseT
The 10BaseT and 100BaseT EBCs have an eight-pin modular jack that accepts RJ45 connectors. UTP Category 5 (CAT5) cable is highly recommended for use with all Ethernet 10/100BaseT connections. For convenient and reliable networking, purchase commercially manufactured cables which have the connectors already installed. To connect an EBC, or a PC, to a hub or repeater, use a patch cable (sometimes called a straight-through cable). The cable used to connect a PC directly to an EBC or to connect two hubs is referred to as a crossover cable. Patch (Straight–through) Cable
10/100BaseT
TD+ 1 TD– 2 RD+ 3 4 5 RD– 6 7 8
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
1 RD+ 2 RD– 3 TD+ 4 5 6 TD– 7 8
RJ45
RJ45
Crossover Cable
1 2 3 4 5 6 78
8-pin RJ45 Connector (8P8C)
TD+ 1 TD– 2 RD+ 3 4 5 RD– 6 7 8
RJ45
4–24
ST-style Bayonet for 10BaseFL
DL205 User Manual, 4th Edition, Rev. A
OR/WHT OR GRN/WHT BLU BLU/WHT GRN BRN/WHT BRN
GRN/WHT GRN OR/WHT BLU BLU/WHT OR BRN/WHT BRN
1 2 3 4 5 6 7 8
TD+ TD– RD+ RD–
RJ45
Page 189
Chapter 4: System Design and Configuration
10BaseFL Network Cabling The H2-EBC-F and the H2-ERM-F modules have two ST-style bayonet connectors. The STstyle 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. Multimode Fiber Optic (MMF) Cable
Transmit
Transmit
Transmit
Receive
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
Maximum Cable Length The maximum distance per 10BaseT cable segment is 100 meters or 328 feet. Repeaters extend the distance. Each cable segment attached to a repeater can be 100 meters. Two repeaters connected together extend the total range to 300 meters. The maximum distance per 10BaseFL cable segment is 2,000 meters or 6,560 feet (1.2 miles). Repeaters extend the 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. 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. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
4–25
Page 190
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 230 240 250-1 260
4–26
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: • DL240 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. • DL250–1 and D2–260 CPU: The CPU’s comm port 2 features a built-in Remote I/O channel. You may also use up to 7 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
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.
DL205 User Manual, 4th Edition, Rev. A
Page 191
Chapter 4: System Design and Configuration
Configuring the CPU’s Remote I/O Channel
230 240 250-1 260
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. • Port: From the port number list box at the top, choose “Port 2”. • Protocol: Click the check box to the left of “Remote I/O” (called “M–NET” on the HPP), and then you’ll see the dialog box shown below. • Station Number: Choose “0” as the station number, which makes the DL250–1 or DL260 the master. Station numbers 1–7 are reserved for remote slaves. • Baud Rate: The baud rates 19200 and 38400 are available. Choose 38400 initially as the remote I/O baud rate, and revert to 19200 baud if you experience data errors or noise problems on the link. • Memory Address: Choose a V-memory address to use as the starting location of a Remote I/O configuration table (V37700 is the default). This table is separate and independent from the table for any Remote Master(s) in the system, and it is 32 words in length.
Then click the button indicated to send the Port 2 configuration to the CPU, and click Close. NOTE: You must configure the baud rate on the Remote Slaves with DIP switches to match the baud rate selection for the CPU’s Port 2.
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
4–27
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 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–
DL250–1 / DL260 CPU Port 2 Remote I/O Master
6 0V
7
9 TXD+
10
13
RXD+
Cable: Use Belden 9842 or equivalent Termination Resistor TXD+ / RXD+
Remote I/O Slave (end of chain)
Remote I/O Slave
T
Jumper
T
1
1
TXD– / RXD–
2
2
Signal GND
3
3
TXD–
Internal 150 ohm resistor
The twisted/shielded pair connects to the DL250–1 or DL260 Port 2 as shown. Be sure to connect the cable shield wire to the signal ground connection. 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. Be sure to add the jumper at the last slave to connect the required internal termination resistor. Ideally, the two termination resistors at the cables 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 at external the last slave as shown to the right. If less than resistor 1 Internal 150 ohms, parallel a matching resistance across 150 ohm the slave’s pins 1 and 2 instead. Remember to resistor 2 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 Belden 9841, use a 120 ohm resistor across terminals 1 and 2.
DL205 User Manual, 4th Edition, Rev. A
Page 193
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. • Select 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 3–slave system will have a remote configuration table containing 4 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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
OUT V37705
DL205 User Manual, 4th Edition, Rev. A
4–29
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–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
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
Remote Slave D2 RSSS Slave
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 _____ 40502 Y040 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. A
Slave 1 Input
Slave 1 Output