Rice Lake iRite IDE User Manual
Page 62

58
920i
Programming Reference
ResetBatch
Terminates a running, stopped, or paused batch process and resets the batch system.
Method Signature:
function ResetBatch : SysCode;
SysCode values returned:
SysPermissionDenied
The BATCHNG configuration parameter is set to OFF.
SysBatchRunning
No batch routine is running.
SysOK
The function completed successfully.
SetBatchingMode
Sets the batching mode (BATCHNG parameter) to the value specified by M.
Method Signature:
function SetBatchingMode (M : BatchingMode) : SysCode;
Parameters:
[in]
S
P
Setpoint number
[in]
M
Batching mode
BatchingMode values sent:
Off
Batching mode is off.
Auto
Batching mode is set to automatic.
Manual
Batching mode is set to manual.
SysCode values returned:
SysInvalidMode
The batching mode specified by
M
is not valid.
SysOK
The function completed successfully.
SetSPBand
Sets the band value (BANDVAL parameter) of setpoint SP to the value specified by V.
Method Signature:
function SetSPBand (SP : Integer; V : Real) : SysCode;
Parameters:
[in]
S
P
Setpoint number
[in]
V
Band value
SysCode values returned:
SysInvalidSetpoint
The setpoint specified by
SP
does not exist.
SysInvalidRequest
The setpoint specified by
SP
has no band value (BANDVAL) parameter.
SysBatchRunning
The value cannot be changed because a batch process is currently running.
SysOK
The function completed successfully.
Example:
SP7Bandval : Real;
…
SP7Bandval := 10.0
SetSPBand (7, SP7Bandval);
SetSPCount
For DINCNT setpoints, sets the VALUE parameter of setpoint SP to the value specified by Count.
Method Signature:
function SetSPCount (SP : Integer; Count : Integer) : SysCode;
Parameters:
[in]
S
P
Setpoint number
[in]
Count
Count value