Hello to you all!
I hope there is someone who can clarify some things to me.....
Equipment used:
Firs time I thought that there is something wrong with encoder, because we run the machine and pulses read were like random: 1000, 3498, 7820, 4000,234, 2500 and so on.
Then I disconnected the encoder and connected directly to the card. Rotating it by hand, I saw that pulses were going from X to 8192, then 8192 to 0, 0 to 8192.
One rotation is 4096 pulses.
Ok, next step was opening TMPosInput configuration in Step7.
Over there, I had following parameters:
So, my conclusion was: MSB - LSB = 13 bytes
2 on the power of 13 = 8192 pulses which corresponded to the reading.
I increased the MSB from 12 to 24, and yes maximum pulses I can read then are: 2 on the power of 25 = 33554132.
But then, I connected the encoder back, and we are almost in rollover value.
Then I increased the frame lenght to 32 bits.
MSB to 30 (because this is the maximum that you can put) and I guess now i should be able to read maximum value of 2 on the power of 31 = max DINT value.
So, my question here is actually.....
What exactly is the frame lenght parameter in Step7?
Should I leave it at 25 bits. Initially, I thought that this represents the information I found with help of data sheet of my encoder (12Bit Singleturn+13Bit multiturn = 25 Bit Frame lenght???).
But if this is the case, why should my encoder be limited to only 2 to power of 24 bits resolution? Because in the data sheet there is indication that max. encoder resolution is 32Bit.
Also, with increasing the MSB to higher value, I am actually increasing the upper limit of pulses I can read?
Thanks and if something is not clear, I will try to clarify it.
Sorry if the post is messy, I came from long shift and just want to get some sleep.
Cheers!
I hope there is someone who can clarify some things to me.....
Equipment used:
- TM PosInput1 (6ES7138-6BA00-0BA0) to read the encoder pulses
- Baumer absolute encoder (EAM580-BAC.7L4G.12130.A-11206897)
Firs time I thought that there is something wrong with encoder, because we run the machine and pulses read were like random: 1000, 3498, 7820, 4000,234, 2500 and so on.
Then I disconnected the encoder and connected directly to the card. Rotating it by hand, I saw that pulses were going from X to 8192, then 8192 to 0, 0 to 8192.
One rotation is 4096 pulses.
Ok, next step was opening TMPosInput configuration in Step7.
Over there, I had following parameters:
- Frame lenght: 25
- Bit number LSB of position value: 0
- Bit number of MSB position value: 12
So, my conclusion was: MSB - LSB = 13 bytes
2 on the power of 13 = 8192 pulses which corresponded to the reading.
I increased the MSB from 12 to 24, and yes maximum pulses I can read then are: 2 on the power of 25 = 33554132.
But then, I connected the encoder back, and we are almost in rollover value.
Then I increased the frame lenght to 32 bits.
MSB to 30 (because this is the maximum that you can put) and I guess now i should be able to read maximum value of 2 on the power of 31 = max DINT value.
So, my question here is actually.....
What exactly is the frame lenght parameter in Step7?
Should I leave it at 25 bits. Initially, I thought that this represents the information I found with help of data sheet of my encoder (12Bit Singleturn+13Bit multiturn = 25 Bit Frame lenght???).
But if this is the case, why should my encoder be limited to only 2 to power of 24 bits resolution? Because in the data sheet there is indication that max. encoder resolution is 32Bit.
Also, with increasing the MSB to higher value, I am actually increasing the upper limit of pulses I can read?
Thanks and if something is not clear, I will try to clarify it.
Sorry if the post is messy, I came from long shift and just want to get some sleep.
Cheers!