Command syntax under rs485, Example "profile position mode" via rs232 – Festo Контроллер двигателя CMMD-AS User Manual

Page 41

Advertising
background image

3. Product description

Festo P.BE-CMMD-AS-HW-EN 1002NH

41

Then, with the "Download" buttons, load the changed configurations into the motor
controller and save them permanently with the "Save" button.
With a Reset (or switching off and back on) of the motor controller, the new configuration
is activated.

Command syntax under RS485

Control of the motor controller via RS485 takes place with the same objects as with
RS232. Only the syntax of the commands to read/write the objects is expanded in
comparison to the RS232.
Syntax:

XTnn:HH……HH:CC

Meanings:
XT:

Fixed constants

nn:

Node number, identical to the CANopen node number

(setting via DIP switch)
HH……HH:

Data (normal command syntax)

Note

The reply sends the following characters to the first five
positions: "XRnn:" with nn = node number of the device

All devices react to the node number 00 as "Broadcast". In this
way, each device can be addressed without knowing the node
number.

The commands of type "OW", "OR" etc. support an optional
check sum. This check sum is formed without the first five
characters.

The bootup message of the boot loader as well as the bootup
message of the firmware are sent in the RS232 mode.

Example "Profile position mode" via RS232

If the CMMD-AS is operated over RS485, control can take place just as with
operation over RS232; see chapter "RS232 interface (diagnosis/ parametrisation
interface)" (
page 35). If required, the node number is simply written in front of the
command. The node number is set via the DIP switches.
Command:

XT07:=607100:000A0000

Target position 10 revolutions send to

node 7


Advertising