Publication LOGIX-AP007B-EN-P - January 2007
Example Application
29
10.
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 read from your file.
11.
Find the tag CF_Read_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 read file sequence. There is an element of the
UDT called Overall_Status. At this point, it should be equal to 1. This
means that the file was created successfully.
If another value is present, refer to AppendixC, Troubleshoot the
CompactFlash File System.
12.
Switch to view MainProgram Scoped tags in the tag monitor.
13.
Find the tag CF_Data_Working.
This is a user-defined data type (UDT).
14.
Click + to expand the tag.
15.
Expand the SINT array Data in the UDT.
Earlier in this section, you entered a value of 127. The value is now 100.
This is what you wrote to the file testfile1.dat in the last section and was
read back.
Delete a File on the
CompactFlash Card
Determine how the program is going to delete a file from the CompactFlash
card.
1.
Open the MainPrograms tags.
Make sure the Monitor Tags tab is selected in the tag editor.
2.
Sort the tags by Name.
3.
Find the tag CF_Data_Working.
This is a user-defined data type (UDT). Expand this by clicking in the +
next to the tag. There are no elements of the UDT CF_Data_Working
that need to be modified. The file name testfile1.dat is already entered.
You want to delete this file.
4.
Switch to view Controller Scoped tags in the tag monitor.
5.
Sort the tags by name.
Содержание 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: ......