Rice Lake iRite IDE User Manual

Page 50

Advertising
background image

46

920i

Programming Reference

Hardware

Returns an array of HW_type. The elements of the array correspond to option card slots in the 920i. This API is
useful for determining the presence of option cards that are required or that could activate different options in the
user program.

Method Signature:
procedure Hardware(var hw : HW_array_type);

SysCode values returned: None

KeyPress

Provides intrinsic functionality for a key. The following keys will have intrinsic function, in addition to the front
panel keys already in the Keys built-in type: TimeDateKey, WeighInKey, WeighOutKey, ID_EntryKey,
DisplayTareKey, TruckRegsKey, DisplayAccumKey, ScaleSelectKey, DisplayROCKey, SetpointKey,
BatchStartKey, BatchStopKey, BatchPauseKey, BatchResetKey, DiagnosticsKey, ContactsKey, DoneKey,
TestKey. The ContactsKey will actually function like the Dignostics softkey, while the DiagnosticsKey will go
straight to the Diagnostics screen. The DoneKey will only return from the contacts screen. The TestKey will
allow the user program to test for strict weigh mode by not doing anything at all. This API will only function in
actual weigh mode.

Method Signature:
function KeyPress (K : Keys) : SysCode;

SysCode values returned:

SysInvalidMode

The indicator is not actually in weigh mode. The TestKey will return
SysInvalidMode for all sub-modes of weigh mode (ie, the contact screen) as well as
any other mode (ie, time & date entry, or open prompt).

SysInvalidKey

Any Invalid key. Softkeys and Undefined Keys are considered invalid.

SysInvalidRequest

Processing the key returns invalid or error.

SysOK

The function completed successfully

LockKey

Disables the specified front panel key. Possible values are: ZeroKey, GrossNetKey, TareKey, UnitsKey,
PrintKey, Soft1Key, Soft2Key, Soft3Key, Soft4Key, Soft5Key, NavUpKey, NavRightKey, NavDownKey,
NavLeftKey, EnterKey, N1Key, N2Key, N3Key, N4Key, N5Key, N6Key, N7Key, N8Key, N9Key, N0Key,
DecpntKey, ClearKey.

Method Signature:
function LockKey (K : Keys) : SysCode;

Parameters:

[in]

K

Key name

SysCode values returned:

SysInvalidKey

The key specified is not valid.

SysOK

The function completed successfully.

ProgramDelay

Pauses the user program for the specified time. Delay time is entered in 0.01-second intervals (1/100 seconds,
100 = 1 second).

Method Signature:
procedure ProgramDelay (D : Integer);

Parameters:

[in]

D

Delay time

Example:
ProgramDelay(200); -- Pauses the program for 2 seconds.

Advertising
This manual is related to the following products: