Publication LOGIX-AP007B-EN-P - January 2007
50
Expand the Code to Support More than 4500 Bytes of Data
Access 10,000 Bytes Example
For example, if you want to access 10,000 bytes:
Step 1:
Actual_Bytes_to_RW = 10,000 + (TRN (10,000/442) * 8) + (If the MOD
(10,000/442) > 0 then 8 else 0)
= 10,000 + 22(8) + 8
= 10,184
Step 2:
450[(TRN(10,184/450)) + (If the MOD (10,148/450) > 0 then 1 else 0)]
= 450 [22+1]
= 450(23)
= 10350 bytes
You need to increase the arrays to a minimum of 10,350 elements. Do not
place this value in the Actual_Bytes_to_RW. This value is calculated when a
file command is executed.
Содержание 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: ......