In my robotprogram I want to simulate IO signals by program code.
Fore that I have temporarely put the IO signals (DI and DO) on a virtual board instead of the Profinet.
When I try to write the di and do from a background task (multitasking option), the background task is stopped.
What can I do to write to my di's and do's from another task then the main robottask?
Simulate IO-signal by program
-
Plc_User -
November 14, 2018 at 5:52 PM -
Thread is marked as Resolved.
-
-
Accessing I/O's from a background task shouldn't be a problem so it sounds as if there's an issue with your I/O setup (access levels etc)
What error(s) do you get from the background task ?
-
Maybe for backgraund Task is better you use PERS data?
you have one Controller, normaly is not necessary use Signals for this -
You cannot set a DI, it is an INPUT. Maybe you can just use DO's and make like the ones that should be inputs actually are. Or, cross connect another virtual DO that you can set to the DI.
-
I could solve it by crossconnections.
It seems able to write to the profinet internal digital inputs by an output with the cossconnection mechanism.
This solves my simulation isue.