Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JRobinson

Pages: [1]
1
Technical support / Re:DATE update after midnight
« on: November 18, 2016, 12:53:23 AM »
Thanks for the help.

I will implement the update disable method and see if that resolves the problem. We use the RTC module to provide non volatile clock ( and more FRAM) so only the power-up loading is important in our application.


2
Technical support / Re:DATE update after midnight
« on: November 16, 2016, 03:38:52 AM »
For Gary,

I am an 'old guy' too, keeping 200 of the PLCs working.

Thanks for the comprehensive response. I really appreciate the time you have given this.

I don't think the problem is the update ripple. The log below is the time-stamps from an hour of responses  from midnight. As the log is sequential in time, as received, you can see the problem individuals.
;2016/11/15 23:57:20;
;2016/11/15 0:1:46;
;2016/11/16 0:2:57;
;2016/11/16 0:6:10;
;2016/11/16 0:8:58;
;2016/11/15 0:11:39;
;2016/11/16 0:12:11;
;2016/11/16 0:15:29;
;2016/11/16 0:16:16;
;2016/11/16 0:21:27;
;2016/11/16 0:22:7;
;2016/11/15 0:22:51;
;2016/11/16 0:22:33;
;2016/11/16 0:26:26;
;2016/11/16 0:28:33;
;2016/11/16 0:43:23;
;2016/11/16 0:52:10;
;2016/11/16 0:54:13;
;2016/11/16 0:54:1;
;2016/11/16 0:55:44;
;2016/11/16 0:57:29;
;2016/11/16 1:8:14;
That night there were 3

I will try some comparisons, but I suspect the problem isn't transitory but some mechanism in the firmware is delaying the date update till up to 25 minutes after midnight. I never see the problem after about 25 minutes after midnight.

The easy work-around is in the server, simply disbelieving timestamps that are close to exactly a day out for 30 minutes after midnight. I get another report at midday where this problem doesn't happen so can do real updates then.  It is, however, an effect that would be good to understand better.










3
Technical support / Re:DATE update after midnight
« on: November 16, 2016, 03:17:33 AM »
For Support:

Firmware of 4 persistent offenders is r82A. Found some r84G devices not doing this. Doesn't always happen on r82A devices.

The PLCs send a timestamp to our propriety server, every 12 hours. The server compares the timestamp to local time and updates the PLC time if more than a few minutes out. It is all done in text as we do not require accurate time. The intention is to manage daylight saving and time-zones.

The problem only happens for timestamps between 00:00 and about 00:25 (HH:MM) after midnight. Each time, the DAY register hasn't yet updated. It looks like the DAY (DATE[3]) register is not updating until about 25 past midnight.

 


4
Technical support / DATE update after midnight
« on: November 13, 2016, 05:30:58 PM »
I have a number of FMD88-10s with the FRAM-RTC that report at 12 hour interval to a proprietary server at a central site over the Ethernet connection. Part of the report string is a time-stamp string, generated as below (the format being for Excel)

   H$ = LOCSId$ + ";" + STR$(DATE[1]) + "/" + STR$(DATE[2]) + "/" + STR$(DATE[3]) + " "
   H$ = H$ + STR$(TIME[1]) + ":" + STR$(TIME[2]) + ":" + STR$(TIME[3]) + ";"

Occasionally, if the report happens between 00:00 and about 00:30, the day field (DATE[3]) remains the previous day. I haven't been able to characterise this. It certainly is not every report and only some sites.

The segment below is  from a log, the site, among 15 others reporting the date as the 13th, reports the 12th. Previous log at midday on the 12th for this site contained the correct date, as did the log before that at 00:00 on the 12th.

          ;2016/11/12 0:22:47;

Question is, does the day field of the DATE variable take some time to update after midnight? Can I spot this happening or do something to avoid it?


5
Technical support / Re:Bulk program download
« on: April 02, 2016, 08:57:30 PM »
Thanks, downloaded OK.

6
Technical support / Bulk program download
« on: March 31, 2016, 05:01:35 AM »
We are about to embark upon a software update of over 150 sites. Is there a more automated or possibly command line loader available to help with this task?

7
Technical support / Re:TCP Session Data Loss
« on: November 29, 2015, 02:50:27 PM »
Have been concatenating data messages to the 256 output buffer  with the PRINT #4 A$;B$;C$;D$ mechanism then introduced a timer to hold off until (hopefully) the ACK is received to that before the next one. This works well for our application.

