|
|
As with any type of communications, both the transmitting device and the
receiving device must "speak the same language". However, MACRO has
the ability to support different protocols for different devices. For example, a
controller can communicate to several amplifiers, each of which expects a
different type of command. The only requirement is that the controller and amp
be preset to respectively deliver and accept the same type of data. (This too
can be done over the ring.) The charts below illustrate the TYPE 1 protocol for
different types of amplifier interfaces and I/O equipment interfaces.
Register 0 is a 24-bit (3-byte) register. Registers 1, 2, and 3 are 16-bit
(2-byte) registers.
|
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit)
|
|
Master
Command
|
Real-Time Register 0
|
Real-Time Register 1
|
Real-Time Register 2
|
Real-Time Register 3
|
|
Slave
Feedback
|
Real-Time Register 0
|
Real-Time Register 1
|
Real-Time Register 2
|
Real-Time Register 3
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit)
|
|
Torque
Drive
|
Master Command
|
Torque Cmd.
|
|
|
Motor Flag Command
|
| |
Slave Feedback
|
Position Feedback
|
|
|
Motor Flag Status
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit) |
|
Velocity
Drive
|
Master Command
|
Velocity Cmd.
|
|
|
Motor Flag Command
|
| |
Slave Feedback
|
Position Feedback
|
|
|
Motor Flag Status
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit)
|
|
Direct
PWM
|
Master Command
|
Phase A Voltage Cmd
|
Phase B Voltage Cmd
|
Phase C Voltage Cmd
|
Motor Flag Command
|
|
Drive
|
Slave Feedback
|
Position Feedback
|
Phase A Current
|
Phase B Current
|
Motor Flag Status
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit)
|
|
Phase
Current
|
Master Command
|
Phase A Current
Cmd
|
Phase B Current Cmd.
|
|
Motor Flag Command
|
|
Drive
|
Slave Feedback
|
Position Feedback
|
|
|
Motor Flag Status
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit) |
|
Position
Drive
|
Master Command
|
Bit Position Command
(24 LSBs)
|
Bit Position Command
(16 MSBs)
|
|
Motor Flag Command
|
| |
Slave Feedback
|
Position Feedback
(24 LSBs)
|
Position Feedback
(16 MSBs)
|
|
Motor Flag Status
|
| |
Reg
#
|
0
(24-bit)
|
1
(16-bit)
|
2
(16-bit)
|
3
(16-bit)
|
|
I/O Devices
|
Master Command
|
Bits 0-23
|
Bits 24-39
|
Bits 40-55
|
Bits 56-71
|
| |
Slave Feedback
|
Bits 0-23
|
Bits 24-39
|
Bits 40-55
|
Bits 56-71
|
|
As shown above, each packet of data for a node contains 4
registers: 0, 1, 2, and 3. Register 0 is a 24-bit register for real time data.
Registers 1, 2, and 3 are 16-bit registers for real-time data. Each node has a
command packet of 4 registers and a feedback packet of 4 registers. The command
and feedback packets slip into the same data packet for the node (upon entering
the addressed node, the data packet is a command packet, upon exiting it is a
feedback packet).
|