Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading Motion Prog
#1
My c program receives a message from an HMI and creates a motion program using the Command() function.
is there anyway to read the motion program after it was created from the IDE or any other way?
Reply
#2
Use the on-line "list {program buffer}" command to report the contents of the program buffer.
Reply
#3
example:
Code:
list prog 1
Reply
#4
(05-23-2019, 04:43 PM)Eric Hotchkiss Wrote: example:
Code:
list prog 1

Hello again,

is it possible to read the program contents also in C?

If not, what would be the best way to get it?

We send trajectories in a simple protocol to the PMAC.
its always a tupel of 3:
[movetime, axis1 endposition, axis2 endposition]

somebody wanted the possibility to readout a trajectory (although they have to send it first, so they should know what they have sent...)

So I'm facing either "parse the output of 'list prog x'" or perhaps there exists and easier way.
I would rather not parse strings ;)

Greetings,
Georg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)