As starting to make an own DLL I choose to construct a Relay.
There are 5 inputs. One for setting the relay on/of, and 4 inputs.
The switch is doing with an if statement.
if INput[5] > 2,5 then
{
// activate relay
}
else
{
// deactivate relay
}
Simple I copy the input[] to an output[], but this is'nt working.
Should a save the old status when leaving the dll?
Can someone help me with this simpleblock.
I include the profilab model and the source file for the DEV compiler.
Thanks allot.
![Wink ;)](./images/smilies/icon_e_wink.gif)