News:

  • May 01, 2026, 08:09:07 PM

Login with username, password and session length

Author Topic: Questions about BRX?  (Read 163987 times)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Questions about BRX?
« Reply #60 on: March 25, 2017, 04:17:25 PM »
Well, I was just thinking about a few possibilities. For instance, I have a machine. It calculates the amount of time (in minutes) the machine runs per shift, the total production during that shift, and the average production (total production/minutes ran). I was going to make the log write those values to a file. So, if I'm writing those logs to a file anyway, I figured I could use the last 5/10 values or so to produce weekly averages, without having to write the daily values to memory locations and then calculate it.

It would be far more work to access and parse from the file, than to track it in memory. I would do something similar to the attached image. Small code...but packed...so I'll describe it:
1. The DT2EPOCH converts the current time stamp to seconds since 1970 and stores in D0.
2. The first MATH box converts seconds in D0 to a daily index of 0 to 15 (16 days, including weekends) and stores in V0.
3. The second MATH box would be run every day at the same time to store today's run time (D1) into CachedData[0 to 15]. This is a ring buffer, that just goes CachedData0 to CachedData15, and then wraps. But sure to do this every day, writing 0 on days the machine doesn't run.
4. The third MATH box calculates the average time of all non-zero CachedData values using CountIfNE and SumIfNE. CountIfNE determines the number of elements in CachedData that aren't zero. SumIfNE calcs the sum of those non-zero elements.

In the data view, V0 contains the day index, R0 contains the current average, and CachedData0-15 shows the data.

Pretty easy really and far less code than reading and parsing a log file.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Questions about BRX?
« Reply #61 on: March 27, 2017, 11:24:18 AM »
Ok, I tried replicating your code, but the only problem I had was trying to setup the array CachedData[V0]. It wouldn't work, even if I created the nicknames in the Documentation Editor. I ended up just using V[V0], but I'm still trying to find all the nifty tricks you guys use on a regular basis.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Questions about BRX?
« Reply #62 on: March 27, 2017, 11:32:40 AM »
Ok, I tried replicating your code, but the only problem I had was trying to setup the array CachedData[V0]. It wouldn't work, even if I created the nicknames in the Documentation Editor. I ended up just using V[V0], but I'm still trying to find all the nifty tricks you guys use on a regular basis.

Sorry. You have to create a memory block named CachedData. Go to Memory Config page in the System Config, and add a block like this.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Questions about BRX?
« Reply #63 on: March 27, 2017, 02:47:49 PM »
I figured it was something like that. Thanks again.

The issue I have is that the machine is powered down on weekends, and if they're not running it, sometimes they power it down. I'll probably have it update every shift daily (using a counter to index the array and an array for each shift), and then check to see when the last update was. If it was over 24h since the last update, I'll have it write a 0 for each 24 hour period. I think it won't take too much to do that, since I already have much of the code for the triggers (at shift change) and such.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Here's a BRX question.
« Reply #64 on: April 10, 2017, 01:23:47 PM »
Are sales better than expected, or were expectations too low? Three units out of stock, the "best" one backordered for over a month, ouch.

I have my "best" one already, but I sure hate to see stocking problems so soon.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Here's a BRX question.
« Reply #65 on: April 10, 2017, 02:27:12 PM »
Are sales better than expected, or were expectations too low? Three units out of stock, the "best" one backordered for over a month, ouch.

I have my "best" one already, but I sure hate to see stocking problems so soon.

Both...and neither.

The big issue was mix. We really didn't know what to expect, and we've seen far more interest in the DC models than we planned for. We're expecting some key parts in this week. If they arrive as expected, all models should be back in stock in less than a month.

Economy is heating up. Automotive is killing everyone. At the same time, this is a new product in an increasingly crowded ADC market, so there is lots of tire kicking. Lots of customers can't yet use it due to the lack of expansion analog. That will be fixed this summer. It's decent now, my prediction is that BRX will get quite hot this fall.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Questions about BRX?
« Reply #66 on: April 10, 2017, 02:38:41 PM »
Glad to hear they're moving!  My partner (recovering Idec user), wants to order one to start learning what I've told him so many times is VASTLY superior to Idec, and to Koyo as well.

