You are on page 1of 17

1

Clearing PLC Memory and Forcing Bits using DirectSOFT 5 for the DL05 PLC
Objective:
1. Clearing memory in the PLC 2. Force status ON/OFF override

Clearing an Existing Program


Before you enter a new program, be sure to always clear the memory of the PLC. As ladder memory, existing programs, projects, registers, bits may still be stored and may conflict with new configurations which could possibly lead to unpredictable results.

1. Start a DSLaunch 5, Double click on DirectSOFT 5 programming and make a new DL 05 Project:

2. Connect to the DL05 PLC

3 a. On the top left toolbar, click on PLC and then Connect

b. Use the Link configuration DL05 : Comm Link from the previous tutorial:

4 c. Click Use Disk

3. Clear memory on the PLC a. Click PLC on the upper left toolbar and click Clear PLC Memory in the drop down menu:

5 b. Click the ALL checkbox, then press OK:

c. If an Illegal Mode pop-up appears, click Switch to Program Mode:

Forcing Bits
Bit Override Bit override can be enabled using the Data View option within DirectSOFT 5. This is primarily useful during testing situations when you need to force a bit on to trigger another event. For example, you may want to force an input on, even though it is really off.

1. Writing a simple program that will turn the output Y0 as soon as the input X0 is turned on: A. Insert a Normally Open Contact with the input of X0 i. Click on EDIT MODE box to start editing your program 1. Click on the EDIT Mode icon on the right:

2. Or, click on the EDIT Mode icon on the upper left toolbar:

7 ii. Click on the Contact button at the bottom right corner of the page and select the Normally Open Contact and click on the OK button:

iii. Type X0 in the box (your input), and click on the check mark as shown below

8 B. Insert an OUTPUT coil called Y0: i. Click Browse Coils

ii. Select the OUT coil and click OK

iii. Type Y0 in the output box (your output) and click on the check mark.

C. Go to the next rung and click on Coil box again. Select Program Control then select the END coil, click on the OK button and click on the check mark on the END coil.

10

Your program page should look like the following now:

2. Check the syntax by clicking the Accept button on the right of the screen:

3. Download the Program to your PLC by clicking the WriteP icon on the top left of the screen:

11 4. Click Status to see the program simulate the inputs and outputs:

5. Put the PLC in run mode by clicking the Mode icon:

6. Click the Run radio button, then press OK:

12 7. Click View on the toolbar, then Options on the drop down menu:

8. Click the Data View tab, then click on the Override Bits checkbox to enable it:

13 9. On the main screen, click on the Data icon to open the Data View window:

10.The Data View window will appear under the Xref View, type in the X0 input into one of the empty cells:

14 11.Click the Energize button:

15 12.Click the override o button:

16 13.Then click Write Current Edit button:

14.When asked to confirm, click Yes (Optional: Dont ask again for this view!):

15.Click on, then Write Current View again, or just double click on to force the bit ON:

17

16.If run correctly the input X0 and Y0 should become highlighted blue and the output on the PLC should also light up.

You might also like