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

The text of a manual · part 10 of 53

DL06 Micro PLC User Manual, Volume 1 of 2, pages 90 to 99

Pages 90 to 99 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 90

Chapter 3: CPU Specifications and Operation

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–6 status indicators G LG Y0 Y2 C1 Y5 Y7 Y10 Y12 C3 Y15 Y17 0V AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 Y11 Y13 Y14 Y16 N.C. OUTPUT: 6-240V

50 - 60Hz

2.0A, 6 - 27V

2.0A

PWR: 100-240V

50-60Hz 40VA

Y 0

1

2

3

4

5

6

7

10

11

12

13

14

15

16

PWR RUN CPU TX1 RX1 TX2 RX2

17

20

D0-06DR

21 22

23

X INPUT: 12 - 24V

3 - 15mA

LOGIC

06

K oyo C0

X1 X0

X3 X2

X4 C1

X6 X5

X7

C2 X11 X13 X14 X16 C4 X21 X23 N.C. X15 X17 X20 X22 N.C. X10 X12 C3

TERM PORT1

PORT2 mode switch

RUN STOP

Status Indicators The status indicator LEDs on the CPU front panels have specific functions which can help in programming and troubleshooting.

Mode Switch Functions The mode switch on the DL06 PLC provides positions for enabling and disabling program changes in the CPU. Unless the mode switch is in the TERM position, RUN and STOP mode changes will not be allowed by any interface device, (handheld programmer, DirectSOFT 5 programming package or operator interface). Programs may be viewed or monitored but no changes may be made. If the switch is in the TERM position and no program password is in effect, all operating modes as well as program access will be allowed through the connected programming or monitoring device. Indicator PWR RUN

CPU TX1 RX1 TX2 RX2

Status

Meaning

ON OFF ON OFF Blinking ON OFF Blinking ON OFF ON OFF ON OFF ON OFF

Power good Power failure CPU is in Run Mode CPU is in Stop or Program Mode CPU is in firmware upgrade mode CPU self diagnostics error CPU self diagnostics good Low battery (only with B7633.12 set) Data is being transmitted by the CPU - Port 1 No data is being transmitted by the CPU - Port 1 Data is being received by the CPU - Port 1 No data is being received by the CPU - Port 1 Data is being transmitted by the CPU - Port 2 No data is being transmitted by the CPU - Port 2 Data is being received by the CPU - Port 2 No data is being received by the CPU - Port 2

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 91

Chapter 3: CPU Specifications and Operation

Changing Modes in the DL06 PLC Mode Switch Position RUN (Run Program) TERM (Terminal) RUN STOP

CPU Action CPU is forced into the RUN mode if no errors are encountered. No changes are allowed by the attached programming/monitoring device. PROGRAM and the TEST modes are available. Mode and program changes are allowed by the programming/monitoring device. CPU is forced into the STOP mode. No changes are allowed by the programming/monitoring device.

There are two ways to change the CPU mode. You can use the CPU mode switch to select the operating mode, or you can place the mode switch in the TERM position and use a programming device to change operating modes. With the switch in this position, the CPU can be changed between Run and Program modes. You can use either DirectSOFT 5 or the Handheld Programmer to change the CPU mode of operation. With DirectSOFT 5 use the PLC menu option PLC > Mode or use the Mode button located on the Online toolbar. With the Handheld Programmer, you use the MODE key.

PLC Menu MODE Key

Mode of Operation at Power-up The DL06 CPU will normally power-up in the mode that it was in just prior to the power interruption. For example, if the CPU was in Program Mode when the power was disconnected, the CPU will power-up in Program Mode (see warning note below). WARNING: Once the super capacitor has discharged, the system memory may not retain the previous mode of operation. When this occurs, the PLC can power-up in either Run or Program Mode if the mode switch is in the term position. There is no way to determine which mode will be entered as the startup mode. Failure to adhere to this warning greatly increases the risk of unexpected equipment startup.

