Example Of Endat Transfer: Read Position; Example Of Endat Transfer: Encoder Send Parameter - Control Techniques unidrive sp Advanced User's Manual

Universal variable speed ac drive for induction and servo motors
Hide thumbs Also See for unidrive sp:
Table of Contents

Advertisement

Menu 3
Parameter
Keypad and
All modes
structure
display
If any other command is used then the response is as follows (encoder to drive).
Address
Data (LSB)
Data (MSB)

Example of EnDat transfer: Read position

Disable drive encoder position check by setting Pr 90.21 to one. This should be set back to zero at the end of the transfer if encoder position checking
is required.
Transfer the "read position" message to the encoder comms buffer by writing the sequence of words shown in the table below to Pr 90.22. A check
should be carried out before each word is written to ensure that the parameter is zero (i.e. the drive has taken any previous data).
Bit 15
Bit 14
0xa000
1
0
0xc000
1
1
The second word contains the address which is not required for the command, but has been passed to the drive so that a word with bit 14 set to one
is received by the drive to initiate the data transfer to the encoder. When the encoder response has been received by the drive the first byte of the
message will be placed in the least significant byte of Pr 90.23 and bit 15 will be set to one. This data should be read and the parameter cleared so
that the drive will put the next byte into this parameter. The sequence of data that could appear in Pr 90.23 for an encoder with 12 turns bits and 13
position bits is shown in the table below.
Bit 15
Bit 14
0x8000
1
0
0x8000
1
0
0x8000
1
0
0x8000
1
0
0x8000
1
0
0x809f
1
0
0x804e
1
0
0xc074
1
1
Turns = 0111 0100 0100 = 0x744
Position = 1 1101 0011 1110 = 0x1d3e
Alarm bit = 0

Example of EnDat transfer: Encoder send parameter

Data written to Pr 90.22
Bit 15
Bit 14
0xa003
1
0
0x8000
1
0
0x8000
1
0
0xc000
1
1
Data read from Pr 90.23
Bit 15
Bit 14
0x8000
1
0
0x8012
1
0
0x8034
1
1
The data is the parameter at address zero is 0x1234.
74
Parameter
Parameter
x.00
description format
st
1
byte
rd
3
byte
Bit 13
Data
1
0x00
Read position command
0
0x00
Address
Bit 13
Data
0
0x00
0
0x00
0
0x00
0
0x00
0
0x00
Bit7 = bit 0 of position, Bit6 = alarm bit
0
0x9f
Bits 8-1 of position
0
0x4e
Bits 3-0 of turns and 12-9 of position
0
0x74
Bits 11-4 of turns
Bit 13
Data
1
0x03
Encoder to send parameter command
0
0x00
Address zero
0
0x00
Data (not required)
0
0x00
Data (not required)
Bit 13
Data
0
0x00
Address
0
0x12
Data
0
0x34
Data
www.controltechniques.com
http://nicontrols.com
Advanced parameter
Serial comms
Macros
descriptions
Electronic
Performance
protocol
nameplate
Unidrive SP Advanced User Guide
Issue Number: 7
Feature look-
up table

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the unidrive sp and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF