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

Pages: [1] 2
1
Open Discussion / Re: Alarm Sound enabled/disabled per CheckBox
« on: March 07, 2017, 01:03:53 PM »
"You could also modify the SoundPlayer and give it an Enabled property."

That would be great, but how does it work?

Steffen

2
Open Discussion / Re: Alarm Sound enabled/disabled per CheckBox
« on: March 07, 2017, 12:19:33 PM »
Hello Archie,

Many Thanks. This works perfectly :-)

Steffen

3
Open Discussion / Alarm Sound enabled/disabled per CheckBox
« on: March 06, 2017, 09:39:42 PM »
Hello programmers,
is the following possible by code or similar?
I would like to activate / deactivate an acoustic alarm with a "CheckBox". The Alarm comes by DI Tag-address (for example, 10001).

This is certainly possible with a datasubscriber, I just do not know how :-(

Thank you for your support
Steffen

4
Open Discussion / Re: Delay between individual addresses (Sequenz)?
« on: February 15, 2017, 05:01:02 PM »
Thanks Godra,
With the Button I thought synonymous already, that would not be so good.
Meanwhile I have tested with DataSubscriber:

Code: [Select]
Private Sub DataSubscriber16_DataChanged(sender As Object, e As Drivers.Common.PlcComEventArgs) Handles DataSubscriber16.DataChanged
        'Zum Einschalten einer Gruppe. Coil 00080 (DO15) einlesen und dann "1" schreiben. Mit Pausen.
        Dim CurrentValue As String = ModbusRTUCom1.Read("00080")
        If CurrentValue = "True" Then
            ModbusRTUCom1.Write("00065", "1")
            ModbusRTUCom1.Write("00066", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00067", "1")
            ModbusRTUCom1.Write("00068", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00069", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00070", "1")
            ModbusRTUCom1.Write("00071", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00072", "1")
            ModbusRTUCom1.Write("00073", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00074", "1")
            ModbusRTUCom1.Write("00075", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00076", "1")
            ModbusRTUCom1.Write("00077", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00078", "1")
            Threading.Thread.Sleep(500) ' 0,5 sec warten
            ModbusRTUCom1.Write("00080", "0")
        End If
    End Sub

This has also worked with the BasicButton and is suitable for my purposes well.
I will also try your suggested code

Steffen

5
Open Discussion / Re: Delay between individual addresses (Sequenz)?
« on: February 12, 2017, 11:52:54 AM »
Ok, I'll try that :-)

6
Open Discussion / Re: Delay between individual addresses (Sequenz)?
« on: February 12, 2017, 11:15:59 AM »
Thanks Godra, but I would have to do something like this:

Code: [Select]
After pressing a key
ModbusRTUCom1.Write("00070", "1")
delay(500ms)
ModbusRTUCom1.Write("00071", "1")
delay(500ms)
ModbusRTUCom1.Write("00072", "1")
delay(500ms)
ModbusRTUCom1.Write("00073", "1")
delay(500ms)
...etc.

This is to switch on the lambs one after the other, since otherwise the inrush current becomes too great.

Best Regards
Steffen

7
Open Discussion / Delay between individual addresses (Sequenz)?
« on: February 11, 2017, 04:48:27 PM »
Hello,

The "BasicButtonMulti" is already very good :-) but can one insert a delay between the individual addresses in the list?
Or is there another way to incorporate a sequence with delay?
E.g. Key press -> send "1" to address1 -> delay -> send "1" to address2 -> delay -> send "1" to address3 -> etc.

best Regards
Steffen

8
Open Discussion / Re: Switching function (toggle) Code
« on: February 06, 2017, 07:31:18 AM »
I have changed the Adresses a little and then works fine :-)

Thank You very much

Steffen

9
Open Discussion / Re: Switching function (toggle) Code
« on: February 06, 2017, 06:07:41 AM »
OK, in short.
I will replace the MouseClick Event from a Button with a Input Signal (momentary, not latch) from DI.
This toggle the Output. The Modbus-Modul has no PCL funktions. I think the 16 I/O's is not to much for the great AHMI :-). And 99% i will control the outputs per AHMI on a Tablet.

sorry for the poor english.

best regards
Steffen

10
Open Discussion / Switching function (toggle) Code
« on: February 05, 2017, 11:14:42 PM »
Hello,
I would like to query 16 digital inputs with momentary switch (Adr. 10001 ....) to toggle 16 digital outputs (Adr. 00065 ....).
I have only a 16 port in/out module without its own intelligence. Is an Modbus DAQ from Inlog "EDAM-5029".
The switch and Indicators by AHMI works very well. But I also need the normal Wall-Buttons for on-site operation.
E.g. if push Wall-Button 1 then toggle Output 1 etc.

Thanks and best regards
Steffen

11
Support Questions / Re: ModbusTCP Error handling in bad network latencies
« on: September 25, 2013, 11:23:13 AM »
@ TSLJon,
yes, this is the Error (Com Fail 20).

@ Archie,
on the Simulator is all very good.
I will be testing with a better network, but a fault tolerant driver would certainly be good :-)

vielen dank für das super programm!
Steffen

12
Support Questions / Re: ModbusTCP Error handling in bad network latencies
« on: September 24, 2013, 01:28:01 PM »
I read 16 digital Inputs and 16 Register (Counters) and i read/write 8 coils. I m not write any code in Background. My Lan is very old (Thin Ethernet). The Modbusdriver has one Instance in one Form only.
I suppose the connection sometimes breaks off and is not automatically rebuilt. after a restart then goes again for some time.

thanks for Help
Steffen

13
Support Questions / ModbusTCP Error handling in bad network latencies
« on: September 23, 2013, 09:08:47 PM »
Hi,

can be compensated with simple adjustments in the ModbusTCP driver poor latencies of the network?
Often there are error messages in the buttons and Displays :-(
I have at the moment 600ms polling intervals (less would be bad).

THX
Steffen

14
Feature Request / Re: Play Sound by digitalInput 1
« on: September 23, 2013, 04:05:36 PM »
yes thank you. the tip was great :-)
the value is retrieved correctly ("True" or "False"). I have modified then the value from "1" to "True", this Make it work. Simple!

many thanks again
Steffen

15
Feature Request / Re: Play Sound by digitalInput 1
« on: September 23, 2013, 01:05:28 PM »
can you hereby do something?


Pages: [1] 2