The mode which the CPU will power-up in is also determined by the state of B7633.13. If the bit is set and the Mode Switch is in the TERM position, the CPU will power-up in RUN mode. If B7633.13 is not set with the Mode Switch in TERM position, then the CPU will power-up in the state it was in when it was powered-down.

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

3–7

Page 92

Chapter 3: CPU Specifications and Operation

Using Battery Backup

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–8

An optional lithium battery is available to maintain the system RAM retentive memory when the DL06 system is without external power. Typical CPU battery life is five years, which includes PLC runtime and normal shutdown periods. However, consider installing a fresh battery if your battery has not been changed recently and the system will be shut down for a period of more than ten days. NOTE: Before installing or replacing your CPU battery, back-up your V-memory and system parameters. You can do this by using DirectSOFT 5 to save the program, V-memory, and system parameters to hard/floppy disk on a personal computer.

To install the D2–BAT–1 CPU battery in the DL06 CPU: 1. Press the retaining clip on the battery door down and swing the battery door open. 2. Place the battery into the coin–type slot with the +, or larger, side out. 3. Close the battery door making sure that it locks securely in place. 4. Make a note of the date the battery was installed Battery door

WARNING: Do not attempt to recharge the battery or dispose of an old battery by fire. The battery may explode or release hazardous materials.

Battery Backup The battery backup is available immediately after the battery has been installed. The CPU indicator will blink if the battery is low (refer to the table on page 3-6). Special Relay 43 (SP43) will also be set when the battery is low. The low battery indication is enabled by setting bit 12 of V7633 (B7633.12). If the low battery feature is not desired, do not set bit V7633.12. The super capacitor will retain memory IF it is configured as retentive regardless of the state of B7633.12. The battery will do the same, but for a much longer time.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 93

Chapter 3: CPU Specifications and Operation

Auxiliary Functions Many CPU setup tasks involve the use of Auxiliary (AUX) Functions. The AUX Functions perform many different operations, ranging from clearing ladder memory, displaying the scan time, copying programs to EEPROM in the handheld programmer, etc. They are divided into categories that affect different system parameters. Appendix A provides a description of the AUX functions. You can access the AUX Functions from DirectSOFT 5 or from the D2–HPP Handheld Programmer. The manuals for those products provide step-by-step procedures for accessing the AUX Functions. Some of these AUX Functions are designed specifically for the Handheld Programmer setup, so they will not be needed (or available) with the DirectSOFT 5 package. The following table shows a list of the Auxiliary functions for the Handheld Programmer. Auxiliary Functions

Auxiliary Functions (cont’d)

AUX 2*, RLL Operations 21 22 23 24

Check Program Change Reference Clear Ladder Range Clear All Ladders

AUX 3*, V-Memory Operations 31

Clear V-memory

AUX 4*, I/O Configuration 41 42 44 45 46

Show I/O Configuration I/O Diagnostics Power Up I/O Configuration check Select Configuration Configure I/O

AUX 5*, CPU Configuration 51 52 53 54 55 56

Modify Program Name Display/Change Calendar Display Scan Time Initialize Scratchpad Set Watchdog Timer Set Communication Port 2

Clearing an Existing Program

57 58 59 5B 5C 5D

Set Retentive Ranges Test Operations Override Setup HSIO Configuration Display Error History Scan Control Setup

AUX 6*, Handheld Programmer Configuration 61 62 65

Show Revision Numbers Beeper On / Off Run Self Diagnostics

AUX 7*, EEPROM Operations 71 72 73 74 75 76

Copy CPU memory to HPP EEPROM Write HPP EEPROM to CPU Compare CPU to HPP EEPROM Blank Check (HPP EEPROM) Erase HPP EEPROM Show EEPROM Type (CPU and HPP)

AUX 8*, Password Operations 81 82 83

Modify Password Unlock CPU Lock CPU

