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

Pages: [1]
1
Open Discussion / Re: Amending AdvancedHmiControls Components
« on: June 16, 2021, 12:07:28 PM »
Thank you Archie, this works!:)

Bye the way, is there any possibility to costumize your Control components? i.e. if i woul like change color to SquareIlluminated btn or any other components?
Thank you again!!!! It is very cool!

2
Open Discussion / Amending AdvancedHmiControls Components
« on: June 16, 2021, 09:30:24 AM »
Hi all,
I have installed few months ago the version 3.99 and now I am testing it for create a Test Scada. I bought all additional graphic library control on website and frankly speaking everything is easy and well done. Now I would like customize the graphics of some components such as SimpleLed. In the facts I would like replace only the graphic with a proximity sensor graphic. I am able to create 2 png or jpg graphic files with differente state ON and state OFF graphics, but I don't know where put these 2 files. I have read some topic like
https://www.advancedhmi.com/forum/index.php?topic=185.msg542#msg542
but unfortunately I am not able to reach my goal. If someone could point me to the solution it would be great.
Thank you all in advance
Lucky 

3
Open Discussion / Re: Driver Siemens with Snap7
« on: February 05, 2021, 11:22:34 AM »
Hi aquilmustafa.

I am using s7-1200

It works very well for my use.

Ciao Luciano.

4
Open Discussion / Re: Driver Siemens with Snap7
« on: February 01, 2021, 03:00:23 AM »
Hi all, one additional thing concerning the returned value on funcion
Code: [Select]
Public Function Write(startAddress As String, dataToWrite As String) As String Implements MfgControl.AdvancedHMI.Drivers.IComComponent.Write
        Dim temp(0) As String
        temp(0) = dataToWrite
        Write(startAddress, 1, temp)
        Return ("1")
        'Return Write(startAddress, 1, temp)
    End Function



Instead of Return("1") as string, we can jus modify the original
Code: [Select]
Return Write(startAddress, 1, temp) converting the result in a string like this
Code: [Select]
    Public Function Write(startAddress As String, dataToWrite As String) As String Implements MfgControl.AdvancedHMI.Drivers.IComComponent.Write
        Dim temp(0) As String
        temp(0) = dataToWrite
        Write(startAddress, 1, temp)
        'Return ("1")
        Return Write(startAddress, 1, temp).ToString()
    End Function

ciao

5
Open Discussion / Re: Driver Siemens with Snap7
« on: January 30, 2021, 03:11:00 PM »
Hi all and thanks to Tatin for the integration and thanks to Archie for great AdvancedHmi Project.
I tried to install and use snap7 following all indications written in this thread, but it didn't work for me. I have windows 8 64bit and visual studio 2015.

I suggest to all to make these amending on file SiemensCom.vb:

1) change the return datatype of Write function to string instead of integer as below:
Code: [Select]
Public Function Write(startAddress As String, dataToWrite As String) As String Implements MfgControl.AdvancedHMI.Drivers.IComComponent.Write
        Dim temp(0) As String
        temp(0) = dataToWrite
        Write(startAddress, 1, temp)
        Return ("1")
        'Return Write(startAddress, 1, temp)
    End Function
2) Chenge the return line

Pay attention
Code: [Select]
Return("1") is a compromise because the function
Code: [Select]
MfgControl.AdvancedHMI.Drivers.IComComponent.Write returns back a string.

For easy use, in the attached file the amended SiemensCom.vb

Now I can use snap7. Easy to read and write DB, Merker, Coils etc... for example if you want set to 1 the Merker M18.2 using a BasicButton, you need just to select SetTrue the OutputType and fill M18.2 in the field PLCAddressClick.

Moreover I want underline the powerful of snap7 if compared with modbus. For example, writing a single bit inside a word with modbus, we need to read word, change it and send it back with the risk of data corruption. Snap7 has native fuction for single bit set/reset.

Best Regards e ciao Luciano

Pages: [1]