Hello,
little beginner problem. I have written the following code to get the current position of the conveyor (JT7) and jump, depending of the position to a label. I'm still waiting for my K-Resot license, but i hope this works.
HERE ca_currpos
DECOMPOSE ca_cnvpos[1] = ca_currpos
IF ca_cnvpos[7] < 500 GOTO idelpos
The question is now. Can one do anything to make this more elegant and compact?
like this
IF GET_CONV_POS(7) < 500 GOTO idelpos
I could not figure out how to write custom functions with return value. Is that not possible?
thanks
Torsten