Before you enter a new program, be sure to always clear ladder memory. You can use AUX Function 24 to clear the complete program.You can also use other AUX functions to clear other memory areas. • AUX 23, Clear Ladder Range • AUX 24, Clear all Ladders • AUX 31, Clear V-memory

Initializing System Memory The DL06 Micro PLC maintains system parameters in a memory area often referred to as the “scratchpad.” In some cases, you may make changes to the system setup that will be stored in system memory. For example, if you specify a range of Control Relays (CRs) as retentive, these changes are stored in system memory. AUX 54 resets the system memory to the default values. 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

3–9

Page 94

Chapter 3: CPU Specifications and Operation

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–10

WARNING: You may never have to use this feature unless you want to clear any setup information that is stored in system memory. Usually, you’ll only need to initialize the system memory if you are changing programs and the old program required a special system setup. You can usually load in new programs without ever initializing system memory.

Remember, this AUX function will reset all system memory. If you have set special parameters such as retentive ranges, etc. they will be erased when AUX 54 is used. Make sure that you have considered all ramifications of this operation before you select it. See Appendix F for additional information in reference to PLC memory.

Setting Retentive Memory Ranges The DL06 PLCs provide certain ranges of retentive memory by default. The default ranges are suitable for many applications, but you can change them if your application requires additional retentive ranges or no retentive ranges at all. The default settings are: Memory Area Control Relays V-Memory Timers Counters Stages

DL06 Default Range

Available Range

C1000 – C1777 V400 – V37777 None by default CT0 – CT177 None by default

C0 – C1777 V0 – V37777 T0 – T377 CT0 – CT177 S0 – S1777

You can use AUX 57 to set the retentive ranges. You can also use DirectSOFT 5 menus to select the retentive ranges. Appendix A contains detailed information about auxiliary functions. WARNING: The DL06 CPUs do not come with a battery. The super capacitor will retain the values in the event of a power loss, but only for a short period of time, depending on conditions (typically 4-7 days). If the retentive ranges are important for your application, make sure you obtain the optional battery.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 95

Chapter 3: CPU Specifications and Operation

Using a Password The DL06 PLCs allow you to use a password to help minimize the risk of unauthorized program and/or data changes. Once you enter a password you can “lock” the PLC against access. Once the CPU is locked you must enter the password before you can use a programming device to change any system parameters. You can select an 8-digit numeric password. The Micro PLCs are shipped from the factory with a password of 00000000. All zeros removes the password protection. If a password has been entered into the CPU you cannot just enter all zeros to remove it. Once you enter the correct password, you can change the password to all zeros to remove the password protection.

1 2 3 4 WARNING: Make sure you remember your password. If you forget your password you will not be 5 able to access the CPU. The Micro PLC must be returned to the factory to have the password (along with the ladder project) removed. It is the policy of Automationdirect to require the memory of the PLC to be cleared along with the password. 6 You can use the D2–HPP Handheld Programmer or 7 DirectSOFT 5. to enter a password. The following diagram shows how you can enter a password with the Handheld Programmer. 8 DirectSOFT 5 D2–HPP 9 PASSWORD 00000000 10 11 PASSWORD 12 XXXXXXXX 13 There are three ways to lock the CPU once the password has been entered. 1. If the CPU power is disconnected, the CPU will be automatically locked against access. 14 2. If you enter the password with DirectSOFT 5, the CPU will be automatically locked against access when you exit DirectSOFT 5. A 3. Use AUX 83 to lock the CPU. When you use DirectSOFT 5, you will be prompted for a password if the CPU has been B locked. If you use the Handheld Programmer, you have to use AUX 82 to unlock the CPU. Once you enter AUX 82, you will be prompted to enter the password. C NOTE: The DL06 CPUs support multi-level password protection of the ladder program. This allows password protection while not locking the communication port to an operator interface. The multi-level password can be invoked by creating a password with an upper case “A” followed by seven numeric characters D Select AUX 81 CLR

CLR

I

B

8

1

AUX

ENT

Enter the new 8-digit password X

X

X

ENT

Press CLR to clear the display

