AdvancedHMI Software
General Category => Open Discussion => Topic started by: TCE on March 07, 2023, 02:45:51 PM
-
I am looking for a numeric display that I could assign a floating PLC address to. the best one i found is the Sevensegment2 which would be okay if value could be centered. is there any other object similar to the sevesegment2 i could use?
-
Any object that has the property PLCAddressKeypad can have values entered by clicking on the object
-
thanks Archie
now how do i use a PLC address in a code without assigning it to an object
-
Do you want to read a PLC value in code?
-
Yes what I'd like to do is. Read the value from the PLC without assigning it to an AHMI object and create an action with code instead of writing logic in the PLC. Can I do this in the background when AHMI is not running? for instance: Sending an email on an alarm without have to open the exe file. I am trying to get away from having to do it in the PLC as I have a lot of numeric values to monitor within groups with different setpoint for each group and alarms for each individual numeric value as set its group.
-
Which driver are you using?
-
ModbusTcp
-
Dim MyValue As Integer = ModbusTCPCom1.Read("40001")
-
how do i do a floating integer
-
how do i do a floating integer
Dim MyValue As single = ModbusTCPCom1.Read("40001@F")
-
What code do I have to use to read floating point numbers and also double integers with omron plc with the OmronEthernetFinsCom driver?.
I tried the following code, but it doesn't work, I get the error "The string entry is not formatted correctly"
Dim ValueFloat As Single = EthernetFins_ST60.Read("D2000@F")
Dim ValueDint As Integer= EthernetFins_ST60.Read("D2000@L").
-
What code do I have to use to read floating point numbers and also double integers with omron plc with the OmronEthernetFinsCom driver?.
I tried the following code, but it doesn't work, I get the error "The string entry is not formatted correctly"
Dim ValueFloat As Single = EthernetFins_ST60.Read("D2000@F")
Dim ValueDint As Integer= EthernetFins_ST60.Read("D2000@L").
Are you using version 3.99y?
-
No, I'm using the latest version 3.99x
-
No, I'm using the latest version 3.99x
Try the version 3.99y Beta from this forum. I think it supports the @F with the Omron driver
-
With version 3.99y it works fine. Since I have made my application with version 3.99x, it is possible to implement it in an easy way in version 3.99x, to perform readings of double integer and floating numbers, and not have to change all the program I have made to version 3.99y.
-
https://www.advancedhmi.com/forum/index.php?topic=218.msg13764#msg13764
-
With version 3.99y it works fine. Since I have made my application with version 3.99x, it is possible to implement it in an easy way in version 3.99x, to perform readings of double integer and floating numbers, and not have to change all the program I have made to version 3.99y.
Why not let the pro handle it for the unbelievably low price upgrade service for 5 bucks:
https://www.advancedhmi.com/index.php?main_page=product_info&cPath=2&products_id=11