yyterminal Posted March 4, 2022 Share Posted March 4, 2022 Hi all, I found that once #1p is issued from Power PMAC, we could get R position from Terminal. However, once cmd"#1p" is executed within motion programs, we couldn't get such message from Terminal. So I just wonder for some reason, the message report from motion program is disabled? Thanks. Quote Link to comment Share on other sites More sharing options...
Alex Anikstein Posted March 7, 2022 Share Posted March 7, 2022 Typically, motion programs would use the "pread" command, which would load all axis positions into pre-set variables, from which the motion program could then read them. The "#1p" command does not return the position "to the terminal", it returns it to wherever the command is issued. If you issue it in the terminal, the response goes there, and if you issue it to a motion program, the response would get issued to the motion program--however, it doesn't have any way of receiving or displaying it, so it effectively gets lost. Quote Link to comment Share on other sites More sharing options...
yyterminal Posted March 7, 2022 Author Share Posted March 7, 2022 1 minute ago, AAnikstein said: Typically, motion programs would use the "pread" command, which would load all axis positions into pre-set variables, from which the motion program could then read them. The "#1p" command does not return the position "to the terminal", it returns it to wherever the command is issued. If you issue it in the terminal, the response goes there, and if you issue it to a motion program, the response would get issued to the motion program--however, it doesn't have any way of receiving or displaying it, so it effectively gets lost. I see. Thanks for the clarification. Yes, it returns its result to the caller which makes sense. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.