PDS Series User Manual ( V1.4, Oct. 2009) ----- 182
2.
How to open a virtual COM port that larger than "COM 9" by calling
CreateFile() Win32 API?
If you want to open "COM 10", the correct way to call the CreateFile() is as follows:
CreateFile(
"\\\\. \\COM10",
// address of name of the communications device
fdwAccess,
// access (read-write) mode
0,
// share mode
NULL,
// address of security descriptor
OPEN_EXISTING, // how to create
0,
// file attributes
NULL
// handle of file with attributes to copy
);
NOTES:
1. This syntax also works for ports COM 1 through COM 9. See more... MS
Q115831
.
2. Maximum COM port number for VxComm Driver is COM 256.
3. Valid COM port number for MSCOMM.OCX is between 1 to 16. Please refer to
MSComm.CommPort
.
4. The "\\.\" prefix must be add to the COM port name (device name) when it is larger
than "COM 9". But please note that the "\" character is a special escape symbol in
C\C++ language, thus you have to use "\\\\.\\" prefix in C\C++ language.
Summary of Contents for PDS-700 Series
Page 56: ...PDS Series User Manual V1 4 Oct 2009 56 PDSM 782 D PPDSM 782 D Pin Assignments...
Page 58: ...PDS Series User Manual V1 4 Oct 2009 58 PDS 700 IP67...
Page 59: ...PDS Series User Manual V1 4 Oct 2009 59...
Page 60: ...PDS Series User Manual V1 4 Oct 2009 60...
Page 61: ...PDS Series User Manual V1 4 Oct 2009 61 DS 712 PPDS 712 MTCP Pin Assignments E1 10 100 Base TX...
Page 62: ...PDS Series User Manual V1 4 Oct 2009 62 DS 715 PPDS 715 MTCP Pin Assignments E1 10 100 Base TX...
Page 64: ...PDS Series User Manual V1 4 Oct 2009 64 Digital Output...
Page 66: ...PDS Series User Manual V1 4 Oct 2009 66 PDSM 700 PPDSM 700 MTCP...
Page 67: ...PDS Series User Manual V1 4 Oct 2009 67 PPDS 700 IP67...
Page 68: ...PDS Series User Manual V1 4 Oct 2009 68...
Page 69: ...PDS Series User Manual V1 4 Oct 2009 69 Din Rail Mounting Stack Mounting...
Page 91: ...PDS Series User Manual V1 4 Oct 2009 91...
Page 147: ...147 Init Mode Short INIT and GND PDSM 700 D PPDSM 700 D MTCP Run Mode Open INIT...
Page 152: ...PDS Series User Manual V1 4 Oct 2009 152 Example...