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

The text of a manual · part 4 of 6

DL405 Remote Master/Remote Slave D4-RM, D4-RS, and D4-RSDC, pages 31 to 40

Pages 31 to 40 of 60

The original document is the PDF (1.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 PLC Direct D4-RM and Koyo D4-RM

Page 31

3--4

Installation and Wiring

On the rear of each module is an opening with a 4--position DIP switch. These switches must be set to indicate whether the module is a slave or a master and to specify the proper baud rate (either 38.4 kBaud or 19.2 kBaud).

Remote I/O Installation/Wiring

Getting Started

Step Two: Setting the Rear DIP Switches

DIP Switches

Chart for DIP Switch Settings Position

1

2

3

4

Master

Always ON

ON=38.4 kBaud Always OFF OFF=19.2 kBaud

Always OFF

Remote

Always OFF

ON=38.4 kBaud Always OFF OFF=19.2 kBaud

Always OFF

An arrow showing the ON position is visible on the switch beside Position 1. Position 1 is in the ON position for the DM4-RM. Postion 1 of the DIP switch for the D4-RS and D4-RSDC is always set to the OFF position. Remember, only the D4-RM can be used as a master. Position 2 is ON if you want the faster baud rate, 38.4 kBaud. It is OFF if you want the slower 19.2 kBaud. Of course, Position 2 of the master and slaves have to be set to the same setting in order to communicate. Positions 3 and 4 are not used and are always set in the OFF position.

Page 32

Installation and Wiring Example Showing Proper Setting of Switches MasterModule

3--5

Here’s the way Steps 1 and 2 would be carried out for the example system we established in Chapter 2 if we decided to operate at 38.4 kBaud:

Rotary Switch

Main Base with Master

Dip Switch

Can go in any slot

CPU and PS

16

16

16

16

16

I

I

I

O

O

ON=Master ON =38.4 kBaud OFF=Not Used OFF=Not Used

1st Remote 8

I

8

I

8

O

OFF=Remote ON =38.4 kBaud OFF=Not Used OFF=Not Used

8

O

Slave Module

2nd Remote 16

16

16

I

I

O

O

OFF=Remote ON =38.4 kBaud OFF=Not Used OFF=Not Used

Slave Module

3rd Remote 8

I

8

I

8

O

OFF=Remote ON =38.4 kBaud OFF=Not Used OFF=Not Used

8

O

Slave Module

Chart for DIP Switch Settings Position

1

2

3

4

Master

Always ON

ON=38.4 kBaud Always OFF OFF=19.2 kBaud

Always OFF

Remote

Always OFF

ON=38.4 kBaud Always OFF OFF=19.2 kBaud

Always OFF

Remote I/O Installation/Wiring

16

Page 33

3--6

Installation and Wiring

Getting Started

Step Three: Inserting the Module in the Base The D4-RM can go into any slot in the CPU base. The D4-RS or D4-RSDC must be inserted in the CPU slot of the remote base(s). NOTE: Don’t forget to check your total “power budget” and make sure your total current drawn by the remote modules and other I/O modules do not exceed the total amount allowable for the CPU you are using. See Chapter 2 of this manual or your DL405 User Manual for instructions on how to compute your power budget.

Remote I/O Installation/Wiring

WARNING: To minimize the risk of electrical shock, personal injury, or equipment damage, always disconnect the system power before installing or removing any system component.

D4-RS or D4-RSDC must be inserted in the CPU slot of the remote base.

D4-RM can go into any slot in the local base except the CPU slot.

Notice the modules have plastic tabs at the bottom and a screw at the top. With the module tilted slightly forward, hook the plastic tab on the module into the notch on the base. Next, gently push the top of the module back toward the base until it is firmly seated into the base. Now tighten the screw at the top of the module to secure the module to the base.

Page 34

3--7

Installation and Wiring

Step Four: Connecting the Wiring General Wiring Guidelines

You should consider the following wiring guidelines when wiring your system.

Power Connections for the D4-RS or D4-RSDC

To access the power terminals of the D4-RS or D-RSDC modules, you must first remove the large protective cover from the front of the enclosure. Without power being applied, connect the line voltage or DC power supply wires to the appropriate terminals. Also connect the safety earth ground.

D4-RS

D4-RSDC

D4- RS 110/220VAC REMOTE I/O

(Earth Ground) (Line Voltage) (Line Neutral)

D4- RS 110/220VAC REMOTE I/O

T 1 2

(Earth Ground) 20--28VDC (+) 3A (--)

T 1 2

3

3

G

G

Remote I/O Installation/Wiring

Step1 -There is a limit to the size of wire the modules can accept. 16 AWG to 24 AWG is recommended. Smaller AWG is acceptable. Step2 -Always use a continuous length of wire, do not combine wires to attain a needed length. Step3 -Use the shortest possible cable length. Step4 -Where possible, use wire trays for routing. Step5 -Avoid running wires near high energy wiring. Step6 -Avoid running input wiring in close proximity to output wiring where possible. Step7 -To minimize voltage drops when wires must run a long distance, consider using multiple wires for the return line. Step8 -Where possible, avoid running DC wiring or communication cabling in close proximity to AC wiring. Step9 -Avoid creating sharp bends in the wires. Step 1 Label all wires.

Page 35

Installation and Wiring The diagram shown below depicts the cabling between the master and its slaves. This is twisted pair cable. The two inner wires are connected to terminals 1 and 2 of each module. The shield wire is connected to terminal 3. Do not connect the shield wire to the Ground terminal. Make sure the the connections between master and all slaves are always 1 to 1, 2 to 2 and 3 to 3. Master

Termination Resistors

Slave 1

Slave 2

Slave 3

1

1

1

1

2

2

2

2

3

3

3

3

At each end of a master/slave system, it is necessary to have a “termination resistor” to prevent signal reflections from interferring with the communications. Although the modules have a 330 ohm resistor built in for this purpose, there are three options to be considered:

Remote I/O Installation/Wiring

Option 1: Use Internal Resistor Only With this configuration, you use the internal resistor of the module to provide all the terminating resistance necessary. A jumper wire is placed between the terminating terminal and terminal 1.

Option 2: Use Internal Resistor and Balance Resistor To better match the impedance of the cabling, you can elect not use the internal resistor; and instead, use a resistor of your choice externally. This is connected between terminals 1 and 2. You do not use the jumper wire in this case.

Internal Wiring

Cabling Between the Master and Slaves

T Internal 330 ohm resistor

1 2

Jumper Wire

3

Internal Wiring

Getting Started

3--8

T Internal 330 ohm resistor

1 2 3

You add your own resistor, using a resistor between 100 and 500 ohms.

Page 36

Option 3: External Resistor in Series With this option, you use an external resisor in series with the internal resistor. The sum resistance should match the cabling impedance.

Internal Wiring

Installation and Wiring

3--9

T Internal 330 ohm resistor

1 2 3

You use an external resistor in series with the internal resistor.

Connecting the Run Output Circuit

3 G Internal relay RUN OUTPUT

The Run Output relay can be wired to a 24 VDC sinking input module so that ladder logic can be written to monitor the communications link. The bottom two terminals for the terminal block are where the wires are connected from the input module.

RUN COMMON

If the RUN relay in the master goes OFF, then the RUN relay in all of the slaves will be taken off-line also. If you choose to wire an input (say, X10) from the Run Output, it is very easy to include a rung of logic to sound an alarm or to stop a process when communication problem occurs: X10

Y23 OUT Alarm Output

Remote I/O Installation/Wiring

D4-RM, D4-RS, and D4-RSDC modules have a normally open relay that closes when communication is successfully made between the master and its slaves. Each module has its own LED indicator that glows when successful communication has been accomplished.

Page 37

Writing the Setup Program In This Chapter. . . ., Getting Started with Your Programming, Writing Your Remote I/O Setup, Special Relays used for Remote I/O, How to Use the Special Relays

14

Page 38

4--2

Setup Programming

Getting Started with Your Programming

Remote I/O Setup Programming

You can write your program using either a handheld programmer or PC loaded software such as DirectSOFT. The examples that follow will show you how this is done using DirectSOFT. To get started, enter DirectSOFT and carry out the normal DirectSOFT setup procedures for communicating with your DL405 CPU. If you do not know how to do this, refer to your DirectSOFT Manual. Chapter 11 of your DL405 User Manual also has a very good coverage of the basic commands available and examples of how the commands are used for writing general ladder logic. We will be showing you in this chapter only those commands that pertain to setting up your remote I/O initialization and its successful utilization. First open DirectSOFT from Windows and establish a link with your CPU. Then enter the Edit Mode for programming. You should now be looking at a screen similar to the one shown below:

The DirectSOFT window shown above depicts a program that has already been written. Your window, of course, will be empty when you first enter it. The pages that follow will show you how to write each part of your initilization program.

Page 39

Setup Programming

4--3

Writing Your Remote I/O Setup Step 1: Decide How You Are Going to Call Your Program

Is your setup logic going to be in the main program body or is it going to be in a subroutine? If you have a DL430, the decision is made for you. The DL430 cannot handle the GTS command for calling a subroutine; and so, you have to write the code in the main body. The DL440, on the other hand, does include the GTS command. A subroutine for your remote I/O setup has an advantage over writing the code into the program’s main body. Some remote I/O setup logic becomes quite lengthy. By putting the setup in a subroutine, you don’t have to scroll through extra logic during routine troubleshooting procedures. If you are using the DL440, we advise you to use a subroutine for your remote I/O initialization. Here’s how: Using the GTS Command for the DL440 SP00

K1 GTS

DirectSOFT Display

Main Program Body Goes Here

END SBR

K1

Subroutine Will Go Down Here

Remote I/O Setup Programming

NOTE: Set Retentive Ranges so that C670 -- C737 and V7404 -- V7477 are not retentive.

Page 40

4--4

Setup Programming

Step 2: Write the Setup Logic for Each Remote Base

SP00

Remote #1 Input SP00

Remote #1 Output SP00

Remote I/O Setup Programming

Remote #2 Input SP00

Remote #2 Output SP00

Remote #3 Input SP00

Remote #3 Output

Whether you choose to write the remote I/O setup program as a subroutine or as a part of the main program, the procedure is still the same. You have two things you have to do: S Tell the CPU where to read and write the remote I/O points in memory. This is done with the use of “address pointers”. S Tell the CPU how many points are located in each base. You can use your worksheets to assist you. In the diagram below, you see how the starting addresses for the points in each remote base (from the tables in Appendix B) are mapped with the proper reserved memory pointers. The chart at the bottom of the page shows the pointer addresses. Notice that the number of points goes in the address immediately following the pointer for the start address. A combination of LDA and OUT commands are used to load and map the V40xxx address into the proper V74xx address. The LD and OUT commands are used to load the number of remote points for each remote base, by placing the number in the address immediately following its pointer. The chart at the bottom also shows the memory locations for storing the number of I/O points for each remote base. LDA O40403 OUT V7404 LD K16 OUT V7405

Remote Slave Worksheet 1

Note:

Remote Base Address_________(Choose 1--7)

The LDA instruction is loading octal numbers and therefor a capital O is placed in front of the number

INPUT

OUTPUT

Slot Number

Module Name

Input Address

No. Inputs

0

08ND3S

X060

8

LD K16

1

08ND3S

X070

8

2

OUT V7407

3

LDA O40502 OUT V7406

LDA O40404

4

OUT V7410

5

Starting Address

OUT V7412

Pointer Address

8

Y050

8

16 Total Input Points_____ Y040 40502 Output Bit Start Address:________V-Memory Address:V_______

No. of I/O Points

16 Total Output Points_____

Pointer Address + 1

LDA O40406

Table of Reserved Memory for Remote I/O Setup

OUT V7414 LD

Y040

08TD1

X060 40403 Input Bit Start Address:________V-Memory Address:V_______

LDA O40503

K32

08TD1

7

OUT V7411

OUT V7413

No.Outputs

6

LD K32

LD

Output Address

First Master Module

K16

Second Master Module

OUT V7415

Slave

LDA O40505

Input Address

Number of Input Pts

Output Address

Number of Output Pts

Input Address

1

V7404

V7405

V7406

V7407

V7444

V7445

V7446

V7447

2

V7410

V7411

V7412

V7413

V7450

V7451

V7452

V7453

3

V7414

V7415

V7416

V7417

V7454

V7455

V7456

V7457

4

V7420

V7421

V7422

V7423

V7460

V7461

V7462

V7463

OUT V7416 LD

K16

OUT V7417

Number of Output Input Pts Address

Number of Output Pts

5

V7424

V7425

V7426

V7427

V7464

V7465

V7466

V7467

6

V7430

V7431

V7432

V7433

V7470

V7471

V7472

V7473

7

V7434

V7435

V7436

V7437

V7474

V7475

V7476

V7477