Getting started with rs-232 – Next Advance SP1070-M User Manual

Page 51

Advertising
background image

NEXT>>>ADVANCE

www.nextadvance.com

SP1000 series operator’s manual

Manual SP1000 series

44

This is a special system command that will be accepted by the pump regardless of its current address. Once
set, the pump will only respond to commands with the set address and at the specified baud rate.

Note: Once DUAL or RECP is set, the pump will only respond to commands that are preceded by the ‘*’
character. To exit DUAL or RECP mode, reset the address: * ADR 0

Example: *ADR

Query current address setting

*ADR 3

Set pump network address to 3. The pump will now only respond to
commands with address 3

*ADR 5 B 1200

Set the pump network address to 5 and the baud rate to 1200. The
command response will be at 1200 baud

ENABLE SAFE COMMUNICATIONS MODE

SAF [ <time out> ]

Set/query Safe communications mode setting.
<time out> => <n> [ <n> [ <n> ] ]
<time out> Valid range: 0 to 255.

If <time out> = 0 then Basic communication mode is set, disabling Safe mode,

If <time out> > 0 then Safe communications mode is enabled. After the reception of this
command, valid communications must be received every <time out> seconds.

FIRMWARE VERSION QUERY

VER

Response: NE<model>V <n> . <nn>

where ‘<n>.<nn>‘ is current firmware version number.

Set is not applicable.

MASTER PROGRAM RESET

* RESET

Clears program memory and resets communication parameters to Basic mode and address 0.

This is a special system command that will be accepted by the pump regardless of its current address.

10.5

Getting Started With RS-232

Before beginning to develop pump control software for a computer, first setup and experiment with the
pump’s communication. After attaching the pump to the computer, run a terminal emulation Program on
the computer. A generic terminal emulator, supplied as standard software with many computers, can be
used to communicate with the pump in the Basic communications mode.

Next Advance Inc. supplies a terminal emulator, for demonstration purposes only, which allows more
complex control of the pump. Also, this terminal emulator contains a “Pump Programming Language”
(PPL™), which allows Pumping Programs to be developed using symbolic text, modified, and stored in
computer files, then uploaded to the pump. In addition, a Pumping Program generator spreadsheet is
available to assist in developing a Pumping Program and to create the text file for uploading to a pump.

With a generic terminal emulator, setup the terminal emulator with the same baud rate as the pump and
with an 8 bit data, no parity, and 1 stop bit (8N1) data frame. Set the communications port to the port that
is attached to the pump. Also enable local echo (half-duplex) and turn flow control off.

From the terminal emulator, you can interactively control the pump by typing in commands on your
computer and seeing the pump’s responses on your screen. This will give you a feel for how the
commands work in addition to allowing you to quickly develop the control sequence that will eventually be
coded into the software being developed.

The final benefit of using a terminal emulator is the elimination of several variables if the control software
does not work properly. If the pump works correctly with the terminal emulator, then this verifies that the
hardware is working properly and will work with any software. Any communications problems can then be
narrowed down to the control software.

Advertising
This manual is related to the following products: