
502 069 02
Manual
Power Monitor, PD 3260
65/79
ChConfig is a record having the following structure:
Record
Enablebit
: ARRAY[0..7] OF BOOLEAN;
(* Offset = 0 *)
Functions
: BYTE;
(* Offset = 1 *)
Ref_A
: BYTE;
(* Offset = 2 *)
Ref_B
: BYTE;
(* Offset = 3 *)
End
Enablebit[0] indicates how the selected program should operate, following a power failure or
module reset.
Enablebit[0] = TRUE indicates that the selected program should perform an autostart,
resulting in ProgramStatus.State = Running.
Enablebit[0] = FALSE indicates that the selected program should go to
ProgramStatus.State = Idle.
The Program Invocation Management on the Program Channel, sends Commands to the selected
program after the module reset, to change the State to that specified in Enablebit[0] (Idle or
Running). If an error occurs during the autostart procedure, the error code may be read in
ChError.His.
Functions is not used.
Ref_A holds the selected program number which is to be invoked after module reset or power-up.
No program is selected if Ref_A = 0. Following a successful autostart, Ref_A is copied to
ProgramStatus.SelectedProgram.
Ref_B is not used.
SWNo $DA: LibraryControl
LibraryControl is used to set and change the state of a program in the library. The program in the
library is chosen using LibraryIndex. Commands can be sent to LibraryControl for controlling a
download or upload sequence.
LibraryControl is a record of the following structure:
Record
Command
: BYTE;
(* Offset = 0 *)
LibraryIndex
: Word;
(* Offset = 2 *)
End
Command is used to send a command to the Program Channel to change the state of the program
chosen by LibraryIndex. A list of possible commands is given below. The commands and the
corresponding numbers conform to the Request Instructions for download used by (MMS).