
SERIAL PORTS BASIC SECTION 4
Page 4-7
910
Figure 4-6 Serial port
pinout (Top view)
COMMANDS & REGISTERS
The following is a list of Baisic commands and registers
used for serial I/O. Register are explained in Appendix
A. Basic commands and functions are explained in the
Basic Programming
section in this manual.
Command Function
4810 Set COM3 operating mode
4811 Set modbus ID
4813 COM 3 baud rate
4815 Modbus timeout timer
4823 Switch 5V and battery power
control.
GET or
GET(n)
Returns a character from the serial
buffer.
LIST Outputs program listing
PRINT Outputs data in various formats
PRINT #, Prints to a specified port or if
COM 3 in modbus mode, send out
modbus message.
SPC Print out n number of spaces
TAB Tabs to predetermined positions
USING PRINT formatting statement
RS-232 PORT PIN OUT
Pin outs for J1 and J2 are shown below. Unused pins are
open.
J1
COM 0
J2
COM 1
Name Direction
from card
1 1 Battery supply Out
3 3 TxD Out
5 5 RxD In
8 8 Switched 5V Out
9 9 Ground
10 10 +5V Out
Switched 5V is controlled by register 4823.
Comentarios a estos manuales