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.
Содержание 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: ......