Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 22 of 38

DL06 Micro PLC User Manual, Volume 2 of 2, pages 210 to 219

Pages 210 to 219 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.

For the AutomationDirect Direct Logic DL06

Page 210

Appendix A: Auxiliary Functions

AUX 56 CPU Network Address Since the DL06 CPU has an additional communication port, you can use the Handheld to set the network address for port 2 and the port communication parameters. The default settings are:

A 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

• Station address 1 • HEX mode • Odd parity

You can use this port with either the Handheld Programmer, DirectSOFT 5, or, as a communication port for DirectNET and MODBUS. Refer to DirectNET and MODBUS manuals for additional information about communication settings required for network operation. NOTE: You will only need to use this procedure if you have port 2 connected to a network. Otherwise, the default settings will work fine.

Use AUX 56 to set the network address and communication parameters. You can also perform this operation from within DirectSOFT 5 by using the PLC/Setup sub-menu.

AUX 57 Set Retentive Ranges DL06 CPUs provide certain ranges of retentive memory by default. Some of the retentive memory locations are backed up by a super-capacitor, and others are in non-volatile FLASH memory. The FLASH memory locations are V7400 to V7577 (may be non-volatile if MOV instruction is used). The default ranges are suitable for many applications, but you can change them if your application requires additional retentive ranges or no retentive ranges at all. The default settings are: Memory Area Control Relays V-memory Timers Counters Stages

DL06 Default Range

Available Range

C1000 – C1777

C0 – C1777

V400 – V37777

V0 – V37777

None by default

T0 – T377

CT0 – CT177

CT0 – CT177

None by default

S0 – S1777

