I-7521/I-7522/I-7522A/I-7523/I-7524/I-7527 User’s Manual,Ver2.5 Aug.2015
134
The configuration of the COM ports on each I-7523 module is
as follows:
COM2 (485)
COM3 (232)
COM4 (232)
Baud Rate
9600 (default)
9600 (default)
9600 (default)
Parity
None (default)
Even
Even
Data
8 (default)
7
7
Stop-bit
1 (default)
2
2
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 = Da Non Stop1bit;
com[ComNo].CheckSum = CHKSUMdisable;
OpenCOM(ComNo);
HPSendCommand(ComNo, ":02SYST:REM"); // #1 HP
HPSendCommand(ComNo, ":02*CLS"); // #1 HP
HPSendCommand(ComNo, ":03SYST:REM"); // #2 HP
HPSendCommand(ComNo, ":03*CLS "); // #2 HP
HPSendCommand(ComNo, ":05SYST:REM"); // #3 HP
HPSendCommand(ComNo, ":05*CLS "); // #3 HP
HPSendCommand(ComNo, ":06SYST:REM"); // #4 HP
HPSendCommand(ComNo, ":06*CLS "); // #4 HP
HPSendCommand(ComNo, ":08SYST:REM"); // #5 HP
HPSendCommand(ComNo, ":08*CLS "); // #5 HP
HPSendCommand(ComNo, ":09SYST:REM"); // #6 HP
HPSendCommand(ComNo, ":09*CLS "); // #6 HP
WaitClock(18);
}
void CloseHP(int ComNo)
{
HPSendCommand(ComNo, ":02*CLS"); // #1 HP
HPSendCommand(ComNo, ":02SYST:LOC"); // #1 HP
HPSendCommand(ComNo, ":03*CLS"); // #2 HP
HPSendCommand(ComNo, ":03SYST:LOC"); // #2 HP
HPSendCommand(ComNo, ":05*CLS"); // #3 HP
HPSendCommand(ComNo, ":05SYST:LOC"); // #3 HP
HPSendCommand(ComNo, ":06*CLS"); // #4 HP
HPSendCommand(ComNo, ":06SYST:LOC"); // #4 HP
HPSendCommand(ComNo, ":08*CLS"); // #5 HP
HPSendCommand(ComNo, ":08SYST:LOC"); // #5 HP
HPSendCommand(ComNo, ":09*CLS"); // #6 HP
HPSendCommand(ComNo, ":09SYST:LOC"); // #6 HP
CloseCOM(ComNo);
}
Summary of Contents for I-7521
Page 11: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 11 1 4 Pin Assignment...
Page 13: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 13...
Page 15: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 15...
Page 17: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 17...
Page 19: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 19...
Page 21: ...I 7521 I 7522 I 7522A I 7523 I 7524 I 7527 User s Manual Ver2 5 Aug 2015 21...