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

Pages: [1] 2
1
Hi,

two of pages show this error.
Exception thrown: 'System.ObjectDisposedException' in System.Windows.Forms.dll

i understand me or something disposed something. however i don't know who.
How can i find the cause of this error?

Thanks.

2
Support Questions / DataLoggerChart annotations views out of area
« on: May 21, 2021, 04:04:19 PM »
Hi,

I use DataLoggerChart control in my project. I have some problems.  ;)
here are them:
1. When i define max and min values and checked show labels there is no problem. however when i select an area, labels are shown out of chart area. please refer to chart1.png.

2. I want to show more than 1000 values in my chart. i couldn't find where to do. is there anyone can tell me?

waiting for a kind answer. thanks.

3
Application Showcase / Re: Custom Trending with SQLite
« on: May 12, 2021, 04:50:31 PM »
Hi,

I am trying to do this however no success. Is it possible to share code?

4
Support Questions / Re: TagAlias.txt and using tags
« on: May 02, 2021, 08:51:55 AM »
Hi,

I found below document in my notes. For anyone interested i wrote here. It is obviously from forum however i couldn't find original topic.
-----------------------
Many of the HMI software packages use a tag database to reference PLC addresses by a tag name/alias. This allows you to use an address in multiple places throughout the HMI, but change the actual PLC address in one location.

AdvancedHMI has both the capability of using a direct PLC address in properties such as PLCAddress-Value or creating a Tag Name database. The tag name database for AdvancedHMI is referred to as Application Settings. The data is stored in an XML file which allows you to edit the XML file and change addresses without the need of editing in Visual Studio and recompiling.

Here's how you go about using these Application Settings to do the equivalent of a Tag Database:

- Add a driver to the form
- Add a BasicLabel to the form
- In the Properties Window for the BasicLabel, scroll all the way to the top
- You will see Application Settings with a "+" sign next to it. Click the "+" sign
- Click in the (Property Binding) and you will get a button with 3 dots (ellipsis)
- Click on the ellipsis to open a new window of Application Settings for BasicLabel1
- In that Window look for PLCAddressValue, click in the area to get a drop down arrow
- Click (New...)
- Another window will open of New Application Setting
- For Defaultvalue enter your PLC Address (e.g. N7:0, 40001, MyTag, etc)
- For Name enter the Tag Name/Alias you would like to refer to this address as
- Click OK to close the 2 windows

You can now run your application that fetches its PLC address from an equivalent of a Tag Database.

These Application Settings are not limited PLC addresses. For example, let's say you have many forms each with a driver instance and you want them to all have the same IPAddress. Using the same proce-dure you can create an Application Setting for IPAddress and use that application setting for every driver instance.

In Visual Studio
- Right Click the AdvancedHMI project in Solution Explorer and select Properties
- Select the Settings tab
- You can now see all of your tags and edit the values

After Compiling
After you compile or run your application that uses Application Settings, you can use an editor such as XML Notepad to edit the data. This is done by browsing to where your executable resides (normally \AdvancedHMI\bin\Debug) and opening the file AdvancedHMI.exe.config

After editing and saving the file, the next time you run your application it will use the edited values.

A word of caution: recompiling your application will revert the AdvancedHMI.exe.config back to the val-ues defined in Visual Studio.

5
Try this.

Quote
       Try
         ModbusTCPCom1.write(PLCTagAddress,Value)
       Catch ex As Exception
           System.Windows.Forms.MessageBox.Show("Couldn't write to PLC. Error: " & ex.Message)
       End Try

6
Support Questions / TagAlias.txt and using tags
« on: May 01, 2021, 08:15:28 PM »
Hi,

In fact i used to know this however i have forgot.

I have a TagAlias.txt and i wrote tags in it.

Quote
sw_db_seperator,I0.0
sw_db_helezon1,10001
sw_db_helezon2,10002
sw_db_helezon3,10003
sw_db_helezon4,10004
sw_db_helezon5,10005
sw_db_helezon6,10006

when i use sw_db_helezon1 i am expecting it to be used 10001 as plc address. It is not. When i write 10001 control works however when write sw_db_helezon1 control doesn't work.

I couldn't find solution in forum.

How was we using tags?

Be happy.

7
Support Questions / Re: Cannot connect NX1P2 to AdvancedHMI
« on: April 22, 2021, 08:27:25 AM »
check your targetnode address. as i know it must be 0 not 250

8
Hi,

Over the years i am here. However i couldn't achive adding alarms to this project.

I used the editor page (ahmi_ask_1.png) but then? I stopped. There is two files Alarms.ini and Alarm_Desc.ini which i don't understand how to use them.

I connect to S7-1200 with Modbus TCP.

My alarms are bitwise. For example 40001.1 4001.2

Is there any smart man to help me?

Thanks a lot.

9
Hi,

Solution is here:
https://www.advancedhmi.com/forum/index.php?topic=1338.msg7106#msg7106

And here:
If you created your control following the model of the existing controls, you can change your property name to PLCAddressStartToGet and the rest happens automatically.

I am not a good reader.

Thanks Archie.

10
I found it from internet. I can't get source code. Decompiling doesn't worth to what i get.

Isn't there a way to use value got from PLC in control's code?

11
Hi,

I did not create original control. I have a DLL file and original control is in it. I deployed it only. I can't change original
property name. I am trying to assign a value got from PLC to original property. I can get and set original property value within program code but not in control's code.

If i use property variable original property value gets address. I use Modbus. Let me clear;

PLCAddressValue (address 40018) and StartToGet property meant to get same value from PLC. If i assign PLCAddressValue to StartToGet variable StartToGet has a value of 40018 not the value got from address 40018 of PLC.

12
Hi,

I created a custom control. It has a property that is not controlled by the value got from PLC. It can be done within project but this causes to do this every usage of control. I want to do this within the code of control. Let me clear;

Control has a property named StartToGet. It has 5 values.
Control has a property named PLCAddressValue. It gets a number from PLC.

I want to assign value of PLCAddressValue got from PLC to value of StartToGet property within the code of control.

How can do this?

Thanks for any help.

13
Support Questions / Re: Is it possible to get keypad_v2 code
« on: October 16, 2020, 06:58:52 AM »
Thank you for your informative reply. i was struggling with this issue for 3 days. after your reply it took only 5 minutes to solve problem.

Have a good day.

14
Support Questions / Re: Is it possible to get keypad_v2 code
« on: October 15, 2020, 06:25:05 PM »
Hi,

I know this keypad, however it doesn't work like the one internal keypad. They look like same, however this one doesn't accept Enter key. The one inside advancedHmi is works like a charm, everything expected from a keypad can be found. You can write with keyboard, you can accept value with enter.

Actually i am looking for the one inside advancedHmi. Maybe there is a problem with me, because i couldn't get Enter key accept value.

If possible could you share code of the one inside advancedHmi? (I mean the one with DigitalPanelMeter)

Thanks for quick reply.

15
Support Questions / Is it possible to get keypad_v2 code
« on: October 15, 2020, 04:28:49 PM »
Hi,

I think this message is addressed to Archie. I want to get keypad v2 code in order to change its look and use.

If possible, would you like to kindly share it?

Thanks.

Pages: [1] 2