Displaying Free Space on the Card
If you need to know how many free bytes are left on a microSD/SDHC card, you can use PAC
Control or PAC Manager to read this data from an address in the controller’s memory map.
In a PAC Control strategy, for example, you could notify an operator if the card needs
replacing, based on the number of bytes still unused.
- Make sure the card is in the controller.
- In PAC Control, use the command Read Number from I/O Unit Memory Map to read
memory map address F7002204. Use Integer 32 Variable in Argument 2.
For more information, see “I/O Unit—Memory Map Commands” in Chapter 10 of the
PAC Control User’s Guide, and see “Read Number from I/O Unit Memory Map” in the
Command Reference or Help.)
- In PAC Manager, open the Inspect window for the controller. Click Other and choose
Generic Read/Write from the popup menu. In the Address field, type F7002204. From
the Type dropdown list, choose 32-bit Integer. Leave the Length as 1. Click Refresh.
The number of bytes appears in the Value column.
I am trying 3. in PAC Manager
32-Bit Integer “Refresh” -1385496576
32-Bit Integer (HEX) “Refresh” AD6B0000
How much space is left? It is a near empty 16 GB microSCHC card. Obviously, I am doing something wrong. Can someone point out my mistake?