I have a Mitsubishi Melfa RV-2F-D with CR751-D controller. I'm using RTToolBox2 to develop my program, and I need to manipulate the coordinate value of Y axis of my base while my main programming it's running.
Explaining the idea:
I want to follow my workpiece in a conveyor. To do that, I have an enconder on my conveyor and it's sending pulses to an PLC, wich calculate the conveyor position. This value I will send to an variable in my robot, through Profinet and will assumpt that value to my base Y axis coordinate.
I saw in the manual this command (Base), but I couldn't edit the second argument (Y) from a constant to a variable
I tried something like this:
1 MVS P1
2 M1 = M1 + 1
3 Base (0, M1, 0, 0, 0, 0)
but I get syntax erro on line 3.
Can anyone give me some tips of how to do this?
Thanks in advance