Rice Lake iRite IDE User Manual
Page 64

60
920i
Programming Reference
SysCode values returned:
SysInvalidSetpoint
The setpoint specified by
SP
does not exist.
SysInvalidRequest
The setpoint specified by
SP
has no NSAMPLE parameter.
SysBatchRunning
The value cannot be changed because a batch process is currently running.
SysOutOfRange
The value specified for
N
is not in the allowed range for setpoint
SP
.
SysOK
The function completed successfully.
Example:
SP5NS : Integer;
…
SP5NS := 10
SetSPNSample (5, SP5NS);
SetSPPreact
Sets the preact value (PREACT parameter) of setpoint SP to the value specified by V.
Method Signature:
function SetSPPreact (SP : Integer; V : Real) : SysCode;
Parameters:
[in]
S
P
Setpoint number
[in]
V
Preact value
SysCode values returned:
SysInvalidSetpoint
The setpoint specified by
SP
does not exist.
SysInvalidRequest
The setpoint specified by
SP
has no preact (PREACT) parameter.
SysBatchRunning
The value cannot be changed because a batch process is currently running.
SysOK
The function completed successfully.
Example:
SP2PreVal : Real;
…
SP2PreVal := 30.0;
SetSPPreact (2, SP2PreVal);
SetSPPreCount
Sets the preact learn interval value (PCOUNT parameter) of setpoint SP to the value specified by Count.
Method Signature:
function SetSPPreCount (SP : Integer; Count : Integer) : SysCode;
Parameters:
[in]
S
P
Setpoint number
[in]
Count
Preact learn interval value
SysCode values returned:
SysInvalidSetpoint
The setpoint specified by
SP
does not exist.
SysInvalidRequest
The setpoint specified by
SP
has no preact learn interval (PCOUNT) parameter.
SysBatchRunning
The value cannot be changed because a batch process is currently running.
SysOK
The function completed successfully.
Example:
SP3PCount : Integer;
…
SP3Pcount := 4;
SetSPPreCount (3, SP3PCount);
SetSPTime
For time of day (TOD) setpoints, sets the trip time (TIME parameter) of setpoint SP to the value specified by DT.
Method Signature:
function SetSPTime (SP : Integer; DT : DateTime) : SysCode;