Hi,
I am in need of help to fix a software for positioning system on a sawmill. The PLC I use is a CP1E, positioning is done with a E6C2 - 600 pulse incremental encoder. Controlled by weintek HMI.
I am having trouble getting my positioning to be exact and sometimes it can vary by as much as +-1/8". I put the code in attachment, if you look at the "auto_down" section, that would probably be the simplest place to start looking. I would much appreciate any feedback on possible flaws in my coding or the way I put it together.
Thank you,
Stephane
4221 V2.4 (2020).cxp