CFM100 CompactFlash
®
Module
9
3)
If neither Run on Power-up nor Run Now programs are changed, the
previous Run on Power-up program runs.
7.1.3.4 Example Powerup.ini Files
are example powerup.ini files.
CRBasic Example 7-2. Run Program on Power-up
'Copy pwrup.cr1 to USR:, will run only when powered-up later
2,pwrup.cr1,usr:
CRBasic Example 7-3. Format the USR: Drive
'Format the USR: drive
5,,usr:
CRBasic Example 7-4. Send OS on Power-Up
'Load this file into FLASH as the new OS
9,CR1000.Std.04.obj
CRBasic Example 7-5. Run Program from CRD: Drive
'Leave program on CRD:, run always, erase CRD: data files
13,toobigforcpu.cr1,crd:
CRBasic Example 7-6. Run Program Always, Erase CF Data
'Run always, erase CRD: data files
13,pwrup_1.cr1,crd
CRBasic Example 7-7. Run Program Now, Erase CF Data
'Copy run.cr1 to CPU:, erase CF data, run CPU:run.cr1, but not if later powered-up
14,run.cr1,cpu:
7.1.4 Camera Files
JPEG images taken by a digital camera connected to the datalogger can be
stored to the CF card rather than CPU memory. This is done by configuring the
PakBus setting “Files Manager” for the datalogger using the Device
Configuration Utility or PakBus Graph.
7.2 Programming
7.2.1 The CardOut() Instruction
The CardOut() instruction is used to send data to a CF card. The CardOut()
instruction must be entered within each DataTable declaration that is to store