Build An Example - Allen-Bradley Logix5000 Series Application Book

Compactflash file system
Hide thumbs Also See for Logix5000 Series:
Table of Contents

Advertisement

30
Example Application

Build an Example

Publication LOGIX-AP007B-EN-P - January 2007
6. Find the tag execute_CF_Delete_File.
7. Enter a 1 in the value field and press Enter.
The tag will go back to a 0. This indicates that the application has
attempted to delete your file.
8. Find the tag CF_Delete_Seq_Status and click + to expand the tag.
This is a user-defined data type (UDT). As the tag name indicates, this
will give you status on the file sequence. There is an element of the UDT
called Status. It should be equal to 1. This means that the file was
deleted successfully.
If another value is present, refer to AppendixC, Troubleshoot the
CompactFlash File System.
You will build an example application with the waffle recipe from the last
chapter.
1. Open the file CF_Read_Write_V3_2_Example.ACD.
This code will handle four recipes.
In the controller organizer under the MainProgram, you will see a
routine called Recipe_Manager. This routine shows a basic recipe
manager and how to interface into the baseline CompactFlash
application.
Rung zero is used to make sure that you do not try and access two
recipes at the same time or change a CompactFlash command when one
is currently executing. All you would need to do is enter a value of 1, 2,
3, or 4 in Recipe_Number and a value of 1 to 4, depending on the
CompactFlash command you want into Recipe_Command.
1 = create
2 = write
3 = read
4 = delete
There are four rungs remaining; each rung is for a different recipe. In
this example, you are only going to look at one of them.

Advertisement

Table of Contents
loading

This manual is also suitable for:

1756-l611756-l621756-l60m03se1756-l631756-l64

Table of Contents