Section 7. Installation
Note A particular subroutine can be called by multiple program
sequences simultaneously. To preserve measurement and processing
integrity, the CR800 queues calls on the subroutine, allowing only one call
to be processed at a time in the order calls are received. This may cause
unexpected pauses in the conflicting program sequences.
7.6.3.11.3 Declaring Subroutines
Function() / EndFunction instructions allow you to create a customized CRBasic
instruction. The declaration is similar to a subroutine declaration.
7.6.3.11.4 Declaring Incidental Sequences
A sequence is two or more statements of code. Data-table sequences are
essential features of nearly all programs. Although used less frequently,
subroutine and function sequences also have a general purpose nature. In
contrast, the following sequences are used only in specific applications.
Also see ApplyAndRestartSequence() instruction.
Shut-Down Sequences
The ShutDownBegin / ShutDownEnd instructions are used to define code that
will execute whenever the currently running program is shutdown by prescribed
means. More information is available in CRBasic Editor Help.
Dial Sequences
The DialSequence / EndDialSequence instructions are used to define the code
necessary to route packets to a PakBus
®
device. More information is available in
CRBasic Editor Help.
Modem-Hangup Sequences
The ModemHangup / EndModemHangup instructions are used to enclose code
that should be run when a COM port hangs up communication. More information
is available in CRBasic Editor Help.
Web Page Sequences
The WebPageBegin / WebPageEnd instructions are used to declare a web page
that is displayed when a request for the defined HTML page comes from an
external source. More information is available in CRBasic Editor Help.