166
Support Questions / Re: how to make my own component?
« on: October 16, 2016, 12:12:08 PM »
thanks for replaying
i used to make them when i was using DMT.dll Library
the library that communicate with delta plc
i was doing it like this :
1- add new item ( user control )
2- i put in its designer what i need
-picture box
-(3) text boxes one for each variable and hide them
-timer
3-i disable the picture box
4- i put the request data function in the timer
in the function there is 3 variables
a- the device address (coil address in my case)
then if the received data is 0 then picture box is disabled
and if the received data is 1 then picture box is enabled
5- i put the property i need to be able to change it ( witch in my case is the plc value address )
6- rebuild the project
so in the end
the when i choose it from the toolsbox
i put the value address
and when i start the program if the coil is on the picture moves
no i wanna be able to do that with the advancehmi
so i want the code
that i should use to send and receive data using it
i used to make them when i was using DMT.dll Library
the library that communicate with delta plc
i was doing it like this :
1- add new item ( user control )
2- i put in its designer what i need
-picture box
-(3) text boxes one for each variable and hide them
-timer
3-i disable the picture box
4- i put the request data function in the timer
in the function there is 3 variables
a- the device address (coil address in my case)
then if the received data is 0 then picture box is disabled
and if the received data is 1 then picture box is enabled
5- i put the property i need to be able to change it ( witch in my case is the plc value address )
6- rebuild the project
so in the end
the when i choose it from the toolsbox
i put the value address
and when i start the program if the coil is on the picture moves
no i wanna be able to do that with the advancehmi
so i want the code
that i should use to send and receive data using it