
SM-Universal Encoder Plus User Guide
63
Issue Number: 6
www.controltechniques.com
Most significant end
1010 0000
: 000
0000
Transfer Command
: Data to transfer
0xa0
:
0x00
Gives the decimal number 40960.
Once placed into Pr
x.42
, the parameter will be read by the SM-Universal Encoder Plus
and its value returned to zero to signify that the next word can be entered.
The next two words only require the most significant bit to be high:
32768
32768
Once placed into the Pr
x.42
, the parameter will be read by the SM-Universal Encoder
Plus and its value returned to zero to signify that the next word can be entered. This is
the last byte required to send so bit 15 and bit 14 of the full word must be set. The data
byte to be sent is the read position command 0x42. The last byte to be sent is the most
significant byte of data, so the full word to be placed in x.42 is below in binary:
Most significant end
1100 0000
: 0000
0000
Transfer Command
: Data to transfer
0xc0
:
0x00
Gives the decimal number 49152.
Once placed into the Pr
x.42
, the parameter will be read by the option and its value
returned to zero to signify that the data has been sent. Next the receive register Pr
x.43
should be read. If the most significant bit is high (if the value is equal to or higher than
32768) new data has been placed there by the SM-Universal Encoder Plus. This data
should be read by the user and then the Pr
x.43
should be set to zero by the user to
alert the SM-Universal Encoder Plus that the next word should be placed into this
parameter.
In this particular example the position with SinCos interpolation according to Pr
x.04
and
Pr
x.05
was turn 1860 and position 59887. The position requires dividing by 16 to
produce a 13-bit position as will be given from the read position data transfer, this gives
a position of 7485. The returned data from the encoder and read through Pr
x.43
is
given below:
All the returned values have been offset by 32768, which is the most significant bit. The
last byte has an addition offset of 16384 to denote that it is the last byte.
Word number
Returned value
Data in decimal
Data in binary
1
32768
00
0000 0000
2
32768
00
0000 0000
3
32768
00
0000 0000
4
32768
00
0000 0000
5
32768
00
0000 0000
6
32927
159
1001 1111
7
32846
78
0100 1110
8
49268
116
0111 0100