SanDisk CompactFlash 5000 Bedienerhandbuch Seite 30

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 56
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 29
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.
Seitenansicht 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 55 56

Kommentare zu diesen Handbüchern

Keine Kommentare