Use AUX 57 to change the retentive ranges. You can also perform this operation from within DirectSOFT 5 by using the PLC/Setup sub-menu. WARNING: The DL06 CPUs have optional battery-backed RAM which is set as retentive. The super-capacitor will retain the values in the event of a power loss, but only up to 3 weeks. (The retention time may be as short as 4 1/2 days in 60° C operating temperature.

AUX 58 Test Operations AUX 58 is used to override the output disable function of the Pause instruction. Use AUX 58 to program a single output or a range of outputs which will operate normally even when those points are within the scope of the pause instruction.

A–6

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 211

Appendix A: Auxiliary Functions

AUX 59 Bit Override Bit override can be enabled on a point-by-point basis by using AUX 59 from the Handheld Programmer or, by a menu option from within DirectSOFT 5. 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 Y0 and it was off at the time, then the CPU would not change the state of Y0. However, you can still use a programming device to change the status. Now, if you use the programming device to force Y0 on, it will remain on and the CPU will not change the state of Y0. If you then force Y0 off, the CPU will maintain Y0 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 from the point. 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.

Bit Override OFF

Bit Override ON

Input Update Force from Programmer Result of Program Solution

Input Update X128 OFF Y128 OFF C377 OFF

... ... ... ... ... ...

X2 ON Y2 ON C2 ON

X1 ON Y1 ON C1 OFF

X0 OFF Y0 OFF C0 OFF

Image Register (example)

Force from Programmer Result of Program Solution

AUX 5B Counter Interface Configuration AUX 5B is used with the High-Speed I/O (HSIO) function to select the configuration. You can choose the type of counter, set the counter parameters, etc. See Chapter 3 for a complete description of how to select the various counter features.

AUX 5D Select PLC Scan Mode The DL06 CPU has two program scan modes: fixed and variable. In fixed mode, the scan time is lengthened to the time you specify (in milliseconds). If the actual scan time is longer than the fixed scan time, then the error code ’E504 BAD REF/VAL’ is displayed. In variable scan mode, the CPU begins each scan as soon as the previous scan’s activities complete.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

A–7

A 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Page 212

Appendix A: Auxiliary Functions

AUX 6*, Handheld Programmer Configuration The following auxiliary functions allow you to setup, view, or change the Handheld A Programmer configuration. 2 AUX 61 Show Revision Numbers As with most industrial control products, there are cases when additional features and enhancements are made. Sometimes these new features only work with certain releases of 3 firmware. By using AUX 61 you can quickly view the CPU and Handheld Programmer firmware revision numbers. This information (for the CPU) is also available from within 4 DirectSOFT 5 from the PLC/Diagnostics sub-menu. AUX 62 Beeper On/Off 5 The Handheld has a beeper that provides confirmation of keystrokes. You can use Auxiliary (AUX) Function 62 to turn off the beeper. 6 AUX 65 Run Self Diagnostics If you think the Handheld Programmer is not operating correctly, you can use AUX 65 to 7 run a self diagnostics program. You can check the following items. • Keypad 8 • Display • LEDs and Backlight 9 • Handheld Programmer EEPROM check 10 AUX 7*, EEPROM Operations The following auxiliary functions allow you to move the ladder program from one area to another and perform other program maintenance tasks. 11 Transferrable Memory Areas 12 Many of these AUX functions allow you to copy different areas of memory to and from the CPU and handheld programmer. The following table shows the areas that may be mentioned. 13 Option and Memory Type DL06 Default Range 14 A AUX 71 CPU to HPP EEPROM B AUX 71 copies information from the CPU memory to an EEPROM installed in the Handheld Programmer.You can copy different portions of EEPROM (HP) memory to the CPU memory as shown in the previous table. C D 1:PGM, Program 2:V, V-memory 3:SYS, System 4:etc (All) - Program, System and non-volatile VV-memory only

A–8

$00000 – $02047 $00000 – $07777 Non-selectable copies system parameters Non-selectable

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 213

Appendix A: Auxiliary Functions

AUX 72 HPP EEPROM to CPU AUX 72 copies information from the EEPROM installed in the Handheld Programmer to CPU memory in the DL06. You can copy different portions of EEPROM (HP) memory to the CPU memory as shown in the previous table.

A 2 AUX 73 Compare HPP EEPROM to CPU AUX 73 compares the program in the Handheld programmer (EEPROM) with the CPU 3 program. You can compare different types of information as shown previously. AUX 74 HPP EEPROM Blank Check 4 AUX 74 allows you to check the EEPROM in the handheld programmer to make sure it is blank. It’s a good idea to use this function anytime you start to copy an entire program to an EEPROM in the handheld programmer. 5 AUX 75 Erase HPP EEPROM 6 AUX 75 allows you to clear all data in the EEPROM in the handheld programmer. You should use this AUX function before you copy a program from the CPU. 7 AUX 76 Show EEPROM Type You can use AUX 76 to quickly determine what size EEPROM is installed in the Handheld Programmer. 8 AUX 8*, Password Operations 9 There are several AUX functions available that you can use to modify or enable the CPU password. You can use these features during on-line communications with the CPU, or, you 10 can also use them with an EEPROM installed in the Handheld Programmer during off-line operation. This will allow you to develop a program in the Handheld Programmer and include password protection. 11 • AUX 81, Modify Password • AUX 82, Unlock CPU 12 • AUX 83, Lock CPU 13 AUX 81 Modify Password You can use AUX 81 to provide an extra measure of protection by entering a password that prevents unauthorized machine operations. The password must be an eight-character numeric 14 (0–9) code. Once you’ve entered a password, you can remove it by entering all zeros (00000000). (This is the default from the factory.) A Once you’ve entered a password, you can lock the CPU against access. There are two ways to lock the CPU with the Handheld Programmer. B • The CPU is always locked after a power cycle (if a password is present). • You can use AUX 82 and AUX 83 to lock and unlock the CPU. C D DL06 Micro PLC User Manual, 3rd Edition Rev. A

A–9

Page 214

Appendix A: Auxiliary Functions

A 2 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

You can also enter or modify a password from within DirectSOFT 5 by using the PLC/Password sub-menu. This feature works slightly differently in DirectSOFT 5. Once you’ve entered a password, the CPU is automatically locked when you exit the software package. It will also be locked if the CPU is power cycled. WARNING: Make sure you remember the password before you lock the CPU. Once the CPU is locked you cannot view, change, or erase the password. If you do not remember the password, you have to return the CPU to the factory for password removal. It is the policy of Automationdirect to clear the PLC memory along with the password. NOTE: The DL06 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).

AUX 82 Unlock CPU AUX 82 can be used to unlock a CPU that has been password protected. DirectSOFT 5 will automatically ask you to enter the password if you attempt to communicate with a CPU that contains a password.

