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 - Nikola Tesla

Pages: [1]
1
Open Discussion / Basic data logger 2 with unsignal register
« on: October 08, 2024, 04:14:15 AM »
How can I read a unsignal modbus register with basoc data logger 2? I have tryed put U40001 but its not working.

Thanks

2
Open Discussion / Re: AHMI with Profibus dp
« on: October 04, 2024, 12:21:46 PM »
I don't know the Siemens protocols very well.

Could the Snap7 driver that was adapted for use with AHMI be used for Profibus DP?

https://www.advancedhmi.com/forum/index.php?topic=2722.msg18207#msg18207

I was testing the siemens driver and it is for Profinet communication. I don't know if it could be adapted for profibus, the truth is that it would be great to be able to adapt it if it were possible. The thing is that I have to test some siemens PLCs that are slaves in a profibus network that later will be mounted in a network where the master is a Modicon and I do not know how to test the profibus interface without using a gateway for protocols.

Thanks!!

3
Open Discussion / Re: AHMI with Profibus dp
« on: September 23, 2024, 03:13:54 AM »
I'll do some research on snap7

Thanks!

4
Open Discussion / AHMI with Profibus dp
« on: September 22, 2024, 02:33:46 PM »
I normally use AHMI with modbus tcp or rtu protocol and it works great. Lately I have been thinking how I could use it with a profibus dp protocol. Is there any tool to use AHMI with Profibus Dp?

Thank you very much and greetings

5
Support Questions / Re: Float Register with Modbus
« on: March 20, 2024, 08:39:42 AM »
Yes! i just test It. As always thank you!!

6
Support Questions / Float Register with Modbus
« on: March 20, 2024, 06:47:41 AM »
Good morning, I am doing some Float register readings in modbus TCP and I am using the AnalogoValueDisplay with PlcAddressValue F40001. It reads correctly the float register, taking register 40002 as the most significant register (where the sign and the exponent are), I wonder how I could do it the other way round, that is, with register 40001 as the most significant register.

Thank you very much

7
Support Questions / Re: Basic Indicator On wiith decimal value
« on: March 14, 2024, 03:23:10 PM »
The PLCAddressSelectColor2 works on a boolean value, so you can program the comparison in your PLC to set a boolean value.

The other option is to use some code:

- Add a DataSubscriber to the form
- Set PLCAddressValue to the register you want to use
- Double click the DataSubscriber to get back to code
- Enter this code:
Code: [Select]
if e.Values(0)=101 then
  BasicIndicator1.ForColor=Color.Red
else
  BasicIndicator1.ForColor=Color.White
end if

Oh!! Thank you very much Archie for introducing me to the wonderful world of DataSubscriber!!!

8
Support Questions / Basic Indicator On wiith decimal value
« on: March 14, 2024, 06:25:26 AM »
Good morning friends, I have been trying all day to turn on a BasicIndicator in red colour for example when the modbus register is at a decimal value of 101 and when it is at any other value the indicator is off. But something escapes me because as much as I try I don't get it. How could I do this?

 Thank you very much!

 

9
Open Discussion / Re: ON/OFF Button for bit in a register Modbus TCP
« on: February 05, 2024, 01:51:08 PM »
in conjunction with the subtract you want to use a logical AND.

ModbusTCPCom1.Write("40001", Value AND (65535 - 2 ^ (b_Num - 1)))

I can't test that right now, but the 65535 assumes it is an unsigned 16 bit integer, it may need to be a 32767

Thanks Archie!

I have just teste with a ModbusPal Tcp Servidor Simulator and run with 65535 y 32767, this week I'll test with a plc.


10
Open Discussion / ON/OFF Button for bit in a register Modbus TCP
« on: February 05, 2024, 01:18:02 PM »
Hi, I'm new with VB and I was looking for some forum posts to create a couple of buttons for an application. The first button is to set to 1 independent bits of a modbus tcp register and for that I have used Godra's code in another post:

Private Sub BasicButton1_Click(sender As Object, e As EventArgs) Handles BasicButton1.Click
    Try
        Dim b_Num As Integer = 1 'or if dynamically changing then call it from a TextBox, like: Dim b_Num As Integer = TextBox1.Text
        Dim Value = Me.ModbusTCPCom1.Read("40001")
        Me.ModbusTCPCom1.Write("40001", Value Or 2 ^ (b_Num - 1))
    Catch ex As Exception
        System.Windows.Forms.MessageBox.Show("Failed to write value. " & ex.Message)
    End Try

 The second button I created to disable the bit of the word I enabled earlier and for this I used the same Godra code and changed the following command:

Me.ModbusTCPCom1.Write("40001", Value - 2 ^ (b_Num - 1)).

The off button is only connected and appears on screen if the bit it disables is set to 1, but if you quickly hit the button before the associated bit is disabled, it is able to subtract more than once the same bit, how could I avoid it to subtract more than once and not modify the register in a wrong way? Can you think of another way to create an off/on button for independent bits of a register?


Pages: [1]