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

Pages: [1] 2 3 4
1
Open Discussion / Re: Change multi colors by value
« on: January 22, 2021, 05:11:43 AM »
It looks like i need just make new post, and after that in little or no time find the solution. Just changed code a little bit and voila, works.

Code: [Select]
Private Sub DataSubscriber21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged

        If e.PlcAddress = "D125" And e.Values(0) = "0" Then
            BasicShape1.BackColor = Color.LightGray

        ElseIf e.PlcAddress = "D125" And e.Values(0) = "1" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 220)

        ElseIf e.PlcAddress = "D125" And e.Values(0) = "2" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 170)

        ElseIf e.PlcAddress = "D125" And e.Values(0) = "3" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 120)

        ElseIf e.PlcAddress = "D125" And e.Values(0) = "4" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 50)

        ElseIf e.PlcAddress = "D126" And e.Values(0) = "0" Then
            BasicShape2.BackColor = Color.LightGray

        ElseIf e.PlcAddress = "D126" And e.Values(0) = "1" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 220)

        ElseIf e.PlcAddress = "D126" And e.Values(0) = "2" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 170)

        ElseIf e.PlcAddress = "D126" And e.Values(0) = "3" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 120)

        ElseIf e.PlcAddress = "D126" And e.Values(0) = "4" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 50)

        End If

    End Sub

2
Open Discussion / Change multi colors by value
« on: January 22, 2021, 03:58:36 AM »
Hi,

im trying to change colors of basic shape by value. I added basic shapes to form and datasubscriber and add some PLCAddressValueItems (D125,D126), but doesnt work.

Thats my code

Code: [Select]
Private Sub DataSubscriber21_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber21.DataChanged

        If e.PlcAddress = "D125" = "0" Then
            BasicShape1.BackColor = Color.LightGray

        ElseIf e.PlcAddress = "D125" = "1" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 220)

        ElseIf e.PlcAddress = "D125" = "2" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 170)

        ElseIf e.PlcAddress = "D125" = "3" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 120)

        ElseIf e.PlcAddress = "D125" = "4" Then
            BasicShape1.BackColor = Color.FromArgb(255, 255, 50)

        ElseIf e.PlcAddress = "D126" = "0" Then
            BasicShape2.BackColor = Color.LightGray

        ElseIf e.PlcAddress = "D126" = "1" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 220)

        ElseIf e.PlcAddress = "D126" = "2" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 170)

        ElseIf e.PlcAddress = "D126" = "3" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 120)

        ElseIf e.PlcAddress = "D126" = "4" Then
            BasicShape2.BackColor = Color.FromArgb(255, 255, 50)

        End If

    End Sub

3
Support Questions / Re: Omron HR area
« on: January 20, 2021, 05:51:45 AM »
Found on another topic that hostlink driver dont support write HR bits, soo I need to move HR bit to DM location on plc, and then on ahmi form write to DM bits which is supported.

4
Support Questions / Re: Rotate by 45 degree
« on: January 19, 2021, 06:12:19 AM »
I think i will just leave that graphics on 90° and wont bother anymore with rotation.
Thank you anyway.

5
Support Questions / Omron HR area
« on: January 19, 2021, 06:09:54 AM »
Hi,

im tryin to write to HR area of omron plc with latest ahmi version. When i put checkbox on form and assign plc address H13.06 to PLCAddressCheckChanged and PLCAddressCheck it wont write  true(1) to H13.06. But if i assign H8.00 to PLCAddressCheckChanged and PLCAddressCheck it writes true(1) to H8.00. I double check for set/reset bit duplication in plc program and dont exist.

But if i set bit H13.06 or H8.00 in PLC to true(1), shows checkbox is checked, that means checking bit works.

Any solution...

6
Support Questions / Rotate by 45 degree
« on: January 18, 2021, 11:31:56 AM »
Hi,

need to display object like on attached picture. Every rectangle inside of blue squere rotated by 45 degree, have own plc address and 3 colors which need to change by value (0-black 1-green 2-red). What object i need to use and how to rotate rectangle by 45 degrees, maybe basic label or ....

Thank you

7
Support Questions / Re: Omron EthernetFINS UDP port
« on: April 30, 2020, 08:03:31 AM »
I was replaced the attached OmronEthernetFINSCom file and comes to conclusion. If you drop driver to screen and change port in driver properties it didnt work, same as before, but when i opened OmronEthernetFINSCom.vb file and change
Code: [Select]
Private m_PortNumber As UShort = 9600 to
Code: [Select]
Private m_PortNumber As UShort = 9601 it works. Dont know why, but it worked.

8
Support Questions / Omron EthernetFINS UDP port
« on: April 30, 2020, 02:22:19 AM »
Hi,
wanna try to change UDP port to 9601 but got error. Only works when port in AHMI is set to 9600. In wireshark, i saw that if still set port to 9601, AHMI sends request to port 9600. Is changing UDP port implemented to EthernetFINS driver?

Thank you

9
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 06:49:08 PM »
Wow, now E area works too. Thank you for such fast help and support, and stay healthy .

10
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 01:34:56 PM »
Thats the wireshark log. When try to write 100 to plc E register, it takes 64 from keypad somehow .

11
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 12:31:00 PM »
Yea i know, its just a different hex number parameter. Ill try to check with wireshark, to see what is happening...

12
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 12:06:20 PM »
BCD for E area dont work.

13
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 11:45:33 AM »
Hi, beta35 now works and write the right value to D area, but write to E bank0 area dont.....

14
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 10:44:21 AM »
Yes, Beta 34 it is...

15
Open Discussion / Re: Latest version AHMI InterpretValueAsBCD
« on: March 26, 2020, 06:14:31 AM »
I find the same problem at this topic at the end
https://www.advancedhmi.com/forum/index.php?topic=2058.195


Pages: [1] 2 3 4