3 serial i/o – Rice Lake iRite IDE User Manual
Page 53

920i
Programming Reference - API Reference
49
Method Signature:
function UnlockKey (K : Keys) : SysCode;
Parameters:
[in]
K
Key name
SysCode values returned:
SysInvalidKey
The key specified is not valid.
SysOK
The function completed successfully.
UnlockKeypad
Enables operation of the entire front panel keypad.
Method Signature:
function UnlockKeypad : SysCode;
SysCode values returned:
SysPermissionDenied
SysOK
The function completed successfully.
WaitForEntry()
Similar to GetEntry, WaitForEntry causes the user program to wait for operator input. Wait time is specified in
0.01-second intervals (1/100 seconds); if the wait time is set to zero, the procedure will wait indefinitely or until
the
Enter
key is pressed.
Note
The UserEntry handler must be disabled (see DisableHandler on page 42) before using this procedure.
Method Signature:
procedure WaitForEntry (I : Integer);
Parameters:
[in]
I
Wait time value
5.3
Serial I/O
Requests a print operation using the print format specified by F. Output is sent to the port specified in the print
format configuration.
Method Signature:
function Print (F : PrintFormat) : SysCode;
Parameters:
[in]
F
Print format
PrintFormat values sent:
GrossFmt
Gross format
NetFmt
Net format
TrWInFmt
Truck weigh-in format
TrRegFmt
Truck register format (truck IDs and tare weights)
TrWOutFmt
Truck weigh-out format
SPFmt
Setpoint format
AccumFmt
Accumulator format
AuxFmtx
Auxiliary format
SysCode values returned:
SysInvalidRequest
The print format specified by
F
does not exist.
SysQFull
The request could not be processed because the print queue is full.
SysOK
The function completed successfully.