The text of a manual · part 13 of 61
DL205 PLC User Manual, Volume 1 of 2: Chapter 3: CPU Specifications and Operations, pages 105 to 114
Pages 105 to 114 of 592, from DL205 PLC User Manual, Volume 1 of 2
The original document is the PDF (13 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 D2-08ND3 and Koyo D2-08ND3
Page 105
Chapter 3: CPU Specifications and Operations
Status Indicators
1 2 3 4 5 6 7 8 9 10 11 CPU Setup Information Even if you have years of experience using PLCs, there are a few things you need to do before 12 you can start entering programs. This section includes some basic things, such as changing the CPU mode, but it also includes some things that you may never have to use. Here’s a brief 13 list of the items that are discussed: • Using Auxiliary Functions 14 • Clearing the program (and other memory areas) • How to initialize system memory A • Setting retentive memory ranges The following paragraphs provide the setup information necessary to get the CPU ready for B programming. They include setup instructions for either type of programming device you are using. The D2–HPP Handheld Programmer Manual provides the Handheld keystrokes required to perform all of these operations. The DirectSOFT Manual provides a description C of the menus and keystrokes required to perform the setup procedures via DirectSOFT. D Mode Switch
PWR
PWR BATT
RUN CPU
BATT
DL240
Port 1
DL230
RUN CPU
CPU
CPU
RUN
TERM CH1 CH2 CH3 CH4
Analog
Adjustments
PORT1
PORT1
Port 2
PORT? 2
Status Indicators
DL260
DL250-1
Mode Switch Port 1
Port 2
Battery Slot
DL205 User Manual, 4th Edition, Rev. A
3–11
Page 106
Chapter 3: CPU Specifications and Operations
Status Indicators The status indicator LEDs on the CPU front panels have specific functions which can help in 1 programming and troubleshooting. 2 Indicator Status Meaning PWR 3 RUN 4 CPU 5 BATT 6 7 Mode Switch Functions The mode switch on the DL240, DL250–1 and DL260 CPUs provides positions for enabling and disabling program changes in the CPU. Unless the mode switch is in the TERM 8 position, RUN and STOP mode changes will not be allowed by any interface device, (handheld programmer, DirectSOFT programing package or operator interface). Programs 9 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. 10 There are two ways to change the CPU mode. 11 • 1. Use the CPU mode switch to select the operating mode. • 2. Place the CPU mode switch in the TERM position and use a programming device to change operating modes. In this position, you can change between Run and Program modes. 12 NOTE: If the CPU is switched to the RUN Mode without a program in the PLC, the PLC will produce a FATAL ERROR which can be cleared by cycling the power to the PLC. 13 Mode Switch Position CPU Action 14 RUN (Run Program) A TERM (Terminal) B STOP (DL250–1 and DL260 only Stop Program) C D ON OFF ON OFF Blinking 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 voltage (only with System Memory bit B7633.12 set) CPU battery voltage is good or disabled
ON
OFF
CPU is forced into the RUN mode if no errors are encountered. No changes are allowed by the attached programming/monitoring device.
RUN, 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.
3–12
DL205 User Manual, 4th Edition, Rev. A
Page 107
Chapter 3: CPU Specifications and Operations
Changing Modes in the DL205 PLC Mode Switch Position
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.
RUN (Run Program) TERM (Terminal) RUN STOP
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 or the Handheld Programmer to change the CPU mode of operation. With DirectSOFT 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 DL205 CPUs 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 System Memory bit 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.
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
3–13
Page 108
Chapter 3: CPU Specifications and Operations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Using Battery Backup
3–14
An optional lithium battery is available to maintain the system RAM retentive memory when the DL205 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 to save the program, V-memory, and system parameters to hard/floppy disk on a personal computer.
To install the D2–BAT CPU battery in DL230 or DL240 CPUs: 1. Gently push the battery connector onto the circuit board connector. 2. Push the battery into the retaining clip. Don’t use excessive force. You may break the retaining clip. 3. Make a note of the date the battery was installed.
DL250-1 and DL260 -1
DL230 and DL240
To install the D2–BAT–1 CPU battery in the DL250–1/DL260 CPUs: (#CR2354) 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.
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 in the DL205 CPUs. The battery low (BATT) indicator will turn on if the battery is less than 2.5VDC (refer to the Status Indicator table on page 3-12). Special Relay 43 (SP43) will also be activated. 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 be the same, but for a much longer time.
DL205 User Manual, 4th Edition, Rev. A
Page 109
Chapter 3: CPU Specifications and Operations
Auxiliary Functions
1 2 3 4 5 NOTE: The Handheld Programmer may have additional AUX functions that are not supported with the 6 DL205 CPUs. 7 AUX Function and 230 240 250–1 260 AUX Function and 230 240 250–1 260 HPP Description Description 8 AUX 2*, RLL Operations AUX 6*, Handheld Programmer Configuration 9 AUX 7*, EEPROM Operations 10 AUX 3*, V-Memory Operations 11 AUX 4*, I/O Configuration 12 13 AUX 8*, Password Operations 14 AUX 5*, CPU Configuration A Supported B X Not Supported - Not Applicable C D Many CPU setup tasks involve the use of Auxiliary (AUX) Functions. The AUX Functions perform many different operations, including 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 or from the DL205 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 package. The following table shows a list of the Auxiliary functions for the different CPUs and the Handheld Programmer.
21 Check Program 22 Change Reference 23 Clear Ladder Range 24 Clear All Ladders
31 Clear V Memory
41 Show I/O Configuration 42 I/O Diagnostics I/O 44 Power-up Configuration Check 45 Select Configuration 46 Configure I/O
X
X
51 Modify Program Name
52 Display / Change Calendar X 53 Display Scan Time
54 Initialize Scratchpad
55 Set Watchdog Timer
56 Set CPU Network Address X 57 Set Retentive Ranges
58 Test Operations
59 Bit Override X 5B Counter Interface Config. 5C Display Error History X
61 Show Revision Numbers 62 Beeper On / Off 65 Run Self Diagnostics
X X
X X
X X
X X
–
CPU memory to 71 Copy HPP EEPROM
X
X
X
X
72 Write HPP EEPROM to CPU CPU to 73 Compare HPP EEPROM 74 Blank Check (HPP EEPROM) 75 Erase HPP EEPROM EEPROM Type 76 Show (CPU and HPP)
X
X
X
X
X
X
X
X
X X
X X
X X
X X
X
X
X
X
81 Modify Password 82 Unlock CPU 83 Lock CPU
– – –
DL205 User Manual, 4th Edition, Rev. A
3–15
Page 110
Chapter 3: CPU Specifications and Operations
Clearing an Existing Program
Before you enter a new program, you should always clear ladder memory. You can use AUX 1 Function 24 to clear the complete program. You can also use other AUX functions to clear other memory areas. 2 AUX 23, Clear Ladder Range AUX 24, Clear all Ladders 3 AUX 31, Clear V-Memory Initializing System Memory 4 The DL205 CPUs maintain 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 5 system memory. For example, if you specify a range of Control Relays (CRs) as retentive, these changes are stored. AUX 54 resets the system memory to the default values. 6 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 change from 7 program to program 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 8 erased when AUX 54 is used. Make sure you that you have considered all ramifications of this operation before you select it. 9 Setting the Clock and Calendar The DL240, DL250–1 and DL260 also have a Clock/Calendar that can be used for many 10 purposes. If you need to use this feature there are also AUX functions available that allow you to set the date and time. For example, you would use AUX 52, Display/Change Calendar to set the time and date with the Handheld Programmer. With DirectSOFT you would use the 11
PLC Setup menu options using K–Sequence protocol only.
The CPU uses the following format to display the date and time. 12 • Date, Year, Month, Date, Day of week (0 – 6, Sunday thru Saturday) 13 • Time, 24 hour format, Hours, Minutes, Seconds 23:08:17 08/02/20 You can use the AUX function to change any component 14 of the date or time. However, the CPU will not automatically correct any discrepancy between the date and the day of the week. For example, if you change the date to the 15th of A the month and the 15th is on a Thursday, you will also have to change the day of the week (unless the CPU already shows the date as Thursday). The day of the week can only be set using the handheld programmer. B C D 230 240
250-1 260
Handheld Programmer Display
3–16
DL205 User Manual, 4th Edition, Rev. A
Page 111
Chapter 3: CPU Specifications and Operations
Setting the CPU Network Address
1 2 3 • Odd Parity • 9600 Baud 4 The DirectNet Manual provides additional information about choosing the communication settings for network operation. 5 Setting Retentive Memory Ranges The DL205 CPUs provide certain ranges of retentive memory by default. The default ranges 6 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: 7 DL230 DL240 DL250–1 DL260 Memory Area 8 Control Relays V-Memory 9 Timers Counters Stages 10 You can use AUX 57 to set the retentive ranges. You can also use DirectSOFT menus to select 11 the retentive ranges. WARNING: The DL205 CPUs do not come with a battery. The super capacitor will retain the values in 12 the event of a power loss, but only for a short period of time, depending on conditions. If the retentive ranges are important for your application, make sure you obtain the optional battery. 13 14 A B C D The DL240, DL250–1 and DL260 CPUs have built in DirectNet ports. You can use the
Handheld Programmer to set the network address for the port and the port communication 240 parameters. The default settings are: 250-1 • Station Address 1 • Hex Mode 260 230
Default Range Avail. Range Default Range
Avail. Range Default Range
Avail. Range Default Range
Avail. Range
C300 – C377 C0 – C377 C300 – C377 C0 – C377 C1000 – C1777 C0 – C1777 C1000 – C1777 C0 – C3777 V2000 – V7777 V0 – V7777 V2000 – V7777 V0 – V7777 V1400 – V3777 V0 – V17777 V1400 – V3777 V0 – V37777 None by default T0 – T77 None by default T0 – T177 None by default T0 – T377 None by default T0 – T377 CT0 – CT77 CT0 – CT77 CT0 – CT177 CT0 – CT177 CT0 – CT177 CT0 – CT177 CT0 – CT377 CT0 – CT377 None by default S0 – S377 None by default S0 – S777 None by default S0 – S1777 None by default S0 – S1777
DL205 User Manual, 4th Edition, Rev. A
3–17
Page 112
Chapter 3: CPU Specifications and Operations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–18
Using a Password The DL205 CPUs 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 CPU 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 CPUs 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 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. For more information on passwords, see the appropriate appendix on auxiliary functions. WARNING: Make sure you remember your password. If you forget your password you will not be able to access the CPU. The CPU 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.
You can use the D2–HPP Handheld Programmer or DirectSOFT to enter a password. The following diagram shows how you can enter a password with the Handheld Programmer. Direct SOFT
D2–HPP
Select AUX 81 CLR
CLR
I
B 8
1
AUX
ENT
PASSWORD 00000000
ENT
PASSWORD XXXXXXXX
Enter the new 8-digit password X
X
X
Press CLR to clear the display
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. 2. If you enter the password with DirectSOFT, the CPU will be automatically locked against access when you exit DirectSOFT. 3. Use AUX 83 to lock the CPU.
When you use DirectSOFT, you will be prompted for a password if the CPU has been 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. NOTE: The DL240, DL250–1 and DL260 CPUs offer multi–level passwords for even more 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 (e.g. A1234567).
DL205 User Manual, 4th Edition, Rev. A
Page 113
Chapter 3: CPU Specifications and Operations
Setting the Analog Potentiometer Ranges
230 240 250-1 260
There are 4 analog potentiometers (pots) on the face plate of the DL240 CPU. These pots can be used to change timer constants, frequency of pulse train output, value for an analog output module, etc. Each analog channel has corresponding Vmemory locations for setting lower and upper limits for each analog channel. To increase the value associated with the analog pot, turn the pot clockwise. To decrease the value, turn the pot counter clockwise
PWR BATT
RUN CPU
DL240 CPU
CH1 CH2
Analog Pots
CH3 CH4
PORT1 ?
PORT2
0
Turn clockwise to increase value
RUN TERM
Max
CH1 CH2
The table below shows the V-memory locations used for each analog channel. These are the default location for the analog pots. CH1 Analog Data Analog Data Lower Limit Analog Data Upper Limit
V3774 V7640 V7641
CH2 V3775 V7642 V7643
CH3 V3776 V7644 V7645
CH4 V3777 V7646 V7647
You can use the program logic to load the limits into these locations, or, you can use a programming device to load the values. The range for each limit is 0 – 9999. These analog pots have a resolution of 256 pieces. Resolution = H – L Therefore, if the span between the upper and lower 256 limits is less than or equal to 256, then you have better H = high limit of the range resolution or, more precise control. L = low limit of the range Use the formula shown to determine the smallest amount of change that can be detected. Example Calculations: For example, a range of 100 – 600 would result in a resolution of 1.95. Therefore, the smallest increment H = 600 would be 1.95 units. (The actual result depends on L = 100 exactly how you’re using the values in the control program). Resolution = 600–100 256
Resolution = 500 256 Resolution = 1.95
DL205 User Manual, 4th Edition, Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
3–19
Page 114
Chapter 3: CPU Specifications and Operations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
The following example shows how you could use these analog potentiometers to change the preset value for a timer. See Chapter 5 for details on how these instructions operate.
Program loads ranges into V-memory DirectSOFT SP0
LD K100
Load the lower limit (100) for the analog range on Ch1 into V7640.
OUT V7640 LD K600
X1
OUT V7641
Load the upper limit (600) for the analog range on Ch1 into V7641.
TMR T20 V3774
Use V3774 as the preset for the timer. This will allow you to quickly adjust the preset from 100 to 600 with the CH1 analog pot.
Y0
T20
OUT
Turn all the way counter-clockwise to use lowest value 100
Timing Diagram preset = 100
600
CH1
X1
CH2 T2
Y0 Current Value
0
100
200
300 400 1/10 Seconds
500
600
0
500
600
0
Turn clockwise to increase the timer preset. 100
CH1
Timing Diagram preset = 앑300
600
X1
CH2
3–20
T2
Y0 Current Value
DL205 User Manual, 4th Edition, Rev. A
0
100
200
300 400 1/10 Seconds