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

Pages: [1]
1
Are you trying to toggle a bit on the PLC?

Im sending a http command to a home automation controller (a zwave controller) that is on the same home network as advancedhmi,

Sample command:
http://192.168.1.104:3480/data_request?id=lu_action&output_format=json&DeviceNum=18&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1

The end target value turns on or off particular switches etc...

I have a button on the hmi to turn on and off the same light etc..  One click to turn on, then one click on the same button to turn off

Matt

2
I think ive seen this question asked before here but cant seem to find it now..so

I have 2 alternate commands attached to a single button, so when pressed once it activates one command then when pressed again the button activates the second command etc. etc. 

But on each press im getting both commands (or more)  executed each time,

Code im using:

Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
FirstOperation()
SecondOperation()
End Sub

Private Sub FirstOperation()
"my code for command one here"
End Sub

Private Sub SecondOperation()
"my code for command 2here"
End Sub

I would like one click activates 1command then another click activates the second command, then back to command one on the next click.... Basicly im sending a "turn on command then a turn off command" on each button press.

But im getting multiple inputs or command activation's on each button press... Something to do with the rate/speed the code is run, the button the seen as pressed on multiple passes of the code... I think i need some type of "read once then ignore until next press" type of adjustment..

sure there must be a reasonably easy solution..

Cheers
Matt

3
Spot on guys, works a treat..... cheers...

and by the way Archie, thanks for the great bit of software...now hopefully i can convince the AB loving PLC tech at work that this software is easier to use and build with, and as good as if not better than the applications we are using now.....

thanks again
Matt

4
hi guys

im in need of an easy way to send a hand full of simple one line http commands to our home automation z-wave hub/server on our local home network..

im quite new to .net programming, ive tried a few options I have found over the net but i dont really know how to correctly enter the various examples iv found, and i generally end up with multiple errors

all the commands are doing are turning on or off switches etc that are connected to the controller hub, there is no need to open a page or any thing like that, just need to send the various commands over the local home network

example of a command:
http://192.168.1.104:3480/data_request?id=lu_action&output_format=json&DeviceNum=18&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=1

ive seen the generictcpclient option posted on this forum but again i get a bit lost getting the code in the right places...

any help would be greatly apprieciated

cheers Matt


Pages: [1]