The text of a manual · part 9 of 40
DL05 Micro PLC User Manual, Volume 1 of 2: Chapter 3: CPU Specifications and Operation, pages 72 to 80
Pages 72 to 80 of 379, from DL05 Micro PLC User Manual, Volume 1 of 2
The original document is the PDF (5.8 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 D0-05AA
Page 72
CPU SPECIFICATIONS AND OPERATION
CHAPTER
34
In This Chapter: Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–2 CPU Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–3 CPU Hardware Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–4 CPU Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–11 I/O Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–15 CPU Scan Time Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . .3–18 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–22 DL05 System V-memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–26 DL05 Aliases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–29 X Input Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–30 Y Output Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–30 Control Relay Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–31 Stage Control/Status Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–32 Timer Status Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–32 Counter Status Bit Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3–33
Page 73
Chapter 3: CPU Specifications and Operation
1 Introduction The Central Processing Unit (CPU) is the heart of the Micro PLC. Almost all PLC operations are controlled by the CPU, so it is important that it is set up correctly. This 2 chapter provides the information needed to understand: • Steps required to set up the CPU 3 • Operation of ladder programs • Organization of Variable Memory 4 5 DL05 PLC 2 Comm. CPU 6 Ports Main 7 Power Supply 8 Input Circuit Output Circuit 9 10 NOTE: The High-Speed I/O function (HSIO) consists of dedicated but configurable hardware in the DL05. It is not considered part of the CPU, because it does not execute the ladder program. For more on HSIO 11 operation, see Appendix E. 12 DL05 CPU Features The DL05 Micro PLC which has 6K words of memory comprised of 2K of ladder memory and 4K words of V-memory (data registers). Program storage is in the FLASH memory which 13 is a part of the CPU board in the PLC. In addition, there is RAM with the CPU which will store system parameters, V-memory, and other data which is not in the application program. 14 The RAM is backed up by a “super-capacitor”, storing the data for several hours in the event of a power outage. The capacitor automatically charges during powered operation of the PLC. A The DL05 supports fixed I/O which includes eight discrete input points and six output points. If more than the fourteen fixed I/O points are needed, select an I/O module for your application from the DL05/06 Option Modules User Manual. This module will plug into the B expansion slot. Over 120 different instructions are available for program development as well as extensive C internal diagnostics that can be monitored from the application program or from an operator interface. Chapters 5, 6, and 7 provide detailed descriptions of the instructions. D The DL05 provides two built-in RS232C communication ports, so you can easily connect a To Programming Device or Operator Interface
Power Input
8 Discrete Inputs Commons
6 Discrete Outputs Commons handheld programmer, operator interface, or a personal computer without needing any additional hardware.
3–2
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 74
Chapter 3: CPU Specifications and Operation
CPU Specifications Specifications Feature Total Program memory (words) Ladder memory (words) Total V-memory (words) User V-memory (words) Non-volatile V-Memory (words) Contact execution (boolean) Typical scan (1k boolean) RLL Ladder Style Programming RLL and RLLPLUS Programming Run Time Edits Supports Overrides Scan Handheld programmer DirectSOFT 5 programming for Windows. Built-in communication ports (RS232C) FLASH Memory Local Discrete I/O points available Local Analog input / output channels maximum High-Speed I/O (quad., pulse out, interrupt, pulse catch, etc.) I/O Point Density Number of instructions available (see Chapter 5 for details) Control relays Special relays (system defined) Stages in RLLPLUS Timers Counters Immediate I/O Interrupt input (external/timed) Subroutines For/Next Loops Math Drum Sequencer Instruction Time of Day Clock/Calendar Internal diagnostics Password security System error log User error log Battery backup
DL05 6K 2048 4096 3968 128 2.0us 2.7–3.2ms Yes Yes Yes Yes Variable / fixed Yes Yes Yes Standard on CPU 14 None Yes, 2 8 inputs, 6 outputs 129 512 512 256 128 128 Yes Yes Yes Yes Integer Yes Only with the optional Memory Cartridge Yes Yes No
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
No No (built–in super–cap) Yes, with memory cartridge
DL05 Micro PLC User Manual, 6th Edition, Rev. A
3–3
Page 75
Chapter 3: CPU Specifications and Operation
1 CPU Hardware Setup Communication Port Pinout Diagrams 2 Cables are available that allow you to quickly and easily connect a Handheld Programmer or a personal computer to the DL05 PLCs. However, if you need to build your own cables, use 3 the pinout information shown below. The DL05 PLCs require an RJ-12 phone plug to fit the built-in jacks. The Micro PLC has two built-in RS232C communication ports. Port 1 is generally used for 4 connecting to a D2-HPP, a PC with DirectSOFT 5, operator interface, Modbus slave, or a DirectNET slave. The baud rate is fixed at 9600 baud for port 1. Port 2 can be used to 5 connect to a D2-HPP, DirectSOFT 5, operator interface, Modbus master/slave, or a DirectNET master/slave. Port 2 has a range of speeds from 300 baud to 38.4K baud. 6 NOTE: The 5V pins are rated at 200mA maximum, primarily for use with some operator interface units. 7 Port 1 Pin Descriptions Port 2 Pin Descriptions 8 6-pin Female 9 Modular Connector 10 11 12 13 Top View 14 A B C D 1234 5 6
1 2 3 4 5 6
0V 5V RXD TXD 5V 0V
Power (–) connection (GND) Power (+) connection Receive Data (RS232C) Transmit Data (RS232C Power (+) conection Power (–) connection (GND)
1 2 3 4 5 6
0V 5V RXD TXD RTS 0V
Power (–) connection (GND) Power (+) connection Receive Data (RS232C) Transmit Data (RS232C Request to Send Power (–) connection (GND)
1
1
Communication Port 1
Communication Port 2
Com 1 Connects to HPP, DirectSOFT, operator interfaces, etc. 6-pin, RS232C 9600 Baud (Fixed) Parity - odd (default) Station address 1 (fixed) 8 data bits 1 start, 1 stop bit Asynchronous, Half-duplex, DTE Protocol: (Auto-Select) K sequence (Slave only)
Com 2 Connects to HPP, DirectSOFT, operator interfaces, etc. 6-pin, RS232C Communication speed (baud) 300, 600, 1200, 2400, 4800, 9600, 19200, 38400 Parity - odd (default), even, none Station address 1 (default) 8 data bits 1 start, 1 stop bit Asynchronous, Half-duplex, DTE Protocol: (Auto-Select) K sequence (Slave only)
DirectNET (Slave only) Modbus (Slave only)
DirectNET (Master/Slave) Modbus (Master/Slave) Non-sequence/Print
3–4
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 76
Chapter 3: CPU Specifications and Operation
Connecting the Programming Devices
1 2 3 4 5 6 The Handheld programmer is connected to the CPU with a handheld programmer cable. 7 This device can be used for maintaining existing installations or making small program changes whenever a PC is not available. The handheld programmer is shipped with a cable, 8 which is approximately 6.5 feet (200 cm) long. 9 10 11 12 CPU Setup Information Even if you have years of experience using PLCs, there are a few things you need to do before 13 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 14 list of the items that are discussed. Selecting and Changing the CPU Modes • Using Auxiliary Functions A • Clearing the program (and other memory areas) • How to initialize system memory B • Setting retentive memory ranges The following paragraphs provide the setup information necessary to get the CPU ready for C programming. They include setup instructions for either type of programming device you are using. The D2–HPP Handheld Programmer Manual provides the Handheld keystrokes D required to perform all of these operations. The DirectSOFT 5 Programming Software User If you’re using a Personal Computer with the DirectSOFT 5 programming package, you can connect the computer to either of the DL05’s programming ports. For an engineering office environment (typical during program development), this is the preferred method of programming.
Use cable part no. D2–DSCBL
(cable comes with HPP) For replacement cable, use part # DV–1000CBL
Manual provides a description of the menus and keystrokes required to perform the setup procedures.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
3–5
Page 77
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
Mode Switch
Status Indicators
Status Indicators The status indicator LEDs on the CPU front panels have specific functions which can help in programming and troubleshooting. Indicator PWR RUN CPU TX1 RX1 TX2 RX2
Status
Meaning
ON OFF ON OFF Blinking ON OFF 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 upgrade Mode CPU self diagnostics error CPU self diagnostics good 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
Mode Switch Functions The mode switch on the DL05 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 programing 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. NOTE: If the DL05 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 power to the PLC.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 78
Chapter 3: CPU Specifications and Operation
1
Changing Modes in the DL05 PLC Modeswitch Position RUN (Run Program) TERM (Terminal) RUN,
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.
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 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.
2 3 4 5
6 7 8 9 10 11 PLC MODE 12 13 MODE KEY Mode of Operation at Power-up 14 The DL05 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 A disconnected, the CPU will power-up in Program Mode (see warning note below). WARNING: Once the super capacitor has discharged, the system may not power-up in the mode it was in when this occurred. There is no way to determine which mode will be entered as the startup B mode. However, the PLC can power-up in either Run or Program Mode if the mode switch is in the TERM position. Failure to adhere to this warning greatly increases the risk of unexpected equipment C startup. The mode which the CPU will power-up in is also determined by the state of B7633.13. If D the bit is set and the Mode Switch is in the TERM position, then the CPU will power-up in the state it was in at power-down.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
3–7
Page 79
Chapter 3: CPU Specifications and Operation
Auxiliary Functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 3–8
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. 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
Show I/O Configuration
AUX 5*, CPU Configuration 51 53 54 55 56 57 58 59
Modify Program Name Display Scan Time Initialize Scratchpad Set Watchdog Timer Set Communication Port 2 Set Retentive Ranges Test Operations Override Setup
5B 5D
HSIO Configuration 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
Clearing an Existing Program 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 DL05 Micro PLC 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 in system memory. AUX 54 resets the system memory to the default values.
DL05 Micro PLC User Manual, 6th Edition, Rev. A
Page 80
Chapter 3: CPU Specifications and Operation 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 you that you have considered all ramifications of this operation before you select it.
1 2 3 Setting Retentive Memory Ranges 4 The DL05 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. Appendix F has more information 5 pertaining to the different types of memory. The default settings are: DL05 6 Memory Area Default Range Available Range Control Relays 7 V-memory Timers 8 Counters Stages 9 You can use AUX 57 to set the retentive ranges. Appendix A contains detailed information about auxiliary functions. You can also set the retentive ranges by using Setup in DirectSOFT 5, PLC > Setup > Retentive Ranges. 10 WARNING: The DL05 PLCs do not have battery back-up (unless the memory cartridge, D0–01MC, is installed) The super capacitor will retain the values in the event of a power loss, but 11 only for a short period of time, depending on conditions. 12 13 14 A B C D C400 – C777
C0 – C777
V1400 – V7777
V0 – V7777
None by default
T0 – T177
CT0 – CT177
CT0 – CT177
None by default
S0 – S377
DL05 Micro PLC User Manual, 6th Edition, Rev. A
3–9