Publication LOGIX-AP007B-EN-P - January 2007
Example Application
33
8.
Define how many bytes you want to read/write to the file.
From the previous section, a waffle recipe was 72 bytes in size.
9.
Enter 72 in the tag Bytes_to_RW.
The last piece of data to manipulate is the Data. You will copy the data
from the waffle Recipe1 into this array. This is done in the
Recipe_Manager code.
10.
Save the project and download it to the controller.
11.
Go online with the controller.
You are now ready to read and write your recipe data to the
CompactFlash card.
12.
Open the Controller tags and go to the Monitor tab.
13.
Look for the tags Recipe_Commmand and Recipe_Number.
You will use the first recipe as an example.
Create the File
Tell the Recipe_Manager routine to create a file.
1.
Enter a value of 1 in the Recipe_Number tag.
This tells the Recipe_Manager to work with Recipe1.
2.
Enter a value of 1 in the Recipe_Command tag.
This tells the Recipe Manager to create the file.
Once the command has completed the tags Recipe_Number and
Recipe_Commmand will be set to zero.
TIP
Remember to set the tag controller_slot_number and to
make sure a CompactFlash card is installed in the
controller.
Содержание 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: ......