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

Pages: 1 [2]
16
I appreciate the info, but unfortunately this seems a bit over my head.  I have some programming knowledge, but not much in vb.

I don't necessarily need to translate the number to hex before writing it to the PLC.  If I do a .write command, and specify the starting address N1:1, and then the double variable, will it write it to the 4 consecutive integer addresses?  (assuming the .write command works).

For example, in N1:1 I want to write the value of 4A45.  If it is written as an equivalent integer (19013), I assume that would be ok since the PLC sees these two as the same thing, and the Hex/BCB Radix option is only changing the way the data is displayed to me in the data table on the RsLogix program.

17
I have a sensor that uses an RS-422 signal that contains multiple data types in the rs-422 message.  The sensor is connected to my Micrologix 1100, and everything is sent and received in hex format.  I'm using an integer array (set to Hex/BCD Radix) to store the incoming and outgoing messages.  One of the pieces of data is in double format, and I have a question about how to get this to work with the AdvancedHMI screen.

I want to add a text box or label where the user can input a number in double format (lets say, 1234.5678).  In hex format this would be (40934A456D5CFAAD).  Then, I need to write this value to the integer array (say N1:1-N1:4).  So in the end, N1:1 will contain 4093, N1:2 - 4A45, N1:3 - 6D5C, N1:4 - FAAD.

Anyone have any tips on how to accomplish this?  Thanks.

18
Support Questions / Re: BasicLabel, Number of Decimal Places
« on: April 15, 2016, 11:13:16 AM »
In the NumericFormat property enter 0.0

Worked perfect.  Thanks!

19
Support Questions / BasicLabel, Number of Decimal Places
« on: April 14, 2016, 03:32:41 PM »
I'm using a basic label to display a float value from the PLC.  Currently, the label is displaying 5 decimal places.  Is there a way to change it so it only displays 1 decimal place?

Pages: 1 [2]