News:

  • December 02, 2026, 07:20:51 AM

Login with username, password and session length

Recent Posts

Pages: [1] 2 3 ... 10
1
Failing at the 30 second mark looks a bit suspicious. In the past we've seen servers terminate a TCP connection at 30 seconds due to inactivity. If the connection is using HTTPS then the BRX CPUs encryption engine is being used, but by default it does not run to completion on one scan because that could cause huge swings in scan time, so it runs in a time slice on successive scan to completion. You can allocate more time per scan by setting DST68 ($TLSTimeSlice) which is the amount of time (in microseconds) the SSL / TLS encryption engine is allowed to run on each scan when trying to establish an encrypted connection to a server.

You might try bumping that up to a really big number to see if that changes the problem so that you know where the problem is coming in.

Another thing is if the HTTPCMD instruction itself is in a program code block, that too could be getting time-sliced ... try moving it to the Main program and see if that changes anything as well.
2
Do-more CPUs and Do-more Designer Software / Re: BRX goes invisible on VLAN
« Last post by Kristjan on December 01, 2026, 12:36:52 PM »
Thank you for the feedback franji1,

In the cases where IT wants us to have our devices on DHCP (which we reluctantly accept), we always ask them to allocate fixed IP-addresses to given MAC-addresses. I.e. we dont set static IP-address on the PLC but it always gets the same IP-address from the DHCP server.

What happens if the DHCP server for some reason (timing or security policy?) doesn't respond to BRX with an IP-address within a minute? Does the BRX give up and just set a random 169.254.x.x or 0.0.0.0 IP-address? And does a DHCP-enabled BRX not periodically broadcast it's MAC-address if it is not getting any response from a DHCP server?
3
Do-more CPUs and Do-more Designer Software / Re: BRX goes invisible on VLAN
« Last post by franji1 on December 01, 2026, 08:43:09 AM »
Realize DHCP is recommended for Clients.  Servers (i.e. a PLC that serves a Do-more Designer client on a PC) should have fixed IP Addresses.

Technically, DHCP can change the IP address of the client whenever it wants.  This causes issues for device functioning as a server.  However, you can configure your DHCP to ALWAYS assign the same IP Address of a specific MAC Address.

Do you know for sure what the IP Addresses are and if they are "static" (i.e. DHCP service ALWAYS assigns the same IP Address based on the client's MAC address?)
4
Do-more CPUs and Do-more Designer Software / Re: BRX goes invisible on VLAN
« Last post by Kristjan on December 01, 2026, 08:32:49 AM »
We seem to be having this issue on several sites where the PLC is on DHCP. I want to better understand the negotiation that is done between the PLC and the DHCP server? Is it something like:
1. Power on -> Link up
2. BRX broadcasts a package with the MAC address asks for a DHCP server
3. DHCP server sees MAC address and offers an IP-address (we ask for reserved IP-addresses)
4. BRX takes the IP-address and acknowledges

Do we have known issues with BRX not being patient enough waiting for an IP-address?

We have a site where only the BRX goes invisible but a C-More and a Modbus RTU/TCP gateway maintain their connectivity.

Is it recommended to use static IP-addresses on BRX?
5
franji1, thanks for your direction - I hadn't used the DMLogger before.
The attached "DMLogger - Buffer greater than 10000 bytes.csv" shows that the HTTPCMD timed out at a buffer size of 10937.

I put in an accumulating timer to capture the run time of the instruction from initiation until completion with a "success" or "error" bit.
I was looking to see if the run time increased by the size of the buffer until hitting some kind of limit.
Turns out from the data below that the run time for "successful" runs was approximately steady around an average of 3 seconds.
"Error" runs with buffer sizes starting around 10000 bytes seemed to choke the instruction and time out after 30 seconds of run time.
Any ideas what is could cause this error? Could this be caused by a bug in the HTTPCMD instruction code? Comm problems with the API?

The results for running successively larger files by approximately 500 bytes are:
Run #   File size    Success    Error    Run Time (secs)
1          1482         *                          3.548
2          1964         *                          2.508
3          2440         *                          2.698
4          2919         *                          3.658
5          3398         *                          3.293
 |            |             |                            |       (similar data for runs 6-14)
15        8195         *                          2.481
16        8676         *                          3.303
17        9157         *                          2.734
18        9638                      *           30.031
19      10120                      *           30.039
20      10602         *                          4.248
21      11084                      *           30.042
22      11566                      *           30.043
23      12048                      *           30.037
24      12530                      *           30.080
25      13012                      *           30.031
6
Do-more CPUs and Do-more Designer Software / Re: BRX won't come out of PROGRAM mode
« Last post by Kristjan on November 24, 2026, 05:16:04 AM »
We have this exact error on two PLCs in the field (screenshot attached). Both PLCs with firmware 2.11.1. The PLCs are communicating with a C-More HMI and a SCADA system over the LAN and after some time the communcation goes down. DST72 is 3. Power cycling the PLC fixes the issue.

Is there any way to programmatically refresh the TCP/IP stack? Other than REBOOT? Or is there any facility in DoMore that can prevent this from happening?
7
Do-more CPUs and Do-more Designer Software / BRX goes invisible on VLAN
« Last post by Kristjan on November 24, 2026, 04:47:00 AM »
We installed a BX-DM1E-36ER3-D a few weeks ago, it is connected directly to a managed switch and belongs to the OT-VLAN. Our SCADA server is on the same OT-VLAN and communication was fine for a few weeks and then disappeared from the SCADA server. The IT-guys were able to ping the PLC from their management console but we were unable to ping from the SCADA server. Power cycling the PLC didn't help, RUN-PGM-RUN transition didn't help. We installed the USB-POM, set static IP-address and were still unable to connect to the PLC on the Ethernet port directly.

We ended up replacing the PLC and got back the communication to the SCADA server. When we came back to the office a few hours later we were able to connect to the PLC on Ethernet.

Anyone got a clue what might be going on? Why is the PLC responding to ping from the network management console and not from the SCADA server? How can the PLC Ethernet port lock up like this?
8
For Do-more PLCs Fatal errors/faults are truly that.  If you divide by 0, or increment beyond the range of an integer, it shows grace.  It may roll over (or 2's complement version of rolling over), but the firmware won't flag that as fatal.  It will issue warnings, and sometimes you can ignore them, sometimes you shouldn't.  That's all up to you.

I just checked Do-more INC.  It clamps at 2147483647.  But if you are using a smaller sized integer other than 32 bit signed int, it WILL do the "roll over" thing.  Unsigned 16 bit V rolls over from 65535 to 0 (no status bits come on).  Signed 16 bit N does the 2's complement roll over from 32767 to -32768 (no status bits come on).

I also checked that INC does set the ST133 ($Overflow) bit when attempting to increment 2147483647.  However, it does NOT set ST133 when doing INC on V or N (the overflow flag is set based on the width of the internal architected 32 bit math stack, not the data type of the parameter in the INC instruction).
9
Thanks!   I faulted out a Compact Logix a few years ago by entering a number larger than the instruction could take.  It shut down production for hours.
Then an operator accidently put in a negative number on a different Compact Logix and it faulted that PLC.  Just wanted to double check!
10
Do-more, INC instruction on signed 2's complement D will go from 2,147,483,647 hours (over 245,000 years) to -2,147,483,648 (0x7FFFFFFF to 0x80000000).

Not sure about behavior of UDC in DirectLOGIC, which utilizes a 32 bit BCD counter.  So it can go up to 99,999,999 hours BCD, so after 11,000 years.

Remember to use Retentive Memory and to replace the battery at the recommended intervals.
:-D

Pages: [1] 2 3 ... 10