AUX 83 Lock CPU

A–10

AUX 83 can be used to lock a CPU that contains a password. Once the CPU is locked, you will have to enter a password to gain access. Remember, this is not necessary with DirectSOFT 5 since the CPU is automatically locked whenever you exit the software package.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 215 read from a scan by OCR; it may hold reading errors

>PENDIX

DLO6 Error Codes ........... cee ee ee eee ee eee ee B - 2

DLO6 ERROR CODES

In This Appendix...

Page 216

Appendix B: DL06 Error Codes

DL06 Error Codes

1 B 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

DL06 Error Code

Description

E001 CPU FATAL ERROR

You may possibly clear the error by power cycling the CPU. If the error returns, replace the DL06.

E003 SOFTWARE TIME-OUT

If the program scan time exceeds the time allotted to the watchdog timer, this error will occur. SP51 will be on and the error code will be stored in V7755. To correct this problem use AUX 55 to extend the time allotted to the watchdog timer.

E041 CPU BATTERY LOW

The DL06 battery is low and should be replaced. SP43 will be on and the error code will be stored in V7757.

E104 WRITE FAILED

A write to the DL06 was not successful. Power cycle the DL06. If the error returns, replace the DL06.

E151 BAD COMMAND E155 RAM FAILURE

A parity error has occurred in the application program. SP44 will be on and the error code will be stored in V7755 .This problem may possibly be due to electrical noise. Clear the memory and download the program again. Correct any grounding problems. If the error returns replace the Micro DL06. A checksum error has occurred in the system RAM. SP44 will be on and the error code will be stored in V7755. This problem may possibly be due to a low battery, electrical noise or a CPU RAM failure. Clear the memory and download the program again. Correct any grounding problems. If the error returns replace the DL06.

E2** I/O MODULE FAILURE

An I/O module has failed. Run AUX42 to determine the actual error.

E202 MISSING I/O MODULE

An I/O module has failed to communicate with the DL06 or is missing from the slot. SP45 will be on and the error code will be stored in V7756. Run AUX42 to determine the slot and base location of the module reporting the error.

E210 POWER FAULT

A short duration power drop-out occurred on the main power line supplying power to the DL06.

E252 NEW I/O CFG

This error occurs when the auto configuration check is turned on in the DL06 and the actual I/O configuration has changed either by moving modules in a base or changing types of modules in a base. You can return the modules to the original position/types or run AUX45 to accept the new configuration. SP47 will be on and the error code will be stored in V7755.

E262 I/O OUT OF RANGE

An out of range I/O address has been encountered in the application program. Correct the invalid address in the program. SP45 will be on and the error code will be stored in V7755.

E263 CONFIGURED I/O ADDRESS OUT OF RANGE

Out of range addresses have been assigned while manually configuring the I/O. Correct the address assignments using AUX46.

E311 HP COMM ERROR 1

A request from the handheld programmer could not be processed by the DL06. Clear the error and retry the request. If the error continues replace the DL06 SP46 will be on and the error code will be stored in V7756.

E312 HP COMM ERROR 2

A data error was encountered during communications with the DL06. Clear between the two devices, replace the handheld programmer, then if necessary replace the DL06. The error code will be stored in V7756.

E313 HP COMM ERROR 3

An address error was encountered during communications with the DL06. Clear the error and retry the request. If the error continues check the cabling between the two devices, replace the handheld programmer, then if necessary replace the DL06 The error code will be stored in V7756.

E316 HP COMM ERROR 6

A mode error was encountered during communications with the DL06. Clear the error and retry the request. If the error continues replace the handheld programmer, then if necessary replace the DL06. The error code will be stored in V7756.

E320 HP COMM TIME-OUT

The DL06 did not respond to the handheld programmer communication request. Check to insure cabling is correct and not defective. Power cycle the system. If the error continues, replace the DL06 first and then the handheld programmer if necessary.

B–2

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 217

Appendix B: DL06 Error Codes

DL06 Error Code

Description

E321 COMM ERROR

A data error was encountered during communication with the DL06. Check to insure cabling is correct and not defective. Power cycle the system and if the error continues replace the DL06 first and then the handheld programmer if necessary.

E4** NO PROGRAM

