Jump to content
OMRON Forums

yyterminal

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by yyterminal

  1. 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.

  2. 6 minutes ago, AAnikstein said:

    Somewhat. You can use Linux commands from Motion Programs or PLCs by using the "system" command, potentially in conjunction with "Ldata.SystemCmdStatus" and/or "sendallsystemcmds". If this is in relation to your other thread, though, you are better off just using the "send" command.

     

    Sending Linux commands from Motion Programs/PLCs may not work exactly as you want, depending on the command. If the command is not "instantaneous" (such as if it requires waiting for some response/other action to "finish"), it may run into issues. For echo, I would not expect this to cause many problems, though.

    Thanks very muchAAnikstein for your suggestions in both threads:

    In fact, I tested a C Background program that will be compiled into a .out file which could be further invoked by Linux.

    This approach seems to be working in that from SSH connection, instead of entering the STDIN Open for ASCII Input, we could call that .out file to monitor status of specific variable and use C command of printf to send that message to the Terminal where could be obtained by its caller.

    Thanks.

  3. 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.

×
×
  • Create New...