6100 MPS-B Programming Manual

6100 MPS-B PROGRAMMING EXAMPLE
ALTERING THE SAMPLE PROGRAM
Because of its modular design, you can easily modify the above
sample program to add new capabilities.
For example, let’s assume that we wish to broadcast a message to
all three stations before initiating the polling loop. To
accomplish this, we do the following:
write another procedure (BROADCAST) that formats the text
portion of the WRITEREAD buffer, sets the text-out header
field to the proper value, and calls REQUEST.
add the following modifier code to the global literal
declarations:
fast^select = 2,
add the following statement to the DO^MAIN procedure
just after the call to "initialize":
CALL broadcast;
B-18