Author |
Message |
DavidCozens
|
PostPosted: Thu Sep 12, 2013 10:12 am |
|
Joined: Fri Nov 23, 2012 11:42 am Posts: 54
|
I have a program defined in a library that is related to a device driver. I want to be able to invoke the same program from multiple tasks passing a different argument in each case. The argument would be a handle related to the device driver and would come from a GVL.
When I add the program to a task the "Insert with Arguments" box is ticked - but greyed out.
I can work around this by having multiple program instances - but this is much less elegant.
|
|
Top |
|
 |
shooter
|
PostPosted: Sat Sep 14, 2013 10:07 am |
|
Offline |
Frequent User |
 |
Joined: Thu Jun 14, 2007 9:49 am Posts: 987
|
call it as a function block that can have inputs.
_________________ shooter@home.nl computer shooter paul deelen jacob van wassenaerstraat 29 NL 5224 GG 's-Hertogenbosch skype shooter paul.deelen phone +31736139136
|
|
Top |
|
 |
DavidCozens
|
PostPosted: Tue Oct 29, 2013 10:12 pm |
|
Joined: Fri Nov 23, 2012 11:42 am Posts: 54
|
I've just come back to this, I found another way of solving my problem, however your response interests me. Is it possible to directly call a function block directly from a task in codesys 3.5? I know that it is possible according to the IEC language specification, but then so is calling a program with a VAR INPUT (I think).
When I try to add a call to a POU to a task I can only select program objects and I cannot add arguments, am I missing something?
|
|
Top |
|
 |