Rockwell Automation 2708-NBD VBASIC Language Development Kit User Manual

Page 73

Advertising
background image

Appendix C

Application Library Subroutines

C–5

PENDING%

TRUE if Send will result in a pause.

This should be checked before any Send, to prevent pauses in execution.

WHILE PENDING%
. . .

WEND

Send

Sends a record directly to the host.

A string is sent to the host from this terminal. You should test ONLINE%
and PENDING% if you don’t want this to pause.

Send s$

SendQue

Sends a record indirectly to the host through the que.

A string is placed into the network queue. The record will in turn be sent to
the host as soon as possible. SendQue has a lower priority than Send, and
will buffer records even when NOT ONLINE.

This subroutine uses the “Host” device, NOT the “Que” device. See “Host
Device” discussion.

Pause will occur if the unit was not ONLINE% and MEMFULL%.

SendQue s$

SetLED

Turns a workstation keyboard LED on or off.

A workstation has up to 10 LEDs. The LEDs are numbered 1 to 10. state%
should be TRUE for ON and FALSE for OFF.

SetLED n%, state%

GetTIME$

Translates TIME$ into standard form (HH:MM:SS).

In A-B VBASIC TIME$ is in the form hhmmsshh. This routine drops the
hundreth seconds and puts colons between hours/minutes and
minute/seconds.

GetTIME$

GetDATE$

Translates DATE$ into standard form (MM/DD/YYYY).

In A-B VBASIC DATE$ is in the form yymmddx. This routine ignores the
day (the x).

GetDATE$

Advertising