News:

  • August 23, 2026, 03:20:27 AM

Login with username, password and session length

Author Topic: HTTP Command  (Read 6152 times)

pbw

  • Hero Member
  • *****
  • Posts: 127
HTTP Command
« on: February 26, 2020, 07:47:15 PM »
I have 12 devices that a BRX is pulling data from via HTTPCMD. I'm polling them once every second. I set it up like in the picture and it works.
Then I noticed that this command is fully asynchronous. Quoting the help file"Another consideration is that most instructions in this class have success and error status bits that are set to mark the completion of the instruction. To make sure that these instructions operate as designed, the ladder logic must stay enabled until these instructions have completed and set the state of their status bits."
Would there be anything to gain by removing the one shot? Just trying to be careful and avoid unforeseen headaches.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: HTTP Command
« Reply #1 on: February 27, 2020, 07:14:36 AM »
"Active" here does not mean "has power flow".  It means that the instruction itself must be scanned by the engine every scan until it has completed.  What that means is that it can't be in a stage that you jump out of pre-maturely (because disabled stages are NOT scanned), or in a program code-block that has been EXITed pre-maturely (because EXITed programs are also not scanned).

The edge bit is for firing the instruction, but the instruction remains active as long as it takes to completely execute that instruction asynchronously across multiple scans, so the stage or code-block it is executing in must remain active.

pbw

  • Hero Member
  • *****
  • Posts: 127
Re: HTTP Command
« Reply #2 on: February 27, 2020, 09:18:44 AM »
Thanks for clearing that up.