Idec, while doing a few uniquely good things, IMO ranks as one of the three all-time worst PLCs (in the bad company of Delta and the Eagle Signal Micro 190)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Questions about BRX?
« Reply #67 on: April 10, 2017, 02:40:29 PM »
 :-[

Now that you mention it, those are all DC powered units. Whew! I'm not saying I wouldn't use them, but I prefer the AC powered.

I'm still getting used to the part numbers. That and spring is not my best season.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Questions about BRX?
« Reply #68 on: April 10, 2017, 03:23:35 PM »
Don't recall who it was, but maybe you remember the poster on here that joked with us that we've created a frustrating situation for him by releasing a better-than-expected feature set without the analog he needed actually use it. I think his surprise nailed it. As a percentage of ADC's entire customer base, very few people know what Do-more is really capable of, and very few know that BRX adds some very nice features to Do-more while greatly reducing the system cost. Another guy emailed me asking for help understanding where BRX fits in the market: Is it a replacement for DL06, or a replacement for DL205? I course I'll really confuse you and say "yes and no" to both. It can easily be both of those, but the others will be available for quite a while (see: DL305), so use what you are comfortable with. We'll wait.

It will take a while for people to figure out how they want to use it and it will take a while for us to get the expansion modules fully launched. But once we do and the dust settles, and obviously I'm biased, but I honestly believe that BRX could truly be your "automation foundation" and could become the go-to for big chunk of what you do.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3607
  • Darth Ladder
Re: Questions about BRX?
« Reply #69 on: April 10, 2017, 03:27:03 PM »
It makes way more power than a 205 accessible to projects that can only pay for an 06.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Mike Nash

  • Hero Member
  • *****
  • Posts: 652
Re: Questions about BRX?
« Reply #70 on: April 10, 2017, 07:20:28 PM »
Automotive is killing everyone.

I'm not sure what you mean by this. OTOH, the 12VDC capability of the BRX does look like it could interest folks.

I noticed what sounded like a relay pulling in when I powered up my BX-DM1E-36ED23.
I thought it may have energized the one relay I had wired to an output, but that wasn't it. Is there a relay inside this BRX or am I just imagining it? I tried several times and it sounds like the BRX is the source. I'm not pulling it apart to see either.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Questions about BRX?
« Reply #71 on: April 10, 2017, 07:34:11 PM »
Automotive is killing everyone.
I'm not sure what you mean by this.

I mean that the automobile manufacturers are sucking up part inventories, driving lead times for new production of some parts into 2018.

I noticed what sounded like a relay pulling in when I powered up my BX-DM1E-36ED23.
I thought it may have energized the one relay I had wired to an output, but that wasn't it. Is there a relay inside this BRX or am I just imagining it? I tried several times and it sounds like the BRX is the source. I'm not pulling it apart to see either.

No relay. Startup noise from the P/S perhaps?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Questions about BRX?
« Reply #72 on: April 11, 2017, 04:10:41 PM »
We talked a few pages back about C-More support of the Do-More symbolic language. Any word on when we'll get the C-More driver to make this interface possible? I really wanna make these numbers I've arrayed viewable, but I really don't want to have to MOVER to another range just to do it.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6154
  • Yes Pinky, Do-more will control the world!
Re: Questions about BRX?
« Reply #73 on: April 11, 2017, 04:20:28 PM »
We talked a few pages back about C-More support of the Do-More symbolic language. Any word on when we'll get the C-More driver to make this interface possible? I really wanna make these numbers I've arrayed viewable, but I really don't want to have to MOVER to another range just to do it.

I thought it was already released.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Evilbeard

  • Hero Member
  • *****
  • Posts: 160
Re: Questions about BRX?
« Reply #74 on: April 11, 2017, 04:58:38 PM »
We talked a few pages back about C-More support of the Do-More symbolic language. Any word on when we'll get the C-More driver to make this interface possible? I really wanna make these numbers I've arrayed viewable, but I really don't want to have to MOVER to another range just to do it.

I thought it was already released.

Hmmm...I have the latest C-More software, and when I import everything and try to use FirstFoot1 through FirstFoot31, I can't access them.