3 rs-232 protocol – New Era NE-500 Multi-Phaser Programmable OEM Syringe User Manual

Page 32

Advertising
background image

New Era Pump Systems Inc.

www.SyringePump.com

Model NE-500/NE-501 Multi-Phaser™

Publication #1200-02

27

09/18/14

8.3 RS-232 Protocol

When the pump is used in a multi-pump network configuration, precede each command with a pump address.
Pumps will ignore all commands that do not have their defined network address. If the network address is not
specified in the command, the address will default to 0.

After a command is sent to the pump, the pump will not accept any further communications until the current
command has been processed. Completion of the command processing is indicated when the first byte of the
response packet is transmitted

Communications to and from the pump use the following data frame:

Supported RS-232 Data Frames
Baud rate:

19200

Frame:

10 bit data frame (8N1):

Start bit:

1

Data bits:

8

Stop bits:

1

Parity: None

Every command received by a pump in the network is acknowledged by the pump with a response packet that
includes a status character indicating the current operational state of the pump.

Two packet protocols are supported, Basic and Safe. The enabled communications protocol is stored in non-
volatile memory, and therefore will be in effect at power up. Safe Mode provides a safer communications
protocol than Basic Mode. Safe Mode detects corrupted data and loss of communication, as well as
automatically transmitting status packets when an alarm occurs.

Considering that the 19200 baud rate communicates at 52

µs per bit, a small glitch on the RS-232 cable,

flipping a single bit, can convert a transmitted infusion rate of 100 mL/hr into 900 mL/hr, the need for the Safe
Mode in a production environment is evident. However, Basic Mode is excellent for simplifying early
development of a control program.

While in the Basic Mode, the pump will accept either communications protocol, Basic or Safe. Though the
response packet will be in the current communications mode. This allows a computer’s communication’s
driver to be designed with just one mode. A Safe Mode communications driver can send a ‘SAF’ command to
the pump in the Safe Mode protocol while the pump is in Basic Mode. The response to the ‘SAF’ command,
enabling Safe Mode, would then be in the Safe Mode protocol.

8.3.1

RS-232 General Syntax Legend

The following syntax expansion legend is common to all syntax expansions:
Except where indicated, all command and response characters are ASCII data.

<float> => <f> [ <float> ]

Floating point number. Maximum of 4 digits plus 1
decimal point. Maximum of 3 digits to the right of the
decimal point.

<volume units> => UL

µL (microliters)

ML

mL (milliliters)

<TTL level> => 1

TTL high level

0

TTL low level

<on-off> =>

1

On, enabled

0

Off, disabled

<expansion pin> => { 1 | 2 | 3 | 4 | 5 }

Expansion port pin. Valid values: 1 to 5

<phase data> => <n> [<n>]

Program Phase number. Valid values: 1 to 41

<count data> => <n> [<n>]

Valid values: 1 to 99

<number data> => <n> [<n>]

Valid values: 0 to 99

<text> => "any printable character" [<text>]
<f> => { <n> | . }

Floating point digits

<n> => { 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 }

Digits

<byte> => “one byte of any data”
( )

One byte of data expressed as (0xhh), where ‘hh’ is the
data in hexadecimal.

Advertising
This manual is related to the following products: