Publication 1746-PM001A-US-P
A-4
BASIC Macro Library
SLC Backplane
Functions
The following table describes the macro CALLs that you use to communicate and
pass data on the backplane of the SLC 500. Backplane macros for the 1771-DB/B
are located in the file INCLUDBB.BDL.
Table A.3 Communication Macros
Backplane Macro CALLs
Macro
Inputs
Outputs
write_m1_image_unsigned(%1,%2) Converts a BASIC variable or constant value to
an unsigned integer (0 to 65535), then writes
this value to the M1 file. The offset position (0
to 63) in the M1 file is defined by the first input
variable.
%1 = The offset position (0
to 63) in the M1 file
%2 = BASIC variable or
constant to be converted
None
read_m0_image_unsigned(%1,%2)
Reads an unsigned integer (0 to 65535) from the
M0 file. The offset position (0 to 63) in the M0
file is defined by the first input variable. The
variable which receives the data is the second
input variable.
%1 = The offset position (0
to 63) in the M0 file to be
converted
%2 = Variable
write_m1_image_signed(%1,%2)
Converts a BASIC variable or constant value to
its binary representation (-32768 to 32767),
then writes the value to the M1 file. The offset
position (0 to 63) in the M1 file is defined by the
first input variable.
%1 = The offset position (0
to 63) in the M1 file
%2 = BASIC variable or
constant to be converted
None
read_m0_image_signed(%1,%2)
Reads a binary value (-32768 to 32767) from the
M0 image file. The offset position (0 to 63) in
the M0 file is defined by the first input variable.
The variable which receives the data is the
second input variable.
%1 = The offset position (0
to 63) in the M0 file to be
converted
%2 = Variable
copy_image_to_m1(%1,%2)
Allows the SLC processor to read the BASIC or
BASIC-T module’s M1 data.
%1 = Number of words to
be copied
%2 = The success
of the transfer
0 --> Run mode
1 --> Program mode
2 --> Test mode
10--> Illegal length
11--> Not
supported
copy_bas_out_to_slc_in(%1)
Allows the SLC processor to read the module’s
output data into the SLC processor’s input
image table.
None
%1 = The success
of the transfer
0 --> Run mode
1 --> Not Run mode
73--> No Response
copy_m0_to_image(%1,%2)
Allows the module to accept the SLC
processor’s M0 data.
%1 = Number of words to
be copied
%2 = The success
of the transfer
0 --> Run mode
1 --> Program mode
2 --> Test mode
10--> Illegal length
11--> Not
supported
copy_slc_out_to_bas_in(%1)
Allows the module to read the SLC processor’s
output image table data.
None
%1 = The success
of the transfer
0 --> Run mode
1 --> Not Run mode
73--> No Response
Summary of Contents for 1747-PBASE
Page 1: ...BASIC Development Software Catalog Numbers 1747 PBASE Programming Manual ...
Page 8: ...Publication 1746 PM001A US P Table of Contents vi ...
Page 34: ...Publication 1746 PM001A US P 2 14 Getting Familiar with Your Development Software ...
Page 72: ...Publication 1746 PM001A US P 5 8 Manipulating Files ...
Page 88: ...Publication 1746 PM001A US P 6 16 Writing Programs Using the BASIC Development Language ...
Page 143: ......