Your comments

I have found the problem. It will be included in the next release. I will send you a patch via mail!

No currently this is not implemented - will be possible in the next release (latest end of this month)

Hi,

what do you mean you can't read all nodes. Reading all nodes takes some time if there are a lot of variables on the OPCUA server because it is not multithreaded imported (we will change that soon). This is why it is usually better to only import the subnode which is really needed.

For the problem with your variable, the problem seems to be the type (the type is Variable - but it should be Int64). I need to check what the reason ist. 

Can you please try to read the variable directly in code (without having the node as a gameobject) by doing like this:

float myvar = (float)Interface.ReadNodeValue(NodeId);

Hi,

a few questions from my side to understand the problem.

Did you checked the NodeID you want to display the text from with an OPC UA Browser (you can find several in the internet).

Is the text displaying if you use an OPCUA_Node Script - the text should be sown under value?

If both things can be answered yes the communication is correct and it is just a programming issue on your side.

What I am wondering about is, that your NodeID is called "Counter1". It seems more that it is not of type string. Maype you missed to convert the integer to a string?

Best regards

Thomas

Yes sure this is possible. The ip adress is just a property and you can start the connect at any time by script if you want. You will need to build a GUI based on Unitys UI system to let the user put in the IP adresse and then you can start the connection via script. 

Hi Allen,

you are right. In the starter pack there is only the Siemens PLC included. You could do similar things than in the picture but you will need to do all the ar stuff (message boxes) with Unity yourself. In the next weeks Game4Automation Professional will include this. Also S7 communication is in comparison to OPC UA limited. No arrays, no strings, no subscription. But if you poll the variables and you are ok with basic data types like integer, float, boolean you can go with the starter pack.

Best regards

Thomas