The text of a manual · part 13 of 40
DL05 Micro PLC User Manual, Volume 1 of 2: Chapter 4: Configuration and Connections, pages 106 to 114
Pages 106 to 114 of 379, from DL05 Micro PLC User Manual, Volume 1 of 2
The original document is the PDF (5.8 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 D0-05AA
Page 106
CONFIGURATION AND CONNECTIONS In This Chapter:
C HAPTER HAPTER
4
DL05 System Design Strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . .4–2 Network Configuration and Connections . . . . . . . . . . . . . . . . . . . . .4–4 Network Slave Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4–8 Network Master Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4–14
Page 107
Chapter 4: Configuration and Connections
1 DL05 System Design Strategies I/O System Configurations 2 The DL05 PLCs offer a number of different I/O configurations. Choose the configuration that is right for your application, and keep in mind that the DL05 PLCs offer the ability to add an I/O card in the option slot. Although remote I/O isn’t available, there are several 3 option cards available. For instance: • Various A/C and D/C I/O modules 4 • Combination I/O modules • Analog I/O modules 5 • Combination Analog I/O modules A DL05 system can be developed with an arrangement using a selected option modules. See 6 our DL05/06 Options Modules User Manual (D0-OPTIONS-M) on the website, www.automationdirect.com for detailed selection information. 7 Networking Configurations The DL05 PLCs offers the following ways to add networking: 8 • Ethernet Communications Module Ҁ connects a DL05 to high-speed peer-to-peer networks. Any PLC can initiate communications with any other PLC or operator interfaces, such as C-more, when 9 using the ECOM modules. • Data Communications Modules Ҁ connects a DL05 to devices using either DeviceNet or Profibus to link to master controllers, as well as a D0-DCM. 10 • Communications Port 1 Ҁ The DL05 has a 6-pin RJ12 connector on Port 1 that supports (as slave) K-sequence, Modbus RTU or DirectNET protocols. 11 • Communications Port 2 Ҁ The DL05 has a 6-pin RJ12 connector on Port 2 that supports either master/slave Modbus RTU or DirectNET protocols, or K-sequence protocol as slave. Port 2 can 12 also be used for ASCII OUT communications. 13 14 A B C D R PW
N RU
U CP TX1
1 RX
TX2 2 RX
Option Slot
4–2
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 108
Chapter 4: Configuration and Connections
Automatic I/O Configuration The DL05 CPUs will automatically detect the optional I/O module, if installed, at powerup and establish the correct I/O configuration and addresses. The configuration may never need to be changed. The I/O addresses use octal numbering, with X0 to X7 being the eight inputs and Y0 to Y5 being the addresses for the six outputs. The discrete option slot addresses are assigned in groups of 8 or 16 depending on the number of I/O points for the I/O module. The discrete option module addressing will be X100 to X107 and X110 to X117 for the maximum sixteen point input module. The addressing for the sixteen point output module will be Y100 to Y107 and Y110 to Y117. Refer to the DL05/06 Options Modules User Manual (D0OPTIONS-M) for the various discrete I/O modules available and the addressing for each one.
Power Budgeting No power budgeting is necessary for the DL05. The built-in power supply is sufficient for powering the base unit, your choice of option module, the handheld programmer and the DV-1000 operator interface.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
4–3
Page 109
Chapter 4: Configuration and Connections
1 Network Configuration and Connections Configuring the DL05’s Comm Ports 2 This section describes how to configure the CPU’s built-in networking ports for either Modbus or DirectNET. This will allow you to connect the DL05 PLC system directly to Modbus networks using the RTU protocol, or to other devices on a DirectNET network. 3 Modbus host systems must be capable of issuing the Modbus commands to read or write the appropriate data. For details on the Modbus protocol, check with your Modbus supplier for 4 the latest version of the Gould Modbus Protocol reference Guide. For more details on DirectNET, order our DirectNET manual, part number DA–DNET–M. 5 Communications Port 2 DL05 Port Specifications Direct Communications Port 1 6 Direct 7 Port 2 8 Port 1 9 Direct Direct 10 Port 2 Pin Descriptions Port 1 Pin Descriptions 11 12 13 DL05 to DL05 RS-232C 14 Networking You will need to make sure the network connection is a 3-wire RS–232 type. The recommended cable is Belden 8102 or equivalent. Normally, the RS–232 signals are used for A communications between two devices with distances up to a maximum of 15 meters. B C D Connects to HPP, SOFT 5, operator interfaces, etc. 6-pin, RS232C Communication speed: 9600 Baud (fixed) Parity: odd (fixed) Station Address: 1 (fixed) 8 data bits 1 start, 1 stop bit Asynchronous, half-duplex, DTE Protocol (auto-select): K-sequence (slave only), NET (slave only), Modbus (slave only)
1234 5 6
1 2 3 4 5 6
0V 5V RXD TXD 5V 0V
Power (–) connection (GND) Power (+) connection Receive Data (RS232C) Transmit Data (RS232C Power (+) connection Power (–) connection (GND)
Connects to HPP, SOFT 5, operator interfaces, etc. 6-pin, multifunction port, RS232C Communication speed (baud): 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 Parity: odd (default), even, none Station Address: 1 (default) 8 data bits 1 start, 1 stop bit Asynchronous, half-duplex, DTE Protocol (auto-select): K-sequence (slave only), NET (master/slave), Modbus (master/slave), non-sequence/print
1 2 3 4 5 6
0V 5V RXD TXD RTS 0V
DL05 PORT 1 or 2
DL05 PORT 2
1 0V 3 RXD 4 TXD
4–4
Power (–) connection (GND) Power (+) connection Receive Data (RS232C) Transmit Data (RS232C Request to Send Power (–) connection (GND)
DL05 Micro PLC User Manual, 6th Edition, Rev. A
0V 1 RXD 3 TXD 4
Page 110
Chapter 4: Configuration and Connections
Networking PC to DL05s RS–422 and to Other PLCs Networking PC to DL05s RS–422
1234 5 6
6-pin Female Modular Connector
F2-ISOCON 0V RXD
0V 1 RXD 3
TXD RTS
GND
GND
DL05 1 or 6 0V 0V 1 or 6 PORT 2
TXD+
RXD+
3 RXD
RXD 3
RXD–
TXD 4
TXD– RXD–
TXD–
TXD 4 5V 2
RTS 5
RXD+
4 TXD 2 CTS
TXD+
5 5V
RTS 5
FA–ISOCON
Note: When using the DL05 on a multi-drop network, the RTS ON Delay time must be set to at least 5ms and the RTS OFF Delay time must be set to at least 2ms . If you encounter problems, the time can be increased.
FA-ISOCON
1 or 6 0V 0V 1 or 6 PORT 2
RXD+
3 RXD
RXD 3
RXD– TXD–
4 TXD
TXD 4
TXD+
Networking DL05 Master to Other PLCs
DL05
GND
2 CTS
5V 2
5 5V
RTS 5
The recommended cable for RS-422 is Belden 9729 or equivalent. The maximum cable distance is 1000 meters. DL05 PORT 2
FA-ISOCON
1 or 6 0V 0V 1 or 6 3 RXD RXD 3 4 TXD
GND
GND
TXD+
RXD+ RXD–
TXD–
TXD 4
RXD–
TXD–
2 CTS
5V 2
RXD+
TXD+
5 5V
RTS 5
DL05 1 or 6 0V 0V 1 or 6 PORT 2 3 RXD
RXD 3
4 TXD
TXD 4
2 CTS
5V 2
5 5V
RTS 5
GND
1 0V
FA–ISOCON
FA-ISOCON
DL240
RXD+
3 RXD
0V 1 PORT 2 RXD 3
RXD–
4 TXD
TXD 4
TXD–
2 CTS
5V 2
5 5V
RTS 5
TXD+
DL05 Micro PLC User Manual, 6th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–5
Page 111
Chapter 4: Configuration and Connections
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–6
Modbus Port Configuration In DirectSOFT 5, choose the PLC menu, then Setup, then “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 “Modbus” (use AUX 56 on the HPP, and select “MBUS”), and then you’ll see the dialog box below.
• Timeout: Amount of time the port will wait after it sends a message to get a response before logging an error. • RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL05 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL05 waits to release the RTS signal line after the data has been sent. When using the DL05 on a multi-drop network, the RTS ON Delay time must be set to at least 5ms and the RTS OFF Delay time must be set to at least 2ms. If you encounter problems, the time can be increased. • Station Number: The possible range for Modbus slave numbers is from 1 to 247, but the DL05 network instructions used in Master mode will access only slaves 1 to 99. Each slave must have a unique number. At powerup, the port is automatically a slave, unless and until the DL05 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. • Baud Rate: The available baud rates include 300, 600, 1200, 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. • Stop Bits: Choose 1 or 2 stop bits for use in the protocol. • Parity: Choose none, even, or odd parity for error checking. Then click the button indicated to send the Port configuration to the CPU, and click Close.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 112
Chapter 4: Configuration and Connections
DirectNET Port Configuration
1 • Port: From the port number list box, choose “Port 2 ”. 2 • Protocol: 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. 3 4 5 6 7 8 9 • Timeout: Amount of time the port will wait after it sends a message to get a response before logging an error. 10 • RTS ON / OFF Delay Time: The RTS ON Delay Time specifies the time the DL05 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL05 waits to release the RTS signal line after the data has been sent. When using the DL05 on a 11 multi-drop network, the RTS ON Delay time must be set to at least 5ms and the RTS OFF Delay time must be set to at least 2ms. If you encounter problems, the time can be increased. 12 • Station Number: For making 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 DL05 executes ladder logic instructions which attempt 13 to use the port as a master. Thereafter, the port reverts back to slave mode until ladder logic uses the port again. 14 • Baud Rate: The available baud rates include 300, 600, 1200, 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 A the network to the same value. • Stop Bits: Choose 1 or 2 stop bits for use in the protocol. B • Parity: Choose none, even, or odd parity for error checking. • Format: Choose between hex or ASCII formats. C Then click the button indicated to send the Port configuration to the CPU, and click Close. D
In DirectSOFT 5, choose the PLC menu, then Setup, then “Secondary Comm Port”.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
4–7
Page 113
Chapter 4: Configuration and Connections
Slave Operation 1 Network This section describes how other devices on a network can communicate with a CPU port that you have configured as a DirectNETslave or Modbus slave (DL05). A Modbus host must 2 use the Modbus RTU protocol to communicate with the DL05 as a slave. The host software must send a Modbus function code and Modbus address to specify a PLC memory location the DL05 comprehends. The DirectNET host uses normal I/O addresses to access applicable 3 DL05 CPU and system. No CPU ladder logic is required to support either Modbus slave or DirectNET slave operation. 4 Modbus Function Codes Supported The Modbus function code determines whether the access is a read or a write, and whether to 5 access a single data point or a group of them. The DL05 supports the Modbus function codes described below. 6 MODBUS Function Code Function DL05 Data Types Available 7 8 9 10 Determining the Modbus Address There are typically two ways that most host software conventions allow you to specify a PLC memory location. These are: 11 • By specifying the Modbus data type and address • By specifying a Modbus address only 12 NOTE: For information about the Modbus protocol see the Group Schneider website at: 13 www.schneiderautomation.com. At the main menu, select Support/Services, Modbus, Modbus Technical Manuals, PI-MBUS-300 Modbus Protocol Reference Guide or search for PIMBUS300. For more information about the DirectNET protocol, order our DirectNET User Manual, DA-DNET-M, or 14 download the manual free from our website: www.automationdirect.com. Select Manuals\Docs\onlineusermanuals\misc.\DA-DNET-M A B C D 01 02 05 15 03, 04 06 16
4–8
Read a group of coils Read a group of inputs Set / Reset a single coil Set / Reset a group of coils Y, Read a value from one or more registers Write a value into a single register Write a value into a group of registers
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Y, CR, T, CT X, SP Y, CR, T, CT CR, T, CT V V V
Page 114
Chapter 4: Configuration and Connections
If Your Host Software Requires the Data Type and Address...
1 2 3 • Discrete – X, SP, Y, CR, S, T, C (contacts) • Word – V, Timer current value, Counter current value 4 In either case, you basically convert the PLC octal address to decimal and add the appropriate Modbus address (if required). The table below shows the exact equation used for each group 5 of data. 6 Modbus Address Modbus Data Type DL05 Memory Type QTY (Dec.) PLC Range(Octal Range (Decimal) 7 8 9 10 For Word Data Types .... Convert PLC Addr. to Dec. + Data Type 11 12 13 14 A B C D Many host software packages allow you to specify the Modbus data type and the Modbus address that corresponds to the PLC memory location. This is the easiest method, but not all packages allow you to do it this way. 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.
For Discrete Data Types .... Convert PLC Addr. to Dec. + Start of Range + Data Type Inputs (X) 256 X0 – X377 2048 – 2303 Special Relays(SP) 512 SP0 – SP777 3072 – 3583 Outputs (Y) 256 Y0 – Y377 2048 – 2303 Control Relays (CR) 512 C0 – C777 3072 – 4583 Timer Contacts (T) 128 T0 – T177 6144 – 6271 Counter Contacts (CT) 128 CT0 – CT177 6400 – 6527 Stage Status Bits(S) 256 S0 – S377 5120 – 5375
Timer Current Values (V) Counter Current Values (V) V-Memory, user data (V) V-Memory, non-volatile (V)
128 128 3968 128
V0 – V177 V1000 – V1177 V1200 – V7377 V7600 – V7777
0 – 127 512 – 639 640 – 3839 3968 – 4095
Input Input Coil Coil Coil Coil Coil
Input Register Input Register Holding Register Holding Register
DL05 Micro PLC User Manual, 6th Edition, Rev. A
4–9