5/17/2020 7:41 PM | |
Joined: 3/30/2020 Last visit: 11/11/2024 Posts: 4944 Rating: (1010) |
Hello. Have a look at the attached SCL code. You did not mention all the detail required, so tags were used that needs assignment. The end result is a displacement given as a REAL number. Does this help you? (preview) Attachmentscl-turn-position.txt (779 Downloads) |
Last edited by: qwazee at: 05/17/2020 19:42:22Last edited by: qwazee at: 05/17/2020 19:46:47Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to1 thankful Users |
5/18/2020 12:02 AM | |
Joined: 3/30/2020 Last visit: 11/11/2024 Posts: 4944 Rating: (1010) |
Hello. Your instinct is not far off -- but allow me to fill in the detail. |
Last edited by: qwazee at: 05/18/2020 00:03:32activate hyperlink Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to1 thankful Users |
5/19/2020 10:02 PM | |
Joined: 3/9/2018 Last visit: 10/3/2024 Posts: 65 Rating: (0) |
hi, Axis work as rotary, so I can reset count value for every turn, I activated external sync input for Z phase and it automatically resets count value of encoder when sync input gets high every rotating. encBias is desired zero point of the axis setted by manuel, In the first time axis will be rotated to base point as manuel and reading value at base point, the reading value is entering as an ofset value to the encBias in the formula. so My zero angle value will be shifted the base point of the axis. I can use hw interrupt but this seems easier :/ check attachment please. AttachmentSample for forum.zip (686 Downloads) |
Follow us on