Section 9. Program Control Instructions
9-17
ResetTable Example
The example program line uses ResetTable to reset table MAIN when Flag(2)
is high.
If Flag(2) then
ResetTable(
MAIN
)
'resets table MAIN
RunDLDFile
Used to run one DLD file from another.
Syntax
RunDLDFile(
"d:FileName", Attribute
)
Remarks
RunDLDFile is a function that allows a running DLD program to call another
DLD file that is stored in the CR9000. "d:FileName" is the device and name of
the DLD file that must have previously been stored in the CR9000. The device
must be
CPU:
or a possible Pam device such as
P4A:
.
P4A:
means
P
am in
slot
4
, card
A
. The quote marks ( " ) are necessary. The attribute parameter is
evaluated as a binary number where bits one and two are used to indicate if the
program is to become the program that runs on power up and/or if it is to
replace the current program and run when the instruction is executed.
Bit Decimal
Description
bit 0
1
not used
bit 1
2
Run On Power Up
bit 2
4
Run Now
Only bit1 and bit2 are available for this function.
For example,
RunDLDFile(
"CPU:TEMPS.DLD", &B100
)
means to load TEMPS.DLD from CPU flash memory and run it. Whatever
DLD file is currently run on power up would be loaded and run if the CR9000
was powered off and then on again. In the above example, the attribute
parameter is entered as a binary number (&B100); it could also be entered in
decimal format as 4.
RunDLDFile(
"CPU:TEMPS.DLD", &B110
)
means to load and run TEMPS.DLD and to make it the file that the CR9000
will run when powered up. The attribute parameter could also be entered as 6.
The example uses RunDLDFile to run CPU:TEMPS.DLD when Flag(2)
becomes high.
If Flag(2) then
RunDLDFile(
"CPU:TEMPS.DLD" 4
)
'4 means Run Now
Summary of Contents for CR9000
Page 6: ...CR9000 Table of Contents iv This is a blank page ...
Page 22: ...CR9000 Overview OV 16 This is a blank page ...
Page 26: ...Section 1 Installation 1 4 CR9000 FIGURE 1 1 3 CR9000 Battery Pack ...
Page 72: ...Section 3 CR9000 Measurement Details 3 28 This is a blank page ...
Page 88: ...Section 5 Program Declarations 5 6 This is a blank page ...
Page 217: ...This is a blank page ...