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 - cdenk

Pages: 1 [2] 3 4 ... 11
16
Technical support / Re:Variable name limitations
« on: February 07, 2013, 03:58:25 AM »
My computers dual boot Ubuntu 12.04 Linux. I should be able to use GEDIT to edit. Not super convenient, not being able to run Trilogi under Ubuntu. But, I heard of possible under Wine. Would be good to have a native Linux version of Trilogi along with going to a recent Java version. Maybe the 2 tasks could be combined. :)

17
Technical support / Re:Variable name limitations
« on: February 06, 2013, 05:49:56 PM »
Thanks for the reply. I think I'm in trouble I have used the underscore "_" pretty heavily to separate the names into 2 or more words for readability. Has been working pretty good, but there have been times that compiling with what looks like good code, doesn't compile, and even when commenting out what is pointed out as offending. And yes, I'm aware that another error can make something else look bad. When entering into the table, the square brackets are changed to "_", but when exporting they are interpreted right in Excel. Would be nice to have something to break the words apart.

I don't know if you caught it, but Libre Calc (Open Office) will take in the exported file, but won't save the file in usable format.

Is there anyway to edit (find/replace) a *.PC6 file in a word processor or something?

Hopefully Tri-PLC will come up with a set of variable rules. :)

18
Technical support / Variable name limitations
« on: February 06, 2013, 02:38:34 PM »
Using the new # Define table, and can't find the limitations on variable names, number of characters, special characters, etc. I'm sure it's in the manuals somewhere, but just haven't been able to put my eyes on it. :) In the examples, I see 11 characters, and have a problem of not finding a name that has been good, but there is in the table a couple of names with "/" and "@" that probably I have to eliminate.

If someone can point me in the right direction, that would be appreciated.

19
Technical support / Re:Windows 8, Serial IO problem
« on: January 27, 2013, 04:10:13 PM »
I think this is mainly a Windows 8 issue. I have been using Trilogi for 6 years, but as a hobbiest that have one PLC, you could call me a light user, where there may be a couple of months between using it. I haven't had these issues with XP PRO over that time.

I would much rather have the upgrade to XP issues, where they were nearly all hardware, and needed to buy a printer or something, than the compatibility problems of 8. I also have issues with Intellicad, and Autocad look alike. VBA doesn't work. Time to abandon PC 1980's compatibility, and start with all fresh.  

20
Technical support / #Define Variable names :)
« on: January 27, 2013, 01:49:31 PM »
When I first saw the new feature, My thoughts went to, Wow how nice, but as I was cleaning up a 6 year old PLC program after many tweaks and additions, to change many variables and instances was a lot of work, but as I tried it on a few variables, it became evident that having the names there, made troubleshooting and understanding the program much easier. Here's what I found helped a lot to make the changes:

In the Custom Function window
1: Use "Find All" to find the an instance of the variable to be changed.
2: Edit that variable to the new name and copy it to the clipboard
3: Use "Find All" to find the next instance to be changed.
4: Since it is already selected, just paste the clipboard. If you do not want to change this instance, just do another "Find All". Note that instances in comments will be found and can be changed if desired.
5: Go back to step 3, and do it again until all instances are changed.

Hope this helps. would be nice to have a replace option, either individual and/or global.

Also the export/import feature is really neat. Since I already have a spreadsheet with the DM[]'s and their descriptions, it will be easy to add a column, and add variable names, and import after formatting. Tried importing initially with Libre (Open Office) Calc, but it only will save as CSV, and not Tab delimited.  Another suggestion, add CSV format for import. Libre had no problem with the export.

21
Technical support / Re:Windows 8, Serial IO problem - SOLVED
« on: January 27, 2013, 01:17:24 PM »
I had this issue appear again today, after numerous restarts of the computer, transfer of files to the PLC, and On-line monitoring, suddenly no server. A whole lot easier fix: Rename the file: C:\Trilogi\TL6\Tlserver3.cfg to something else so it won't be loaded. Might be able to just delete it, I'll probably do that later.

