Chapter 3: communication with the host, 1 rs-232 basics, Chapter 3: communication with the host -1 – ElmoMC SimplIQ Software Manual User Manual

Page 16: 1 rs-232 basics -1

Advertising
background image

SimplIQ

Software Manual

MAN-SIMSW (Ver. 1.4)

3-1

Chapter 3: Communication with the Host

The

SimplIQ

drive can operate with RS-232 communication or CANopen communication.

This chapter discusses RS-232 communication. Refer to the Elmo CANopen Implementation
Manual
for detailed information about

SimplIQ

drive operation with CANopen

networking.

The

SimplIQ

drive can communicate by RS-232 with baud rates of up to 57,600 baud/

second, depending on the sampling time. Refer to the PP[N] command section in the

SimplIQ

Command Reference Manual.

3.1

RS-232 Basics

The RS-232 communication operates only between a host and a single drive. RS-232 lines
are full duplex, enabling them to carry bi-directional communications. This means that
the host can transmit to the drive at any time, without considering the current state of the
drive.

RS-232 communication consists of ASCII printable characters only, with certain
exceptions:
ƒ

The characters 0xD (carriage return)

ƒ

Certain non-printable characters used as error codes (and listed in the EC command
section in the Harmonica Command Reference Manual)

The basic syntax for RS-232 commands may be of two types:
ƒ

An assignment: <command mnemonic>{[index]}{[equal sign><value>}<terminator>

ƒ

A free evaluation: <value><terminator>

where:
ƒ

command mnemonic

Two (case sensitive) letters assigned to a command
(complete list given in

SimplIQ

Command Reference Manual).

ƒ

index

Index, if mnemonic refers to a vector parameter or
command.

ƒ

equal sign

The “=” character (optional, if the command assigns a value
to a parameter).

ƒ

value

Parameter value (optional, if the command assigns a value to
a parameter).
The parameter value may be any legitimate arithmetic or
functional expression, as explained later in this section.

ƒ

terminator

<CR> (carriage return), which is the character 0xD
(13 decimal) or “;”.

An assignment evaluates an expression and stores the result in a variable. A free
evaluation evaluates an expression and sends the result to the terminal.

Advertising