I am working on a milling machine. The machine has multiple milling tools which are moved with motor and spindle. The position is measured with incremental encoder which is connected directly to the spindle, that means 1 rotation of spindle (10 mm per turn) is directly translated to 1 rotation of encoder (2500 pulses per turn). The position will be set only manually, since it is meant for correction of tools.
Previously I worked a lot with VisiLogic, but this is my first project with UniLogic.
At the moment I am having problem with the position. In the VisiLogic you could define integer type which was used for encoder, but in UniLogic it is generated automatically (UINT32). Since I need to count position in both directions is there any way to change unsigned integer type to signed?
I have already tried with linearization, but at compiling i get error message, that there can be used only same data types.
Did anyone encounter similar problem? Maybe any ideas for workaround?
Thank you for your replys