
Publication LOGIX-AP007B-EN-P - January 2007
28 Example Application
Read Data from the
CompactFlash Card
Determine how the program is going to read the data from the CompactFlash
card.
1. Switch to 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).
4. Click + to expand the tag.
5. Use the file name from the previous section, testfile1.dat.
The UDT element Bytes_to_RW remains set at 450. The UDT element
called Bytes_to_RW tells the application how many bytes in this case
will be read from the file.
6. Enter a value of 127 in the first element of the data array,
(CF_Data_Working.Data).
7. Switch to view Controller Scoped tags in the tag monitor.
8. Sort the tags by name.
9. Find the tag execute_CF_Read_Data.
Comentarios a estos manuales