Home

Chapter 3 - AutomationDirect

image

Contents

1. E O SENESE NESE Sisisibigibibisisisisikikis status indicators cdle o vo v2 ct vs v7 vio viz cs vis viv RCUyACIN 2v co vi va va ve c2 yn Y1 via vie NC ap OUTPUT 6240V 80 80Hz 20A 6 27V m 20A PWR T00 240V B0 80Hz 40VA men Y0000000000000009 DO 06DR am Pa x90000 0O00000OAOOO OO O O O Ea Direct 06 je Koyo lJ SS eee TERM L mode switch 8i S i S Ee e PORT1 PORT2 Fo SIEIEIEISISISAEGISENEIE 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 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 Meaning PWR Power good Power failure CPU is in Run Mode RUN CPU is in Stop or Program Mode CPU is in firmware upgrade mode CPU self
2. DL06 Micro PLC User Manual 3rd Edition Rev C 3 3 Chapter 3 CPU Specifications and Operation CPU Hardware Setup Communication Port Pinout Diagrams Cables are available that allow you to quickly and easily connect a Handheld Programmer or a personal computer to the DL06 PLCs However if you need to build your cable s use the pinout descriptions shown below or use the Tech Support Cable Wiring Diagrams located on our website The DL06 PLCs require an RJ 12 phone plug for port 1 D2 DSCBL and a 15 pin SVGA DSub for port 2 D2 DSCBL 1 The DL06 PLC has two built in serial communication ports Port 1 RS232C only is generally used for connecting to a D2 HPP Direct SOFT operator interface MODBUS slave only or a Direct NET slave only The baud rate is fixed at 9600 baud for port 1 Port 2 RS232C RS422 RS485 can be used to connect to a D2 HPP Direct SOFT operator interface MODBUS master slave Direct NET master slave or ASCII in out Port 2 has a range of speeds from 300 baud to 38 4K baud NOTE The 5V pins are rated at 220mMA maximum primarily for use with some operator interface units Port 1 Pin Descriptions Port 2 Pin Descriptions OV Power connection GND 1 5V Power connection 5V Power
3. Timer Status Bit Map This table provides a listing of individual timer contacts associated with each V memory address bit DLO6 Timer T Contacts m Address 9 G 7 6 5 011 010 007 006 V41100 031 030 027 026 V41101 051 050 047 046 V41102 071 070 067 066 V41103 111 110 107 106 V41104 131 130 127 126 V41105 151 150 147 146 V41106 171 170 167 166 V41107 V41110 V41111 V41112 V41113 V41114 V41115 V41116 V41117 Counter Status Bit Map This table provides a listing of individual counter contacts associated with each V memory address bit DLO6 Counter CT Contacts Address 10 9 8 7 6 5 012 011 010 007 006 005 V41140 032 031 030 027 026 025 V41141 052 051 050 047 046 045 41142 072 071 070 067 066 065 V41143 112 111 110 107 106 105 V41144 132 131 130 127 126 125 V41145 152 151 150 147 146 145 V41146 172 171 170 167 166 165 V41147 3 38 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation M GX and GY I O Bit Map This table provides a listing of the individual global I O points associated with each V memory address bit DL06 GX and GY 1 0 Points GX GY 11110191718 716 Address Address 013 012 011 010 007 006 v40000 V40
4. DL06 Micro PLC User Manual 3rd Edition Rev C 3 25 3 26 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation Input Points X Data Type The discrete input points are noted by an X data type There are 20 discrete input points and 256 discrete input addresses available with DLO6 CPUs In this example the output point YO will be turned on when input X0 energizes Output Points Y Data Type The discrete output points are noted by a Y data type There are 16 discrete outputs and 256 discrete output addresses available with DLO6 CPUs In this example output point Y1 will be turned on when input X1 energizes Control Relays C Data Type Control relays are discrete bits normally used to control the user program The control relays do not represent a real world device that is they cannot be physically tied to switches output coils etc There are 1024 control relays internal to the CPU Because of this control relays can be programmed as discrete inputs or discrete outputs These locations are used in programming the discrete memory locations C or the corresponding word location which contains 16 consecutive discrete locations In this example memory location C5 will energize when input X6 turns on The second rung shows a simple example of how to use a control relay as an input Timers and Timer Status Bits T Data Type There are 256 timers availabl
5. Scan Solve Solve Solve Solve Scan Program Program Program Program Normal Red N write Normal Read Input Output Write Input Immediate Immediate Outputs Field Input Input _ Off On Delay 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 would be calculated by adding the time for the immediate input instruction the immediate output instruction and any other instructions in between the two results to solve that one instruction It does not use the new status to update the image register Therefore any regular instructions that follow will still use the image register values Any immediate instructions that follow will access the I O again to update the status NOTE Even though the immediate instruction reads the most current status from 1 0 it only uses the DL06 Micro PLC User Manual 3rd Edition Rev C 3 19 Chapter 3 CPU Specifications and Operation E CPU Scan Time Considerations The scan time covers all the cyclical tasks that are Powerup performed by the operating system You can use DirectSOFT or the Handheld Programmer to display the Initialize hardware minimum maximum and current scan times that have Sheck iO module occurred since the previous Program Mode to Run Mode config and verify transition Th
6. e AUX 24 Clear all Ladders e 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 C 3 9 Chapter 3 CPU Specifications and Operation A 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 for example 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 ad
7. 220 mA max 2 TXD Transmit data RS 232C Receive data RS 232C 3 RXD_ Receive data RS 232C Transmit data RS 232C 4 RTS_ Ready to send Power connection 5 ICTS Clear to send Power connection GND 6 RXD Receive data RS 422 485 7 JOV Power connection GND E TERNI 8 OV Power connection GND Transmit data RS 422 485 PORT PORTZ X RUN STOP Transmit data RS 422 485 lo Ready to send RS 422 485 Ready to send RS 422 485 of etaz i Receive data RS 422 485 mo o o 0 oe Clear to send RS 422 485 go ece enat Clear to send RS 422 485 PORT1 PORT2 Communications Port 2 Connects to HPP DireciSOFT operator interfaces etc Communications Port 1 3 4 Connects to HPP DireciSOFT operator interfaces etc 6 pin RS232C Communication speed baud 9600 fixed Parity odd fixed Station Address 1 fixed 8 data bits 1 start 1 stop bit Asynchronous half duplex DTE Protocol auto select K sequence slave only DireciNET slave only MODBUS slave only 15 pin multifunction port RS232C RS422 RS485 RS485 with 2 wire is only available for MODBUS and Non sequence 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
8. Instruction Time XO X1 Yo STR XO 67 ps your OR CO 51 ps ANDN X1 51 ps co OUT YO 1 82 ps STRN C100 67 Us LD K10 9 00 ps ao LD STRN C101 67 ps KIG OUT V2002 9 3 ps C101 STRN C102 67 ps OUT V2002 LD K50 9 00 ps STRN C103 67 ps C102 ID OUT V2006 1 82 ps K50 STR X5 67 ps ANDN X10 51 ps C103 OUT V2006 OUT Y3 1 82 ps END 12 80 ps x5 X10 3 SUBTOTAL 51 11 ps Our Overhead _ DLO6 END Minimum 746 2 us Maximum 4352 4 us TOTAL TIME Program execution time Overhead x 1 18 The program above takes only 51 11 ps to execute during each scan The DL06 spends 0 18ms on internal timed interrupt management for every lms of instruction time The total scan time is calculated by adding the program execution time to the overhead shown above and multiplying the result ms by 1 18 Overhead includes all other housekeeping and diagnostic tasks The scan time will vary slightly from one scan to the next because of fluctuation in overhead tasks Program Control Instructions the DL06 CPUs offer additional instructions that can change the way the program executes These instructions include FOR NEXT loops Subroutines and Interrupt Routines These instructions can interrupt the normal program flow and affect the program execution time Chapter 5 provides detailed information on how these different types of instructions operate 3 22 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Opera
9. 167 166 V40607 V40610 V40611 V40612 V40613 V40614 V40615 V40616 V40617 V40620 V40621 V40622 V40623 V40624 V40625 V40626 V40627 V40630 V40631 V40632 V40633 V40634 V40635 V40636 V40637 This table is continued on the next page 3 36 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation nnn RRR DLOG Control Relays C cont d 10 Galle Sealete eal fs Address 1012 1011 1010 1007 1006 1005 V40640 1032 1031 1030 1027 1026 1025 V40641 1052 1051 1050 1047 1046 1045 V40642 1072 1071 1070 1067 1066 1065 V40643 1112 1111 1110 1107 1106 1105 V40644 1132 1131 1130 11127 1126 1125 V40645 1152 1151 1150 1147 1146 1145 V40646 1172 1171 1170 1167 1166 1165 V40647 V40650 40651 V40652 V40653 V40654 V40655 V40656 V40657 40660 40661 V40662 V40663 40664 V40665 V40666 V40667 40670 V40671 V40672 V40673 V40674 V40675 40676 V40677 DLO06 Micro PLC User Manual 3rd Edition Rev C 3 37 Chapter 3 CPU Specifications and Operation
10. Do diagnostics YES Writing Outputs og The time required to write the output status of built in NO outputs is 41 1 uS Don t confuse this with the I O Report the error set flag register turn on LED response time that was discussed earlier NO Fatal error YES Force CPU into PGM mode 3 20 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation il 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 DLO6 Nothing Connected Min amp Max Ous Send Min Max 5 8 11 8 us Rec Min Max 12 5 25 2 Us Send Min Max 6 2 14 3 us fon Rec Min Max 14 231 9 us LCD Min Max 4 8 49 2 us Port 1 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 DL06 DL06 Minimum 9 us Run Mode Max 412 us Program Mode Max 2 5 second CPU Bus Communication 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
11. Input Update Ip Qdate ee x128 _ x2 x1 orr ON ON Force from Yi28 _ Y2 YI Force from Programmer rp Lore ON ON Result of Program Solution ae ofr ON OFF ENTI a C2 C1 Programmer Image Register example Result borer Solutio Bit Override ON ee 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 for example that are also updated during this segment DL06 Micro PLC User Manual 3rd Edition R
12. 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 the D2 HPP Handheld Programmer or the CPU mode switch to place the CPU in Program 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 e Monitor and change I O point status perest e Change timer counter preset values e Change variable memory locations 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 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 th
13. Protocol auto select K sequence slave only DireciNET master slave MODBUS master slave non sequence prinVASCIl in out DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation Connecting the Programming Devices If youre using a Personal Computer with the DirectSOFT programming package you can connect the computer to either of the DL06 s serial ports For an engineering office environment typical during program development this is the preferred method of programming se cable part no D2 DSCBL The Handheld programmer D2 HPP is connected to the CPU with a handheld programmer cable This device is ideal for maintaining existing installations or making small program changes The handheld programmer is shipped with a cable which is approximately 6 5 feet 200 cm long For replacement Ped E cable use part ror por un srp Cable use part no To DV 1000CBL CPU Setup Information Even if you have years of experience using PLCs there are a few things you need to do before you can start entering programs This section includes some basic things such as changing the CPU mode but it also incl
14. SP17 therefore its alias is VSPO V41201 is the word memory reference for discrete bits SP20 through SP37 therefore its alias is VSP20 DL06 Micro PLC User Manual 3rd Edition Rev C 3 3 1 Chapter 3 CPU Specifications and Operation E DLO6 Memory Map Discrete Memory Word Memory Memory Type Reference Reference Decimal octal octal Input Points X0 X777 V40400 V40437 512 Output Points YO Y777 40500 V40537 512 Control Relays CO C1777 V40600 V40677 1024 Special Relays SPO SP777 V41200 V41237 512 Timers 10 1377 41100 V41117 256 VO K100 gt TO Timer Current Values None V0 V377 256 Timer Status Bits 10 1377 V41100 V41117 CNT CTO Counters CTO CT177 V41140 V41147 K10 Counter V1000 K100 Current Values None 1000 V1177 gt Counter Status Bits CTO CT177 V41140 V41147 Data Words vena ae None specific used with many See Appendix F None V10000 Vi7777 instructions None specific used with many Data Words instructions EEPROM V7400 V7577 May be non volatile if MOV inst is used See Appendix F Data can be rewritten to EEPROM at least 100 000 times before it fails _ sc Stages S0 S1777 V41000 V41017 S001 Remote 1 0 future use GX0 GX3777 40000 40177 See Note 1 GY0 GY3777 V40200 V40377 V700 V777 System parameters None V7600 7777 None
15. Scan stores the minimum scan time that has occurred since the last Program Mode to Run Mode transition milliseconds Scan stores the maximum scan rate since the last power cycle milliseconds 3 30 DL06 Micro PLC User Manual 3rd Edition Rev C DLO6 Aliases An alias is an alternate way of referring to certain memory types such as timer counter current values V memory locations for I O points etc which simplifies understanding the memory address The use of the alias is optional but some users may find the alias to be helpful when developing a program The table below shows how the aliases can be used Chapter 3 CPU Specifications and Operation mE DLO6 Aliases Address Start Alias Start Example VO TAO VO is the timer accumulator value for timer 0 therefore its alias is TAO TA1 is the alias for V1 etc V1000 CTAO V1000 is the counter accumulator value for counter 0 therefore its alias is CTAO CTA1 is the alias for V1001 etc 40000 VGX 40000 is the word memory reference for discrete bits GXO through GX17 therefore its alias is VGX0 V40001 is the word memory reference for discrete bits GX20 through GX 37 therefore its alias is VGX20 40200 40200 is the word memory reference for discrete bits GYO through GY17 therefore its alias is VGY0 V40201 is
16. V40522 V40423 V40523 40424 V40524 V40425 V40525 V40426 V40526 40427 V40527 V40430 V40530 V40431 V40531 V40432 V40532 V40433 V40533 V40434 V40534 V40435 V40535 V40436 V40536 V40437 V40537 DLO06 Micro PLC User Manual 3rd Edition Rev C 3 33 Chapter 3 CPU Specifications and Operation E Stage Control Status Bit Map This table provides a listing of individual Stage control bits associated with each V memory address bit DLO6 Stage S Control Bits TOME a S es Address 012 011 010 007 006 005 V41000 032 031 030 027 026 025 v41001 052 051 050 047 046 045 V41002 072 071 070 067 066 065 V41003 112 111 110 107 106 105 V41004 132 131 130 127 126 125 V41005 152 151 150 147 146 145 41006 172 171 170 167 166 165 41007 V41010 V41011 V41012 V41013 V41014 V41015 V41016 V41017 V41020 V41021 V41022 V41023 V41024 V41025 V41026 V41027 V41030 V41031 V41032 V41033 V41034 V41035 V41036 V41037 This table is continued on the next page 3 34 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter
17. diagnostics error CPU CPU self diagnostics good The CPU indicator will blink if the battery is less than 2 5 VDC 1 Data is being transmitted by the CPU Port 1 No data is being transmitted by the CPU Port 1 RX1 Data is being received by the CPU Port 1 No data is being received by the CPU Port 1 TX2 Data is being transmitted by the CPU Port 2 No data is being transmitted by the CPU Port 2 RX2 Data is being received by the CPU Port 2 No data is being received by the CPU Port 2 3 6 l DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation nnn IEE EERE RRR Changing Modes in the DLO6 PLC Mode Switch Position CPU Action CPU is forced into the RUN mode if no errors are encountered RUN Run Program No changes are allowed by the attached programming monitoring device PROGRAM and the TEST modes are available Mode and TERM Terminal RUN program changes are allowed by the programming monitoring evice STOP 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 e
18. pre defined relay that will be on for 50 ms and off for 50 ms 3 28 DL06 Micro PLC User Manual 3rd Edition Rev C LD 1 K1345 OUT V2000 Word Locations 16 bits 0 0 0 1 0 0 1 1 0 1 0 0 0 1 0 1 Ladder Representation ISG S0000 Wait for Start Start st JMP kd 500 Lin SG 50001 Check for a Part Part Present 72 me x1 present 6 ime XI SG S0002 Clamp the part Clamp SET Pant saoo Locked 733 1 me x2 Ja 7 CIO 1 our 1 second clock SP5 100 ms clock SP6 50 ms clock Chapter 3 CPU Specifications and Operation nnn RRR DLO6 System V memory System Parameters and Default Data Locations V Data Type The DL06 PLCs reserve several V memory locations for storing system parameters or certain types of system data These memory locations store things like the error codes High Speed T O data and other types of system setup information ES Default Values Description of Contents Ranges Sets the V memory location for option card in slot 1 N A Sets the V memory location for option card in slot 2 N A Sets the V memory location for option card in slot 3 N A Sets the V memory location for option card in slot 4 N A The default location for multiple preset values for UP DWN and UP Counter 1 or N A pulse catch function T
19. the word memory reference for discrete bits GY20 through GY 37 therefore its alias is VGY20 40400 40400 is the word memory reference for discrete bits XO through X17 therefore its alias is VXO V40401 is the word its alias is VX20 memory reference for discrete bits X20 through X37 therefore 40500 40500 is the word memory reference for discrete bits YO through Y17 therefore its alias is VYO V40501 is the word its alias is VY20 memory reference for discrete bits Y20 through Y37 therefore 40600 V40600 is the word memory reference for discrete bits CO through C17 therefore its alias is VCO V40601 is the word its alias is VC20 memory reference for discrete bits C20 through C37 therefore 41000 is the word memory reference for discrete bits SO through S17 therefore its alias is VSO V41001 is the word its alias is VS20 memory reference for discrete bits S20 through S37 therefore 41100 is the word memory reference for discrete bits TO through T17 therefore its alias is VTO V41101 is the word its alias is VT20 memory reference for discrete bits T20 through T37 therefore V41140 is the word memory reference for discrete bits CTO through CT17 therefore its alias is VCTO V41141 is the word memory reference for discrete bits CT20 through CT37 therefore its alias is VCT20 V41200 V41200 is the word memory reference for discrete bits SPO through
20. this case the new input status is not read until the following scan The following diagram shows an example of the timing for this situation Scan Solve Solve Solve Solve Scan Program Program Program Program N Read Write va Inputs Outputs Field Input CPU Reads CPU Writes Inputs Outputs Input Off On Delay wi e Output ea Off On Delay je 1 O Response T ime gt 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 3 18 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation aoo Ay Improving Response Time There are a few things you can do to help improve throughput e You can choose instructions with faster execution times e You can use immediate I O instructions which update the I O points during the program execution e You can use the HSIO Mode 50 Pulse Catch features designed to operate in high speed ee environments See Appendix E for details on using this feature e You can change Mode 60 filter to 0 msec for XO X1 X2 and X3 Of these three things the Immediate I O instructions are probably the most important and most useful The following example shows how an immediate input instruction and immediate output instruction would affect the response time
21. y Write Outputs from Specialty 1 O y Diagnostics W The DL06 CPU can process up to 8 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 Write Outputs 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 Remember the CPU also made sure that any forcing operation changes were stored in the output image register so the forced points get updated with the status specified earlier Write Outputs to Specialty I O 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 Specialty modules have built in microprocessors which communicate to the CPU via the backplane Some of these modules can process data Refer to the specific Specialty module user manual for detailed information 3 16 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation M D
22. 044 v40244 1133 1132 1131 1130 1127 1126 1125 1124 40045 V40245 1153 1152 1151 1150 1147 1146 1145 1144 v40046 V40246 1173 1172 1171 1170 1167 1166 1165 1164 V40047 v40247 V40050 V40250 V40051 V40251 V40052 V40252 V40053 V40253 V40054 V40254 V40055 V40255 V40056 V40256 V40057 V40257 V40060 V40260 V40061 V40261 V40062 V40262 V40063 V40263 40064 V40264 V40065 V40265 V40066 V40266 V40067 V40267 40070 V40270 V40071 V40271 40072 V40272 V40073 V40273 40074 V40274 V40075 V40275 40076 V40276 V40077 V40277 This table is continued on the next page NOTE This memory area can be used for additional Data Words 3 40 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation DLO6 GX and GY 1 0 Points cont d GX GY 11 10 9 8 7 6 5 14 Address Address 2013 2012 2011 2010 2007 2006 2005 2004 V40100 V40300 2033 2032 2031 2030 2027 2026 2025 2024 V40101 V40301 2053 2052 2051 2050 2047 2046 2045 2044 V40102 v40302 2073 2072 2071 2070 2067 2066 2065 2064 40103 V40303 2413 2112 2111 2110 2107 2106 2105 2104 V40104 v40304 2133 2132 2131 2130 2127 2126 2125 2124 V401
23. 05 V40305 2153 2152 2151 2150 2147 2146 2145 2144 V40106 V40306 2173 2172 2171 2170 2167 2166 2165 2164 V40107 V40307 V40110 V40310 V40111 V40311 V40112 V40312 V40113 V40313 V40114 V40314 V40115 V40315 V40116 V40316 V40117 V40317 V40120 V40320 V40121 V40321 V40122 V40322 V40123 V40323 V40124 V40324 V40125 V40325 V40126 V40326 V40127 V40327 V40130 V40330 V40131 V40331 V40132 V40332 V40133 V40333 V40134 V40334 V40135 V40335 V40136 V40336 V40137 V40337 This table is continued on the next page NOTE This memory area can be used for additional Data Words DLO06 Micro PLC User Manual 3rd Edition Rev C 3 41 Chapter 3 CPU Specifications and Operation E DLO6 GX and GY 1 0 Points cont d W w e amp 7 6 os 4 GX Address GY Address 3013 3012 3011 3010 3007 3006 3005 3004 V40140 V40340 3033 3032 3031 3030 3027 3026 3025 3024 V40141 V40341 3053 3052 3051 3050 3047 3046 3045 3044 40142 V40342 3073 3072 3071 3070 3067 3066 3065 3064 V40143 V40343 3113 3112 3111 3110 3107 3106 3105 3104 40144 V40344 3133 3132 3131 3130 3127 3126 3125
24. 200 033 032 031 030 027 026 V40001 V40201 053 052 051 050 047 046 40002 40202 073 072 071 070 067 066 v40003 40203 113 112 111 110 107 106 v40004 40204 133 132 131 130 127 126 v40005 40205 153 152 151 150 147 146 v40006 V40206 173 172 171 170 167 166 v40007 40207 40010 V40210 V40011 V40211 V40012 V40212 V40013 V40213 40004 V40214 V40015 V40215 V40016 V40216 40007 V40217 40020 V40220 V40021 V40221 V40022 V40222 V40023 V40223 V40024 V40224 V40025 V40225 V40026 V40226 V40027 V40227 V40030 V40230 V40031 V40231 V40032 V40232 V40033 V40233 V40034 V40234 V40035 V40235 V40036 V40236 V40037 V40237 This table is continued on the next page NOTE This memory area can be used for additional Data Words DLO06 Micro PLC User Manual 3rd Edition Rev C 3 39 Chapter 3 CPU Specifications and Operation DLO6 GX and GY 1 0 Points cont d GX GY 11 10 9 8 17 6 5114 Address Address 1013 1012 1011 1010 1007 1006 1005 1004 v40040 v40240 1033 1032 1031 1030 1027 1026 1025 1024 v40041 v40241 1053 1052 1051 1050 1047 1046 1045 1044 V40042 v40242 1073 1072 1071 1070 1067 1066 1065 1064 40043 V40243 1113 1992 1447 1110 1107 1106 1105 1104 v40
25. 28 counters available in the CPU Counter status bits that reflect the relationship between the current value and the preset value of a specified counter A The counter status bit will be on when the current value CNT CT3 is equal to or greater than the preset value of a Kto corresponding counter nl Each time contact XO transitions from off to on the counter increments by one If X1 comes on the cB y2 counter is reset to zero When the counter reaches the OUT preset of 10 counts K of 10 counter status contact CT3 turns on When CT3 turns on output Y2 turns on Ao CNT CT Counter Current Values V Data Type K10 Just like the timers the counter current values are also XI automatically stored in V memory For example V1000 holds the current value for Counter CTO V1001 holds the current value for Counter CT1 etc These can also V1003 K1 y2 be designated as CTAO Counter Accumulated for gt OUT Counter 0 and CTAO1 for Counter 1 The primary reason for this is programming flexibility ee a S Re The example shows how you can use relational contacts E to monitor the counter values V1003 K5 V1003 K8 Y4 gt lt out DL06 Micro PLC User Manual 3rd Edition Rev C 3 27 Chapter 3 CPU Specifications and Operation Word Memory V Data Type Word memory is referred to as V memory variable and is a 16 bit location normally used to manipulate data numbers store data numbers etc Some information is automatic
26. 3 CPU Specifications and Operation nnn RRR DLO6 Stage S Control Bits cont d Address 11 10 9 8 7 6 5 4 1013 1012 1011 1010 1007 1006 1005 1004 V41040 1033 1032 1031 1030 1027 1026 1025 1024 V41041 1053 1052 1051 1050 1047 1046 1045 1044 V41042 1073 1072 1071 1070 1067 1066 1065 1064 V41043 1113 1442 1911 1110 1107 1106 1105 1104 V41044 1133 1132 1131 1130 1127 1126 1125 1124 V41045 1153 1152 1151 1150 1147 1146 1145 1144 V41046 1173 1172 1171 1170 1167 1166 1165 1164 V41047 V41050 V41051 V41052 V41053 V41054 V41055 V41056 V41057 V41060 V41061 V41062 V41063 V41064 V41065 V41066 V41067 V41070 V41071 V41072 V41073 V41074 V41075 V41076 V41077 DLO06 Micro PLC User Manual 3rd Edition Rev C 3 35 Chapter 3 CPU Specifications and Operation E Control Relay Bit Map This table provides a listing of the individual control relays associated with each V memory address bit DLO6 Control Relays C Address 9 8 7 6 5 011 010 007 006 40600 031 030 027 026 V40601 051 050 047 046 V40602 071 070 067 066 40603 111 110 107 106 40604 131 130 127 126 40605 151 150 147 146 40606 171 170
27. 3124 V40145 V40345 3153 3152 3151 3150 3147 3146 3145 3144 V40146 V40346 3173 3172 3171 3170 3167 3166 3165 3164 V40147 V40150 V40347 V40350 V40151 V40351 V40152 V40352 V40153 V40353 V40154 V40354 V40155 V40355 V40156 V40356 V40157 V40160 V40357 V40360 V40161 V40361 V40162 V40362 V40163 V40363 V40164 V40364 V40165 V40365 V40166 V40366 V40167 40170 V40367 V40370 V40171 V40371 V40172 V40372 V40173 V40373 40174 V40374 V40175 V40375 V40176 V40376 NOTE This memory area can be used for additional Data Words 3 42 DL06 Micro PLC User Manual 3rd Edition Rev C V40177 V40377
28. AUX 82 you will be prompted to enter the password NOTE The DLO6 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 e g A1234567 DL06 Micro PLC User Manual 3rd Edition Rev C 3 1 1 Chapter 3 CPU Specifications and Operation CPU Operation 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 e CPU Operating System the CPU manages all aspects of system control A quick overview of all the steps is provided in the next section e CPU Operating Modes The two primary modes of operation are Program Mode and Run Mode e CPU Timing The two important areas we discuss are the I O response time and the CPU scan time e 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 Power up the retentive memory settings In general the contents i i I
29. CPU SPECIFICATIONS AND OPERATION In This Chapter OVEIVIEOW cece knees FERS Mites i Eee eee ee ea wees es ee e 3 2 CPU Specifications 63 5 s0 t09 ee doko ode Sd oe AGS Ce ewe 3 3 CPU Hardware Setup coat ete cheek eee ee eee ks eee ene 3 4 Using Battery Backup nictcteus daaou eck eeenw see ue sedate dans 3 8 CPU OPEratON 442 4 54 05 e0 0 E thee eee ee eke aoe 3 12 VO Response TMe se 72 Kies 4 ieee eee ee wed eed Kw ews eda 3 17 CPU Scan Time Considerations 95 000 065 ee eee ne one baw 6 3 20 Memory Map sc texrseneteaektacsreed ed er deaee denian sea 3 25 DLOG System V MEMONY er eecneee ers Cork eee ee Seekers 3 29 DLOGAliASES 235 ceire ek Geers toe Kaeo cee e a eee we wee 3 31 DLO6 Memory Map s ess se cee enw eqeee eed wae has eae eed 3 32 X Input Y Output Bit Map ios co ced oe deeew onuwe eons acters 3 33 Stage ontrot Status Bit Map exew 508 26 6oek che teow che Gees 3 34 Control Relay Bit Map ss6 002x6cobodsod toes dds eee eR cee 3 36 Timer Status BMAD a2 css 00nd oho ban pee eee weer ks eee tinge 3 38 Counter Status Bit Map occcescoateveudee ey cased hewewe ees 3 38 GX and GY O BitMap 4sre0te aise ecb tee heehee Sexe 3 39 Chapter 3 CPU Specifications and Operation Overview 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 chapter provides the information needed to understand e Steps requ
30. UN 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 C 3 7 Chapter 3 CPU Specifications and Operation Using Battery Backup AN An optional lithium battery is available to maintain the system RAM retentive memory when the DLO06 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 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 immediat
31. a E54 a PORTI PORTZ RUN STOP W one bit that can be either a 1 or a 0 Word Discrete On or Off 1 bit memory is referred to as V memory variable XO and is a 16 bit location normally used to manipulate data numbers store data numbers etc Word Locations 16 bits Some information is automatically stored 0l1l0l1lololololololi lolol loli in V memory For example the timer current values are stored in V memory V memory Locations for Discrete Memory Areas The discrete memory area is for inputs outputs control relays special relays stages timer status bits and counter status bits However you can also access the bit data types as a V memory word Each V memory location contains 16 consecutive discrete locations For example the following diagram shows how the X input points are mapped into V memory locations 8 Discrete X Input Points X7 X6 X5 X4 X3 X2 X1 XO ILLI Bit 15 14 13112 11 10 9 8 7 6 5 44 3 4 2 14 0 V40400 These discrete memory areas and their corresponding V memory ranges are listed in the memory area table for DL06 Micro PLCs on the following pages
32. ally stored in V memory For example the timer current values are stored in V memory The example shows how a four digit BCD constant is loaded into the accumulator and then stored in a V memory location Stages S Data type Stages are used in RLL S programs to create a structured program similar to a flowchart Each program Stage denotes a program segment When the program segment or Stage is active the logic within that segment is executed If the Stage is off or inactive the logic is not executed and the CPU skips to the next active Stage See Chapter 7 for a more detailed description of RLL programming Each Stage also has a discrete status bit that can be used as an input to indicate whether the Stage is active or inactive If the Stage is active then the status bit is on If the Stage is inactive then the status bit is off This status bit can also be turned on or off by other instructions such as the SET or RESET instructions This allows you to easily control stages throughout the program Special Relays SP Data Type Special relays are discrete memory locations with pre defined functionality There are many different types of special relays For example some aid in program development others provide system operating status information etc Appendix D provides a complete listing of the special relays In this example control relay C10 will energize for 50 ms and de energize for 50 ms because SP5 is a
33. an change the password to all zeros to remove the password protection You can select an 8 digit numeric password The Micro PLCs are shipped from the factory Ee WARNING Make sure you remember your password If you forget your password you will not be 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 You can use the D2 HPP Handheld Programmer or meal DirectSOFT to enter a password The following diagram shows how you can enter a password with the Handheld Programmer DirectSOFT D2 HPP Select AUX 81 CLR CLR E ia AUX ENT PASSWO RD 00000000 Enter the new 8 digit password sild gt PASSWORD XXXXXXXX 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
34. code for the high speed counter interrupt pulse catch Catch 60 Filtered discrete pulse train and input filter In Upper Byte Range Bits This location can also be used to set the power up in Run Mode option 8 11 14 15 Unused Bit 13 Power up in RUN only if Mode Switch is inTERM position Bit 12 is used to enable the low battery indications XO Setup Register for High Speed 1 0 functions for input XO Default 1006 X1 Setup Register for High Speed 1 0 functions for input X1 Default 1006 X2 Setup Register for High Speed 1 0 functions for input X2 Default 1006 X3 Setup Register for High Speed 1 0 functions for input X3 Default 1006 DL06 Micro PLC User Manual 3rd Edition Rev C 3 29 Chapter 3 CPU Specifications and Operation Default Values Ranges PID Loop table beginning address v A me Number of PID loops 1 8 Error Code V memory Error location for Loop Table Reserved Description of Contents Port 2 Setup for V memory address for Non Sequence protocol M A AR Port 2 Setup for terminate code for Non Sequence protocol Port 2 Setup for the protocol time out and the response delay time Port 2 Setup for the station number baud rate STOP bit and parity Port 2 Setup completion code used to notify the completion of the parameter setup 0400h reset port 2 Scan control setup Keeps the scan control mode Setup timer ove
35. communications The actual time required depends on the type of modules installed and the type of request being processed Update Clock Calendar Special Relays Special Registers 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 Minimum Maximum Minimum Maximum Program Mode Run Mode NOTE The Clock Calendar is updated while there is energy on the super capacitor If the super capacitor is discharged the real time and date is lost DLO06 Micro PLC User Manual 3rd Edition Rev C 3 21 Chapter 3 CPU Specifications and Operation Application Program Execution The CPU processes the program from address 0 to the END instruction The CPU executes the program left to right and top to bottom As each rung is evaluated the appropriate image register or memory location is updated The time required to solve the application program depends on the type and number of instructions used and the amount of execution overhead Just add the execution times for all the instructions in your program to determine to total execution time Appendix C provides a complete list of the instruction execution times for the DLO06 Micro PLC For example the execution time for running the program shown below is calculated as follows
36. ditional retentive ranges or no retentive ranges at all The default settings are DLOG Default Range Available Range Control Relays C1000 C1777 CO C1777 V Memory V400 V37777 VO V37777 Timers None by default T0 T377 Counters CTO CT177 CTO CT177 Stages None by default S0 S1777 Memory Area You can use AUX 57 to set the retentive ranges You can also use DirectSOFT menus to select the retentive ranges Appendix A contains detailed information about auxiliary functions WARNING The DLO6 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 to 7 days If the retentive ranges are important for your application make sure you obtain the optional battery 3 10 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation aN Using a Password AN 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 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 c
37. e in the CPU Timer status bits reflect the relationship between the current value and the preset value of a specified timer The timer status bit will be on when the current value is equal or greater than the preset value of a corresponding timer When input XO turns on timer T1 will start When the timer reaches the preset of 3 seconds K of 30 timer status contact T1 turns on When T1 turns on output Y12 turns on Turning off XO resets the timer i ee 1 OUT x1 a OUT X6 c5 OUT C5 Y10 OUT Y20 OUT a TMR TI K30 T1 Y12 OUT Chapter 3 CPU Specifications and Operation nnn RE RRR RRR Timer Current Values V Data Type As mentioned earlier some information is automatically stored in V memory This is true for the current values aa TMR TI associated with timers For example VO holds the l KOBO current value for Timer 0 V1 holds the current value for Timer 1 and so on These can also be designated as Vi K30 Y2 TAO Timer Accumulated for Timer 0 and TA1 for gt OUT Timer 1 The primary reason for this is programming flexibility iii a e oat The example shows how you can use relational contacts to monitor several time intervals from a single timer 7 V1 K75 V1 K100 Y4 Counters and Counter Status Bits CT Data type gt lt OUT There are 1
38. e outputs off and enter the Program Mode This feature is discussed in more detail in Chapter 9 damage to equipment DL06 Micro PLC User Manual 3rd Edition Rev C 3 13 Normal Run mode scan Oo Read Inputs Y Read Inputs from Specialty 1 O y Service Peripherals v Update Clock Special Relays Solve the Application Program y Write Outputs y Write Outputs to Specialty I O y Diagnostics Download Program e 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 Chapter 3 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 instructi
39. ely 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 3 8 DL06 Micro PLC User Manual 3rd Edition Rev C AUX functions You can access the AUX Functions from DirectSOFT 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 package The following table shows a list of the Auxiliary functions for the Handheld Programmer Auxiliary Functions 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 Auxiliary Funct
40. ev C 3 15 Chapter 3 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 the input conditions and the desired output response The CPU uses the output image register area to store the status of the desired action for the outputs Output image register locations are designated with a Y followed by a memory location The actual outputs are updated during the write outputs segment of the scan cycle There are immediate output instructions available that will update the output points immediately instead of waiting until the write output segment A complete list of the Immediate instructions is provided in Chapter 5 The internal control relays C the stages S and the variable memory V are also updated in this segment You may recall that you can force various types of points in the system discussed earlier in this chapter If any I O points or memory data have been forced the output image register also contains this information Solve PID Loop Equations i eal n a PORTZ RUN STOP E Normal Run mode scan W V OO A Read Inputs from Specialty 1 O y Service Peripherals y Update Special Relays y Solve the Application Program
41. han ten because eight is an even power of 2 see Appendix I for more details Octal means simply counting in groups of eight things Decimal 12 3 4 5 6 7 8 at a time In the figure to the right there are eight circles The quantity in decimal is 8 but in octal it is 10 8 and 9 are not valid in octal In octal 10 means1 Octal 12345 67 10 group of 8 plus 0 no individuals In the figure below we have two groups of eight circles Counting in octal we have 20 items meaning 2 groups of eight plus 0 individuals Don t say twenty say two zero octal This makes a clear distinction between number systems Decimal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Octal 123 4 5 6 7 10 11 12 13 1415 1617 20 After counting PLC resources it s time to access PLC resources there s a difference The CPU instruction set accesses resources of the PLC using octal addresses Octal addresses are the same as octal quantities except they start counting at zero The number zero is significant to a computer so we don t skip it Our circles are in an array of square containers to X 0 1 2 3 4 5 6 7 the right To access a resource our PLC instruction will address its location using the octal references X shown If these were counters CT14 would access 1 X ey the black circle location 2x DL06 Micro PLC User Manual 3rd Edition Rev C l 3 23 Binary Coded Decimal Numbers Chapter 3 CPU Specification
42. he default location for multiple preset values for UP DWN and UP Counter 2 N A Locations for DV 1000 operator interface parameters Sets the V memory location that contains the value V0 3760 Sets the V memory location that contains the message Vo 3760 Sets the total number 1 32 of V memory locations to be displayed 1 32 Sets the V memory location containing the numbers to be displayed V0 3760 Sets the V memory location that contains the character code to be displayed Vo 3760 Contains the function number that can be assigned to each key V memory for X Y or C Powerup operational mode 0 1 2 3 12 Change preset value 0000 to 9999 Starting location for the multi step presets for channel 1 The default value is 3630 which indicates the first value should be obtained from V3630 Since there Default V3630 are 24 presets available the default range is V3630 V3707 You can change the Range VO V3710 starting point if necessary Starting location for the multi step presets for channel 2 The default value is 3710 which indicates the first value should be obtained from V3710 Since there Default V3710 are 24 presets available the default range is V3710 V3767 You can change the Range VO V3710 starting point if necessary Setup Register for Pulse Output N A Default 0060 Lower Byte Range Range 10 Counter 20 Quadrature 30 Pulse Out 40 Interrupt 50 Pulse Sets the desired function
43. iagnostics During this part of the scan the CPU performs all system diagnostics and other tasks such as calculating the scan time and resetting the watchdog timer There are many different error conditions that are automatically detected and reported by the DL06 PLCs Appendix B contains a listing of the various error codes calculation and watchdog timer control The DL06 CPU has a watchdog timer that stores the maximum time allowed for the CPU to complete the solve application segment of the scan cycle If this time is exceeded the CPU will enter the Program Mode and turn off all outputs The default value set from the factory is 200 ms An error is automatically reported For example the Handheld Programmer would display the following message E003 S W TIMEOUT when the scan overrun occurs 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 1 0 Response Time Probably one of the more important things that occurs during this segment is the scan time Ez Is Timing Important for Your Application 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 applications the CPU performs this task in such a short period of time that you may never have to concern yourself with the aspects of system timing However some applications do require extremely fa
44. ions cont d AUX 2 RLL Operations 57 Set Retentive Ranges Check Program 58 Test Operations Change Reference 59 Override Setup Clear Ladder Range 5B HSIO Configuration Clear All Ladders 5C Display Error History AUX 3 V Memory Operations 5D Scan Control Setup Clear V memory AUX 6 Ha ndheld Programmer Configuration AUX 4 1 0 Configuration 61 Show Revision Numbers Show 1 0 Configuration 62 Beeper On Off 1 0 Diagnostics 65 Run Self Diagnostics Power Up 1 0 Configuration check AUX 7 EEPROM Operations Select Configuration 71 Copy CPU memory to HPP EEPROM Configure 1 0 72 Write HPP EEPROM to CPU 5 CPU Configuration 73 Compare CPU to HPP EEPROM Modify Program Name 74 Blank Check HPP EEPROM Display Change Calendar 75 Erase HPP EEPROM Display Scan Time 76 Show EEPROM Type CPU and HPP Initialize Scratchpad Password Operations Set Watchdog Timer 81 Modify Password Set Communication Port 2 82 Unlock CPU 83 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 e AUX 23 Clear Ladder Range
45. ired to set up the CPU e Operation of ladder programs e Organization of Variable Memory Power Input 16 Discrete Outputs A Output circuit LCD monitor j Power gt 4 Optional Supply CPU card slots Isolation boundary gt Input circuit 2 comm ports 1 y h To programming device 20 discrete Inputs or Operator interface NOTE The High Speed 1 0 function HSIO consists of dedicated but configurable hardware in the DLO6 It is not considered part of the CPU because it does not execute the ladder program For more on HSIO operation see Appendix E DL06 CPU Features The DL06 Micro PLC has 14 8K words of memory comprised of 7 6K of ladder memory and 7 6K words of V memory data registers Program storage is in the FLASH memory which 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 not in the application program 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 The DL06 supports fixed I O which includes twenty discrete input points and sixteen output points Over 220 different instructions are available for program development as well as extensive internal diagnostics that can be monitored from the applicati
46. is information can be very important when maksva Su mM evaluating the performance of a system As weve shown E ad previously there are several segments that make up the o scan cycle Each of these segments requires a certain amount of time to complete Of all the segments the Update input following are the most important Read input data from Input Update Specialty and Remote I O e Peripheral Service Service peripheral e Program Execution Output Update CPU Bus Communication e Timed Interrupt Execution The one you have the most control over is the amount of Update Clock Calendar time it takes to execute the application program This is because different instructions take different amounts of Pam Mode time to execute So if you think you need a faster scan then you can try to choose faster instructions RUN Your choice of I O type and peripheral devices can also Execute adder program affect the scan time However these things are usually dictated by the application PID Equations DL250 The following paragraphs provide some general 5 Update output information on how much time some of the segments can require Write output data to Specialty and Remote 1 0 Reading Inputs L The time required during each scan to read the input status of built in inputs is 52 6 us Don t confuse this with the I O response time that was discussed earlier
47. ither DirectSOFT or the Handheld Programmer to change the CPU mode of operation With DirectSOFT use the PLC menu option PLC gt Mode or use the Mode button located on the Online toolbar With the Handheld Programmer you use the MODE key e alex oooo tren Le vew wa PE Lyi x E wai QOQ OlOWICOOOOO OlOWICIOOO OO annann wra channels Copy config data from Disk to ELC TOO Uo Ol Q Q Q Q OOo 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 R
48. nitiali d of retentive memory is preserved and non retentive nitialize hardware memory is initialized to zero unless otherwise Initialize various memory ifi d based on retentive speciied configuration After the one time powerup tasks the CPU begins the cyclical scan activity The flowchart to the right shows Update input 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 PGM vos at any time Service peripheral Update Special Relays RUN Execute program 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 Update output 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 Do diagnostics YES OK NO Report error set flag register turn on LED NO Fatal error YES Force CPU into PGM mode 3 12 DL06 Micro PLC User Manual 3rd Edition Rev C Run Mode 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
49. on program or from an operator interface Chapters 5 6 and 7 provide detailed descriptions of the instructions The DL06 provides two built in communication ports so you can easily connect a handheld programmer operator interface or a personal computer without needing any additional hardware 3 2 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation il 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 Variable fixed Handheld programmer Yes DirectSOFT programming for Windows Yes Built in communication ports RS232C Yes FLASH Memory Standard on CPU Local Discrete 1 0 points available 36 Local Analog input output channels maximum None High Speed 1 0 quad pulse out interrupt pulse catch etc Yes 2 1 0 Point Density 20 inputs 16 outputs Number of instructions available see Chapter 5 for details 229 Control relays 1024 Special relays system defined 512 1024 256 128 Yes Yes Yes Yes Math Integer and floating point Yes Drum Sequencer Instruction Yes Time of Day Clock Calendar Yes Internal diagnostics Yes Password security Yes Yes Yes Optional D2 BAT 1 available not included with unit
50. ons 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 DLO06 CPUs e Forcing from a peripheral not a permanent force good only for one scan e 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 Programme
51. r counter Counts the times the actual scan time exceeds the user setup time Reserved Locations for DV 1000 operator interface parameters Titled Timer preset value pointer Titled Counter preset value pointer HiByte Titled Timer preset block size LoByte Titled Counter preset block size Reserved Port 1 and Port 2 Communication Auto Reset Timer Setup Default 3030 Reserved Location contains a 10 ms counter 0 99 This location increments once every 10 ms Reserved Fault Message Error Code stores the 4 digit code used with the FAULT instruction when the instruction is executed 1 0 Configuration Error Current ID code of error slot 1 0 Configuration Error Old ID code of error slot 1 0 Configuration Error error slot number Error code stores the fatal error code Error code stores the major error code Error code stores the minor error code Reserved Program address where syntax error exists Syntax error code Scan counter stores the total number of scan cycles that have occurred since the last Program Mode to Run Mode transition in decimal Contains the number of seconds on the clock 00 59 Contains the number of minutes on the clock 00 59 Contains the number of hours on the clock 00 23 Contains the day of the week Mon Tues Wed etc Contains the day of the month 01 02 etc Contains the month 01 to 12 Contains the year 00 to 99 Scan stores the current scan time milliseconds
52. r or by a menu option from within DirectSOFT 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 YO and it was off at the time then the CPU would not change the state of YO However you can still use a programming device to change the status Now if you use the programming device to force YO on it will remain on and the CPU will not change the state of YO If you then force YO off the CPU will maintain YO 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 3 14 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation Bit Override OFF
53. s and Operation V Memory Variable memory V memory stores data for the ladder program and for configuration settings V memory locations and V memory addresses are the same thing and are numbered in octal For example V2073 is a valid location while V1983 is not valid 9 and 8 are not valid octal digits Each V memory location is one data word wide meaning 16 bits For configuration registers our manuals will show each bit of a V memory word The least significant bit LSB will be on the right and the most significant bit MSB on the left We use the word significant referring to the relative binary weighting of the bits V memory address V memory data octal MSB binary LSB V2017 0 1 0 0 1 1 1 0 0 0 1 0 1 0 0 1 V memory data is 16 bit binary but we rarely program the data registers one bit at a time We use instructions or viewing tools that let us work with decimal octal and hexadecimal numbers All these are converted and stored as binary for us A frequently asked question is How do I tell ifa number is octal BCD or hex The answer is that we usually cannot tell just by looking at the data but it does not really matter What matters is the source or mechanism which writes data into a V memory location and the thing which later reads it must both use the same data type i e octal hex binary or whatever The V memory location is j
54. specific used for various purposes V36000 V37777 NOTE 2 The DLOG systems have 20 fixed discrete inputs and 16 fixed discrete outputs but the total NOTE 1 This area can be used for additional Data Words can be increased by up to 64 inputs or 64 outputs or a combination of both 3 32 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation X Input Y Output Bit Map This table provides a listing of individual input and output points associated with each V memory address bit for the DL06 s twenty integrated physical inputs and 16 integrated physical outputs in addition to up to 64 inputs and 64 outputs for option cards Actual available references are X0 to X777 V40400 V40437 and YO to Y777 V40500 V40537 DLO6G Input X and Output Y Points X Input Y Output ee 12 30 9 8s 7 6 5 Address Address 014 012 011 010 007 006 005 V40400 40500 034 032 031 030 027 026 025 V40401 40501 054 052 051 050 047 046 045 v40402 40502 074 072 071 070 067 066 065 v40403 40503 114 112 111 110 107 106 105 V40404 40504 134 132 131 130 127 126 125 v40405 40505 154 152 151 150 147 146 145 v40406 40506 174 172 171 170 167 166 165 v40407 40507 V40410 V40510 V40411 V40511 V40412 V40512 V40413 V40513 V40414 V40514 V40415 V40515 V40416 V40516 V40417 V40517 40420 40520 V40421 V40521 40422
55. st update times In these cases you may need to know how to determine the amount of time spent during the various segments of operation There are four things that can affect the I O response time e The point in the scan cycle when the field input changes states e Input Off to On delay time e CPU scan time e Output Off to On delay time The next paragraphs show how these items interact to affect the response time DL06 Micro PLC User Manual 3rd Edition Rev C 3 17 Chapter 3 CPU Specifications and Operation E Normal Minimum I O Response The I O response time is shortest when the input changes 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 Scan Solve Solve Solve Solve Scan Program Program Program Program N read Write Inputs Outputs Field Input CPU Reads CPU Writes Inputs Outputs Input wal Off On Delay Output Off On Delay p 1OResponse T ime 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 input changes just after the Read Inputs portion of the execution cycle In
56. this full range for sensor data etc Hexadecimal is just a convenient way for humans to view full binary data Hexadecimal number A 7 F 4 V memory storage 1 0 1 ON i 0 1 1 1 1 1 1 1 0 1 0 0 3 24 DL06 Micro PLC User Manual 3rd Edition Rev C Chapter 3 CPU Specifications and Operation Memory Map With any PLC system you generally have many different types of information to process This includes input device status output device status various timing elements parts counts etc It is important to understand how the system represents and stores the various types of data For example you need to know how the system identifies input points output points data words etc The following paragraphs discuss the various memory types used in DLO6 Micro PLCs A memory map overview for the 5 ee CPU follows the memory descriptions Octal Numbering System All memory locations and resources are numbered in Octal base 8 For example the diagram shows how the octal numbering system works for the discrete input points Notice the octal system does not contain any numbers with the digits 8 or 9 xo X1 x2 x3 x4 1x5 x6 x7 Discrete and Word Locations oe ee As you examine the different memory types you ll notice two types of memory in the DL06 _ x10 x11 discrete and word memory Discrete memory is l
57. tion M PLC Numbering Systems octal bco z Dinary If you are a new PLC user or are using 2 me 2 i3 saga 2 AutomationDirect PLCs for the first time please take 3A9 i 961428 ASCII a moment to study how our PLCs use numbers 7 5 hexadecimal Youll find that each PLC manufacturer has their own 1091011911 a 177 gt 10m conventions on the use of numbers in their PLCs decimal We want to take just a moment to familiarize you 300124 A 728 2 with how numbers are used in AutomationDirect PLCs The information you learn here applies to all of our PLCs As any good computer does PLCs store and manipulate numbers in binary form just ones and zeros So why do we have to deal with numbers in so many different forms Numbers have meaning and some representations are more convenient than others for particular purposes Sometimes we use numbers to represent a size or amount of something Other numbers refer to locations or addresses or to time In science we attach engineering units to numbers to give a particular meaning see Appendix I for numbering system details PLC Resources PLCs offer a fixed amount of resources depending on the model and configuration We use the word resources to include variable memory V memory I O points timers counters etc Most modular PLCs allow you to add I O points in groups of eight In fact all the resources of our PLCs are counted in octal It s easier for computers to count in groups of eight t
58. udes some things that you may never have to use Here s a brief list of the items that are discussed e Using Auxiliary Functions e Clearing the program and other memory areas e How to initialize system memory e Setting retentive memory ranges The following paragraphs provide the setup information necessary to get the CPU ready for 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 of the menus and keystrokes required to perform the setup procedures via DirectSOFT DL06 Micro PLC User Manual 3rd Edition Rev C 3 5 Chapter 3 CPU Specifications and Operation
59. ust a storage box that s all It does not convert or move the data on its own A BCD number 4 9 3 6 Since humans naturally count in decimal 10 fingers 10 toes we prefer to enter and view PLC data in decimal as well However computers are more efficient in using pure binary numbers A compromise solution between the two is Binary Coded Decimal BCD representation A BCD digit ranges from 0 to 9 and is stored as four binary bits a nibble This permits each V memory location to store four BCD digits with a range of decimal numbers from 0000 to 9999 In a pure binary sense a 16 bit word can represent numbers from 0 to 65535 In storing BCD numbers the range is reduced to only 0 to 9999 Many math instructions use Binary Coded Decimal BCD data and DirectSOFT and the handheld programmer allow us to enter and view data in BCD V memory storage 0 1 0 0 1 0 0 1 0 0 1 1 0 1 1 0 Hexadecimal Numbers Hexadecimal numbers are similar to BCD numbers except they utilize all possible binary values in each 4 bit digit They are base 16 numbers so we need 16 different digits To extend our decimal digits 0 through 9 we use A through F as shown Decimal 0123 45 6 7 8 910 11 1213 14 15 Hexadecimal 0123 45 67 89 A BCODE F A 4 digit hexadecimal number can represent all 65536 values in a V memory word The range is from 0000 to FFFF hex PLCs often need

Download Pdf Manuals

image

Related Search

Related Contents

Soler & Palau Artic-400 CN  D-303558 GSD-441 PG2 Instrucciones de instalación  LED_Nuova Estetica_ES  MANUEL D`INSTALLATION ET D`UTILISATION DU PVR  Ultra LS400  Palsonic 8040PFST User's Manual  Clavier codé radio TORCODY RS 433 et RS 868  TAXAN Ultra ATA 100/133 TAXAN Ultra ATA 100/133対応  Válvula de retención tipo venturi y kit de medición de flujo    

Copyright © All rights reserved.
Failed to retrieve file