question

Adna Lima avatar image
1 Like"
Adna Lima asked Adna Lima commented

Problems to read data from PLC with OPC UA

Hello, I am trying to set up and opc ua connection with and Advantech Module ADAM-6317 to read data from a PLC. I am using FlexSim 22.2.0.

When I put the credentials, it tells me that the conecction is succesful.


When I try to read the variables from a Digital Input of the module, I get this error:

exception: FlexScript exception: VIEW:/active/EmulationProperties2688925552/TabControl/Variables/SplitterX/RightPanel/PropertiesPanel/OPCUAVariableSensor/Browse/BrowseUAConfiguration3206015304/Tags>eventfunctions/OnSelect c: VIEW:/active/EmulationProperties2688925552/TabControl/Variables/SplitterX/RightPanel/PropertiesPanel/OPCUAVariableSensor/Browse/BrowseUAConfiguration3206015304/Tags i: VIEW:/active/EmulationProperties2688925552/TabControl/Variables/SplitterX/RightPanel/PropertiesPanel/OPCUAVariableSensor/Browse/BrowseUAConfiguration3206015304/Tags>items/Objects/Digital_Input


To write data on PLC I don't have any problems. As you can see in this video, I send values to turn on and turn off the light and it's sucessful.


Someone can help me?


Thanks in advance.

FlexSim 22.2.0
emulationplc emulationopc uacommunication socket plc and flexsim
advantech-test.mp4 (1.9 MiB)
· 25
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Can you read it using UAExpert?
0 Likes 0 ·
Adna Lima avatar image Adna Lima Jason Lightfoot ♦ commented ·

Hello Jason!


Yes, when I use other clients (UA EXPERT, Prosys OPC e OPC EXPERT) I don't have problems, just when I try read data using Flexsim to get Digital Input, the options window doesn't even open.

1665077066795.png

I tried in the 22.1.4 version too.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Adna Lima commented ·
Does the error appear when you try to browse to the structure to select a nodeID?
0 Likes 0 ·
Show more comments
Show more comments
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Adna Lima,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·

0 Answers