A syntax error exists in the application program. The most common is a missing END statement. Run AUX21 to determine which one of the E4** series of errors is being flagged. SP52 will be on and the error code will be stored in V7755.

E401 MISSING END STATEMENT

All application programs must terminate with an END statement. Enter the END statement in appropriate location in your program. SP52 will be on and the error code will be stored in V7755.

E402 MISSING LBL

A MOVMC or LDLBL instruction was used without the appropriate label. Refer to Chapter 5 for details on these instructions. SP52 will be on and the error code will be stored in V7755.

E403 MISSING RET

A subroutine in the program does not end with the RET instruction. SP52 will be on and the error code will be stored in V7755.

E404 MISSING FOR

A NEXT instruction does not have the corresponding FOR instruction. SP52 will be on and the error code will be stored in V7755.

E405 MISSING NEXT

A FOR instruction does not have the corresponding NEXT instruction. SP52 will be on and the error code will be stored in V7755.

E406 MISSING IRT

An interrupt routine in the program does not end with the IRT instruction. SP52 will be on and the error code will be stored in V7755.

E412 SBR/LBL>256 E421 DUPLICATE STAGE REFERENCE

There is greater than 256 SBR or DLBL instructions in the program. This error is also returned if there is greater than 4 INT instructions used in the program. SP52 will be on and the error code will be stored in V7755. Two or more SG or ISG labels exist in the application program with the same number. A unique number must be allowed for each Stage and Initial Stage. SP52 will be on and the error code will be stored in V7755.

E422 DUPLICATE LBL REFERENCE

Two or more LBL instructions exist in the application program with the same number. A unique number must be allowed for each and label. SP52 will be on and the error code will be stored in V7755.

E423 NESTED LOOPS

Nested loops (programming one FOR/NEXT loop inside of another) are not allowed. SP52 will be on and the error code will be stored in V7755.

E431 INVALID ISG/SG ADDRESS

An ISG or SG instruction must not be placed after the end statement (such as inside a subroutine). SP52 will be on and the error code will be stored in V7755.

E432 INVALID JUMP (GOTO) ADDRESS

A LBL that corresponds to a GOTO instruction must not be programmed after the end statement such as in a subroutine. SP52 will be on and the error code will be stored in V7755.

E433 INVALID SBR ADDRESS

A SBR must be programmed after the end statement, not in the main body of the program or in an interrupt routine. SP52 will be on and the error code will be stored in V7755.

E434 INVALID RTC ADDRESS

A RTC must be programmed after the end statement, not in the main body of the program or in an interrupt routine. SP52 will be on and the error code will be stored in V7755.

E435 INVALID RT ADDRESS

A RT must be programmed after the end statement, not in the main body of the program or in an interrupt routine. SP52 will be on and the error code will be stored in V7755.

E436 INVALID INT ADDRESS

An INT must be programmed after the end statement, not in the main body of the program. SP52 will be on and the error code will be stored in V7755.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

1 B 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

B–3

Page 218

Appendix B: DL06 Error Codes DL06 Error Code

1 B 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

Description

E437 INVALID IRTC ADDRESS E438 INVALID IRT ADDRESS E440 INVALID DATA ADDRESS

An IRTC must be programmed after the end statement, not in the main body of the program. SP52 will be on and the error code will be stored in V7755.

E441 ACON/NCON E451 BAD MLS/MLR E452 X AS COIL E453 MISSING T/C E454 BAD TMRA E455 BAD CNT/UDC E456 BAD SR E461 STACK OVERFLOW

An ACON or NCON must be programmed after the end statement, not in the main body of the program. SP52 will be on and the error code will be stored in V7755.

E462 STACK UNDERFLOW

An unmatched number of logic levels have been stored on the stack. Insure the number of AND STR and OR STR instructions match the number of STR instructions.

E463 LOGIC ERROR

An STR/STRN instruction was not used to begin a rung of ladder logic.

E464 MISSING CKT

A rung of ladder logic is not terminated properly.

E471 DUPLICATE COIL REFERENCE

Two or more OUT instructions reference the same I/O point.

E472 DUPLICATE TMR REFERENCE

Two or more TMR instructions reference the same number.

E473 DUPLICATE CNT REFERENCE

