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

Pages: 1 ... 338 339 [340] 341 342
5086
Support Questions / Re: Connecting with OPC driver
« on: July 15, 2013, 07:43:10 PM »
Try this:

In Solution Explorer, right click AdvanedHMI and select properties.
Go to the Compile tab and look for Target CPU. Depending on your VS version, it may be in the Advanced Compile Options
Change the setting to x86

5087
Support Questions / Re: SiemensPPI Driver ?
« on: July 14, 2013, 08:12:49 PM »
That driver has only been used with the S7-200 and the RS232 adapter. It was from a prototype, so I am not sure how well it will work under heavy use.

There are plans for more Siemens drivers, but they will probably not be available until next year.

5088
Support Questions / Re: Connecting with OPC driver
« on: July 14, 2013, 04:59:20 PM »
Do you just see those messages in the immediate windows or does it stop the application?

Is it and OPC DA server or OPC UA? Are you using a 32 bit or 64 bit PC?

5089
Support Questions / Re: System.Net.ComNetOS exception error
« on: July 13, 2013, 10:27:14 AM »
I tried to reproduce this, but no luck. By searching the internet, it looks like many others have had this problem.

The next thing we need to check is the config file. Go into this directoty in your project AdvancedHMI\bin\Debug and open the file AdvancedHMI.vshost.exe.config with notepad. Post the contents of that file and I'll see if anything stands out in that.

One other thing to try that sometimes resolves strange issues is to delete both the \obj and \bin directories in the AdvancedHMI folder and the AdvancedHMIDrivers folder. Once you open the project again, Visual Studio will rebuild those folders and files.

5090
Support Questions / Re: System.Net.ComNetOS exception error
« on: July 12, 2013, 02:43:42 PM »
Can you copy the full Stack Trace message from the message window in your last picture and post it?

5091
Lee

The best approach to achieving some pre-processing is to modify the BasicLabel.vb code. In the subscribing section of the code, you will find PollDataReturned**** subroutines. That is where the data that comes back from the driver is pushed into the corresponding properties. You can also pre-process in the Text Set property. I have actually done something very similar on the particular job this screen shot came from. I added a property named "ShowInTimeFormat", then in the Text Property Set routine I check if that property is true. If so, I format the value before it is written to the Text property.

There are other methods of doing this that I recommend to non-programmers that are easier, but not nearly as clean. For example, you can add a BasicLabel, set the forecolor to the same as the form background in order to hide the label. Then capture the TextChanged event to get the value and send it to another Label in the format you want.

Just a note, these techniques will change in version 3.5 which is due to be released this weekend. In version 3.5, there are OnValueChanged events and also a DataSubscriber component that lets you hook into data in the PLC without writing any code and creating an event handler to process the value as it comes back.

As for manuals, the only thing we are currently making available are the ones listed in the expansion pack section of the web site. As time goes on we will make more available. Until then, the detailed software architecture is only explained in our training classes.

5092
Support Questions / Re: Upgrading from 3.26 to 3.40
« on: June 29, 2013, 04:14:21 PM »
The easiest way to upgrade is to open the new version, then right click AdvancedHMI in the solution explorer and select Add->Existing Item. Then select the forms (.vb) files from your previous project.

Depending on how complex your project is, it may require a few modifications after importing.

5093
There is an error in those release notes. You must also specify the number of elements to read:

plcvalue = EthernetIPForCLXComm1.ReadSynchronous(plcaddy,1)

5094
Tips & Tricks / Hear Your Alarms, not just an annoying buzzer
« on: June 27, 2013, 07:07:52 PM »
The MessageDisplayByValue has a property named SpeakMessage. If this is set to true, then each time there is a new message, it will be spoken through the PC speakers. If you wish to get creative, you can find various voices for download on the internet.

5095
Application Showcase / Simple Plant Monitor
« on: June 27, 2013, 03:25:43 PM »
This is a simple one screen HMI to monitor some process variables in a plant. I created custom controls to give AdvancedHMI the same look and feel as an existing HMI. It was designed to run on an 8" panel PC (800x600 resolution)

5096
Support Questions / Re: Using Tag Systems
« on: June 27, 2013, 09:19:26 AM »
I was referring to the variable list in the PLC. I was thinking if I see it, maybe something will stand out.

5097
Support Questions / Re: Using Tag Systems
« on: June 25, 2013, 03:30:20 PM »
You may also want to create a DINT tag in Controller Scope to see if it works just to verify communications. Are you using a ControlLogix or CompactLogix? If ControlLogix, is the processor in the first slot?

5098
Support Questions / Re: Using Tag Systems
« on: June 25, 2013, 03:27:17 PM »
Can you also post a screen shot of your variable list?

5099
Support Questions / Re: Using Tag Systems
« on: June 25, 2013, 09:36:16 AM »
As an example, let's say you are using a DigitalPanelMeter. On a controller scope tag you would only use the tag name in PLCAddressValue.

If you a program scope tag, you have to prefix the tag name so it knows how to find it:

PROGRAM:ProgramName.TagName

5100
Support Questions / Re: Cannot Read with ReadInt or ReadAny
« on: June 18, 2013, 06:39:06 PM »
I will have to try to replicate this. Do you have other controls on the screen that are updating, or are you just reading the values using your code?

You can also try to read the values asynchronously by setting the property AsyncMode to true, using ReadAny, then create a DataReceived event handler.

Code: [Select]
    Private Sub EthernetIPforPLCSLCMicroComm1_DataReceived(sender As System.Object, e As MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs) Handles EthernetIPforPLCSLCMicroComm1.DataReceived
        If e.PlcAddress = "L11:1" Then
            txtOffset1.Text = e.Values(0)
        End If
    End Sub

Pages: 1 ... 338 339 [340] 341 342