Beckhoff position memory--TwinCAT's processing of absolute encoder overflow turns--taking Inovance IS620N as an example

First configure the servo as follows:
insert image description here
insert image description here

insert image description here
According to the servo manual and the value fed back by the encoder, the number of pulses per revolution and the maximum number of memory turns:
Model: IS620N
Encoder digits: 8388608

Maximum: 2149498568

Minimum: -2149498568

The maximum number of turns is 256 2=512 turns,
insert image description here
so we can get
the structural composition of the Inovance encoder:
a total of 32 bits: 23 bits for the accuracy station, and 9 bits for the number of turns, so 8388608
256
is reflected to the NC: that is, the lower 32 bits is the current feedback from the encoder

insert image description here
That is to say, when the NC is powered off, the calculation of the encoder position is as follows: the high 32-bit memory overflows the number of turns, and the low 32-bit memory the feedback of the current encoder, so as to calculate the actual NC value: Therefore, in practice, for a multi-turn absolute value
insert image description here
encoder Among them, if the number of turns is not exceeded, it can be directly calculated based on the encoder feedback pulse. If the number of turns is exceeded, the calculation of the number of overflow turns is required, and the value needs to be kept in the PLC when power is off.

Guess you like

Origin blog.csdn.net/weixin_41883890/article/details/128917254