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

Pages: 1 2 3 [4] 5 6 ... 12
46
thanks for your replay and help Phrog30 and Godra

am trying to use your interface mr Phrog30 for my project

but i have few problems i need your help with them


i will send you my file in the messages and i hope you can help me if you can spare some time for me

47
i didn`t add or remove anything
just extracted the files and rebuild the project


48
HELLO
AND THANK U FOR SHARING

BUT I HAVE A PROBLEM

I EXTRACTED THE FILE
THEN STARTED IT
REBUILD THE PROJECT

BUT GIVES MULTIPLE ERRORS

AS IN THE PHOTOS


49
ok i will work on that

thanks

50
but if may i ask
i gave all the  4 ModbusTcpCom drivers an ip for each one and each two have the same ip , is that the reason the connection status does not work? ?
and when i use it i will make it to show the connection status for each ModbusTcpCom separately
from now on i will work like phrog by copying and modifying  each control i need and add it to the project

and what i mean about not having that software is that i don`t need it at this step

for the alarming issue and the audit am done with it for now i got the main idea how to do it from you and Prohg


if you opened the image i add for my first project u will understand that it  takes me  along time between each step and the next

https://drive.google.com/file/d/13SwXp37vUaoh9ygR_X2flgGMCNHJo-Ey/view?usp=sharing

becouse i design the images i test them (how they look in the project ) then i move to the next step

at now i will continue working at my current project i will come back when i have another questions and to share how i did it to get your advice's

with thanks :)

51
MODRSsim2 i don`t have it

52
in the link is an image of my first project

which in it i had 6 plc`s in 3 different cities

it worked fine the only thing i didn`t do in it is a history page and database

https://drive.google.com/file/d/13SwXp37vUaoh9ygR_X2flgGMCNHJo-Ey/view?usp=sharing



53
I connected it to the plc not to the simulator
I have set up two testing plcs so in the image
each two multistate is connected to a plc
And each one is set to a diffrent register


Mr Progh for my projrct us didn't have any problem with working with multi plcs at the same time
What i am doing here is learning more and more from the experts like you, Archie and Godra and am not saying that to complement  any one
Am always looking to learn more and when i see a project that i like i start asking questions  to understand how it is done

This is the second project on vb net i make
In the one am working on i am connected to 6 plcs and the hmi is on more than one computer at the same time and they are working fine
But your project and the way you made it
It looks and works more professional ,  and thats what i need

For the alarming i never had a problem  of using multistate to show it to the user
And to tell you the truth there is another step am going to work on which  is the Audit page will recieve data from another pc's so it will be working as one pc i a server and the others are clients

And to tell the truth am at this time more of a designer  than a programer
I will attach image of my first project when i get to my laptop so you can understand what am to
And i apologies if my English and the way i ask questions  is bad

And am really  thankful  for your help guys ☺️

54
away from the alarming thing

how did you make the project this way
when the program starts it opens (_0000_1st_Parent.vb)
but it has (_0001_Main.vb )inside it as it is a part of it ?

i read something about mdi parent and child forms

but i didn`t try it before

so in this project how did u do it ?
can you show me the way?

usually my projects depends on images and panels
each page i need i create a form for it and change form button

55
i tried your project Godra it reads the alarm but does not show a pop up massage and does not show it in the alarm history and active alarms

56
lovely

thanks for your help Godra and Phrog

i will keep u posted

57
first thanks a lot for your help

i am trying to use it  but i did not make it work yet
i will keep trying and then i will tell u what happens

58
look i tried to do the audit thing
so i edieted the multistat control

i add this code u have in one of the forms

Code: [Select]
Dim CurrentUser = Globals.LoginName
                    If CurrentUser = "" Then
                        CurrentUser = "None"
                    End If
                    Dim Audit_History As New AHMI_v1.Audit
                    Audit_History.Send(Globals.AuditDBPath, CurrentUser, "Alarm", Me.Messages(i).Value, "")


then i pasted it inside the multistate code under the Region "Private Methods" as like this

Code: [Select]
If m_TriggerType = 0 Then
            For i = 0 To Me.Messages.Count - 1
                If m_value = Me.Messages(i).Value Then
                    State_Ptr = i
                    StateChanged = True
                    Dim CurrentUser = Globals.LoginName
                    If CurrentUser = "" Then
                        CurrentUser = "None"
                    End If
                    Dim Audit_History As New AHMI_v1.Audit
                    Audit_History.Send(Globals.AuditDBPath, CurrentUser, "Alarm", Me.text, "")
                End If
            Next
        End If


then i rebuilt the project
and it showed as the photo in the Attachments

so this solved the audit issue for me
but if u have a better way or any advice please tell me

now i will work on the alarm page
and the connection status



59
ok i will work on it step by step

first i add a ModbusTCPCom1
then i add Mutlistate1
then i add a tag ( plc address D13 ) which should be written like ( 44110 ) in the plc address of the Mutlistate1 properties
now when i start the app it shows the message correctly according to the value.

what i don`t know how to do
is how to show this message in these forms ( _0080_Alarm_Active , _0085_Alarm_History , _1001_Audit )

60
Yes and i used it but sadly for i am new in vb i didn't know how to use it with a database or to add it to the audit page and the history page the idea in my head is to use a multistate control for each plc then connect them with the audit page and the history page
And i couldn't do  the connection status for each plc i hope u guys can put me in the right direction
With thanks

Pages: 1 2 3 [4] 5 6 ... 12