Owner`s manual

M SERIES DAC
BASE UNIT AND MODULE OPERATION
____________________________________________________________________________
172
Description: The charsout(...) function transfers a specified number of characters from
the specified character array to the selected module and port. The first character of the
specified array must be a byte count (0 to 255 decimal). The charsout(...) function
sends all characters in the byte count range include null characters. The selected
module must be a 4-port serial I/O module (e.g., V74, V75, etc.). The charsout(...)
function behaves the same way as the serout(...) function described above except that
only a specified number of characters are sent and any null characters encountered in
the byte count range are sent.
4.f int charsin(int a,int b,char *s)
Input: a - module number (1 to 16)
b - desired port number (1 to 4)
*s - pointer strino for output
Output: 0 - successful
Description: The charsin(...) function reads all data from the selected module
including null characters and stores the data in the specified character array. The first
character stored is a byte count that corresponds to the number of characters read (0 to
255 decimal). The selected module must be a 4-port serial I/O module. The
charsin(...) function behaves the same way as the serin(...) function described above
except that all characters are read (including null characters) and the first byte stored
is the byte count.
4g. int dial(int a,int 1,char *s)
lnput: a - module number (1 to 16)
b - integer number 1
*s - nointer string for output
Output: 0 - successful
Description: The dial(. ..) function causes the selected module to go off-hook and
send the character string to the modem. The selected module must be a V93 modem
module.
Example: Assume a V93 modem host is installed as Module 1 and a V74 module
installed as Module 2.
char dial_strl[7]={"ATDT18005551212\r"};
dial(1,1,dial str);
serout(2,1,"123\r\n");