CHAPTER 3: MAINTENANCE AND TROUBLESHOOTING
SNAP PAC S-Series User’s Guide
47
When the card is in the controller, you can access files on the card through PAC Control commands and from a
PC using FTP.
Use PAC Control commands
just as you would with any other file in the controller’s file system. For help, see
“Using the Control Engine’s File System” in the
(form 1700). Remember to include the
card’s directory name in the path in the file communication handle, for example:
file:a,/sdcard0/VoltLog.txt
Note that the path separator is a forward slash (/), not a backward slash (\).
You can also use the FTP communication handle in PAC Control to manipulate files. See the section “Moving
Files via FTP,” also in the
To move files to or from a PC
, use any standard FTP software. (Don’t use PAC Manager as the FTP client, as it
cannot see directories within the controller’s file system). Remember to include the card’s directory name, for
example:
ftp://192.168.1.1/sdcard0/
NOTE: If you access the card when it is not in the controller (for example, in a card reader), the
sdcard0
directory does
not appear. Do NOT create it. The controller treats the card as a folder in the controller’s file system.
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.
1.
Make sure the card is in the controller.
2.
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 the
and see
“Read Number from I/O Unit Memory Map” in the
(form 1701).
3.
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 list, choose 32-bit Integer.
Leave the Length as 1. Click Refresh.
The number of bytes appears in the Value column.
Checking Firmware and Loader Versions
Compatible cards and card functions depend on the controller’s firmware and loader versions. Here’s how to
check them. The controller must be on the same network segment as the PC with PAC Manager.
1.
Open PAC Manager and click the Inspect icon
.
2.
In the Device Name field, enter the controller’s name or IP address, or choose it from the drop-down list.
Click Status Read.
Loader and firmware version numbers appear near the center of the window: