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 - K.Newton

Pages: [1] 2
1
lol. Maybe I need to request a new laptop.

It is apparently happenning with any length function. At least, all the lengths I've tried.

I don't recall this ever occurring before I updated to 6.4.1 and I believe I've tried all the pubic releases since we purchased our seat late last year.

One thing I did try was to disable all hardware graphics acceleration and that seemed to make the problem disapear.

Sorry I can't be more help.

2
I'm using Tri 6.4.1 on XP pro on this Dell precision M90 laptop.

This is more of a reporting of a percieved bug than a cry for help since I have a workaround. The workaround is never open the text editor to full screen mode and all is well.

Just to summarize, and I have tried this in both version 1.4.2_06 and 1.4.2_19 JRE, scrolling the text window of the function editor while it is in full screen mode causes "javaw.exe" resource usage to go through  the roof per task managers "Processes" monitoring tab on my machine. Also there is an accompanying condition of a painfully slow und seemingly unpredictable scrolling of the text window while this is going on. Once this mode has been entered I haven't found a way back out other than closing out then restarting my tri session.

If I were to guess I'd say it looks like it may be some issue with the directx graphics handling but of course it is only a wild a** guess. It looks to me like all graphics acceeration is disabled in this combination of conditions.

Then again I've seen errors with this machine you all couldn't seem to replicate so maybe this is another flaw of this particular laptop.

3
Thanks for the quick reply.

4
Technical support / Nano-10: Resetting factory defaults with no comms.
« on: April 14, 2011, 02:59:30 PM »
Is it possible?

One of the other programmers here left one of our Nanos in some unknown state with an unknown IP address. I'm not really set up to do 485 with my machine right now.

I'm wondering if tere is some simple method of defaulting everything (including IP address) like setting a power up jumper like on a PC or something similar to that.

I am having zero luck at guessing the IP.

Sorry if this is covered. I tried a search with no useful hits on the subject with the terms I searched with.



5
Archived FAQs / Re:Program download stopped halfway
« on: March 25, 2011, 12:04:16 PM »
In case this is of use to others who read this....

It's been a few days now nd I've been pounding on 1.4.2_11 without it crashing yet. For me the _11 fixed the stability issue and is allowing for 100% download reliability so far. I seem to have found the plc programming nirvana state for this laptop.

Edit: I accidentaly said 1.4.2_11 and meant 1.4.2_19. 1.4.2_19 is the one that fixed my problems. Sorry about that!

6
Archived FAQs / Re:Program download stopped halfway
« on: March 22, 2011, 05:49:41 PM »
Whatever the crash is, it's a situation which causes an error/crash report popup request which is asking to send a report to microsoft for analysis. When I direct the error report popup sequence to go ahead and contact microsoft about the problem, microsofts site comes back with the suggested resolution being a link which leads to Suns download site for the newest version of JRE.

If you want it, and if you can tell me how, I could possibly get the error report for you.

I'll try 1.4.2_19 tomorrow and see what happens.

7
Archived FAQs / Re:Program download stopped halfway
« on: March 22, 2011, 12:36:36 PM »
You're welcome.

After playing with this for a couple days I have another question.

The version on the disk V1.4.2_06 (build bo3) is crashing on me occasionally taking out i-Trilogi in the process. Not a huge deal since it's fairly rare. However, it is concerning and I'd rather avoid the situation.

I've noted that Sun had later versions of 1.4.2 all the way up to _19. Is 1.4.2_19 a more stable than version 1.4.2_06? If so, do you know if I could upgrade to 1.4.2_19 and still maintain the benefits of the smooth downloading 1.4.2_06 has allowed for me?

8
Archived FAQs / Re:Program Download through ethernet
« on: March 18, 2011, 01:41:11 PM »
Well there it is. I tried the latest JRE with similar non joyous results.

I uninstalled all JRE's then reinstalled the one that came on the CD that came with my kit. Perfect!

One more data point for your programmers where 1.4.2 is the solution.

Thanks!

