
Page 68 of 87
Operation
db9 to db9 Cable Configuration
1865
Controller
Pin #
Function
Pin #
Function
2
3
4
5
6
Receive data
Transmit data
Data terminal ready
Signal ground
Data set ready
Connect
to
3
2
6
5
4
Transmit data
Receive data
Data set ready
Signal ground
Data terminal ready
db9 to db25 Cable Configuration
1865
Controller
Pin #
Function
Pin #
Function
2
3
4
5
6
Receive data
Transmit data
Data terminal ready
Signal ground
Data set ready
Connect
to
2
3
6
7
20
Transmit data
Receive data
Data set ready
Signal ground
Data terminal ready
Figure 2-34: RS-232 Cable Configurations
2.7.6 Sample Program for RS-232
OPEN "com1:9600,n,8,1,rs" FOR RANDOM AS #2
'some com ports require this ie ,rs
'OPEN "com2:9600,n,8,1" FOR RANDOM AS #2
'others run best without ,rs
PRINT #2, "system:lock 1"
PRINT #2, "idn?"
'get unit identification
GOSUB cget
'read serial data subroutine
r$ = INPUT$(x, #2): PRINT "idn = "; r$;
PRINT #2, "syst:dcal?"
'get calibration date
GOSUB cget
r$ = INPUT$(x, #2): PRINT "calibration date is "; r$;
PRINT #2, "conf:fres s"
'configure unit
PRINT #2, "conf:tch 0"
PRINT #2, "conf:tme 0"
PRINT #2, "conf:volt 100"
FOR i = 1 TO 30000: NEXT i
'delay
gg:
PRINT #2, "meas:res"
Содержание 1865
Страница 2: ...Page 2 of 87...
Страница 6: ...Page 6 of 87...
Страница 8: ...Page 8 of 87...
Страница 12: ...Page 12 of 87...
Страница 14: ...Page 14 of 87...
Страница 20: ......
Страница 28: ......
Страница 82: ......