Two or more CNT instructions reference the same number.

E480 INVALID CV ADDRESS

The CV instruction is used in a subroutine or program interrupt routine. The CV instruction may only be used in the main program area (before the END statement).

E481 CONFLICTING INSTRUCTION

An instruction exists between convergence stages.

E482 MAX. CV INSTRUCTIONS EXCEEDED

Number of CV instructions exceeds 17.

E483 INVALID CV JUMP ADDRESS

CVJMP has been used in a subroutine or a program interrupt routine.

E484 MISSING CV INSTRUCTION

CVJMP is not preceded by the CV instruction. A CVJMP must immediately follow the CV instruction.

B–4

An IRT must be programmed after the end statement, not in the main body of the program. SP52 will be on and the error code will be stored in V7755. Either the DLBL instruction has been programmed in the main program area (not after the END statement), or the DLBL instruction is on a rung containing input contact(s).

MLS instructions must be numbered in ascending order from top to bottom. An X data type is being used as a coil output. A timer or counter contact is being used where the associated timer or counter does not exist. One of the contacts is missing from a TMRA instruction. One of the contacts is missing from a CNT or UDC instruction. One of the contacts is missing from the SR instruction. More than nine levels of logic have been stored on the stack. Check the use of OR STR and AND STR instructions.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

Page 219

Appendix B: DL06 Error Codes DL06 Error Code

Description

E485 MISSING REQUIRED INSTRUCTION

A CV JMP instruction is not placed between the CV and the [SG, ISG, ST BLK, END BLK, END] instruction.

E486 INVALID CALL BLK ADDRESS

CALL BLK is used in a subroutine or a program interrupt routine. The CALL BLK instruction may only be used in the main program area (before the END statement).

E487 MISSING ST BLK INSTRUCTION

The CALL BLK instruction is not followed by a ST BLK instruction.

E488 INVALID ST BLK ADDRESS

The ST BLK instruction is used in a subroutine or a program interrupt. Another ST BLK instruction is used between the CALL BLK and the END BLK instructions.

E489 DUPLICATE CR REFERENCE

The control relay used for the BLK instruction is being used as an output elsewhere.

E490 MISSING SG INSTRUCTION

The BLK instruction is not immediately followed by the SG instruction.

E491 INVALID ISG INSTRUCTION ADDRESS

There is an ISG instruction between the ST BLK and END BLK instructions.

E492 INVALID END BLK ADDRESS

The END BLK instruction is used in a subroutine or a program interrupt routine. The END BLK instruction is not followed by a ST BLK instruction.

E493 MISSING END REQUIRED INSTRUCTION

A [CV, SG, ISG, ST BLK, END] instruction must immediately follow the END BLK instruction.

E494 MISSING END BLK INSTRUCTION

The ST BLK instruction is not followed by a END BLK instruction.

E499 PRINT INSTRUCTION

Invalid PRINT instruction usage. Quotations and/or spaces were not entered or entered incorrectly.

E501 BAD ENTRY

An invalid keystroke or series of keystrokes was entered into the handheld programmer.

E502 BAD ADDRESS

An invalid or out of range address was entered into the handheld programmer.

E503 BAD COMMAND

An invalid command was entered into the handheld programmer.

E504 BAD REF/VAL

An invalid value or reference number was entered with an instruction.

E505 INVALID INSTRUCTION

An invalid instruction was entered into the handheld programmer.

E506 INVALID OPERATION

An invalid operation was attempted by the handheld programmer.

E520 BAD OP–RUN

An operation which is invalid in the RUN mode was attempted by the handheld programmer.

E521 BAD OP–TRUN

An operation which is invalid in the TEST RUN mode was attempted by the handheld programmer.

E523 BAD OP–TPGM

An operation which is invalid in the TEST PROGRAM mode was attempted by the handheld programmer.

E524 BAD OP–PGM

An operation which is invalid in the PROGRAM mode was attempted by the handheld programmer.

E525 MODE SWITCH

An operation was attempted by the handheld programmer while the DL06 mode switch was in a position other than the TERM position.

DL06 Micro PLC User Manual, 3rd Edition Rev. A

1 B 3 4 5 6 7 8 9 10 11 12 13 14 A B C D

B–5