Jump to content
OMRON Forums

teaguehall

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by teaguehall

  1. I'm hoping to get some type of confirmation on this issue.

     

    When a PMAC script subprogram contains a call to the system timer (i.e. Sys.Time), the subprogram does not appear to function correctly when called from the command line.

     

    For example:

     

    open subprog timer(time)

     

    local stop_time;

    stop_time = sys.time + time;

     

    while(sys.time < stop_time) { };

     

    close

     

    This program can be called just fine from within a PLC, however, it appears to get hung when called with a 'cx' command from the command line. It appears that sys.time doesn't increment.

     

    PMAC firmware version 2.1.1.3

     

    Edit: I'm thinking this is due to the fact that the subprogram isn't being called from within a PLC, thus it doesn't adhere to the typical PLC scan engine. If this is the case, the better question would be "how does a script subprogram execute if not called within a PLC?"

×
×
  • Create New...