NumericInput, NumericOutput and not working

I created a NumericInput and a NumeicOutput that i binded to two differant OPCUA variables
The NumericInput is binded to “PoidsSimu”

The NumericOutput is binded to “Temps”

However the NumericInput is not submiting the entered value to the variable, and the NumericOutput is not changing when the “Temps” variable changes value.
The watch shows that the “Temps” is changed (Via an ST script that adds 1 every second), and the variable “PoidsSimu” is not being changed.

I tried to make those same widgets on another automation studio project and they worked perfectly fine. Is there some configuration elements that i missed?

In the screenshots you can see the watch for the variables “Temps” and “PoidsSimu”, aswell as the .uad file for the OPCUA variables

Here is the .binding file associated with the mappView page

<?xml version="1.0" encoding="utf-8"?>

<BindingsSet id="IHM_Content_binding" xmlns="http://www.br-automation.com/iat2015/binding/engineering/v2" xmlns:bt="http://www.br-automation.com/iat2015/bindingListTypes/engineering/v2" xmlns:be="http://www.br-automation.com/iat2015/bindingListEmbedded/engineering/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">	
<Bindings>	
	
<Binding mode="oneWay">		
<Source xsi:type="opcUa" refId="::Chronometr:Temps" attribute="value" />		
<Target xsi:type="brease" contentRefId="IHM_Content" widgetRefId="NumericOutput1" attribute="value" />	
</Binding>	
	
<Binding mode="twoWay">		
<Source xsi:type="opcUa" refId="::Fourche:PoidsSimu" attribute="value" />		
<Target xsi:type="brease" contentRefId="IHM_Content" widgetRefId="NumericInput1" attribute="value" />	
</Binding>

</Bindings>
</BindingsSet>

There are a few different things that could be the culprit here.

  • Which version of Automation Studio are you using?
  • Do you see Xs in the widgets where you would expect a number, or is there a number that just doesn’t reflect the variable value?
  • Are other variables/widgets in your visualization working correctly?

Here are some basic things to check:

  1. Is IHM_Content_binding referenced in the .vis file? This would be in the mappView folder in your Configuration View.
  2. Is the OPC UA server enabled? In AS 4.x this is done in the CPU configuration. In AS 6, it’s done in the Configuration View → Connnectivity → OpcUaCs → UaCsConfig file
  3. If you’re using AS6, to enable OpcUa communication for anonymous users, you need to add the BR_Engineer role to the Anonymous Access section of this file (make sure to show Advanced Parameters using the button at the top of the window)

Hey Marcus, sorry for the late response.

you were right!
the .vis file was not completed correctly.

I still have a question about tableItems that are binded to text tables. The tableas are loading but the tableItems are not displaying anything despite the variables contaning data. No loading icons, just emptiness, like if the variable contained nothing

Here is the binding for the widget (that is correctly setup in the .vis)

<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:Nom_Trames_SPU" attribute="value" />
<Target xsi:type="brease" contentRefId="contentTramesEmisesSPU" widgetRefId="TableItem2" attribute="stringValue" />
</Binding>

and here is the decleration

image

Hey Kylian,

Great, glad that fixed it!

That binding looks correct, and the declaration definitely looks like an array of strings. Is your variable Nom_Trames_SPU used anywhere in code? The compiler will ignore it unless it’s written somewhere. You can even just put Nom_Trames_SPU; into an INIT program.

Also, make sure it is enabled in the OPC UA Default View file.

Hey Marcus,

Yes that did it, simply putting the Nom_Trames_SPU; in an init fixed it.

Thanks again