'assemble the response string. The COM port needs to be
'opened AS random with a record length of 1 for it to support
'this function. Also, the device number is assumed to be #1
'Optionally, this value could be passed as a parameter to
'make this program more generic.
DIM char AS STRING * 1
DIM resp AS STRING
char = ""
resp = ""
DO
char = INPUT$(1, #1)
resp = resp + char
LOOP UNTIL char = CHR$(10)
'Return result
retstring = LEFT$(resp, LEN(resp) - 1)
END FUNCTION
13.2.2. Serial Cable Diagram
The following wiring diagram is required for the serial interface cable between the RP Series
AC power source and a PC communications port connector.
DB-9 PC
Pin
1
2
3
4
5
6
7
8
9
52
Figure 13-2: RS232C Interface cable wiring diagram
DB-9 AC Source
Pin
Direction
1
output
2
input
3
output
4
output
5
-
6
input
7
-
8
-
9
output
March 2011
Description
reserved
Receive data(RxD)
Transmit data (TxD)
Data Terminal Ready (DTR)
Signal Ground
Data Set Ready (DSR)
no connect
no connect
reserved
RP Series