Help in communication with external environement

Find and share HowTos to various installations / configurations!
Search

Post Reply
8 posts • Page 1 of 1
anes47
Posts: 6
Joined: Mon Apr 08, 2019 8:58 am

Help in communication with external environement

Post by anes47 » Mon Apr 15, 2019 8:09 am

Hi,

I have a question regarding the logic procedure.

I want to control a 3D simulator witch is developing in Unity game engine from WinCC OA.

Kind of pushbuttons in Wincc OA panel that control the movement of an object in Unity (How to send signals to extern environement)

Thank you

User avatar
leoknipp
Posts: 1712
Joined: Tue Aug 24, 2010 5:28 pm

Re: Help in communication with external environement

Post by leoknipp » Mon Apr 15, 2019 9:57 am

You have to look which protocols the external application supports. Probably you will then find out how to communicate with WinCC OA.

Best Regards
Leopold Knipp
Senior Support Specialist

anes47
Posts: 6
Joined: Mon Apr 08, 2019 8:58 am

Re: Help in communication with external environement

Post by anes47 » Mon Apr 15, 2019 12:40 pm

Thank you for your answer

I need to communicate via JSON file, kind my external application listen to JSON file and WinCC OA write into it.

Best Regards

Anes

User avatar
leoknipp
Posts: 1712
Joined: Tue Aug 24, 2010 5:28 pm

Re: Help in communication with external environement

Post by leoknipp » Tue Apr 16, 2019 3:16 pm

Probably I do not understand the answer.
What is "communication via JSON file"?
What does "listen to JSON file" mean in detail?

Is it meant that some writes the JSON file and the application reads it then (by a trigger)?

Best Regards
Leopold Knipp
Senior Support Specialist

anes47
Posts: 6
Joined: Mon Apr 08, 2019 8:58 am

Re: Help in communication with external environement

Post by anes47 » Thu Apr 18, 2019 8:17 am

I have a 3d simulator in Unity and I need to control it from WinCC OA (Because I found difficulties to integrate it directly to WinCC OA as an EWO), So I want to create for example a "PushButton" in WinCC and when I click to this last one it will send a message to Unity via JSON to do something, it is possible ?


thank you a lot

User avatar
leoknipp
Posts: 1712
Joined: Tue Aug 24, 2010 5:28 pm

Re: Help in communication with external environement

Post by leoknipp » Thu Apr 18, 2019 10:10 am

JSON is not a protocol, it is just a type of formatting data.
Which protocols does the 3rd party application support?

Best Regards
Leopold Knipp
Senior Support Specialist

anes47
Posts: 6
Joined: Mon Apr 08, 2019 8:58 am

Re: Help in communication with external environement

Post by anes47 » Thu Apr 18, 2019 4:48 pm

Unity can use TCP socket connection as protocol

Best Regards

Anes

User avatar
leoknipp
Posts: 1712
Joined: Tue Aug 24, 2010 5:28 pm

Re: Help in communication with external environement

Post by leoknipp » Fri Apr 19, 2019 8:51 am

If the 3rd party application has TCP server socket you can use the tcp* CTRL functions to send data to this socket.

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
8 posts • Page 1 of 1