|CODESYS - the IEC 61131-3 automation software
|How can i set or reset an analog function?
|Page 1 of 1|
|Author:||Ties22 [ Mon Dec 10, 2018 3:35 pm ]|
|Post subject:||How can i set or reset an analog function?|
I have made an analog function block that will do the analog stuff. If it is possible i want to set and reset the function block with a digitial signal from a button. can anyone give me some advice on how to do this? I can't really find anything that will make me able to combine the digital and analog signals.
|Author:||andrzey13 [ Mon Jul 29, 2019 2:35 pm ]|
|Post subject:||Re: How can i set or reset an analog function?|
I sugest to do it in FBD using SEL function block. It works like IF function. It has got 3 inputs and 1 output. First input is a trigger (your bool varable). When bool=FALSE, then output takes 2 input, when bool=TRUE, then output takes 3 input. So solution is like this. 1in=bool variable, 2in=var_in_out, 3in=your_analog_signal, out=var_in_out. It will work like a buffer.
|Page 1 of 1||All times are UTC+01:00|
|Powered by phpBB® Forum Software © phpBB Limited