Search found 137 matches

by AMitchneck
Thu Nov 01, 2012 3:56 pm
Forum: Scripting
Topic: Determine tcpclient connection has been lost
Replies: 1
Views: 4890

Determine tcpclient connection has been lost

Is it possible to determine when a tcpclient object's connection has been lost?

When I try to use the "Connected" property I get a compile error that it does not exist.

Thanks.
by AMitchneck
Wed Sep 12, 2012 1:50 pm
Forum: Scripting
Topic: Determine alias version of screen
Replies: 1
Views: 7308

Determine alias version of screen

I have a screen which displays information about several machines depending on which alias is loaded. How can I determine which alias is currently loading in scripting? I have some background script which changes is job priority based on which machine you are actively looking at (to reduce update de...
by AMitchneck
Mon Jul 30, 2012 12:07 pm
Forum: Application Development
Topic: Mirrored gauges and multiple needles
Replies: 3
Views: 7674

Re: Mirrored gauges and multiple needles

You can display multiple needles on the "same" gauge by placing a second gauge on top of your first gauge with the same appearance, size, etc. and a different needle color. Then, under the "General" tab, uncheck "Scale" and check "Transparent" (this hides all but the needle from the second gauge). T...
by AMitchneck
Wed Jul 25, 2012 1:53 pm
Forum: Scripting
Topic: Serial port (RS232) Communications
Replies: 6
Views: 21156

Re: Serial port (RS232) Communications

Thank you.

Figured out that the cable I was using needed to be a cross-over cable.
by AMitchneck
Wed Jul 25, 2012 11:40 am
Forum: Scripting
Topic: Serial port (RS232) Communications
Replies: 6
Views: 21156

Re: Serial port (RS232) Communications

Hi Mark,

When I switch the port from COM1 to COM2 (232 to 485) the communications work. Is there something special I need to do to communicate using RS232?
by AMitchneck
Wed Jul 25, 2012 8:13 am
Forum: Scripting
Topic: Serial port (RS232) Communications
Replies: 6
Views: 21156

Re: Serial port (RS232) Communications

Hi Mark, I initialize FileName before I set Write to true in a testing screen script. The bool "Write" then remains true until the test is complete. Thus, the file is opened once (erasing the file if it already exists) and only closed once across the entire test. I did test writing several lines to ...
by AMitchneck
Wed Jul 25, 2012 6:32 am
Forum: Scripting
Topic: Serial port (RS232) Communications
Replies: 6
Views: 21156

Serial port (RS232) Communications

I've been trying to get a T4A to talk over serial to an external device via RS232 without luck. For some reason I'm not every receiving any bytes on the T4A. This is the code in my script file: namespace Neo.ApplicationFramework.Generated { using System; using System.Drawing; using Neo.ApplicationFr...
by AMitchneck
Thu Jul 19, 2012 9:18 am
Forum: Application Development
Topic: Tags not updating on T7A when value changes
Replies: 9
Views: 14817

Re: Tags not updating on T7A when value changes

Hi Mark, I did try another switch and once again couldn't reproduce the glitch. Strangely enough, I decided to retry the original switch and, magically, the glitch is no longer occurring. I have no idea what was causing the problem in the first place, but it somehow fixed itself ??? (which worries m...
by AMitchneck
Wed Jul 18, 2012 11:01 am
Forum: Application Development
Topic: Sharing Code/Projects
Replies: 1
Views: 5155

Re: Sharing Code/Projects

Hi Bennanio, I've never shared multiple projects, but I do have some scripting files which are auto-generated externally from iX developer. To update these files, I usually copy the new files into the project directory, overwriting the old ones, then tell iX developer to rebuild the project. I think...
by AMitchneck
Fri Jul 13, 2012 11:06 am
Forum: Application Development
Topic: Tags not updating on T7A when value changes
Replies: 9
Views: 14817

Re: Tags not updating on T7A when value changes

Hi Mark, I placed a HUB between the PLC and HMI to try and capture the fault. Strangely enough, I can't get the HMI to "freeze" with the hub in place. The only reason I can think of for the change is the switch normally between the HMI and PLC is full duplex while the hub is only half duplex, thus s...