The text of a manual · part 13 of 68
DL405 User Manual: Chapter 3: CPU Specifications and Operation, pages 95 to 104
Pages 95 to 104 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 95
3--11
CPU Specifications and Operation
Port 3 Specifications
430 440 450
The operating parameters for Port 3 on the DL450 CPU are configurable using Aux functions on a programming device. S S S S S S S
25 Pin female D type connector Protocols: DirectNet, K-sequence, Remote I/O, MODBUS master or slave RS422, non-isolated, distance within 1000m (3280 ft.) 300 / 600 / 1200 /2400 / 4800 / 9600 / 19200 / 38400 baud (DirectNet, K-sequence, MODBUS protocols),19200 / 38400 (Remote I/0 protocol) 8 data bits, 1 start, 1 stop bit, odd/none/even parity Hex / ASCII modes (use Aux function to configure) Selectable address 1--90 (use Aux function to configure) Port 3 Pin Descriptions (DL450)
Port 3 1
25
25-pin Female D Connector
--
-SG
TXD+ TXD------RXD+ RXD--
A drawing summarizing the pin locations and functions of ports 1 and 3 on the 25-pin connector is to the right. The two logical ports share two ground pins, but have separate communications data pins. When using both logical ports, you will probably have to make a custom connector which divides the signals in two for two separate cables.
Not used (port 1) (port 1) (port 1) (port 1) Not used Signal ground Not used (port 1) (port 1) (port 1) Transmit Data (+), (RS422) Transmit Data (--), (RS422) (port 1) Not used (port 1) Not used (port 1) (port 1) Not used Not used Not used (port 1) Receive Data (+), (RS422) Receive Data (--), (RS422)
CPU Specifications and Operation
13
14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Two Logical Ports on the 25 Pin Connector Port 3
Port 1 TXD RXD RTS CTS 0V RXD+ RXD-CTS+
TXD+ TXD-RTS-RTS+
0V
CTS-TXD+ TXD--
RXD+ RXD--
DL405 User Manual, 4th Edition
Page 96
3--12
CPU Specifications and Operation
Using Battery Backup The DL405 CPUs have a lithium battery to maintain system RAM retentive memory when the 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 shutdown for a period of more than ten days. Battery indicators will flash on and off when a battery needs changing. S Flashing at 2 Hz means the CPU battery needs changing. S Flashing at 0.5 Hz means the RAM cartridge battery needs changing. NOTE: Be sure to back up your V-memory and system parameters before replacing your CPU battery. Just save the V-memory and system parameters to either a Memory Cartridge, cassette tape, or to a personal computer (use DirectSOFT).
CPU Specifications and Operation
To prevent memory loss the CPU battery can be changed while the system is powered up. If the CPU has been powered off you should power-up the CPU for at least 5 seconds prior to changing the battery. This ensures the capacitor used to maintain the proper voltage levels necessary to retain memory is fully charged. To remove the CPU battery: 1. Pull the battery out from the battery retaining clip. 2. Lift the clip on the two wire battery connector. 3. Slide the battery connector apart. WARNING: Do not attempt to recharge the battery or dispose of it by fire. The battery may explode or release hazardous materials. To install the CPU battery: 1. Join the (keyed) battery connector so that the red wires match. 2. Push gently till the connector snaps closed 3. Slide the battery all the way into the retaining clip (flush with the opening). 4. Note the date the battery was changed. 1) Pull battery from retaining clip 2) Extend battery cable connector 3) Slide Battery connector apart
Replace battery with part # D3--D4--BAT
DL405 User Manual, 4th Edition
Page 97
CPU Specifications and Operation
3--13
Selecting the Program Storage Media The DL430 CPU provides built-in EEPROM storage as a standard feature, so it cannot use other types of program storage. The DL440 CPU requires a removable memory cartridge for operation. The DL450 provides built-in FLASH memory as a standard feature. It will still accept a memory cartridge for program storage. The following paragraphs will help you choose the correct memory storage for your CPU type and application. NOTE: The source memory (either cartridge or internal) must be specified by using either DirectSOFT or the handheld programmer (D4--HPP). Volatile and Non-volatile Memory Memory Storage Types
NOTE: When you purchase the UVPROM memory cartridge it is recommended you have either a RAM or an EEPROM memory cartridge for program development. Once development is completed you should then use the handheld programmer (D4--HPP) to copy your application program to the UVPROM. We recommend the UVPROM memory cartridge option for applications which are mass produced and do not require frequent alterations. S
EEPROM (Electrically Erasable Programmable Read Only Memory) does not require a battery for memory retention, so it is classified as “non-volatile”. Both erasure and programming are accomplished electrically, eliminating ultraviolet light source requirement. So, the EEPROM memory cartridge can be electrically reprogrammed (if not write protected) without being removed from the CPU. This is the memory type built into the DL430 CPU.
DL405 User Manual, 4th Edition
CPU Specifications and Operation
The two types of memory storage available are volatile and non--volatile. Volatile memory retains your data only as long as proper voltage is maintained to the storage media. Non-volatile memory does not require power to retain data. The DL405 CPUs maintain the proper voltage either through the power supply or the use of a memory backup battery. Memory cartridges are applicable to only the DL440 and DL450 CPUs. One cartridge is required on the DL440, but is optional on the DL450.The removable memory cartridge is available as either CMOS RAM, UVPROM or EEPROM. The RAM and EEPROM types offer a write protect jumper selection internal to the cartridge. When the cartridge is opened the jumper may be moved to the protect position to prevent accidental erasure or alterations to the program. S CMOS RAM (Complementary Metal Oxide Semiconductor / Random Access Memory) requires a battery for memory retention, which is located inside the cartridge. The memory can be modified or changed easily with a handheld programmer or PC programming software. Battery life is typically 3 years. Refer to Chapter 9, Maintenance and Troubleshooting for battery replacement. S UVPROM (Ultraviolet Programmable Read Only Memory) does not require a battery for memory retention, so it is classified as “non-volatile”. However, erasure (clearing memory) requires exposing the memory ICs to an ultraviolet light source. The CPU can reprogram the UVPROM cartridge after erasure, but this requires a handheld programmer.
Page 98
3--14
CPU Specifications and Operation
Memory Cartridge
The diagram below displays a Memory Cartridge for the DL440 or DL450. It shows how the memory cartridge fits in the CPU and in the handheld programmer. It also shows how to open the memory cartridge for selecting write protect (for CMOS RAM) or for erasing the UVPROM. Details about connecting the handheld programmer to the CPU is covered in DL405 Handheld Programmer Manual. WARNING: Do not insert or remove a CPU memory cartridge while the power is connected. Your program or password may be corrupted if this occurs. A corrupted program can cause unpredictable operation which may result in a risk of injury to personnel or damage to equipment. If the password becomes corrupted, you cannot access the CPU. Pull lever to extract cartridge
Jumper pins 2 & 3 to Write Protect. Jumper pins 1 & 2 to Write Enable.
Memory Cartridge Battery
CMOS Memory Cartridge D4-EE-2
Retaining Screws
P R OT V
CPU Specifications and Operation
CPU Battery
UVPROM Memory Cartridge (with cover removed) UVPROM Erasing Instructions 1) Remove cartridge from CPU or HPP 2) Remove cartridge retaining screw 3) Remove cover 4) Place cartridge in UV erasing lamp typical 12,000μ w/cm2 lamp @ 2.5cm for 15--20 minutes 5) Replace cover
Jumper pin V to the center pin to Write Protect. Jumper the center pin to the unmarked pin to Write Enable.
Memory Cartridge Capacity Table D4- RAM- 1
D4- RAM- 2
D4- UV- 2
D4- EE- 2
Program Storage Capacity
7.5K
15.5K
15.5K
15.5K
Cartridge Battery Type
Lithium
Lithium
None
None
Writing Cycle Life
N/A
N/A
1000
>10,000
Write Inhibit
Internal jumper
Internal jumper
No
Internal jumper
Memory Clear Method
Electrical
Electrical
Ultraviolet light
Electrical
DL405 User Manual, 4th Edition
Page 99
CPU Specifications and Operation
3--15
CPU Setup Setting the Clock and Calendar
430 440 450
The DL440 and DL450 CPUs also have a Clock / Calendar that can be used for many purposes. If you need to use this feature there are also AUX functions available that allow you 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 PLC Setup menu options. There are also two instructions that allow you to change or modify the time and date from within the application program. Chapter 5 provides information on the DATE and TIME instructions that are used to establish the clock and calendar information. The CPU uses the following format to display the date and time. S Date, Year, Month, Date, Day of week (0 -- 6, Sunday thru Saturday) S Time, 24 hour format, Hours, Minutes, Seconds
Handheld Programmer Display
94/01/02 23:08:17
Variable/Fixed The DL450 CPU offers three type of scan time configurations: Scan Time Feature S Variable -- this is the standard scan time setting, in which the PLC scan is running as fast as the ladder program execution allows. 430 440 450
Fixed -- the scan time may be set to be constant, from 10 mS to 9999 mS. The operating system inserts a delay after each ladder scan to accomplish the requested fixed scan. S Limit -- the PLC operates with a variable scan, but generates a watchdog timeout error if the scan time exceeds the specified amount. You can use this to trap program execution errors, for example. To select the desired DL450 scan time option, use DirectSOFT and go online with the DL450. Then select the PLC Menu, then Diagnostics, then Scantime, then Setup. The three choices of Variable, Fixed, or Limit then appear.
Password Protection
The DL405 CPUs have a password protection feature which prevents unauthorized access to CPU programs or data. Use AUX 81, 82, and 83 to either modify the password, and unlock or lock the CPU respectively. The password must be an eight-character numeric (0--9) code. Once you’ve entered a password, you can remove it by entering all zeros (00000000). (This is the default from the factory.) Multilevel Password (DL440/450 only) -- The DL440 and DL450 feature an intermediate level of protection that you can choose by making the first character of the password the character “A”. The remaining 7 characters must be numeric (0--9). The intermediate password protection differs from the standard password in that it does allow an operator interface device to access and change V-memory data such as presets. It still does not allow a ladder program edit, however. For more information on passwords, see Appendix A, Auxiliary Functions.
S
DL405 User Manual, 4th Edition
CPU Specifications and Operation
You can use the AUX function to change any component 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 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).
Page 100
3--16
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 simple operating mode changes to copying programs to memory cartridges. They are divided into categories that affect different system parameters. See Appendix A for detailed descriptions of the AUX functions. You can access the AUX Functions with the DL405 Handheld Programmer, or with DirectSOFT 5’s pull-down menus. Manuals for those products provide step-by-step instructions. Some AUX Functions are designed specifically for Handheld Programmer setup, so they are not supported by DirectSOFT 5. The following table lists the Auxiliary functions for the different CPUs and the Handheld Programmer. AUX Function and Description
430
440
450
HPP
AUX 1*, Operating Mode
430
440
450
HPP
AUX 5*, CPU Configuration
11
Go to Run Mode
--
51
Modify Program Name
--
12
Go to Test Mode
--
52
Display / Change Calendar
--
13
Go to Program Mode
--
53
Display Scan Time
--
14
Run Time Edit
--
54
Initialize Scratchpad
--
55
Set Watchdog Timer
--
AUX 2*, RLL Operations
CPU Specifications and Operation
AUX Function and Description
21
Check Program
--
56
Configure Comm. Ports
--
22
Change Reference
--
57
Set Retentive Ranges
--
23
Clear Ladder Range
--
58
Test Operations
--
24
Clear Ladders
--
5C
Display Error History
--
25
Select MC or Flash Memory
--
5D
Select PLC Scan Mode
--
26
Copy MC Contents to Flash
--
AUX 6*, Handheld Programmer Configuration
27
Copy Flash contents to MC
--
61
Show Revision Numbers
28
Verify Flash contents = MC
--
62
Beeper On / Off
63
Backlight On / Off
64
Select Online / Offline
Run Self Diagnostics
AUX 3*, V-Memory Operations 31
Clear V Memory
--
32
Clear V Range
--
65
33
Find V-memory Value
--
AUX 7*, Memory Cartridge Operations
AUX 4*, I/O Configuration
71
CPU to Memory Cartridge
41
Show I/O Configuration
--
72
Memory Cartridge to CPU
42
I/O Diagnostics
--
73
Compare MC with CPU
44
Power up I/O Configuration Check
--
74
Memory Cart. Blank Check
45
Select Configuration
Clear Memory Cartridge
--
75
46
Configure I/O
Display Memory Cart. Type
--
76
47
Intelligent I/O
Tape to Memory Cartridge
--
77 78
Memory Cartridge to Tape
79
Compare MC with Tape supported not supported -- not applicable
DL405 User Manual, 4th Edition
AUX 8*, Password Operations 81
Modify Password
--
82
Unlock CPU
--
83
Lock CPU
--
Page 101
CPU Specifications and Operation
3--17
Before entering a new program, it’s a good idea to always clear ladder memory. AUX Function 24 clears the complete user program. You can also use other AUX functions to clear other memory areas.
Clearing an Existing Program
AUX 23, Clear Ladder Range AUX 31, Clear V Memory AUX 32, Clear V Range
S S S Initializing System Memory
The DL405 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 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. 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 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, you will need to re-enter the data. Since the DL405 CPUs have built-in DirectNET ports, you can use the Handheld Programmer to set the network address for the port and the port communication parameters. The default settings are: S Station address 1 S Hex mode S Odd parity The DirectNET Manual provides additional information about choosing the communication settings for network operation. If you’re using the bottom port for programming, you can just use the default settings. For the extra two ports on the DL450, see Chapter 4, System Design and Configuration.
Setting Retentive Memory Ranges
Memory Area
Use AUX 56 to set the network address and communication parameters for the secondary port(s). The DL405 CPUs 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: DL430
DL440
DL450
Default Range
Avail. Range
Default Range
Control Relays
C600 -- C737
C0 -- C737
C600 -- C737
V--Memory
V2000 -- V7377
V0 -- V7377
V2000 -- V7777
Timers
None by default T0 -- T177
None by default T0 -- T377
None by default
T0 -- T377
Counters
CT0 -- CT177
CT0 -- CT177
CT0 -- CT377
CT0 -- CT377
Stages
None by default S0 -- S577
None by default
S0 -- S1777
CT0 -- CT177
Avail. Range
Default Range
Avail. Range
C0 -- C1777
C1000 -- C3777
C0 -- C3777
V0 -- V17777
V1400 -- V37777 V0 -- V37777
CT0 -- CT177
None by default S0 -- S1777
Use AUX 57 to set the retentive ranges.
DL405 User Manual, 4th Edition
CPU Specifications and Operation
Setting the CPU Network Address
Page 102
3--18
CPU Specifications and Operation
CPU Operation Achieving the proper control for your equipment or process requires a good understanding of how DL405 CPUs control all aspects of system operation. The flow chart below shows the main tasks of the CPU operating system. In this section, we will investigate four aspects of CPU operation: S S
S
CPU Specifications and Operation
S
CPU Operating System
CPU Operating System, the CPU manages all aspects of system control. CPU Operating Modes, The three primary modes of operation are Program Mode, Run Mode, and Test Mode. CPU Timing, The two important areas we discuss are the I/O response time and the CPU scan time. CPU Memory Map, The CPU’s memory map shows the CPU addresses of various system resources, such as timers, counters, inputs, and outputs.
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. In Run Mode, the CPU executes the user ladder program. Immediately afterwards, any PID loops which are configured are executed (DL450 only). Then the CPU writes the output results of these two tasks to the appropriate output points. 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 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 Operations (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 103
CPU Specifications and Operation
Program Mode Operation
In Program Mode the CPU does not execute the application program or update the output modules. The primary use for Program Mode is to enter or change an application program. You also use the program mode to set up CPU parameters, such as the network address, retentive memory areas, etc.
3--19
Download Program
You can use the key switch on the CPU to select Program Mode operation. Or, with the keyswitch in TERM position, you can use a programming device such as the Handheld Programmer to place the CPU in Program Mode. Run Mode Operation
Read Inputs Read Inputs from Specialty I/O Service Peripherals, Force I/O CPU Bus Communication Update Clock, Special Relays
Run Mode operation can be divided into several key areas. It is very important you understand how each of these areas of execution can affect the results of your application program solutions. You can use the key switch to select Run Mode operation. Or, with the keyswitch in TERM position, you can use a programming device, such as the Handheld Programmer to place the CPU in Run Mode.
Solve the Application Program Solve PID Equatinos (DL450) Write Outputs Write Outputs to Specialty I/O Diagnostics
With the DL440 or DL450, you can also edit the program during Run Mode. The Run Mode Edits are not “bumpless.” Instead, the CPU 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. 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.
DL405 User Manual, 4th Edition
CPU Specifications and Operation
In Run Mode, the CPU executes the application program, does PID calculations for configured PID loops (DL450) only, and updates the I/O system. You can perform many operations during Run Mode. Some of these include: S Monitor and change I/O point status S Update timer/counter preset values S Update Variable memory locations
Page 104
CPU Specifications and Operation
3--20
CPU Specifications and Operation
Read Inputs
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 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.
Read Inputs from Specialty and Remote I/O
After the CPU reads the inputs from the input modules, it reads any input point data from any Specialty modules that are installed, such as High Speed Counter modules, etc. This is also the portion of the scan that reads the input status from Remote I/O racks. The GX data type is used for both remote inputs and outputs. (The DL405 Remote I/O Manual provides additional information on how to set up the remote I/O link.) NOTE: It may appear the Remote I/O point status is updated every scan. This is not quite true. The CPU will receive information from the Remote I/O Master module every scan, but the Remote Master may not have received an update from all the Remote slaves. Remember, the Remote I/O link is managed by the Remote Master, not the CPU.
Service Peripherals 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 and Force I/O devices. For example, it would read a programming device to see if any input, output, or other memory type status needs to be modified. Forced I/O - temporarily changes 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 just need to force a bit on to trigger another event. Forced Inputs, The CPU reads the status of X inputs during the Read Inputs portion of the scan. When the CPU services the programming device, it logs any request to force an X input on. If the input is used in the application program, the ladder X contact is considered closed (on). Since an X input is a real-world input point, the CPU will change the status when it reads the inputs on the next scan.
DL405 User Manual, 4th Edition