(e.g. A1234567).

DL06 Micro PLC User Manual, 3rd Edition Rev. A

3–11

Page 96

Chapter 3: CPU Specifications and Operation

CPU Operation

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–12

Achieving the proper control for your equipment or process requires a good understanding of how DL06 CPUs control all aspects of system operation. There are four main areas to understand before you create your application program: • CPU Operating System, the CPU manages all aspects of system control. A quick overview of all the steps is provided in the next section. • CPU Operating Modes, The two primary modes of operation are Program Mode and Run Mode. • CPU Timing, The two important areas we discuss are the I/O response time and the CPU scan time. • CPU Memory Map, DL06 CPUs offer a wide variety of resources, such as timers, counters, inputs, etc. The memory map section shows the organization and availability of these data types.

CPU Operating System At powerup, the CPU initializes the internal electronic hardware. Memory initialization starts with examining the retentive memory settings. In general, the contents of retentive memory is preserved, and non-retentive memory is initialized to zero (unless otherwise specified). After the one-time powerup tasks, the CPU begins the cyclical scan activity. The flowchart to the right shows how the tasks differ, based on the CPU mode and the existence of any errors. The “scan time” is defined as the average time around the task loop. Note that the CPU is always reading the inputs, even during program mode. This allows programming tools to monitor input status at any time. The outputs are only updated in Run mode. In program mode, they are in the off state. Error detection has two levels. Non-fatal errors are reported, but the CPU remains in its current mode. If a fatal error occurs, the CPU is forced into program mode and the outputs go off.

Power up Initialize hardware Initialize various memory based on retentive configuration

Update input Service peripheral Update Special Relays PGM

Mode? RUN Execute program Update output

Do diagnostics

OK?

YES

NO Report error , set flag register , turn on LED

Fatal error YES Force CPU into PGM mode

DL06 Micro PLC User Manual, 3rd Edition Rev. A

NO

Page 97

Chapter 3: CPU Specifications and Operation

Program Mode In Program Mode, the CPU does not execute the application program or update the output points. The primary use for Program Mode is to enter or change an application program. You also use program mode to set up the CPU parameters, such as HSIO features, retentive memory areas, etc. You can use a programming device, such as DirectSOFT 5, the D2–HPP (Handheld Programmer) or the CPU mode switch to place the CPU in Program Mode.

Run Mode In Run Mode, the CPU executes the application program and updates the I/O system. You can perform many operations during Run Mode. Some of these include: 0V LG Y0 Y2 C1 Y5 Y7 Y10 Y12 C3 Y15 Y17 G AC(L) AC(N) 24V C0 Y1 Y3 Y4 Y6 C2 Y11 Y13 Y14 Y16 N.C.

• Monitor and change I/O point status

OUTPUT: 6-240V

50 - 60Hz

2.0A, 6 - 27V

2.0A

PWR: 100-240V

50-60Hz 40VA

Y 0

1

2

3

4

5

6

7

10

11

12

13

14

15

16

PWR RUN CPU TX1 RX1 TX2 RX2

17

20

D0-06DR

21 22

23

X INPUT: 12 - 24V

• Change timer/counter preset values

3 - 15mA

LOGIC

Download Program

06

K oyo

• Change variable memory locations

C0

X1 X0

X3 X2

X4 C1

X6 X5

X7

C2 X11 X13 X14 X16 C4 X21 X23 N.C. X15 X17 X20 X22 N.C. X10 X12 C3

TERM PORT1

Run Mode operation can be divided into several key areas. For the vast majority of applications, some of these execution segments are more important than others. For example, you need to understand how the CPU updates the I/O points, handles forcing operations, and solves the application program. The remaining segments are not that important for most applications. You can use DirectSOFT 5, the D2–HPP (Handheld Programmer) or the CPU mode switch to place the CPU in Run Mode. You can also edit the program during Run Mode. The Run Mode Edits are not “bumpless” to the outputs. Instead, the CPU ignores the inputs and maintains the outputs in their last state while it accepts the new program information. If an error is found in the new program, then the CPU will turn all the outputs off and enter the Program Mode. This feature is discussed in more detail in Chapter 9.

