One of the core elements of a motion control device is the way that you interact with it. Every motion controller will have its own command protocol, or series of rules for the communication that dictates the format of that interaction. This presentation will introduce you to Zaber's command protocols and how they are used on our motion control devices.
2. www.zaber.com • simplifying motion control
Every motion controller has its own
command protocol.
command protocol
(n.) series of rules that dictates the format of
conversation between you and the motion controller.
4. www.zaber.com • simplifying motion control
The command protocol affects:
How intuitive the controller is to use.
5. www.zaber.com • simplifying motion control
The command protocol affects:
How intuitive the controller is to use.
How quickly the controller can communicate.
6. www.zaber.com • simplifying motion control
The command protocol affects:
How intuitive the controller is to use.
How quickly the controller can communicate.
The type of device(s) that the controller can
communicate with.
7. www.zaber.com • simplifying motion control
Having an open, consistent, easy-to-
use protocol is important because...
8. www.zaber.com • simplifying motion control
Having an open, consistent, easy-to-
use protocol is important because...
It makes it easy to integrate devices quickly into an
application.
9. www.zaber.com • simplifying motion control
Having an open, consistent, easy-to-
use protocol is important because...
It makes it easy to integrate devices quickly into an
application.
It reduces the time it takes for users to become
proficient with the controls.
11. www.zaber.com • simplifying motion control
Zaber’s devices use two command
protocols.
ASCII
An easy-to-use and intuitive protocol for
communicating in plain text.
12. www.zaber.com • simplifying motion control
Zaber’s devices use two command
protocols.
ASCII
An easy-to-use and intuitive protocol for
communicating in plain text.
BINARY
A 6-byte binary protocol designed for relaying
commands in a consistent, compact format.
14. www.zaber.com • simplifying motion control
Zaber’s A- and X-Series devices can use both Binary and
ASCII protocols; T-Series can use just Binary.
ASCIIBINARY
15. www.zaber.com • simplifying motion control
Binary communicates in command numbers. ASCII
communicates in plain text.
ASCIIBINARY
16. www.zaber.com • simplifying motion control
Each protocol has its own benefits. Binary is simple,
with concise commands. ASCII is easy to use, and it
is compatible with many devices. It also offers added
support for new features.
ASCIIBINARY
17. www.zaber.com • simplifying motion control
Binary’s simplicity may limit the expandability and
complexity of its command list. While ASCII offers ease
of use, its commands do not have a consistent length.
ASCIIBINARY
18. www.zaber.com • simplifying motion control
More information about
each protocol is available
on Zaber’s Support wiki:
www.zaber.com/support
19. www.zaber.com • simplifying motion control
Now, let’s focus on each protocol and
how you can use them to communicate
with your devices.
20. www.zaber.com • simplifying motion control
First, let’s look at Binary.
BINARY
A 6-byte binary protocol designed for relaying
commands in a consistent, compact format.
21. www.zaber.com • simplifying motion control
BINARY
Every command that is sent and every response that is
received back from the controller contains three pieces
of information.
22. www.zaber.com • simplifying motion control
Device number
executing the command
(1 byte)
BINARY
Multiple devices can be chained in a series. The device
number indicates which device in a daisy-chain should
respond to the command.
23. www.zaber.com • simplifying motion control
Device number
executing the command
(1 byte)
The number of the
command or setting
(1 byte)
BINARY
The number of the command or setting indicates the
action being executed.
The number of the command or setting indicates the
action being executed.
24. www.zaber.com • simplifying motion control
Device number
executing the command
(1 byte)
The number of the
command or setting
(1 byte)
A data value
(4 bytes)
BINARY
The meaning of the data value will depend on the
command.
25. www.zaber.com • simplifying motion control
For example:
Let’s say you want to send a command to the first
device in the series (device number 1) to find the home
position (command number 1).
Command 1: 1, 1, 0, 0, 0, 0
26. www.zaber.com • simplifying motion control
For example:
Then, you want to send another command to move
forward relative to the current position (command
number 21) by 1000 microsteps.
Command 1: 1, 1, 0, 0, 0, 0
Command 2: 1, 21, 232, 3, 0, 0
27. www.zaber.com • simplifying motion control
In the first command, the data value is 0 because
the home command does not require any additional
information to run.
Command 1: 1, 1, 0, 0, 0, 0
Command 2: 1, 21, 232, 3, 0, 0
28. www.zaber.com • simplifying motion control
In the second command, the four data bytes are
arranged in order of least significant byte to most
significant byte. Software is usually used to handle the
data conversion.
Command 1: 1, 1, 0, 0, 0, 0
Command 2: 1, 21, 232, 3, 0, 0
29. www.zaber.com • simplifying motion control
Each time a command completes, the controller will
send back a response in the same format.
Command to device 1, 1, 0, 0, 0, 0
...stage retracts to home...
Response from device 1, 1, 0, 0, 0, 0
30. www.zaber.com • simplifying motion control
Now, let’s look at ASCII.
ASCII
An easy-to-use and intuitive protocol for
communicating in plain text.
31. www.zaber.com • simplifying motion control
Plain text commands
ASCII
The ASCII protocol is available on Zaber’s A-Series
devices with firmware version 6.06, and all X-Series
devices. ASCII allows for plain text communication
between a computer and a controller.
32. www.zaber.com • simplifying motion control
For example:
Let’s say you want to command a device to move to
a position 1000 microsteps forward from the current
position.
Command 1: /move rel 1000 9
33. www.zaber.com • simplifying motion control
For example:
Then, let’s say you want to command the device to find
the reference position.
Command 1: /move rel 1000
Command 2: /home
9
9
34. www.zaber.com • simplifying motion control
The controller will respond, letting you know that
the command has been received and that it will be
executed, or that the command has been rejected and
why.
Command to device /01 home
Response from device @01 1 OK IDLE -- 0
...device begins to move...
9
9
35. www.zaber.com • simplifying motion control
Simple, right?
ASCII
An easy-to-use and intuitive protocol for
communicating in plain text.
36. www.zaber.com • simplifying motion control
Besides simplicity, there are a number
of benefits to this protocol.
37. www.zaber.com • simplifying motion control
It’s simple to use because it’s text-based and
designed for readability.
38. www.zaber.com • simplifying motion control
It’s simple to use because it’s text-based and
designed for readability.
It’s easy for new users to be able to pick up
the communication quickly.
39. www.zaber.com • simplifying motion control
It’s simple to use because it’s text-based and
designed for readability.
It’s easy for new users to be able to pick up
the communication quickly.
Using ASCII characters for control allows
compatibility with a wide variety of devices,
like PLCs (programmable logic controllers).
40. www.zaber.com • simplifying motion control
Faster communication speeds are supported,
which allows for further compatibility.
41. www.zaber.com • simplifying motion control
Faster communication speeds are supported,
which allows for further compatibility.
Added support for new features and
commands, such as multiple limits,
programmable actions, and I/Os.
43. www.zaber.com • simplifying motion control
Software, such as our free, open-source
Zaber Console, facilitates the use of
these protocols on our positioners.
ASCII
Binary
44. www.zaber.com • simplifying motion control
Other programs, such as LabVIEW, can
also be used. Zaber offers LabVIEW
drivers for controlling devices with
ASCII or Binary protocol.
ASCII
Binary
45. www.zaber.com • simplifying motion control
Visit www.zaber.com/software or
email contact@zaber.com for more
information.
Don’t forget to sign
up for our newsletter
at www.zaber.com
to receive exclusive
promotions!