In new applications of TCP CONNECT and data uploads I would  implement the recommended server acknowledge as the better solution.  Can't assume that the ethernet port is fully implementing the TCP sliding window.

Thank you for the extensive analysis and support. Much appreciated

8
Technical support / TCP Session Data Loss
« on: November 20, 2015, 10:02:34 PM »
Hi,

We are using the FMD88-10 in about 80 sites to report sensor data up to a central server. Communications is via the ethernet port and, mostly, a 3G modem/router. I use TCPConnect to establish a session to the central listener and a PRINT$ to transfer a data string then close the session. This every 2 minutes. It is generally successful.

I recently attempted to add a second data message into the session. This consistently fails at a number of sites. It seems those that fail are the sites where the ACK for the first data message takes longer than about 500mSec.

If I start Trilogy and On-Line monitoring to the site, the problem drops to only a small number of transmissions though.

I have included a .jpg of a trace from Wireshark, obtained with a SharkTap connected to the Ethernet port of an FMD-10 where I have the problem.

It appears to me that the second PSH is sent (line 5) with the sequence of the first if the first has not received the ACK (arrives in line 6).

I really need a workaround or suggestion as to how I can avoid this problem. I have tried a number of mechanisms but with no success.

I can provide Wireshark traces of a number of the failed messages if that would be of use.

Thanks

9
Technical support / Re:Modbus Inter Frame Gap
« on: October 25, 2014, 06:22:18 PM »
Thanks for the quick response.

If the bus master is using the message length to establish the framing and not the 3.5 character IFG as the Modbus protocol specifies, that would be a problem for third party slave devices that use the IFG to establish the frame start and hence its validity. The protocol obliges a slave to miss the frame in this case.

I can see that using the frame count to establish framing and thus sending the next frame off earlier will speed up the messaging but only if all the devices on the bus are doing that.

This is simply my understanding of the Modbus protocol so I would be pleased if there were other more knowledgeable interpretations.

The outcome though, is that the user needs to manage the timing for the IFG if the PLC is a master for 3rd party Modbus slaves. To me this is quite acceptable but it would be great to have a note in the documentation.



10
Technical support / Modbus Inter Frame Gap
« on: October 24, 2014, 07:58:56 PM »
I am running a Modbus with multiple slaves from an FMD88-10 RS485 port 2 which is the master.  Bus speed is 9600. The various slaves are polled by custom functions triggered by separate  timers. Occasionally I have a poll that doesn't get a response.

Looking at the bus on an oscilloscope, The missed responses happen when the poll goes out in less then the modbus 3.5 character IFG from the preceding response. The slave device misses the poll as it is not separated from the last frame on the bus by the 3.5 character IFG.

My question (which I hope isn't a case of RTM) is, do I need to ensure the calls to READMB2 are separated by the Modbus minimum 3.5 character IFG? This is not done by the FMD protocol layer?

11
Technical support / Re:Modbus gateway
« on: May 04, 2014, 09:18:56 PM »
Thanks for the timely response. The gateway function works well using the standard function codes now.

I also noted that Exception responses, returned by our slave device with an exception code of 01, have the exception code translated to 0B consistently by the gateway. Is this expected? I understand the 0B code is used by the FMD gateway to indicate timeout but the response is within 30msec so this isn't the case.

Thanks again for your help



12
Technical support / Modbus gateway
« on: May 03, 2014, 06:47:26 PM »
I am using the FMD88-10 in a number of sites. One function is to act as Modbus master to a number of slave devices. One of the devices I also access (for diagnosis) using the gateway function from the TCP port. This works fine with read register (03) and write registers (06, hex 10) function codes. I am also using the EIT function code (hex 2B). This is transferred to the 485 bus from the IP successfully but when the device responds, only a single byte, the address is transferred back to the IP side. Question, is the gateway function only available for the modbus register read and write commands? I am hoping the gateway wasn't interpreting function codes.

Second gateway question. The device responds to an unimplemented function code (03) with an exception code of 01. The seems to be translated in the gateway to hex 0B. Is this intended?

Thanks for the help

13
Technical support / Firmware update possible
« on: November 20, 2013, 01:02:56 PM »
We have a number of FMD88-10s in a distributed logging/control application. I recently went to download a program update and was knocked back by one as incompatible with the firmware (r77). Checked the versions on the rest and we have r77, r78 and r79.  This is going to become a maintenance problem.

Is it possible to upgrade the firmware in the FMD88-10?

Pages: [1]