Horner APG XL4 OCS User Manual
Page 39

MAN0964-01-EN
CH.10
June 29, 2012
Page 39 of 122
9.6
Using Removable Media to Load and Save Applications
A special file type, with a .PGM extension, is used to store XL4 OCS application programs on Micro SD.
To load an application from Micro SD to the XL4 OCS, use the Removable Media Manager (open the
Removable Media Manager in the System Menu) to find and highlight the desired .PGM file, and then
press the Enter key.
To save an application from the XL4 to Micro SD, open the Removable Media Manager in the System
Menu and press the Save Pgm
function key. The application will be saved in a file called
DEFAULT.PGM in the Micro SD root directory.
Note: Saving an application to Micro SD can only be done from the Removable Media System
Menu and is not available on a Removable Media Manager object that was placed on an
application graphics screen by Cscape.
Cscape can also save an application directly to a Micro SD card, which is plugged into the PC’s Micro SD
compatible card reader by selecting the Export to Removable Media item on the Cscape File menu.
9.7
Using Removable Media to View and Capture Screens
The XL4 OCS File System uses bitmap files with the .BMP extension or JPEG files with the .JPG
extension to store XL4 OCS graphic screen captures.
To view a captured XL4 OCS screen, use the Removable Media Manager to find and highlight the
desired .BMP or .JPG file, and then press Enter.
To capture an XL4 OCS screen, turning On the assigned Screen Capture Control Register will capture
the current XL4 OCS graphics screen and write it to the Micro SD card using the assigned Screen
Capture Filename.
Before capturing an XL4 OCS screen, Cscape must first be used to assign a Screen Capture Control
Register and Filename in the application. To do this, first open the Graphics Editor by selecting the
View / Edit Screens item on the Cscape Screens menu. Next select the Screen Capture item of the
Graphics Editor Config menu and then enter a Control Register and Filename.
9.8
Removable Media (RM) Function Blocks in Cscape
Note: For detailed information regarding RM function blocks and parameters, refer to the help file
in Cscape Software. Refer ‘USB Flash Media support for RM Functions’ for USB flash drive access
details.
The following RM functional blocks are available in Cscape Software. These function blocks will reference
- Micro SD when filename is prefixed with ‘A:’ or nothing OR
- USB A Flash Drive when filename is prefixed with ‘B:’.
a. Read RM csv
This function allows reading of a comma-separated value file from the Micro SD interface into the
controller register space.
b. Write RM csv
This function allows writing of a comma-separated value file to the Micro SD interface from the
controller register space.