The text of a manual · part 2 of 6
DL405 Remote Master/Remote Slave D4-RM, D4-RS, and D4-RSDC, pages 11 to 20
Pages 11 to 20 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 11
Remote I/O Getting Started
1--6
Getting Started
Number of Masters In its simplist form, you may want to use only one master in your CPU base and then attach from one to seven remote I/O bases. However, in addition to the simple and Slaves configuration, more than one master can be placed in the CPU base. You may use a Allowed maximum of two masters per CPU base. Here is an example where we have placed two masters in the CPU base and then attached a total of six remote I/O racks.
Two Masters in the Same Base (2--Channel)
Remote Masters
Maximum of 2 per CPU base
CH 1
CH 2
Masters can go in any slot.
Remote Slaves
3300ft (1000m) Max.
Maximum of 7 remote bases per channel.
Allowable distance is from furthest slave to the remote master.
Distance Between Each slave belonging to the same master is hooked together in a daisy chain using a Slaves and Master, shielded twisted pair cable. The last slave unit in the daisy chain cannot be further than 3300 feet from the CPU base. You set switches that designate the slaves as No. Baud Rates 1, No. 2, etc. There is an additional switch on each unit to set the baud rate for communication. You have your choice of either 19.2 kB or 38.4 kB. Slaves and Master must be set to the same baud rate. Let’s now take a closer look at each of the remote I/O modules.
Page 12
Getting Started
1--7
Remote Master (D4-RM) Features
DIAG--Turns ON when there is a hardware failure.
RUN--Turns ON when the module is operating correctly.
Remote Master
PAR--Turns ON when there is a parity error in your communications.
I/O--Turns ON when ladder setup does not match the actual I/O, or the rotary switch is set to 0, 8 or 9, or a slave module controlled by the D4-RM causes an error.
LINK--Turns ON when there is a communications error. UNIT ADRS--Rotary switch for setting the module to be the master or a slave---bases 0 through 7.
MSTR--Turns ON to indicate that it is configured as a master.
T---Terminating point that is connected to point 1 with a jumper at the master and final slave base units. 1--1st wire of twisted pair 2--2nd wire of twisted pair 3--Shield of twisted pair
RUN RELAY--Internal relay that is closed as long as there is a communications link present.
Specifications
G--Ground connection
Number of Masters per CPU
2 max. for DL430 or DL440
Maximum No. Slaves Supported
7
Number of Remote I/O Points per CPU
512
Module Type
Intelligent
Installation Requirements
Any slot, CPU base only
Internal Power Consumption
300 mA maximum
Digital I/O Consumed
None
Run Output Relay Rating
250 VAC at 1A 30 VDC at 1A
Communication Baud Rates
19.2 kB or 38.4 kB (Switch Selectable)
Communication Method
Asynchronous (half-duplex)
Communication Cabling
RS-485 twisted pair Belden 9271 or equivalent
Maximum Transimission Distance
3300 ft. (1000 meters)
Operating Temperature
32 to 140° F (0 to 60_ C)
Storage Temperature
--4 to 158° F (--20 to 70_ C)
Relative Humidity
5 to 95% (non-condensing)
Environmental air
No corrosive gases permitted
Vibration
MIL STD 810C 514.2
Shock
MIL STD 810C 516.2
Noise Immunity
NEMA ICS3--304
Remote I/O Getting Started
PWR--Turns ON at power up.
Page 13
1--8
Getting Started
Remote I/O Getting Started
Remote Slave (D4-RS or D4-RSDC) Features I/O--Turns ON when the communications link is set up wrong, or the rotary switch is set to 0, 8 or 9, or a slave module controlled by the D4-RM causes an error. BLINKS when module user power supply fails (e.g. analog module with no 24VDC connected).
Remote Slave
PWR--Turns ON at power up. RUN--Turns ON when the module is operating correctly. DIAG--Turns ON when there is a hardware failure. RUN RELAY
PAR--Turns ON when there is a parity error in your setup. LINK--Turns ON when there is a communications error.
24-VOLT AUXILLARY POWER LOGIC GROUND CHASSIS GROUND
T---Terminating point that is connected to point 1 with a jumper at the final slave base unit.
POWER1 UNIT ADRS--Rotary switch for setting the module to be a slave----bases 1 through 7. DIP SWITCH--On rear of module for setting baud rate.
Specifications
1--1st wire of twisted pair 2--2nd wire of twisted pair 3--Shield of twisted pair G--Ground connection 1Depends on model-- D4-RS=AC, D4-RSDC=DC
Slaves per channel
7
Module Type
Non--intelligent slave
Installation Requirements
CPU slot in any 4, 6 or 8-slot base
Power Required
110 VAC/220 VAC (D4-RS) 24 VDC (D4-RSDC)
Digital I/O Consumed
None Note: Consumes remote I/O points at a rate equal to the number of I/O points in each base.
Run Output Relay Rating
250 VAC at 1A 30 VDC at 1A
Communication Baud Rates
19.2 kB or 38.4 kB (Switch Selectable)
Communication Cabling
RS-485 twisted pair Belden 9271 or equivalent
Operating Temperature
32 to 140° F (0 to 60_ C)
Storage Temperature
--4 to 158° F (--20 to 70_ C)
Relative Humidity
5 to 95% (non-condensing)
Environmental air
No corrosive gases permitted
Vibration
MIL STD 810C 514.2
Shock
MIL STD 810C 516.2
Noise Immunity
NEMA ICS3--304
Page 14
Getting Started
1--9
Assigning the Remote Input and Output Addresses
Remote I/O Address Assignement MasterModule
Main Base with Master
CPU and PS
Slave Module
16
16
16
16
16
I
I
I
O
O
X0-X17 V40400
X20-X37 V40401
These points are automatically assigned to memory by the CPU for the local base.
8
8
8
I
I
O
O
SP00
Remote #1 Input
X40-X57 Y0-Y17 Y20-Y37 V40402 V40500 V40501
8
X60-X67 X70-X77 V40403
Below is the RLL that maps the remote I/O for unit 1 into memory.
1st Remote
Remote I/O points are not assigned automatically. You have to map them into memory with RLL.
Y40-Y47 Y50-Y57 V40502
Next available starting input address is X60. Next available starting output address is Y40. There are 16 inputs and 16 outputs in the remote base.
SP00
Remote #1 Output
LDA O40403 OUT V7404 LD K16 OUT V7405 LDA O40502 OUT V7406 LD K16 OUT V7407
Remote I/O Getting Started
If you’ve used a DL405 CPU and local (or expansion) I/O before, then you probably know that the CPU will automatically assign the input and output addresses. That is, input points are automatically assigned starting at X0, and output points are automatically assigned starting at Y0. In a Remote I/O system, the input and output points in the remote bases are not automatically assigned in this manner. Instead, you have to add some setup logic to your control program that tells the CPU how to assign the addresses to the remote input and output points. Remote I/O In a local/expansion system, inputs are assigned starting at X0 and outputs are assigned starting at Y0. In a Remote I/O system, you can choose this conventional Data Types method, or you can choose to assign the inputs and outputs to other data types. For example, you could assign the remote inputs and outputs as GX (global) data type, or as the C (control relay) data type. This provides flexibility and becomes especially useful if you have already used all of the available X input and Y output addresses in your local and expansion bases. For example, if you had a local/expansion system that used several 32-point input and output modules, you could easily use the entire limit of 320 X input or 320 Y output points (640 total max. I/O points). Now if you added modules in a Remote I/O system, there may not be any additional X input or Y output addresses available for the remote inputs and outputs. (In the vast majority of remote I/O systems, you will be able to use the X input and Y output addresses, but you can see that there may be occasions when you need a different data type for the remote points. Specify Addresses The DL405 CPUs have specific memory locations (called pointers) that tell the CPU how to assign the remote I/O addresses. First, you use the tables (in Appendix B) to with Setup Logic look up the next available starting address for the data type you want to use. Next, you use a combination of LDA, LD, and OUT store this information in the pointers. Consider the following example. Although it hasn’t been discussed yet, we know that V7404 is the pointer for the 1st Remote base belonging to the 1st Remote Master. If your starting address for the I/O points belonging to the 1st Remote are going to be X60, then you would look in Appendix B to find that the starting memory location for X60 is V40403. Then you would use LDA and OUT commands to map the address into that pointer (V7404). Next you would tell the CPU how many input points are in the Remote base. Then, you repeat the steps for the output points. Later in this manual you will be shown all the pointer addresses in a convenient table and we’ll go into greater detail with additional examples.
You Assign the Addresses
Page 15
1--10
Getting Started
Remote I/O Getting Started
How the CPU Updates Remote I/O Points The CPU and remote master work together to update the remote I/O points. Below is an example showing how scanning and updating takes place. Notice that there are two independent scan cycles going on at the same time, but asynchronously. The CPU module is doing its scan which includes looking at the information that the remote master is writing to its internal buffers. During every CPU scan, the CPU examines the internal buffers of the remote master, and updates input and output data from the remote I/O. It is very possible for the CPU to be scanning faster than the remote master can do its scan. It is largely dependent on the size of the application program, the baud rate you have selected for the data transfer between the slaves and master, as well as the number of I/O points being monitored. Therefore, if you have I/O ppoints that must be monitored on every CPU scan, you should place these critical I/O points in the local or expansion bases. The CPU reads the status of any input points associated with remote I/O and stores the status in the input image register.
CPU Scan
Remote Scan Asynchronous to CPU scan
Read Inputs Mapped into memory using your RLL.
The Remote Master obtains the I/O status from the Remote Slaves.
V7404=40000 octal V7405=0008 bcd
Read Inputs from Remote I/O ... GX2 GX1 GX0 ... ON OFF OFF Input Image Register Starting Address
00101100
Service Peripherals, Force I/O CPU Bus Communication Update clock, Special Relays Solve the Application Program GX0
Y1
The status of the input image register is used to solve the application program.
Write Outputs Write Outputs to Remote I/O Diagnostics
Remote Master
Remote Master Buffer
0 0 1 1 0 1 0 0
OFF OFF ON ON OFF ON OFF OFF
GX0 GX1
Remote Slave #1
GX2 GX3 GX4 GX5 GX6 GX7
Input Module
In this example, we have 8 inputs using global GX data types in Slave #1. We have designated 40000 (octal) as the starting address for writing the input data. Output data, if there were output points, is handled in a similar fashion.
NOTE: In some cases it may be helpful to understand the update time required for a Remote I/O system. Appendix C shows example calculations.
Page 16
1--11
Getting Started
3 Easy Steps for Setting Up Remote I/O
Main Base
16 16 16 16
I
I O O 8
8
8 16 16
Empty
Master
8
I
8
I O O
Slave 1
I O O
Slave 2
Step Two: Install the Components
Step Three: Write the Setup Program
Install the bases and insert the master(s) and the remote slaves. Wire all of your I/O to match your information in Step 1. Set the hardware switches so that the CPU can identify the master and slave units. This also will set the baud rate for data transfer and designate how the slave units are numbered, i.e. No. 1, No. 2, and so on. Covered in Chapter 3.
Write the RLL setup program that will tell the CPU which address you want to use for the remote input and output points. Covered in Chapter 4.
T 1 2 3 G
SP00
LDA O40403
Read area for Remote 1 Input
OUT V7404 LD
The next two pages provide a complete overview of the entire process for an example remote I/O system. Of course, to learn all of the details, you should read each chapter carefully.
Total Input Points
Write area for Remote 1 Output
Total Output Points
K16
OUT V7405 LDA O40502 OUT V7406 LD
K16
Remote I/O Getting Started
Figure out how much remote I/O you will need. This will, in turn, tell you how many Step One: Design the System remote masters and remote slaves you will need. In Chapter 2, we will show you how to use worksheets to plan and keep track of your data type assignments. We’ll also show you how to determine the correct addresses for reading and writing remote I/O data.
Page 17
Remote I/O Getting Started
1--12
Getting Started
EXAMPLE: 38.4 kBaud, D4-440
Step 1: Design the Remote I/O System
Main Base with Master
MasterModule
Remote Slave Worksheet
Can go in any slot
CPU and PS
16
1 Remote Base Address_________(Choose 1--7)
16
I
I
X0-X17 V40400
X20-X37 V40401
16
16
I
16
O
O
8
I
8
8
8
I
O
O
X60-X67 X70-X77 V40403
Slave Module
0
08ND3S
X060
8
1
08ND3S
X070
8
Output Address
No.Outputs
2
08TD1
Y040
8
3
08TD1
Y050
8
6 7 X060 Input Bit Start Address:________V-Memory Address:V_______ 40403 16 Total Input Points_____
16
16
16
16
I
I
O
O
X100-X117 X120-X137 Y60-Y77 V40404 V40405 V40503
Y040 40502 Output Bit Start Address:________V-Memory Address:V_______ 16 Total Output Points_____
Y100-Y117 V40504
Remote Slave Worksheet
3rd Remote I
No. Inputs
5
2nd Remote
8
Input Address
4
Y40-Y47 Y50-Y57 V40502
Slave Module
OUTPUT
Module Name
X40-X57 Y0-Y17 Y20-Y37 V40402 V40500 V40501
1st Remote
INPUT
Slot Number
2 Remote Base Address_________(Choose 1--7)
OUTPUT
8
8
Slot Number
I
O
O
0
16ND2
X100
16
1
16ND2
X120
16
2 3
X140-X147 X150-X157 Y120-Y127 Y130-Y137 V40406 V40505
Slave Module
Module Name
INPUT
8
Output Address
No.Outputs
16TD1
Y060
16
16TD1
Y100
16
Input Address
No. Inputs
4
Remote Slave Worksheet
5
3 Remote Base Address_________(Choose 1- 7) Slot Number
6
INPUT
7
OUTPUT
Module Name
Input Address
No. Inputs
Output Address
X100 40404 Input Bit Start Address:________V-Memory Address:V_______
No.Outputs
0
08ND3S
X140
8
1
08ND3S
X150
8
2
08TD1
Y120
8
3
08TD1
Y130
8
32 Total Input Points_____ Y060 40503 Output Bit Start Address:________V-Memory Address:V_______ 32 Total Output Points_____
4 5
Note:
6 7 X140 Input Bit Start Address:________V-Memory Address:V_______ 40406 16 Total Input Points_____ Y120 Output Bit Start Address:________V-Memory Address:V_______ 40505 16 Total Output Points_____
The Remote Slave Worksheet is found in Appendix A.
Page 18
Getting Started
Step 3: Write the Setup Program RLL Program
Table for setting DIP switch Position
1
Master
Always ON
3
4
Always OFF
Always OFF
GTS
Always OFF
Go to remote I/O subroutine
Main Program Body
ON=38.4kB OFF=19.2kB
END SBR
Remote
K1
SP00
2
ON=38.4kB
Always OFF
OFF=19.2kB
K1
Remote I/O Subroutine Note: Write as subroutine only if using D4--440 CPU For D4--430, this must be in main program.
Always OFF SP1
LD K38 There are 56 reserved locations 56 decimal = 38 hex
Master SP1
1=ON 2=ON 3=OFF 4=OFF
From Table Below
LDA O7404
Number of V memory locations in table Where the reserved memory starts
FILL K0
Clear Table
LDA O40403
Starting Address
OUT V7404 LD K16
1st Remote
SP1 1=OFF 2=ON 3=OFF 4=OFF
From Table Below
OUT V7405 LDA O40502
From Table Below
OUT V7406 LD K16
2nd Remote SP1 1=OFF 2=ON 3=OFF 4=OFF
From Table Below
OUT V7410 LD K32
3rd Remote
SP1
1=OFF 2=ON 3=OFF 4=OFF
From Table Below
From Table Below
Second Master Module
K32
From Table Below
Starting Address
Remote #2 Input Starting Address
Remote #2 Output
OUT V7413 LDA O40406
Table of Reserved Memory for Remote I/O Setup First Master Module
OUT V7412 LD
SP1
Remote #1 Output
OUT V7411 LDA O40503
From Table Below
Starting Address
OUT V7407 LDA O40404
From Table Below
Remote #1 Input
OUT V7414 LD
K16
Starting Address
Remote #3 Input
Slave
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
5
V7424
V7425
V7426
V7427
V7464
V7465
V7466
V7467
6
V7430
V7431
V7432
V7433
V7470
V7471
V7472
V7473
C670
7
V7434
V7435
V7436
V7437
V7474
V7475
V7476
V7477
SET
Tell CPU that setup is completed
RT
Return to main program.
Number of Output Input Pts Address
Number of Output Pts
= unused memory for this example
SP1
OUT From Table Below V7415 LDA O40505 From Table Below
OUT V7416 LD
From Table Below
K16
Starting Address
Remote #3 Output
OUT V7417
Getting Started
Step 2: Set the Hardware
1--13
Page 19
Designing a Remote I/O System
12
In This Chapter. . . ., Designing Your System, Calculating the Power Budget, What Modules Can Go In the Remote Bases
Page 20
2--2
Designing the System
Designing Your System
Remote I/O Designing the System
Determine I/O Needed and How Many Masters & Slaves
The first step in putting any system together is to at least establish a mental picture of the system components. You may even want to draw a diagram. Below is a drawing of a typical system with: · one master module in the main base. · main base has three input modules and two output modules, each with 16-points. · first remote base has two input and two output modules--each with 8-points. · second remote base has four 16-point modules--two input and two output. · third remote base is identical to the first. MasterModule
CPU and PS
Main Base with Master Can go in any slot
16
16
16
16
16
I
I
I
O
O
X0-X17 V40400
X20-X37 V40401
X40-X57 Y0-Y17 Y20-Y37 V40402 V40500 V40501
1st Remote 8
8
8
8
I
I
O
O
X60-X67 X70-X77 V40403
Y40-Y47 Y50-Y57 V40502
Slave Module
Installation and Safety Guidelines
2nd Remote 16
16
16
16
I
I
O
O
X100-X117 X120-X137 Y60-Y77 V40404 V40405 V40503
Slave Module
Y100-Y117 V40504
3rd Remote 8
8
8
8
I
I
O
O
X140-X147 X150-X157 Y120-Y127 Y130-Y137 V40406 V40505
Slave Module
Better Define Your Idea By Using Worksheets
In Appendix A of this manual you will find a worksheet for planning the design of each of your remote I/O bases. We suggest that you photocopy this sheet and use it to map out the details of your system. Assuming this will be your procedure, this chapter will walk you through the process using the example visualized above. You will need the details from these worksheets when you set the switches on your hardware and you write the configuration code inside your ladder logic program.