The text of a manual · part 21 of 38
DL06 Micro PLC User Manual, Volume 2 of 2, pages 200 to 209
Pages 200 to 209 of 370
The original document is the PDF (6.0 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.
Page 200
Chapter 10: LCD Display Panel
DL06 LCD Display Panel
1 Instruction (LCD) From the DirectSOFT 5 project folder, use the 2 Instruction Browser to locate the LCD instruction. When you select the LCD 3 instruction and click OK, the LCD dialog will appear. 4 The LCD Display Panel instruction is inserted into the ladder program via the set-up dialog box shown to the right. The dialog is used to specify 5 a message to be displayed on line 1 or line 2 LCD Display Panel. 6 S l u d g e P i t A l a r m E f f l u e n t O v e r f l o 7 8 Source of message The text of the message can originate from one 9 of two places. It can be input directly from the instruction as a literal text string (see figure A), or it can originate as ASCII text stored in a V10 memory location (figure B). In the latter case, it is necessary to specify its beginning V-memory 11 location and length within the dialog box. Display text strings can include embedded data. Any V-memory value or date and time settings 12 can be embedded in the displayed text. 13 14 A B NOTE: The LCD Display Panel instruction is supported by DirectSOFT 5, Ver. 5 or later. It is not supported by the D2-HPP handheld programmer. C D figure A
LCD
Line Number: "Sludge Pit Alarm"
K1 figure B
LCD
Line Number:
Starting V Memory Address: Number of Characters:
10–26
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Kn
A aaa
Page 201
Chapter 10: LCD Display Panel
ASCII Character Codes ASCII characters can be written directly to Vmemory locations and then displayed using the LCD instruction. The table to the right shows the two-digit BCD/HEX code for each character available for display.
ASCII Character Codes (BCD/HEX) First Digit
Example:
To display an upper case A, write 41 HEX to the memory location identified by the LCD instruction.
Second Digit
2 3 4 5 6 7 0 1 2 3 4 5 6 7 8 9 A B C D E F
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 10–27
Page 202
Chapter 10: LCD Display Panel
Example program: alarm with embedded date/time stamp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 10–28
The following program will display the message “Alarm 1”and the time on line K1 of the display screen with the date on line K2. The one-shot, or positive differential (PDd), is used so that the message displays but does not block other messages or menu options. Pressing MENU or ESC will cause the alarm message text to disappear.
C1
C0
PD C1 LCD K1
Line Number: "Alarm 1 " LCD
Line Number: K2 _date:us " " _time:12
END
A l a r m 1 0 5 / 0 8 / 0 4
5 : 2 3 P M
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Page 203
Chapter 10: LCD Display Panel
Example program: alarm with embedded V-memory data In this program example, the alarm notification text is displayed along with the contents of V2500. The suffix “B” is added to the memory location (V2500:B) to cause the data to be displayed as a BCD number. In the first example, the alarm text is loaded directly via the LCD instruction. In the second example, the alarm text is loaded into V-memory and the LCD instruction is used to point to that text. NOTE: When using the LCD instruction to display V2000:R, there is a limit of three characters of text because V2000:R uses 13 characters. Alarm 1 LCD Msg One-shot
Alarm 1 Active C0
C1 PD
Alarm 1 LCD Msg One-shot C1 LCD K1
Line Number: "Alarm 1" LCD Line Number: "Parts= " V2500:B
K2
END
A l a r m P a r t s
1 =
2 4 3 7
DL06 Micro PLC User Manual, 3rd Edition Rev. A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
10–29
Page 204
Chapter 10: LCD Display Panel
Example program: alarm text from V-memory with embedded V-memory data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D 10–30
This program example uses the VPRINT instruction to write ASCII text (in the appropriate character sequence) to V10000 and V10010. The LCD instruction is used as a pointer to the V-memory location where the text for each line of the display resides. Alarm 2 LCD Msg One-shot
Alarm 2 Active C0
C1 PD
Alarm 2 LCD Msg One-shot C1
VPRINT Byte Swap: None "Print to" Address: V10000 "Alarm 2 " VPRINT Byte Swap: None "Print to" Address: V10010 "Parts = " V2500:B " "
Alarm 2 LCD Msg One-shot C1
LCD Line Number: Starting V Memory Address:
K1 V10000 K16
Number of Characters:
LCD Line Number: Starting V Memory Address:
K2 V10010
Number of Characters:
K16
END
A l a r m P a r t s
2 =
3 5 8 9
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Page 205
AUXILIARY FUNCTIONS
APPENDIX PENDIX
A
In This Appendix... Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A–2 AUX 2*, RLL Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A–4 AUX 3*, V-memory Operations . . . . . . . . . . . . . . . . . . . . . . . . . . .A–4 AUX 4*, I/O Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A–5 AUX 5*, CPU Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . .A–5 AUX 6*, Handheld Programmer Configuration . . . . . . . . . . . . . . .A–8 AUX 7*, EEPROM Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . .A–8 AUX 8*, Password Operations . . . . . . . . . . . . . . . . . . . . . . . . . . .A–9
Page 206
Appendix A: Auxiliary Functions
Introduction Purpose of Auxiliary Functions
A 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D
Many CPU setup tasks involve the use of Auxiliary (AUX) Functions. The AUX Functions perform many different operations, including clearing ladder memory, displaying the scan time, and copying programs to EEPROM in the handheld programmer. They are divided into categories that affect different system resources. 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. Even though this Appendix provides many examples of how the AUX functions operate, you should supplement this information with the documentation for your choice of programming device. NOTE: the Handheld Programmer may have additional AUX functions that are not supported with the DL06 PLCs.
AUX Function and Description
DL06
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 5B 5D
AUX Function and Description
Modify Program Name Display Scan Time Initialize Scratchpad Set Watchdog Timer Set Communication Port 2 Set Retentive Ranges Test Operations Override Setup HSIO Interface Configuration Scan Control Setup
* * * * * * * * * *
61 62 65
Show Revision Numbers Beeper On / Off Run Self Diagnostics
* HP HP
AUX 7*, EEPROM Operations 71
Copy CPU memory to HPP EEPROM
HP
72
Write HPP EEPROM to CPU
HP
73
Compare CPU to HPP EEPROM
HP
74
Blank Check (HPP EEPROM)
HP
75
Erase HPP EEPROM
HP
76
Show EEPROM Type (CPU and HPP)
HP
AUX 8*, Password Operations 81 82 83
Modify Password Unlock CPU Lock CPU
NOTE: * - Supported HP - Handheld Programmer function
A–2
DL06
AUX 6*, Handheld Programmer Configuration
DL06 Micro PLC User Manual, 3rd Edition Rev. A
* * *
Page 207
Appendix A: Auxiliary Functions
Accessing AUX Functions via DirectSOFT 5 DirectSOFT 5 provides various menu options during both online and offline programming. Some of the AUX functions are only available during online programming, some only during offline programming, and some during both online and offline programming. The following diagram shows and example of the PLC operations menu available within DirectSOFT 5.
A 2 3 4 5 6 Accessing AUX Functions via the Handheld Programmer 7 You can also access the AUX functions by using a Handheld Programmer. Plus, remember some of the AUX functions are only available from the Handheld. Sometimes the AUX name 8 or description cannot fit on one display. If you want to see the complete description, just press the arrow keys to scroll left and right. Also, depending on the current display, you may have to press CLR more than once. 9 AUX FUNCTION SELECTION 10 AUX 2* RLL OPERATIONS 11 Use NXT or PREV to cycle through the menus 12 AUX FUNCTION SELECTION AUX 3* V OPERATIONS 13 Press ENT to select sub-menus 14 AUX 3* V OPERATIONS A AUX 31 CLR V MEMORY B You can also enter the exact AUX number to go straight to the sub-menu. Enter the AUX number directly C AUX 3* V OPERATIONS D AUX 31 CLR V MEMORY Menu Options
CLR
AUX
NEXT
ENT
CLR
D
B
3
1
AUX
DL06 Micro PLC User Manual, 3rd Edition Rev. A
A–3
Page 208
Appendix A: Auxiliary Functions
AUX 2*, RLL Operations RLL Operations auxiliary functions allow you to perform various operations on the ladder A program. 2 AUX 21 Check Program Both the Handheld and DirectSOFT 5 automatically check for errors during program entry. However, there may be occasions when you want to check a program that has already been in 3 the CPU. Two types of checks are available: • Syntax 4 • Duplicate References The Syntax check will find a wide variety of programming errors, such as missing END 5 statements. If you perform this check and get an error, see Appendix B for a complete listing of programming error codes. Correct the problem and then continue running the Syntax 6 check until the message “NO SYNTAX ERROR” appears. 7 Use the Duplicate Reference check to verify you have not used the same output coil reference more than once. Note, this AUX function will also find the same outputs even if they have been used with the OROUT instruction, which is perfectly acceptable. 8 This AUX function is available from the PLC Diagnostics sub-menu in DirectSOFT 5. AUX 22 Change Reference 9 There will probably be times when you need to change an I/O address reference or control relay reference. AUX 22 allows you to quickly and easily change all occurrences, (within an 10 address range), of a specific instruction. For example, you can replace every instance of X5 with X10. 11 AUX 23 Clear Ladder Range There have been many times when we’ve taken existing programs and added or removed 12 certain portions to solve new application problems. By using AUX 23 you can select and delete a portion of the program. DirectSOFT 5 does not have a menu option for this AUX function, but you can just select the appropriate portion of the program and cut it with the 13 editing tools. 14 AUX 24 Clear Ladders AUX 24 clears the entire program from CPU memory. Before you enter a new program, you should always clear ladder memory. This AUX function is available on the PLC/Clear PLC A sub-menu within DirectSOFT 5. B AUX 3*, V-memory Operations C AUX 31 Clear V-memory AUX 31 clears all the information from the V-memory locations available for general use. This AUX function is available on the PLC/Clear PLC sub-menu within DirectSOFT 5. D
A–4
DL06 Micro PLC User Manual, 3rd Edition Rev. A
Page 209
Appendix A: Auxiliary Functions
AUX 4*, I/O Configuration
A This AUX function allows you to display the current I/O configuration on the DL06. Both 2 the Handheld Programmer and DirectSOFT 5. will show the I/O configuration. 3 AUX 5*, CPU Configuration The following auxiliary AUX functions allow you to setup, view, or change the CPU 4 configuration. AUX 51 Modify Program Name 5 DL06 PLCs can use a program name for the CPU program or a program stored on EEPROM in the Handheld Programmer. (Note, you cannot have multiple programs stored on the EEPROM.) The program name can be up to eight characters in length and can use 6 any of the available characters (A–Z, 0–9). AUX 51 allows you to enter a program name. You can also perform this operation from within DirectSOFT 5. by using the PLC/Setup sub7 menu. Once you’ve entered a program name, you can only clear the name by using AUX 54 to reset the system memory. Make sure you understand the possible effects of AUX 54 before you use it! 8 AUX 53 Display Scan Time 9 AUX 53 displays the current, minimum, and maximum scan times. The minimum and maximum times are the ones that have occurred since the last Program Mode to Run Mode transition. You can also perform this operation from within DirectSOFT 5 by using the 10 PLC/Diagnostics sub-menu. AUX 54 Initialize Scratchpad 11 The CPU 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 12 system memory. For example, if you specify a range of Control Relays (CRs) as retentive, these changes are stored. 13 NOTE: You may never have to use this feature unless you have made changes that affect system memory. Usually, you’ll only need to initialize the system memory if you are changing programs and the old program 14 required a special system setup. You can usually change from program to program without ever initializing system memory. A AUX 54 resets the system memory to the default values. You can also perform this operation from within DirectSOFT 5 by using the PLC/Setup sub-menu. B AUX 55 Set Watchdog Timer DL06 PLCs have a “watchdog” timer that is used to monitor the scan time. The default value C set from the factory is 200 ms. If the scan time exceeds the watchdog time limit, the CPU automatically leaves RUN mode and enters PGM mode. The Handheld displays the following message E003 S/W TIMEOUT when the scan overrun occurs. D AUX 41 Show I/O Configuration
Use AUX 55 to increase or decrease the watchdog timer value. You can also perform this
DL06 Micro PLC User Manual, 3rd Edition Rev. A
A–5