Marvy Member M Join Date Nov 2014 Location aalst Posts 2 Aug 29, 2021 #1 In my FC I use an inout variable for the memory of a Set/reset. When i call the FC i have the pin at the entry side of the block while i would expcect it at the exit side. Is there a way to change tis ?
In my FC I use an inout variable for the memory of a Set/reset. When i call the FC i have the pin at the entry side of the block while i would expcect it at the exit side. Is there a way to change tis ?
ojz0r Member O Join Date Feb 2009 Location 127.0.0.1 Posts 440 Aug 29, 2021 #2 In TIA, the InOut are always on the left hand side (inputs). The same goes for codesys so i suspect it might be somewhat of a standard.
In TIA, the InOut are always on the left hand side (inputs). The same goes for codesys so i suspect it might be somewhat of a standard.
drbitboy Lifetime Supporting Member Join Date Dec 2019 Location Rochester, NY Posts 8,088 Aug 29, 2021 #3 I expect TIA Portal will always put an InOut parameter on the left side of an FC instruction. You could replace the InOut FC parameter with an In and an Out parameter, and tie them to the same external tag/variable. See below.
I expect TIA Portal will always put an InOut parameter on the left side of an FC instruction. You could replace the InOut FC parameter with an In and an Out parameter, and tie them to the same external tag/variable. See below.
TurpoUrpo Lifetime Supporting Member T Join Date May 2008 Location Switzerland Posts 1,571 Aug 30, 2021 #4 I'm curious, why would you expect it on the right side instead of the left?
goghie Lifetime Supporting Member G Join Date Jan 2008 Location Belgrade Posts 800 Aug 30, 2021 #5 TurpoUrpo said: I'm curious, why would you expect it on the right side instead of the left? Click to expand... From my experience, most programing environments have InOut tags on both left and right side. It is useful.
TurpoUrpo said: I'm curious, why would you expect it on the right side instead of the left? Click to expand... From my experience, most programing environments have InOut tags on both left and right side. It is useful.