9
Archived FAQs / Re:Program Download through ethernet
« on: March 18, 2011, 01:05:45 PM »
I have only noticed it during during program transfers. Online monitoring has appeared to be flawless to my eyes.

I am running JRE 1.6.0_22. I'm on XP 2003 sp3. It's a DEll Precision M90 laptop wth Intel core 2 @2GHz and 3.25GB of RAM.

I don't have another laptop I can use but could potentially roll back to JRE 1.4.2 if that is easy to accomplish. Also, it seems there is another JRE update waiting for me this morning and so I might try that first.

10
Archived FAQs / Program download stopped halfway
« on: March 18, 2011, 09:20:17 AM »
Important Notes from Moderator

We recently received several reports that program transfer is often aborted half-way or require multiple attempts to transfer program to the PLC. This happens whether the program transfer is via TLServer or the Ethernet.

It appears these problems only surface after user has upgraded to JRE 1.6.0 (especially 1.6.0_24).  So far in all cases the problem was resolved after the users uninstalled JRE 1.6.0 and re-install JRE 1.4.2.  Therefore we strongly recommend that you keep your JRE 1.4.2 even if you must upgrade to JRE 1.6.0.

The following posts discussed the problem and the solutions.

************************************************************************
[Question posted by K.Newton]


I am often experiencing apparent lockups or stalls while downloading code to the PLC through the ethernet port via Tri 6.4 ctrl+T.

Quite often it will stall part way through the download sequence and the only option seems to be an abort followed by a retry. No amount of waiting seems to allow these stalled conditions to clear themselves and so the abort option is the only thing I've found to pull the system out of this "stalled" state. Quite often I will get several instances of this happening before I can finally download to the entire set of code to completion.

I am wondering what I am doing wrong or what I can try to improve reliability of downloading the software to the PLC. It is taking up quite a bit of my time just trying to get my various code versions to "stick" and I'd rather be writing code.

11
Man I really have seen the light this time and am feeling sufficiently lame for missing it all this time. Thank you for the help Mr. Mod.

12
Indeed. I see it clearly now. Thanks for the insight.

Perhaps, though I didn't know it at the time I first made this thread, my question should have been: What is the proper technique for stripping 32 bit values for storage in a 16 bit location once the 32 bit math is done?

Edit: Wait a minute! Where is my calculation exceeding 2^31-1? My biggest value is 122071 *4096 = 500002816 which is within the limits. Every step from there it just gets smaller with divides or subtractions. Is the divide causing it to go over 2^31-1?

13
Good catch on my error. I just rewrote it wrog the original had it right. I am stumped.

Here is my actual code which isn't working. Elsewhere DM[93] is set to 2500 and DM94 is 21, ie just scaler values. Note the comments in the code below. This version wont work but removing the comments and adding one to the line L=K/10 fixes it and it works fine.

K = DM[992] * 122071    'convert ADC counts to Volts
'L$ = STR$(K,9)
'G$ = MID$(L$,1,5)
'L = VAL(G$)
L = K/10
M = L - DM[93]
N = M * DM[94]/100
DM[131] = N

14
Ah that would be a good way to round. Simple yet effective. Clever, thank you. After I posted I found a similar method to truncate, ie: A =(A/10)*10.

Unfortunately, I think my number must be too big or something as it is exploding when I try these types of things. Even when splitting up into seperate lines and/or variables, it still explodes. I should have mentioned in my first post that this number is an 9 digit 32 bit number.

Even this wont do it (500002816 is just a random example I made up), it still explodes:

A = 500002816
B = A/10
C = A * 10

I did this which is working but sure feels like a hack.

A = 500002816
B$ = STR$(A,9)
C$ = MID$(B$,1,8)
D = VAL(C$)

It's working but there must be a better way??? At this point rounding would be stupendous but a clean method of truncating would be a start.

15
Is there a supported TBasic command for this? I don't really care about the error due to truncating but rounding would be better if it's efficient. Either way would be better than what I have now....

Anybody have advise on this for a simp faking it as a programmer?

Pages: [1] 2