502 069 02
62/79
Power Monitor, PD 3260
Manual
State
Explanation
0
Non-selected
No program selected. (MMS = Non-selected)
1
Unrunable
The program cannot run. (MMS = Unrunable)
2
Idle
The program is stopped and reset. (MMS = Idle)
3
Running
The program is running. (MMS = Running)
4
Stopped
The program is stopped. (MMS = Stopped)
5
Starting
The program is changing state from idle to running.
(MMS = Starting)
6
Stopping
The program is changing state from running to stopping.
(MMS = Stopping)
7
Resuming
The program is changing state from stopped to running.
(MMS = Resuming)
8
Resetting
The program is changing state from stopped to idle.
(MMS = Resetting)
SelectedProgram holds the library index for the selected program. SelectedProgram is 0, if State
is Non-selected.
ErrorStatus is identical to ProgramControl.ErrorStatus, but only read access is possible. All bits
in ErrorStatus always read FALSE.
SWNo $D2: ProgramID
ProgramID is used to identify the selected program. The record includes a name for the program,
version number, the required version number for the interpreter program and a name of the
software house that created the program. Compile time, compiler version and actual size for the
program is also a part of ProgramID, as well as SumCheck (2's complement word addition without
carry), and a code type identifier. The SumCheck value is used for check sum calculations when
the program is started, i.e. following a Start command (40) or a Resume command (42). CodeType
must match CodeType found in ChType. The CodeType check is performed at the same time as
the SumCheck.
ProgramID is a record of the following structure:
Record
ProgramName
: STRING[20];
(* Offset = 0 *)
Version
: Word;
(* Offset = 22 *)
InterpreterVers
: Word;
(* Offset = 24 *)
SoftwareHouse
: STRING[20];
(* Offset = 26 *)
CompileTime
: DateTimeRec;
(* Offset = 48 *)
CompilerVersion : Word;
(* Offset = 56 *)
ActualSize
: LongInteger;
(* Offset = 58 *)
SumCheck
: Word;
(* Offset = 62 *)
CodeType
: Word;
(* Offset = 64 *)
NoOfTask
: Word;
(* Offset = 66 *)
End