Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

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

  • Paba
    Paba
    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);
    <code>SetGO GO_z, Round((100*t_actTarget_R.trans.z)\Dec:=0);t_actTarget_R:=CRobT(\TaskRef:=T_ROB_RID);<br>SetGO GO_x, Round((100*t_actTarget_R.trans.x)\Dec:=0);<br>

    Is a cleaner solution possible?

    Post edited by Paba on
  • I don't see anything wrong with that code.
    Lee Justice