Owner`s manual

M SERIES DAC
BASE UNIT AND MODULE OPERATION
____________________________________________________________________________
167
int disc_in(int, int);
int rlyset(int, int);
int rlyrst(int, int);
2. Once you have written your source code, you should compile it using the
2500AD 64180 C Compiler. When the 2500AD compiler goes into its
linking procedure, it looks for a .LNK file. Bay Tech supplies a file
named “T.LNK” that is used for this purpose. Below is an example batch
file that will perform the necessary compile and link commands for the
2500AD compiler.
C64180 –d %1
ADLINK t %1
For example, if the name of the batch file is “RUN.BAT” and the name
of the source code is “BAYTECH.C”, then RUN BAYTECH from your
DOS prompt and the 2500AD compiler will compile and link the source
file. Do not include the “.C” suffix when typing RUN BAYTECH. Once
the source program has been compiled and linked, the 2500AD compiler
will create a file called “BAYTECH.HEX” which is used to actually
program the V82 PCM-1 as described below.
3. Downloading a HEX file to the module while it is in configuration mode
programs the V82 PCM-1. The HEX file is generated after the source file
has been compiled and linked. Use the following procedure to place the
V82 PCM-1 into configuration mode:
3a. Programming changes are made from the service port, a V71
host module, or a V93 modem module. If you are using the
service port or a V71 host module, connect a terminal to the
service port or V71. Configure the terminal’s serial parameters
to match those of the service port or V71. The default
parameters for both ports are 9600 bps, 8 data bits, 1 stop bit,
and no parity. The service port is fixed at these parameters. The
V71’s parameters can be changed. If you are using the V93
host modem module, make a connection with the V93 modem
over a dial-up line. Enter the appropriate password if the V93
Password is enabled.
3b. Place the V82 PCM-1 into command mode by sending the Port
Select Code (default is $BT), the appropriate Unit Number
followed by a colon (1: to 30: - only if using a cascading