Publication LOGIX-AP007B-EN-P - January 2007
30
Example Application
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.
Build an Example
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.
Содержание controllogix 1756-L61
Страница 6: ...Publication LOGIX AP007B EN P January 2007 6 Notes...
Страница 10: ...Publication LOGIX AP007B EN P January 2007 10 CompactFlash Card Enhancements Overview Notes...
Страница 42: ...Publication LOGIX AP007B EN P January 2007 42 Format a CompactFlash Card Notes...
Страница 48: ...Publication LOGIX AP007B EN P January 2007 48 Troubleshoot the CompactFlash File System Notes...
Страница 52: ...Publication LOGIX AP007B EN P January 2007 52 Expand the Code to Support More than 4500 Bytes of Data Notes...
Страница 55: ......