ICP DAS USA I-7521 User Manual page 134

Table of Contents

Advertisement

 The configuration of the COM ports on each I-7523 module is
as follows:
Baud Rate
Parity
Data
Stop-bit
The InitHP() and CloseHP() functions of hp23_M.c are given as
follows:
void InitHP(int ComNo)
{
com[ComNo].ComNo = ComNo;
com[ComNo].BaudRate = 9600L;
com[ComNo].DataFormat = Data8bit + NonParity + Stop1bit;
com[ComNo].CheckSum = CHKSUMdisable;
OpenCOM(ComNo);
HPSendCommand(ComNo, ":02SYST:REM");
HPSendCommand(ComNo, ":02*CLS");
HPSendCommand(ComNo, ":03SYST:REM");
HPSendCommand(ComNo, ":03*CLS ");
HPSendCommand(ComNo, ":05SYST:REM");
HPSendCommand(ComNo, ":05*CLS ");
HPSendCommand(ComNo, ":06SYST:REM");
HPSendCommand(ComNo, ":06*CLS ");
HPSendCommand(ComNo, ":08SYST:REM");
HPSendCommand(ComNo, ":08*CLS ");
HPSendCommand(ComNo, ":09SYST:REM");
HPSendCommand(ComNo, ":09*CLS ");
WaitClock(18);
}
void CloseHP(int ComNo)
{
HPSendCommand(ComNo, ":02*CLS");
HPSendCommand(ComNo, ":02SYST:LOC");
HPSendCommand(ComNo, ":03*CLS");
HPSendCommand(ComNo, ":03SYST:LOC");
HPSendCommand(ComNo, ":05*CLS");
HPSendCommand(ComNo, ":05SYST:LOC");
HPSendCommand(ComNo, ":06*CLS");
HPSendCommand(ComNo, ":06SYST:LOC");
HPSendCommand(ComNo, ":08*CLS");
HPSendCommand(ComNo, ":08SYST:LOC");
HPSendCommand(ComNo, ":09*CLS");
HPSendCommand(ComNo, ":09SYST:LOC");
CloseCOM(ComNo);
}
I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User's Manual,Ver2.5 Aug.2015
COM2 (485)
9600 (default)
None (default)
8 (default)
1 (default)
COM3 (232)
9600 (default)
Even
7
2
// #1 HP
// #1 HP
// #2 HP
// #2 HP
// #3 HP
// #3 HP
// #4 HP
// #4 HP
// #5 HP
// #5 HP
// #6 HP
// #6 HP
// #1 HP
// #1 HP
// #2 HP
// #2 HP
// #3 HP
// #3 HP
// #4 HP
// #4 HP
// #5 HP
// #5 HP
// #6 HP
// #6 HP
COM4 (232)
9600 (default)
Even
7
2
134

Advertisement

Table of Contents
loading

This manual is also suitable for:

I-7522I-7522aI-7527I-7524I-7523

Table of Contents