Remote Processing CX-10 User Manual
Page 11
SETUP AND OPERATION - MODBUS and BASIC
SECTION 2
Page 2-6
# of Regs. 1
On the right center of the program, under “Data”,click in
the white area of “Reg 10" box. Enter a 7.
Click on the green “Write (Func 16)” button. If all is
OK, 3 relays should click. 3 LED’s on the CX-10 board
should be illuminated.
You can individually control relays and monitor specific
opto inputs. For more information, refer to “Relay
control” section to control and read relays. Refer to
“Opto Inputs” seconds to read opto input status.
A complete Modbus register map is in Appendix A.
Registers used for specific IO are listed in each chapter.
BASIC OPERATION
You will need a serial terminal program, such as
Windows Terminal, Hyperlink, TerraTerm, or RPTERM.
RPTERM is on your CD or may be downloaded at our
website at:
www.rp3.com/downloads
1.
Connect the VTC-9 serial cable to the programming
port as shown above in Figure 2-1. Note that the key
notch on the VTC-9 cable faces to the inside of the
board.
Set your terminal communication parameters as
follows:
Baud rate: 19200
Data bits: 8
Parity: None
Stop bits: 1
2.
Connect the serial ports.
Connect the DB-9 end to the PC's COM port.. This
is determined from “Serial Port Setup” above.
3.
Power up.
Turn on or connect the power supply (if you have
not done so already).
*MCS-51(tm) BASIC V2.0
Version: CX-10
Portions Copyright(c)2008 Control
Design and
(c) 2009 Remote Processing Corp.
Build:Jan 29 2009
10:04:51
The above message should appear. If a nonsense
message appears, your terminal or PC may not be set
to the appropriate communication parameters. If the
system still does not respond, refer to
TROUBLESHOOTING later in this section.
4.
Testing.
Press the "Enter" key on your PC to verify the '>'
symbol returns.
The system is now in the “immediate mode” and is
ready for you to start programming. Type the
following program:
10
FOR X = 0 TO 2
20
PRINT “Hello ”,
30
NEXT
40
Now type RUN
The system will display:
Hello Hello Hello
Ready
>
Application Programs
Application programs are on the CD under “Basic
Demos”.
If you downloaded CX-10 basic programs, extract them
to a directory on your PC.
Programs are saved in ASCII file format. You may edit
them using Windows Notepad, Wordpad, or your word
processor.
UPLOADING AND DOWNLOADING
PROGRAMS
Downloading programs means transferring them from
your PC (or terminal) to the CX-10. Uploading means
transferring them from the CX-10 back to the PC. This
section explains how to do both of these procedures
using generalized instructions for terminal programs.
When uploading or downloading files, select ASCII text
format. XMODEM, YMODEM, or other formats are not
used.
Basic does not know when you are typing in a program
or if something else (laptop or mainframe) is sending it
characters. The upload and download file does not
contain any special codes; they are simply ASCII
characters.