I had been working on E-mail issues, and probably changed a server or port number, but this seemed to fix it.

22
Technical support / Re:Windows 8, Serial IO problem - SOLVED
« on: January 20, 2013, 06:16:41 PM »
SOLVED MOSTLY      :)
This morning, I updated the current Java Version 9, and late afternoon (GMT -5) there was a new update available (Update 9 (build 1.7.0_09-b05) which I installed, and things started working. It seems strange that there would be 2 updates close together, and problem solved. Here's what I think I did. All the Windows 8 compatibilities are set: none, and no admin...
1: Install  j2re-1_4_2_19-windows-i586-p.exe
2:  Install  Java 9 update from Java control panel update.
3: Install the Java Access Bridge fix per:  http://docs.oracle.com/javase/accessbridge/2.0.2/introduction.htm  It's not too difficult. I found some files changed size by ? or 2. Some files were older, and others newer than installed. I used the newest files in all cases.
4: Install:  SetupTL645b4.exe
5: Set the shortcuts for the desktop, start, and startup for only server to:
Desktop: C:\TRiLOGI\TL6\TL6Launcher.exe
Start: C:\TRiLOGI\TL6\TL6Launcher.exe
Startup: "C:\Program Files\Java\j2re1.4.2_19\bin\java.exe" -jar TLServer31.jar

Everything seems to be working OK, but would like to see Tlserver start minimized, but for some reasons when setting the shortcut properties to minimized start, it doesn't  start at all.

Hope this helps, and thanks again for the prompt replies. :)

23
Technical support / Re:Windows 8, Serial IO problem
« on: January 20, 2013, 10:25:19 AM »
Thanks for the reply, I'll dig into that later today. This isn't the first issue I have had with Windows 8. This is a fresh full install (4 weeks ago), and not an upgrade of XP. Intellicad, an Autocad look alike has VBA problems. Apparently it runs OK on the upgrade or a VM, but Microsoft deleted a bunch of DLL's or other files with 8 that were there earlier. At least when the XP upgrade came, we knew which hardware wouldn't work, and had to spend some money. :(  With 8 it's all a mystery, and haerder to work with the techie sort of stuff. With what time I have spent on 8, I could have got proficient with Ubuntu Linux which is a lower priority. But it's probably time to dump the backward compatibility to 1980's hardware, and start from scratch with current needs.

I still have Trilogi running on XP Pro, so I'm not hurting with Trilogi. :)

Thanks again, will keep you posted. :)

24
Technical support / Re:Windows 8, Serial IO problem
« on: January 19, 2013, 06:42:49 PM »
Thanks for the quick reply, I've been trying various things, but here's the important that I did first:  This is Windows 8 pro 32 bit.
1:  Tried to invoke TLSrvrLauncher.exe as suggested, didn't work.
2: Removed both all JAVA's and Trilogi with control panel > remove programs. Deleted all their folders. Restarted, Ran registery mechanic to clean the registery and computer. There were numerous items for Java, and Trilogi removed.
3: Reinstalled only Java j2re-1_4_2_19-windows-i586-p.exe, and then setupTL645b4.exe

Now neither the server or Trilogi will start, either from Start, or clicking on the the *.exe, *.jar, or *.bat files in C:\Trilogi\TL6 folder. All this was done with and without XP SP3 and admin... compatibility.

With command window in admin... mode, see the following. Java is installed, but Trilogi and server still doesn't run.


C:\TRiLOGI\TL6>tl6launcher.exe

C:\TRiLOGI\TL6>tl6.bat

C:\TRiLOGI\TL6>IF EXIST "C:\Program Files (x86)\Java\j2re1.4.2_19\bin\java.exe"
"C:\Program Files (x86)\Java\j2re1.4.2_19\bin\java.exe" -jar TL64.jar

