Owner`s manual

M SERIES DAC
BASE UNIT AND MODULE OPERATION
____________________________________________________________________________
166
initial event. This will be "1" (closed) for LO to HI Latch Polarity or "0" (open) for
HI to LO Latch Polarity if using the V79 PDI-1. This will be "1" (voltage detected)
for LO to HI Latch Polartiy or "0" (no voltage detected) for HI to LO Latch Polarity if
using the V80 PDI-2. If time tagging is enabled, the time the initial event occurred
will be appended to the event sample.
V82 OPERATION
The V82 Programmable Control Module (PCM-1) is used to monitor, control, and
report information about devices connected to the M-Series peripheral modules. The
M-Series peripheral modules are used to interface directly to various devices such as
security/alarm systems, process control systems, medical data systems, and
environmental control systems.
Bay Tech provides C library functions specific to the various peripheral modules.
These functions allow you to write C programs to perform data acquisition and
control applications such as process control, remote control and monitoring and data
gathering.
Programming the V82 PCM-1 is accomplished by writing a C-based source program,
compiling and linking this program for use on the 64180 microprocessor, and
downloading the corresponding HEX file to the flash EPROM. The C library
functions provided are specific for the 2500AD software, Inc. 64180 C compiler.
IMPORTANT: Before you begin writing your source program, you should
determine what types of peripheral modules are installed in the M-Series
chassis. You should note the module location where the peripheral modules
are installed (Module 1 to Module 16). You should also familiarize yourself
with the basic operation of the peripheral modules. All source programs
should have a “.C” extension (e.g., BAYTECH.C).
1. The name of the prototype header file is “cstartup.h”. The functions
included in this file are listed below:
int delay(unsigned int);
char *ctime();
int serout(int,int,char *);
int serin(int, int, char *);
int charsout(int, int, char *);
int charsin(int, int, char *);
int dial(int, int, char *);
int hang_up(int, int);
int atod(int, int, char *);