Frequently send position data to PLC

Hello,
is it possible to send actual coordinates every ~0.5s to a PLC?
I tried so set up a new motion task for this but i guess this wont work..
Is there any kind of function or parameter that can monitor the coordinates?

best greetings

Comments

  • PabaPaba Germany
    edited August 2019
    Works better when using CRobT with an actual reference to Motion Task :#

    SetGO GO_y, Round((100*t_actTarget_R.trans.y)\Dec:=0);
    SetGO GO_z, Round((100*t_actTarget_R.trans.z)\Dec:=0);t_actTarget_R:=CRobT(\TaskRef:=T_ROB_RID);

    Is a cleaner solution possible?

    Post edited by Paba on
  • lemster68lemster68 United States ✭✭✭
    I don't see anything wrong with that code.
    Lee Justice
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!