PORT2

RUN STOP

Normal Run mode scan

Read Inputs

Read Inputs from Specialty I/O Service Peripherals

Update Clock, Special Relays Solve the Application Program

Write Outputs Write Outputs Write Outputs to Specialty I/O Diagnostics

WARNING: Only authorized personnel fully familiar with all aspects of the application should make changes to the program. Changes during Run Mode become effective immediately. Make sure you thoroughly consider the impact of any changes to minimize the risk of personal injury or damage to equipment.

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

3–13

Page 98

Chapter 3: CPU Specifications and Operation

Read Inputs

1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–14

The CPU reads the status of all inputs, then stores it in the image register. Input image register locations are designated with an X followed by a memory location. Image register data is used by the CPU when it solves the application program. Of course, an input may change after the CPU has just read the inputs. Generally, the CPU scan time is measured in milliseconds. If you have an application that cannot wait until the next I/O update, you can use Immediate Instructions. These do not use the status of the input image register to solve the application program. The Immediate instructions immediately read the input status directly from the I/O modules. However, this lengthens the program scan since the CPU has to read the I/O point status again. A complete list of the Immediate instructions is included in Chapter 5.

Service Peripherals and Force I/O After the CPU reads the inputs from the input modules, it reads any attached peripheral devices. This is primarily a communications service for any attached devices. For example, it would read a programming device to see if any input, output, or other memory type status needs to be modified. There are two basic types of forcing available with the DL06 CPUs: • Forcing from a peripheral – not a permanent force, good only for one scan • Bit Override – holds the I/O point (or other bit) in the current state. Valid bits are X, Y, C, T, CT, and S. (These memory types are discussed in more detail later in this chapter).

Regular Forcing, This type of forcing can temporarily change the status of a discrete bit. For example, you may want to force an input on, even though it is really off. This allows you to change the point status that was stored in the image register. This value will be valid until the image register location is written to during the next scan. This is primarily useful during testing situations when you need to force a bit on to trigger another event. Bit Override, Bit override can be enabled on a point-by-point basis by using AUX 59 from the Handheld Programmer or, by a menu option from within DirectSOFT 5. Bit override basically disables any changes to the discrete point by the CPU. For example, if you enable bit override for X1, and X1 is off at the time, then the CPU will not change the state of X1. This means that even if X1 comes on, the CPU will not acknowledge the change. So, if you used X1 in the program, it would always be evaluated as “off ” in this case. Of course, if X1 was on when the bit override was enabled, then X1 would always be evaluated as “on”. There is an advantage available when you use the bit override feature. The regular forcing is not disabled because the bit override is enabled. For example, if you enabled the Bit Override for Y0 and it was off at the time, then the CPU would not change the state of Y0. However, you can still use a programming device to change the status. Now, if you use the programming device to force Y0 on, it will remain on and the CPU will not change the state of Y0. If you then force Y0 off, the CPU will maintain Y0 as off. The CPU will never update the point with the results from the application program or from the I/O update until the bit override is removed. The following diagram shows a brief overview of the bit override feature. Notice the CPU does not update the Image Register when bit override is enabled.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 99

Chapter 3: CPU Specifications and Operation

Input Update

Bit Override OFF

Force from Programmer Result of Program Solution

Input Update X128 OFF Y128 OFF C377 OFF

... ... ... ... ... ...

X2 ON Y2 ON C2 ON

X1 ON Y1 ON C1 OFF

X0 OFF Y0 OFF C0 OFF

Image Register (example)

Force from Programmer

Bit Override ON

Result of Program Solution

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.

CPU Bus Communication It is possible to transfer data to and from the CPU over the CPU bus on the backplane. This data is more than 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.

Update Clock, Special Relays and Special Registers The DL06 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.

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

3–15