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

Pages: 1 [2] 3 4 ... 342
16
Support Questions / Re: RE: Make Global Object
« on: February 21, 2024, 12:01:42 PM »
If you Build the Solution, do you get any errors?

17
Looks like you are using VB syntax in a c# program. c# is going to be stricter with case sensitivity and type conversions.

Your code would look something more like this:

            label4.Text = (int.Parse(label3.Text) - int.Parse(BasicLabel1.Text)).ToString();

18
Only the live value should be a BasicLabel. The other two will be updated via code, so they should only be of type Label.

- From the toolbox, add a Timer to the form
- Set the interval property to the time you want in milliseconds
- Set Enabled to True
- Double click the timer to get back to code
- Add code similar to this:
Code: [Select]
Try
  Label1.Text=BasicLabel1.Text
  Label2.Text=Label1.Text - BasicLabel1.Text
Catch ex as exception
  Label2.Text=ex.message
End Try

19
Support Questions / Re: Modbus 16bit addresses Read Only
« on: February 13, 2024, 08:02:42 AM »
- Add a BasicIndicator to the form
- Set PLCAddressSelectColor2 to 30209.0
- Set PLCAddressSelectColor3 to 30209.1

20
Support Questions / Re: Modbus 16bit addresses
« on: February 12, 2024, 07:16:33 PM »
I checked the code and it will use function code 6 if there is only a single register to read.

21
Support Questions / Re: Modbus 16bit addresses
« on: February 12, 2024, 01:31:03 PM »
AdvancedHMI uses function code 3 to read 16 bit registers and function code 16 to write them.

Normally you use addresses in the 40000+ range, such as 40001

I

22
Open Discussion / Re: ON/OFF Button for bit in a register Modbus TCP
« on: February 05, 2024, 01:24:07 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

23
That piece of code should only be in the MainForm or the Mainmenu form, which would be the only form being closed to exit the application.

24
can you ping the IP address?

25
The version of the dll is 1.2.5.0 when I look at the properties.
That's quite an older version. If you email sales at advancedhmi.com, and give your order number or email in which it was registered, you can get the latest version that won't give an exception.

26
What version of the ClxDriver are you using? I want to make sure I test in the same version because an un-catchable exception should not be thrown.

27
Support Questions / Re: basic label or other help
« on: January 20, 2024, 11:34:05 AM »
Use HighlightColor, HighlightForecolor, and PLCAddressHighlight

29
Support Questions / Re: RE: Display Position By Integer Value
« on: January 13, 2024, 12:08:26 PM »
The reason PLCAddressLeft worked is because of an AdvancedHMI feature known as Auto Properties. The software will look for properties with the name PLCAddress*. It will strip the PLCAddress off those properties then use what's left to see if a property exists by that name. If so, it will use the value from the PLC to push into that property.

The BasicIndicator has a property named Top that will set its distance from the top of the form (or container that it exists in). If you modify the BasicIndicator by adding :

Public Property PLCAddressTop as string

AdvancedHMI's Auto Property feature will link the PLC value from the tag/register to the property Top.

30
Support Questions / Re: Alarm Display Creation using only Boolean Tags
« on: December 13, 2023, 07:57:43 AM »
In version 3.99y there is a MessageListByItem that lets you select random booleans for message triggers.

Pages: 1 [2] 3 4 ... 342