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

The text of a manual · part 14 of 68

DL405 User Manual: Chapter 3: CPU Specifications and Operation, pages 105 to 114

Pages 105 to 114 of 608, from DL405 User Manual

The original document is the PDF (8.2 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 D4-08B-1, AutomationDirect D4-08ND3S, AutomationDirect D4-16TA, PLC Direct D4-16TD2, AutomationDirect D4-32ND3-1, Konnect-It D4-08B-1, Koyo D4-08B-1, Konnect-It D4-08ND3S, and 6 more models

Page 105

CPU Specifications and Operation

3--21

Forced Outputs - Outputs which are not used in the program can be forced on and off for troubleshooting and maintenance purposes. You can temporarily allow the forcing of any output by inserting an END coil instruction at the beginning of the ladder program. Then you can use DirectSOFT or a HPP to force outputs on and off. The DL405 CPUs only retain the forced value for one scan, if the I/O point corresponds to an actual point on a module in the system. However, if the point address is greater than any actual I/O point address in the system or it is not used in the ladder program, then the point will maintain the forced status. WARNING: Only authorized personnel fully familiar with all aspects of the application should make changes to the program. Make sure you thoroughly consider the impact of any changes to minimize the risk of personal injury or damage to equipment. Update Special There are certain V-memory locations that contain register information. This portion Relays and Special of the execution cycle makes sure these locations get updated on every scan. Also, there are several different Special Relays, such as diagnostic relays, etc., that are Registers also updated during this segment. CPU Bus Communication

DCM

DCM

Data

Update Clock, Special Relays, and Special Registers

The DL440 and DL450 CPUs have an internal real-time clock and calendar timer which is accessible to the application program. Special V-memory locations hold this information. This portion of the execution cycle makes sure these locations get updated on every scan. Also, there are several different Special Relays, such as diagnostic relays, etc., that are also updated during this segment.

DL405 User Manual, 4th Edition

CPU Specifications and Operation

Many of the Specialty Modules, such as the Data Communications Module and the FACTS CoProcessor modules, can transfer data to and from the CPU over the CPU bus on the backplane. This data is more than just standard I/O point status. This type of communications can only occur on the CPU (local) base. There is a portion of the execution cycle used to communicate with these modules. The CPU performs both read and write requests during this segment.

Page 106

3--22

CPU Specifications and Operation

Solve Application Program

The CPU evaluates each instruction in the application program during this segment of the scan cycle. The instructions define the relationship between input conditions and the system outputs. The CPU begins with the first rung of the ladder program, evaluating it from left to right and from top to bottom. It continues, rung by rung, until it encounters the END coil instruction. At that point, a new image for the outputs is complete. X0

X1

Y0 OUT

C0

CPU Specifications and Operation

Read Inputs from Specialty I/O Service Peripherals, Force I/O CPU Bus Communication Update Clock, Special Relays Solve the Application Program Solve PID equations (DL450)

C100 X5

Read Inputs

LD X10

K10

Write Outputs

Y3 OUT

Write Outputs to Specialty I/O

END

Diagnostics

The internal control relays (C), the stages (S), the global relays (GX), and the variable memory (V) are also updated in this segment. You may recall the CPU may have obtained and stored forcing information when it serviced the peripheral devices. If any I/O points or memory data have been forced, the output image register also contains this information. NOTE: If an output point was used in the application program, the results of the program solution will overwrite any forcing information that was stored. For example, if Y0 was forced on by the programming device, and a rung containing Y0 was evaluated such that Y0 should be turned off, then the output image register will show that Y0 should be off. Of course, you can force output points that are not used in the application program. In this case, the point remains forced because there is no solution that results from the application program execution. Solve PID Loop Equations

430 440 450

Write Outputs

The DL450 CPU can process up to 16 PID loops. The loop calculations are run as a separate task from the ladder program execution, immediately following it. Only loops which have been configured are calculated, and then only according to a built-in loop scheduler. The sample time (calculation interval) of each loop is programmable. Please refer to Chapter 8, PID Loop Operation, for more on the effects of PID loop calculation on the overall CPU scan time. Once the application program has solved the instruction logic and constructed the output image register, the CPU writes the contents of the output image register to the corresponding output points located in the local CPU base or the local expansion bases. Remember, the CPU also made sure any forcing operation changes were stored in the output image register, so the forced points get updated with the status specified earlier.

DL405 User Manual, 4th Edition

Page 107

CPU Specifications and Operation Write Outputs to Specialty and Remote I/O

3--23

After the CPU updates the outputs in the local and expansion bases, it sends the output point information that is required by any Specialty modules which are installed. For example, this is the portion of the scan that writes the output status from the image register to the Remote I/O racks. NOTE: It may appear the Remote I/O point status is updated every scan. This is not quite true. The CPU will send the information to the Remote I/O Master module every scan, but the Remote Master will update the actual remote modules during the next communication sequence between the master and slave modules. Remember, the Remote I/O link communication is managed by the Remote Master, not the CPU.

Diagnostics

Read Inputs Read Inputs from Specialty I/O Service Peripherals, Force I/O CPU Bus Communication Update Clock, Special Relays Solve the Application Program Solve PID Loop Equations Write Outputs Write Outputs to Specialty I/O Diagnostics

You can use AUX 53 to view the minimum, maximum, and current scan time. Use AUX 55 to increase or decrease the watchdog timer value. There is also an RSTWT instruction that can be used in the application program to reset the watch dog timer during the CPU scan.

DL405 User Manual, 4th Edition

CPU Specifications and Operation

During this part of the scan, the CPU performs all system diagnostics and other tasks, such as: S calculating the scan time S updating special relays S resetting the watchdog timer DL405 CPUs automatically detect and report many different error conditions. Appendix B contains a listing of the various error codes available with the DL405 system. One of the more important diagnostic tasks is the scan time calculation and watchdog timer control. DL405 CPUs have a “watchdog” timer that stores the maximum time allowed for the CPU to complete the solve application segment of the scan cycle. The default value set from the factory is 200 mS. If this time is exceeded the CPU will enter the Program Mode, turn off all outputs, and report the error. For example, the Handheld Programmer displays “E003 S/W TIMEOUT” when the scan overrun occurs.

Page 108

3--24

CPU Specifications and Operation

I/O Response Time Is Timing Important I/O response time is the amount of time required for the control system to sense a change in an input point and update a corresponding output point. In the majority of for Your applications, the CPU performs this task practically instantaneously. However, Application? some applications do require extremely fast update times. There are four things that can affect the I/O response time: S The point in the scan period when the field input changes states S Input module Off to On delay time S CPU scan time S Output module Off to On delay time Normal Minimum I/O Response

The I/O response time is shortest when the module senses the input change just before the Read Inputs portion of the execution cycle. In this case the input status is read, the application program is solved, and the output point gets updated. The following diagram shows an example of the timing for this situation.

CPU Specifications and Operation

Scan Scan

Solve Program

Solve Program Read Inputs

Solve Program

Solve Program

Write Outputs

Field Input CPU Reads Inputs

Input Module Off/On Delay

CPU Writes Outputs

Output Module Off/On Delay I/O Response Time

In this case, you can calculate the response time by simply adding the following items. Input Delay + Scan Time + Output Delay = Response Time Normal Maximum I/O Response

The I/O response time is longest when the module senses the input change just after the Read Inputs portion of the execution cycle. In this case the new input status does not get read until the following scan. The following diagram shows an example of the timing for this situation. In this case, you can calculate the response time by simply adding the following items. Input Delay +(2 x Scan Time) + Output Delay = Response Time

DL405 User Manual, 4th Edition

Page 109

CPU Specifications and Operation

3--25

Scan Scan

Solve Program

Solve Program Read Inputs

Solve Program

Solve Program

Write Outputs

Field Input CPU Reads Inputs

Input Module Off/On Delay

CPU Writes Outputs

Output Module Off/On Delay I/O Response Time

Improving Response Time

Scan Scan

Solve Program Normal Read Input

Solve Program Read Input Immediate

Solve Program Write Output Immediate

Solve Program

Normal Write Outputs

Field Input Input Module Off/On Delay Output Module Off/On Delay I/O Response Time

In this case, you can calculate the response time by simply adding the following items. Input Delay + Instruction Execution Time + Output Delay = Response Time The instruction execution time is calculated by adding the time for the immediate input instruction, the immediate output instruction, and all instructions inbetween. NOTE: When the immediate instruction reads the current status from a module, it uses the results to solve that one instruction without updating the image register. Therefore, any regular instructions that follow will still use image register values. Any immediate instructions that follow will access the module again to update the status.

DL405 User Manual, 4th Edition

CPU Specifications and Operation

There are a few things you can do the help improve throughput. S Choose instructions with faster execution times S Use immediate I/O instructions (which update the I/O points during the ladder program execution segment) S Choose modules that have faster response times Immediate I/O instructions are probably the most useful technique. The following example shows immediate input and output instructions, and their effect.

Page 110

3--26

CPU Specifications and Operation

CPU Specifications and Operation

CPU Scan Time Considerations The scan time covers all the cyclical tasks that are performed by the operating system. You can use DirectSOFT or the Handheld Programmer to display the minimum, maximum, and current scan times that have occurred since the previous Program Mode to Run Mode transition. This information can be very important when evaluating the performance of a system. As we’ve shown previously there are several segments that make up the scan cycle. Each of these segments requires a certain amount of time to complete. Of all the segments, the only one you really have the most control over is the amount of time it takes to execute the application program. This is because different instructions take different amounts of time to execute. So, if you think you need a faster scan, then you can try to choose faster instructions. Your choice of I/O modules and system configuration, such as expansion or remote I/O, can also affect the scan time. However, these things are usually dictated by the application. For example, if you have a need to count pulses at high rates of speed, then you’ll probably have to use a High-Speed Counter module. Also, if you have I/O points that need to be located several hundred feet from the CPU, then you need remote I/O because it’s much faster and cheaper to install a single remote I/O cable than it is to run all those signal wires for each individual I/O point. The following paragraphs provide some general information on how much time some of the segments can require.

Power up

Initialize hardware Check I/O module config. and verify Initialize various memory based on retentive configuration

Update input Read input data from Specialty and Remote I/O Service peripheral

CPU Bus Communication

Update Clock / Calendar

PGM

Mode? RUN Execute ladder program

PID Equations (DL450)

Update output Write output data to Specialty and Remote I/O

Do diagnostics

OK OK? NO Report the error, set flag, register, turn on LED

Fatal error YES Force CPU into PGM mode

DL405 User Manual, 4th Edition

YES

NO

Page 111

CPU Specifications and Operation Initialization Process

Reading Inputs

3--27

The CPU performs an initialization task once the system power is on. The required time depends on system loading, such as the number of I/O modules installed, type of memory cartridge being used etc. The initialization task is performed once at power-up, so it does not affect the scan time for the application program. Initialization

DL430

DL440

DL450

Minimum Time

1.2 Seconds

1.0 Seconds

1.9 Seconds

Maximum Time

3.2 Seconds

2.5 Seconds

3.3 Seconds

The time required to read the input status for the local and expansion input modules depends on which CPU you are using, the number of input points in these bases, and the number of input modules being used. The following table shows typical update times required by the CPU. Timing Factors

DL430

DL440

DL450

20.0 μs

14.5 μs

20.0 μs

Per input module

48.0 μs

22.6 μs

13.0 μs

Per input point

4.0 μs

2.5 μs

6.3 μs

For example, the time required for a DL430 to read two 16-point input modules would be calculated as follows. (Where NM is the number of modules and NI is the total number of input points.) Formula

Time = 20μs + (48μs x NM) + (4μs x NI) Example

Time = 20μs + (48μs x 2) + (4μs x 16) Time = 180 μs

NOTE: This information provides the amount of time the CPU spends reading the input status from the modules. Don’t confuse this with the I/O response time that was discussed earlier.

DL405 User Manual, 4th Edition

CPU Specifications and Operation

Overhead

Page 112

3--28

CPU Specifications and Operation

Reading Inputs from Specialty I/O

During this portion of the cycle the CPU reads any input points associated with the following. S Remote I/O S Specialty Modules (such as High-Speed Counter, etc.) The time required to read any input status from these modules depends on which CPU you are using, the number of modules, and the number of input points. Specialty Module

DL430

DL450

Overhead

32.0 μs

20.0 μs

20.0 μs

Per module (with inputs)

100.0 μs

67.0 μs

13.0 μs

Per input point

80.0 μs

54.0 μs

13.8 μs

Remote Module

CPU Specifications and Operation

DL440

DL430

DL440

DL450

Overhead

32.0 μs

22.0 μs

19.0 μs

Per module (with inputs)

150.0 μs

100.0 μs

62.0 μs

Per input point

25.0 μs

17.0 μs

11.2 μs

For example, the time required for a DL430 to read two 32-point input modules (located in a Remote base) and the input points associated with a single High-Speed Counter module would be calculated as follows. (Where NM is the number of modules and NI is the total number of input points.) Remote I/O

High-Speed Counter

Formula Time = 32μs + (150μs x NM) + (25μs x NI)

Formula Time = 32μs + (100μs x NM) + (80μs x NI)

Example Time = 32μs + (150μs x 2) + (25μs x 32)

Example Time = 32μs + (100μs x 1) + (80μs x 16)

Time = 1832 μs

Time = 1412 μs

Total Time

Time = 3244 μs

Service Peripherals Communication requests can occur at any time during the scan, but the CPU only “logs” the requests for service until the Service Peripherals portion of the scan. (The CPU does not spend any time on this if there are no peripherals connected.) To Log Request (anytime)

DL430

DL440

DL450

Nothing Connected

Min. & Max.

0 μs

0 μs

0 μs

Port 0

Send Min. / Max.

52 / 62 μs

40 / 48 μs

38 / 38 μs

Rec. Min. / Max.

60 / 78 μs

52 / 63 μs

45 /45 μs

Send Min. / Max.

60 / 78 μs

46 / 50 μs

41 / 48 μs

Rec. Min. / Max.

68 / 86 μs

66 / 70 μs

47 / 59 μs

Send Min. / Max.

N/A

N/A

41 / 48 μs

Rec. Min. / Max.

N/A

N/A

47 / 59 μs

Send Min. / Max.

N/A

N/A

38 / 38 μs

Rec. Min. / Max.

N/A

N/A

45 / 45 μs

Port 1 Port 2 Port 3

DL405 User Manual, 4th Edition

Page 113

CPU Specifications and Operation

3--29

During the Service Peripherals portion of the scan, the CPU analyzes the communications request and responds as appropriate. The amount of time required to service the peripherals depends on the content of the request. To Service Request

CPU Bus Communication

DL430

DL440

DL450

Minimum

170 μs

120 μs

96 μs

Run Mode Max.

18 ms

26 ms

160 ms

Program Mode Max.

3 Seconds

15 Seconds

11.2 Seconds

Some specialty modules can also communicate directly with the CPU via the CPU bus. During this portion of the cycle the CPU completes any CPU bus communications. The actual time required depends on the type of modules installed and the type of request being processed. NOTE: Some specialty modules can have a considerable impact on the CPU scan time. If timing is critical in your application, consult the module documentation for any information concerning the impact on the scan time. The clock, calendar, and special relays are updated and loaded into special V-memory locations during this time. This update is performed during both Run and Program Modes. Modes Program Mode Run Mode

Writing Outputs

DL430

DL440

DL450

Minimum

8.0 μs fixed

35.0 μs

12.0 μs

Maximum

8.0 μs fixed

48.0 μs

12.0 μs

Minimum

20.0 μs

60.0 μs

22.0 μs

Maximum

26.0 μs

85.0 μs

29.0 μs

The time required to write the output status for the local and expansion I/O modules depends on which CPU you are using, the number of output points in these bases, and the number of output modules being used. The following table shows typical update times required by the CPU. Timing Factors

DL430

DL440

DL450

Overhead

20.0 μs

12.6 μs

15.0 μs

Per output module

45.0 μs

21.0 μs

13.0 μs

Per output point

4.0 μs

2.5 μs

14.1 μs

For example, the time required for a DL430 to write data for two 32-point output modules would be calculated as follows (where NM is the number of modules and NO is the total number of output points). Formula

Time = 20μs + (45μs x NM) + (4μs x NO) Example

Time = 20μs + (45μs x 2) + (4μs x 32) Time = 238 μs

DL405 User Manual, 4th Edition

CPU Specifications and Operation

Update Clock/Calendar, Special Relays, Special Registers

Page 114

3--30

CPU Specifications and Operation

Writing Outputs to Specialty I/O

During this portion of the cycle the CPU writes any output points associated with the following. S Remote I/O S Specialty Modules (such as High-Speed Counter, etc.) The time required to write any output image register data to these modules depends on which CPU you are using, the number of modules, and the number of output points. Specialty Module

DL430

DL440

DL450

Overhead

32.0 μs

20.0 μs

18.0 μs

Per module (with outputs)

100.0 μs

67.0 μs

13.0 μs

Per output point

80.0 μs

54.0 μs

14.1 μs

Remote Module

DL430

DL440

DL450

Overhead

32.0 μs

22.0 μs

15.0 μs

Per module (with outputs)

150.0 μs

100.0 μs

54.0 μs

Per output point

25.0 μs

17.0 μs

13.9 μs

CPU Specifications and Operation

For example, the time required for a DL430 to write two 32-point output modules (located in a Remote base) and the output points associated with a single High-Speed Counter module would be calculated as follows. (Where NM is the number of modules and NO is the total number of output points.) Remote I/O

High-Speed Counter

Formula Time = 32μs + (150μs x NM) + (25μs x NO)

Formula Time = 32μs + (100μs x NM) + (80μs x NO)

Example Time = 32μs + (150μs x 2) + (25μs x 32)

Example Time = 32μs + (100μs x 1) + (80μs x 4)

Time = 1832 μs

Time = 452 μs

Total Time

Time = 2284 μs

NOTE: This total time is the actual time required for the CPU to update these outputs. This does not include any additional time that is required for the CPU to actually service the particular specialty modules. Diagnostics

The DL405 CPUs perform many types of system diagnostics. The amount of time required depends on many things, such as the number of I/O modules installed, etc. The following table shows the minimum and maximum times that can be expected. Diagnostic Time

DL430

DL440

DL450

Minimum

680.0 μs

540.0 μs

282.0 μs

Maximum

880.0 μs

920.0 μs

398.0 μs

DL405 User Manual, 4th Edition