LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem bound variables(shared variable)

hi , I'm trying to take values from step7 using OPC server, there is no problem sending the values . the only problem is that I can't get the negative values knowing that in OPC server the negative value is seen . when I use an indicator in labview I'll get 4.29 for negative values . I dn't know where is the problem .

0 Kudos
Message 1 of 8
(3,815 Views)

We probably need significantly more information. Can you show us some code?

Do all negative values show up as 4.29, irrespective of their original negative value?

You mention shared variables in the post title? What is the significance?

0 Kudos
Message 2 of 8
(3,769 Views)

I mean by shared variable , the shared variables created by the OPC server between PLC and labview

4546546556.JPG4546546556.JPG

565666.JPG

as can be seen in OPC server the value of the error is -3.6685 but in the indecator of labeview I get 4.29467296 E+9

 

0 Kudos
Message 3 of 8
(3,758 Views)

I mean by shared variable , the shared variables created by the OPC server between PLC and labview

4546546556.JPG4546546556.JPG

565666.JPG

as can be seen in OPC server the value of the error is -3.6685 but in the indecator of labeview I get 4.29467296 E+9

 

0 Kudos
Message 4 of 8
(3,757 Views)

That looks like the kind of problem you might have if the endianness was wrong.  And are you sure your data is being sent as single precision float and not an integer?

 

The value 4,294,967,296  is very close (as in right next to) the upper most value for a U32 integer which would be 4,294,967,295.

 

I would double check the data settings in the OPC server for that variable to be sure the data type and the endianness are set correctly.

0 Kudos
Message 5 of 8
(3,750 Views)

as it is indicated in the OPC it is in float point 😕 . what doyou mean by endianness ??

0 Kudos
Message 6 of 8
(3,740 Views)

@riki35 wrote:

as it is indicated in the OPC it is in float point 😕 . what doyou mean by endianness ??


http://en.wikipedia.org/wiki/Endianness

0 Kudos
Message 7 of 8
(3,738 Views)

sorry I could not figure out where is the problem although the configuration in OPC is correct  😞

0 Kudos
Message 8 of 8
(3,734 Views)