MAN0964-14-EN_XL4_XL4P_UM
N o v e m b e r 1 0 , 2 0 2 1
P a g e 151 | 194
16.5 Using Removable Media to Log Data
Using Read and Write Removable Media function blocks, an application ladder program can read
and write XL4/XL4 Prime OCS register data in the form of comma-delimited files, with a .csv
extension. These files are compatible with standard database and spreadsheet PC programs. In
addition, an application ladder program can use Rename and Delete Removable Media function
blocks to rename and delete files.
16.6 Using Removable Media to Load and Save Applications
A special file type, with a .pgm extension, is used to store XL4/XL4 Prime OCS application
programs on microSD. To load an application from microSD to the XL4/XL4 Prime 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/XL4 Prime to microSD, 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 microSD root directory.
NOTE: Saving an application to microSD can only be done from the Removable Media
in the 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 m
icroSD card, which is plugged into the PC’s
microSD compatible card reader by selecting the Export to Removable Media item on the
Cscape File menu.
16.7 Using Removable Media to View and Capture Screens
The XL4/XL4 Prime OCS File System uses bitmap files with the .BMP extension or JPEG files
with the .JPG extension to store XL4/XL4 Prime OCS graphic screen captures.
Before capturing an XL4/XL4 Prime 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.
To capture an XL4/XL4 Prime OCS screen, turning On the assigned Screen Capture Control
Register will capture the current XL4/XL4 Prime OCS graphics screen and write it to the
microSD card using the assigned Screen Capture Filename. To view a captured XL4/XL4 Prime
OCS screen, use the Removable Media Manager to find and highlight the desired .BMP or .JPG
file, and then press Enter.