C:\TRiLOGI\TL6>IF EXIST "C:\Program Files\Java\j2re1.4.2_19\bin\java.exe" "C:\Pr
ogram Files\Java\j2re1.4.2_19\bin\java.exe" -jar TL64.jar

String counts = 601
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
        at java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at java.awt.Window.getToolkit(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at TRiLOGI.TL50.<init>(Unknown Source)
        at TRiLOGI.TL50.main(Unknown Source)

C:\TRiLOGI\TL6>REM The following will run TL64.jar using default JRE. Uncomment
the line to enable it.

C:\TRiLOGI\TL6>REM java -jar TL64.jar

C:\TRiLOGI\TL6>java -jar TL64.jar

String counts = 601
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
java.awt.AWTError: Assistive Technology not found: com.sun.java.accessibility.Ac
cessBridge
        at java.awt.Toolkit.loadAssistiveTechnologies(Unknown Source)
        at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
        at java.awt.Window.getToolkit(Unknown Source)
        at java.awt.Window.init(Unknown Source)
        at java.awt.Window.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at java.awt.Frame.<init>(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at TRiLOGI.TL50.<init>(Unknown Source)
        at TRiLOGI.TL50.main(Unknown Source)

C:\TRiLOGI\TL6>






25
Technical support / Windows 8, Serial IO problem
« on: January 18, 2013, 05:54:05 PM »
This is Windows 8 Pro, and was working OK for several weeks until a recent routine upgrade of Java, then Neither Trilogi or the TLSERVER would run. With control panel > remove programs, removed and then installed both (as admin.. and XP SP3 compatibility) first j2re1.4.2_19, and Trilogi 6.45_2. Trilogi now runs OK. TLserver31gives the ?Serial driver not properly installed (was there a recent Java upgrade?) Try running ? instserial2008.exe...? message.  Ran  instserial2008.exe, with no change. Ran TLServer.jar in admin command window, the follow is the output:
 
C:\TRiLOGI\TL6>java -jar TLServer31.jar

String counts = 90
Installation Directory = C:\TRiLOGI\TL6/
Serialio Library: version 9.9.9: build 9191
Copyright (c) 1996-2008 Serialio.com, All Rights Reserved.
os.name="Windows 8"  os.arch="x86"
TRi Amendment1:OS Name =Windows 8
java.lang.UnsatisfiedLinkError: no jspWin in java.library.path: Check that nativ
e library jspWin is in proper directory
java.lang.UnsatisfiedLinkError: Serialio.SerialPortLocal.SerGetPortList()I
java.lang.UnsatisfiedLinkError: Serialio.SerialPortLocal.SerGetPortList()I
        at Serialio.SerialPortLocal.SerGetPortList(Native Method)
        at Serialio.SerialPortLocal.getPortList(SerialPortLocal.java:1594)
        at serialComm.j.c(Unknown Source)
        at serialComm.j.<init>(Unknown Source)
        at serialComm.k.<init>(Unknown Source)
        at TLServer31.TLServer.<init>(Unknown Source)
        at TLServer31.TLServer.main(Unknown Source)


A search for JSPWIN of the C:\ drive gives the output below

 jspWin.dll   Date modified:   &#8206;1/&#8206;18/&#8206;13 &#8207;&#8206;4:25 PM
 C:\Program Files\Java\jre7\lib\ext\x86   Size: 56.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\Program Files (x86)\Java\j2re1.4.2_19\lib\ext\x86   Size: 44.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\Program Files\Java\j2re1.4.2_19\lib\ext\x86   Size: 44.0 KB

 jspWin.dll   Date modified:   &#8206;4/&#8206;22/&#8206;01 &#8207;&#8206;12:11 PM
 C:\TRiLOGI\TL6\java lib   Size: 44.0 KB

Which is the correct size of the JSPWIN file, and at what path should it be located. Is there anything else I need to do?

Thanking in advance.

26
Technical support / Re:Sending 2 E-mails consecutively
« on: April 24, 2012, 07:10:13 AM »
Thanks again for the quick reply. I'll go the delay and check the sent flag route. Our phone is only feature, and not smart at this time, and my web page programing has been zero to this point, so, looks like this will suffice, which should work well. The odds of the system not working at the needed time and damage resulting is very, very small.

27
Technical support / Re:Sending 2 E-mails consecutively
« on: April 23, 2012, 02:44:14 PM »
Thanks for the quick reply. I see by the help, that STATUS(3), the output is:
0 - TCP/IP connection closed or last TCP operation failed
1 - TCP/IP connection established or last TCP operation successful

Currently I send both E-mails, 3 times, 5 minutes apart, to ensure that at least one E-mail gets out. With the older system, I was able to check if the send was successful, but as I have started doing, all I can do is check that the operation is closed, and don't know if it was successful.

Timing is not critical here, what might be a guideline for a delay timer between the E-mails? 1 second? 1 minute?

And, I'm assuming there is no way to communicate back to the PLC from a cell phone. Thinking is, there would be a list of priority contacts, the first one to receive the message could stop further contacts.

28
Technical support / Sending 2 E-mails consecutively
« on: April 23, 2012, 10:13:17 AM »
With T100MD+r50, Trilogi V6.43

Trying to send E-mail via serial connection to PC running server to DSL through modem/router. No problems sending to one address, but with 2 codes following quickly, I only get the first E-mail. What's the function of "emEvent[1] = 1", do I need that at the end of each message? Between Messages? Note it is commented out below.
Here's the code:
'This sequence is to our A T & T Cell phone
' Send the E-Mail
   PRINT #1 "<EMAIL xxxxxxxxx@txt.att.net>"
   PRINT #1 "Sender: xxx@xxxxxx.net"
   PRINT #1 "Subject: PLC ALARM"
   PRINT #1 "THE FOOTER TILE SUMP IS HIGH LEVEL"
   PRINT #1 STR$(DATE[2],2) + "/" + STR$(DATE[3],2) + "/" + STR$(DATE[1],4)+ " " + STR$(DM[3984],2) + ":" + STR$(TIME[2],2)
   PRINT #1 "Number " + STR$(CtrPV[6])
   PRINT #1 "</>"
'   emEvent[1] = 1

'This sequence is to our home E-mail
   PRINT #1 "<EMAIL xxx@xxxxx.net>"
   PRINT #1 "Sender: xxx@xxxxx.net"
   PRINT #1 "Subject: PLC ALARM"
   PRINT #1 "THE FOOTER TILE SUMP IS HIGH LEVEL"
   PRINT #1 STR$(DATE[2],2) + "/" + STR$(DATE[3],2) + "/" + STR$(DATE[1],4)+ " " + STR$(DM[3984],2) + ":" + STR$(TIME[2],2)
   PRINT #1 "Number " + STR$(CtrPV[6])
   PRINT #1 "</>"
'   emEvent[1] = 1


Thanks in advance. :)

29
Technical support / Re:Allowable characters in contact names?
« on: August 12, 2010, 05:14:04 AM »
Thanks for clarifying, sometimes we can't see the forest due to the trees. :)

30
Technical support / Allowable characters in contact names?
« on: August 11, 2010, 01:38:07 PM »
Trilogi 6.31 with a T100MD plc. I understand with version 6.2, the underscore is used to define a comment after a contact name. I had been using the "_" (underscore) to make the names more readable, and the before the "_" is frequently the same. There are many of these. :( But it appears the program is working OK, or maybe haven't noticed issues. Currently I'm trying to add a few custom functions and contacts.

1: Is 6.31 handling these existing "_" as previous versions?
2: Understand names are limited to 15 characters. What are legal characters beyond the actual alpha/numeric. i.e. -*@+/\, etc.
3: Is there a way to easily change the "_" to something else? Could I use a plain text editor to search and replace?
4: Do I need to go back to version 6.1?

Any other thoughts appreciated. :)

Pages: 1 [2] 3 4 ... 11