
62
SM-Universal Encoder Plus User Guide
www.controltechniques.com
Issue Number: 6
The following commands are supported:
The following is an example of the response when the encoder to send position
command is used.
The example shown above is for an encoder with 12 bits representing the turns and 13
bits representing the position within a turn. The position command only requires one
byte to be sent to the encoder. Bits 14 and 13 can both be set in the transmit register to
indicate that this is both the first and last byte of the message.
If any other command is used then the response is as follows:
Example of a SC.EndAt positional data transfer via serial comms
Requesting the position from a SC.EndAt encoder (12/13 = Turns/Position).
To request the position the following data output must be sent:
The 16-bit word to be placed through drive serial comms, or a SM-Applications, is made
up of a transfer command byte (the highest byte) and the data to be transferred (the
least significant byte). To alert the SM-Universal Encoder Plus to the fact that there is
new data in Pr
x.42
, the most significant bit of the transfer command byte (bit 15 of the
full word) must be set. To alert the SM-Universal Encoder Plus that this is the first byte
to be transferred, bit 13 of the full word should be high. The first byte to be sent is the
command, so the full word to be placed in Pr
x.42
is below in binary:
Code
Command
Address
Data
0x00
Encoder to send position
Don’t care
Don’t care
0x01
Selection of memory area
MRS code
Don’t care
0x03
Encoder to receive parameter
Address
Data
0x04
Encoder to send parameter
Address
Don’t care
0x05
Encoder to receive reset
Don’t care
Don’t care
LS byte
1
st
byte
Bit 7-0 = 0
Bit 7-0 = 0
Bit 7-0 = 0
Bit 7-0 = 0
Bits 5-0 = 0
Bit 6 = Alarm bit
Bit 7 = Bit 0 of position
Bits 7-0 = Bits 8-1 of position
Bits 3-0 = Bits 12-9 of position
Bits 7-4 = Bits 3-0 of turns
MS byte
8
th
byte
Bits 7-0 = Bits 11-4 of turns
Address
1
st
byte
Data (LSB)
Data (MSB)
3
rd
byte
Command = 0x00
1
st
byte
Address = not needed = 0x00
Data (LSB) = not needed = 0x00
Data (MSB) = not needed = 0x00
4
th
byte
Содержание SM-Universal Encoder Plus
Страница 73: ...SM Universal Encoder Plus User Guide 73 Issue Number 6 www controltechniques com ...
Страница 112: ...0471 0005 06 ...