The text of a manual · part 14 of 53
DL06 Micro PLC User Manual, Volume 1 of 2, pages 130 to 139
Pages 130 to 139 of 524
The original document is the PDF (6.4 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 Direct Logic DL06 and Koyo DL06 D0-06DD1
Page 130
Chapter 4: System Design and Configuration
Automatic I/O Configuration The DL06 CPUs automatically detect any installed I/O modules (including specialty modules) at powerup, and establish the correct I/O configuration and addresses. This applies to modules located in the local base. For most applications, you will never have to change the configuration. I/O addresses use octal numbering, starting at X100 and Y100 in the slot next to the CPU. The addresses are assigned in groups of 8, or 16 depending on the number of points for the I/O module. The discrete input and output modules can be mixed in any order. The following diagram shows the I/O numbering convention for an example system. Both the Handheld Programmer and DirectSOFT 5 provide AUX functions that allow you to automatically configure the I/O. For example, with the Handheld Programmer AUX 46 executes an automatic configuration, which allows the CPU to examine the installed modules and determine the I/O configuration and addressing.With DirectSOFT 5, the PLC Configure I/O menu option would be used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Automatic Manual
Slot 1 Slot 2 Slot 3 8pt. Input 16pt. Output 16pt. Input X100–X107 Y100–Y117 X110–X127
Slot 4 8pt. Input X130–X137
Slot 1 Slot 2 Slot 3 8pt. Input 16pt. Output 16pt. Input X100–X107 Y100–Y117 X200–X217
Slot 4 8pt. Input X120–X127
Manual I/O Configuration It may never become necessary, but DL06 CPUs allow manual I/O address assignments for any I/O slot(s) . You can manually modify an auto configuration to match arbitrary I/O numbering. For example, two adjacent input modules can have starting addresses at X100 and X200.Use DirectSOFT 5 PLC Configure I/O menu option to assign manual I/O address. In automatic configuration, the addresses are assigned on 8-point boundaries. Manual configuration, however, assumes that all modules are at least 16 points, so you can only assign addresses that are a multiple of 20 (octal). You can still use 8 point modules, but 16 addresses will be assigned and the upper eight addresses will be unused. WARNING: If you manually configure an I/O slot, the I/O addressing for the other modules may change. This is because the DL06 CPUs do not allow you to assign duplicate I/O addresses. You must always correct any I/O configuration errors before you place the CPU in RUN mode. Uncorrected errors can cause unpredictable machine operation that can result in a risk of personal injury or damage to equipment.
4–4
DL06 Micro PLC User Manual; 3rd Edition Rev. A
Page 131
Chapter 4: System Design and Configuration
Power Budgeting The DL06 has four option card slots. To determine whether the combination of cards you select will have sufficient power, you will need to perform a power budget calculation.
Power supplied Power is supplied from two sources, the internal base unit power supply and, if required, an external supply (customer furnished). The D0-06xx (AC powered) PLCs supply a limited amount of 24VDC power. The 24VDC output can be used to power external devices. For power budgeting, start by considering the power supplied by the base unit. All DL06 PLCs supply the same amount of 5VDC power. Only the AC units offer 24VDC auxiliary power. Be aware of the trade-off between 5VDC power and 24VDC power. The amount of 5VDC power available depends on the amount of 24VDC power being used, and the amount of 24VDC power available depends on the amount of 5VDC power consumed. Determine the amount of internally supplied power from the table on the following page.
Power required by base unit Because of the different I/O configurations available in the DL06 family, the power consumed by the base unit itself varies from model to model. Subtract the amount of power required by the base unit from the amount of power supplied by the base unit. Be sure to subtract 5VDC and 24VDC amounts.
Power required by option cards Next, subtract the amount of power required by the option cards you are planning to use. Again, remember to subtract both 5VDC and 24VDC. If your power budget analysis shows surplus power available, you should have a workable configuration.
DL06 Micro PLC User Manual; 3rd Edition Rev. A
4–5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Page 132
Chapter 4: System Design and Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
DL06 Power Consumed by Option Cards
DL06 Power Supplied by Base Units Part Number
5 VDC (mA)
24 VDC (mA)
<1500mA <2000mA 1500mA
300mA 200mA none
D0-06xx D0-06xx-D
If the 5VDC loading is less than 2000mA, but more than 1500mA, then available 24VDC supply current is 200mA. If the 5VDC loading is less than 1500mA, then the available 24VDC current is 300mA.
DL06 Base Unit Power Required Part Number D0-06AA D0-06AR D0-06DA D0-06DD1 D0-06DD2 D0-06DR D0-06DD1-D D0-06DD2-D D0-06DR-D
5 VDC (mA)
24 VDC (mA)
800mA 900mA 800mA 600mA 600mA 950mA 600mA 600mA 950mA none none none 280mA, note 1 none none 280mA, note 1 none none
Power Budgeting Example Power Source D0-06DD1 (select row A or row B)
A
1500mA
300mA
B
2000mA
200mA
Current Required D0-06DD1 D0-16ND3 D0-10TD1 D0-08TR F0-4AD2DA-2 D0-06LCD Total Used Remaining
5VDC 24VDC power (mA) power (mA)
A B
Part Number D0-07CDR D0-08CDD1 D0-08TR D0-10ND3 D0-10ND3F D0-10TD1 D0-10TD2 D0-16ND3 D0-16TD1 D0-16TD2 D0-DCM D0-DEVNETS F0-04TRS F0-08NA-1 F0-04AD-1 F0-04AD-2 F0-2AD2DA-2 F0-4AD2DA-1 F0-4AD2DA-2 F0-04RTD F0-04THM F0-CP128 H0-PSCM H0-ECOM H0-CTRIO
5 VDC (mA) 130mA 100mA 280mA 35mA 35mA 150mA 150mA 35mA 200mA 200mA 250mA 45mA 250mA 5mA 50mA 75mA 50mA 100mA 100mA 70mA 30mA 150mA 530mA 250mA 250mA
24 VDC (mA) none none none none none none none none none none none none none none none none 30mA 40mA none none none none none none none
5VDC 24VDC power (mA) power (mA) 600mA 35mA 150mA 280mA 100mA 50mA 1215mA 285mA 785mA
280mA, note 1 0 0 0 0 0 280mA 20mA note 2
NOTE: See the DL05/DL06 OPTIONS manual
DL06 Power Consumed by Other Devices Part Number D0-06LCD D2-HPP DV1000
5 VDC (mA)
24 VDC (mA)
50mA 200mA 150mA none none none
NOTE 1: Auxiliary 24VDC used to power V+ terminal of D0-06DD1/-D sinking outputs. NOTE 2: If the PLC’s auxiliary 24VDC power source is used to power the sinking outputs, use power choice A, above.
4–6
DL06 Micro PLC User Manual; 3rd Edition Rev. A
Page 133
Chapter 4: System Design and Configuration
Configuring the DL06’s Comm Ports 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 DL06 PLC system directly to MODBUS networks using the RTU protocol, or to other devices on a DirectNET network. MODBUS masters on the network must be capable of issuing the MODBUS commands to 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. B). In the event a more recent version is available, check with your MODBUS supplier before ordering the documentation. For more details on DirectNET, order our DirectNET manual, part number DA–DNET–M. NOTE: For information about the MODBUS protocol see the Group Schneider Web site at: 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, part number DA–DNET–M, or download it free from our Web site: www.automationdirect.com. Select Documentation/Misc./DA-DNET-M.
DL06 Port Specifications
Communications Port 2
Communications Port 1 Connects to HPP, DirectSOFT 5, operator interfaces, etc. 6-pin, RS232C Communication speed (baud): 9600 (fixed) Parity: odd (fixed) Port 1 Station Address: 1 (fixed) 8 data bits 1 start, 1 stop bit Asynchronous, half-duplex, DTE Protocol (auto-select): K-sequence (slave only), DirectNET (slave only), MODBUS (slave only)
Connects to HPP, DirectSOFT 5, operator interfaces, etc. 15-pin, multifunction port, RS232C, RS422, RS485 Communication speed (baud): 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 Parity: odd (default), even, none Port 2 Station Address: 1 (default) 8 data bits 1 start, 1 stop bit Asynchronous, half-duplex, DTE Protocol (auto-select): K-sequence (slave only), DirectNET (master/slave), MODBUS (master/slave), non-sequence/print/ASCII in/out
Port 2 Pin Descriptions
DL06 Port Pinouts Port 1 Pin Descriptions TERM PORT1
PORT2
RUN STOP
5 4 3 2
6
1
5
1 10
6
15
PORT1
11
PORT2
1 2 3 4 5 6
0V Power (-) connection (GND) 5V Power (+) connection RXD Receive data (RS-232C) TXD Transmit data (RS-232C) 5V Power (+) connection 0V Power (-) connection (GND)
1 5V Power (+) connection 2 TXD Transmit data (RS-232C) 3 RXD Receive data (RS-232C) 4 RTS Ready to send (RS-232C) 5 CTS Clear to send (RS232C) 6 RXD- Receive data (-) (RS-422/485) 7 0V Power (-) connection (GND) 8 0V Power (-) connection (GND) 9 TXD+ Transmit data (+) (RS-422/485) 10 TXD- Transmit data (-) (RS-422/485) 11 RTS+ Ready to send (+) (RS-422/485) 12 RTS- Ready to send (-) (RS-422/485) 13 RXD+ Receive data (+) (RS-422/485) 14 CTS+ Clear to send (+) (RS-422/485) 15 CTS- Clear to send (-) (RS-422/485)
DL06 Micro PLC User Manual; 3rd Edition Rev. A
4–7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Page 134
Chapter 4: System Design and Configuration
Choosing a Network Specification
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
The DL06 PLC’s multi-function port gives you the option of using RS-232C, RS-422, or RS-485 specifications. First, determine whether the network will be a 2-wire RS–232C type, a 4-wire RS–422 type, or a 2-wire/4-wire RS-485 type. The RS–232C specification is simple to implement for networks of shorter distances (15 meters max) and where communication is only required between two devices. The RS–422 and RS-485 signals are for networks that cover longer distances (1000 meters max.) and for multi-drop networks (from 2 to 247 devices). NOTE: Termination resistors are required at both ends of RS–422 and RS-485 networks. It is necessary to select resistors that match the impedance rating of the cable (between 100 and 500 ohms). 11
1 Signal GND
GND RXD
0V
3
RXD
RXD
4
TXD
TXD
TXD
TXD
RXD
CTS PORT1 6P6C Phone Jack
RTS
RTS
Connections on Port 1
CTS
Connections on Port 2
10
Signal GND
1
15
Point-to-point DTE Device
5
Normally, the RS-232 signals are used for shorter distances (15 meters maximum), for communications between two devices.
6
RS-232 Network
RTS
OR Loop Back
CTS
RS-422 Network RS-422 signals are for long distances ( 1000 meters maximum). Use terminator resistors at both ends of RS-422 network wiring, matching the impedence rating of the cable (between 100 and 500 ohms).
RXD+ RXD– TXD+ TXD– Signal GND
RS-485 Network
TXD– / RXD–
Signal GND
Signal GND
Signal GND
RXD–
1
11
0V
RTS+
RXD+
TXD–
DL06 Micro PLC User Manual; 3rd Edition Rev. A
RTS– CTS+ recommended for RS-485 networks.
15
10
CTS–
Belden 9841, or
Cable: Use Belden equivalent, is 9841 or equivalent
CTS– 15
CTS+
RTS+ TXD+
10
RTS–
5
RXD+
11
6
RXD–
6 1
0V
5
TXD– / RXD–
Connect shield to signal ground
DL06 CPU Port 2
4–8
PORT 2 Master
TXD+ / RXD+
TXD+ / RXD+ TXD– / RXD–
TXD+
Termination Resistor at both ends of network
Termination Resistor
TXD+ / RXD+
RS-485 signals are for longer distances (1000 meters max) and for multi-drop networks. Use termination resistors at both ends of RS-485 network wiring, matching the impedance rating of the cable (between 100 and 500 ohms).
9 TXD+ 10 TXD– 13 RXD+ 6 RXD– 11 RTS+ 12 RTS– 14 CTS+ 15 CTS– 7 0V
We recommend Belden 8102 The recommended cable shielded twisted cable, or for RS422 is pair Belden equivalent, used for RS-422 9729 orbe equivalent. networks.
TXD–
DL06 CPU Port 2
Page 135
Chapter 4: System Design and Configuration
Connecting to MODBUS and DirectNET Networks 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: Check the box to the left of “MODBUS” (use AUX 56 on the HPP, and select “MBUS”), and then you’ll see the 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 DL06 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL06 waits to release the RTS signal line after the data has been sent. When using the DL06 on a multi-drop network, the RTS ON Delay time must be set to 5ms or more and the RTS OFF Delay time must be set to 2ms or more. If you encounter problems, the time can be increased. • Station Number: For making the CPU port a MODBUS master, choose “1”. The possible range for MODBUS slave numbers is from 1 to 247, but the DL06 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 DL06 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. •Echo Suppression: Select the appropriate wiring configuration used on Port 2. Then click the button indicated to send the Port configuration to the CPU, and click Close.
DL06 Micro PLC User Manual; 3rd Edition Rev. A
4–9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Page 136
Chapter 4: System Design and Configuration
DirectNET Port Configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 4–10
In DirectSOFT 5, choose the PLC menu, then Setup, then “Secondary Comm Port”. • Port: From the port number list box, choose “Port 2 ”. • Protocol: Check the box to the left of “DirectNET” (use AUX 56 on the HPP, then select “DNET”), and then you’ll see the dialog 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 DL06 waits to send the data after it has raised the RTS signal line. The RTS OFF Delay Time specifies the time the DL06 waits to release the RTS signal line after the data has been sent. When using the DL06 on a multi-drop network, the RTS ON Delay time must be set to 5ms or more and the RTS OFF Delay time must be set to 2ms or more. If you encounter problems, the time can be increased. • 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 DL06 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. • 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. • 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 between hex or ASCII formats. Then click the button indicated to send the Port configuration to the CPU, and click Close.
DL06 Micro PLC User Manual; 3rd Edition Rev. A
Page 137
Chapter 4: System Design and Configuration
Non–Sequence Protocol (ASCII In/Out and PRINT)
1 Configuring port 2 on the DL06 for Non–Sequence allows the CPU to use port 2 to either 2 read or write raw ASCII strings using the ASCII instructions. See the ASCII In/Out instructions and the PRINT instruction in chapter 5. 3 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”. 4 • Protocol: Check the box to the left of “Non–Sequence”. 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 Delay Time: The amount of time between raising the RTS line and sending the data. • RTS Off Delay Time: The amount of time between resetting the RTS line after sending the data. 11 • Data Bits: Select either 7–bits or 8–bits to match the number of data bits specified for the connected devices. 12 • Baud 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 13 the network to the same value. Refer to the appropriate product manual for details. • Stop Bits: Choose 1 or 2 stop bits to match the number of stop bits specified for the connected 14 devices. • Parity: Choose none, even, or odd parity for error checking. Be sure to match the parity specified A for the connected devices. • Echo Suppression: Select the appropriate radio button based on the wiring configuration used on port 2. B • Xon/Xoff Flow Control: Choose this selection if you have Port 2 wired for Hardware Flow Control (Xon/Xoff ) with RTS and CTS signal connected between all devices. C • RTS Flow Control: Choose this selection if you have Port 2 RTS signal wired between all devices. Click the button indicated to send the port configuration to the CPU, and click Close. D • Memory Address: Starting V-memory address for ASCII IN data storage, 128 byte maximum
Non-Sequence Port Configuration
(see AIN instruction).
DL06 Micro PLC User Manual; 3rd Edition Rev. A
4–11
Page 138
Chapter 4: System Design and Configuration
Network Slave Operation
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
This section describes how other devices on a network can communicate with a CPU port that you have configured as a DirectNET slave or MODBUS slave (DL06). A MODBUS host must use the MODBUS RTU protocol to communicate with the DL06 as a slave. The host software must send a MODBUS function code and MODBUS address to specify a PLC memory location the DL06 comprehends. The DirectNET host uses normal I/O addresses to access applicable DL06 CPU and system. No CPU ladder logic is required to support either MODBUS slave or DirectNET slave operation. NOTE: For more intformation on DirectNET proprietary protocol, see the DirectNET reference manual, DA-DNET-M, available on our website.
MODBUS Function Codes Supported MODBUS Function Code
Function
DL06 Data Types Available
01 02 05 15 03, 04 06 16
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
Y, CR, T, CT X, SP Y, CR, T, CT CR, T, CT V V V
The MODBUS function code determines whether the access is a read or a write, and whether to access a single data point or a group of them. The DL06 supports the MODBUS function codes described below.
Determining the MODBUS Address
4–12
There are typically two ways that most host software conventions allow you to specify a PLC memory location. These are: • By specifying the MODBUS data type and address • By specifying a MODBUS address only
DL06 Micro PLC User Manual; 3rd Edition Rev. A
Page 139
Chapter 4: System Design and Configuration
If Your Host Software Requires the Data Type and Address 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. • Discrete – X, SP, Y, CR, S, T, C (contacts) • 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 table below shows the exact equation used for each group of data. DL06 Memory Type
QTY (Decimal)
PLC Range (Octal)
MODBUS Address Range MODBUS Data Type (Decimal)
For Discrete Data Types .... Convert PLC Addr. to Dec. + Start of Range + Data Type 512 X0 – X777 2048 – 2559 Input Inputs (X) 512 SP0 – SP777 3072 – 3583 Input Special Relays(SP) 512 Y0 – Y777 2048 – 2559 Coil Outputs (Y) 1024 C0 – C1777 3072 – 4095 Coil Control Relays (CR) 256 T0 – T377 6144 – 6399 Coil Timer Contacts (T) 128 CT0 – CT177 6400 – 6527 Coil Counter Contacts (CT) 1024 S0 – S1777 5120 – 6143 Coil Stage Status Bits(S) For Word Data Types .... Convert PLC Addr. to Dec. + Data Type 256 V0 – V377 0 – 255 Input Register Timer Current Values (V) 128 V1000 – V1177 512 – 639 Input Register Counter Current Values (V) V-Memory, user data (V) V-Memory, non-volatile (V)
3200 4096 128
V1200 – V7377 V10000 - V17777 V7400 – V7577
640 – 3839 4096 - 8191 3840 – 3967
Holding Register Holding Register Holding Register
DL06 Micro PLC User Manual; 3rd Edition Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
4–13