Hi,
I have created a FB in my program.Had declared an i/p for eg i/p1 in the declaring section.I have called this FB twice in a function using different DB(DB1 & DB2). I have used different i/p addresses(eg I0.0 and I0.1) for this i/p in the function while calling this FB.
I noticed that if I0.0 is switched on in DB1.It shows i/p1 on even in the FB of DB2.
Can someone post me an eg of defining a FB and also calling the FB twice in a function.
Can we define fixed timers in a FB and give its preset value as a variable to change it depending on the FB call?
Regards
Annie
I have created a FB in my program.Had declared an i/p for eg i/p1 in the declaring section.I have called this FB twice in a function using different DB(DB1 & DB2). I have used different i/p addresses(eg I0.0 and I0.1) for this i/p in the function while calling this FB.
I noticed that if I0.0 is switched on in DB1.It shows i/p1 on even in the FB of DB2.
Can someone post me an eg of defining a FB and also calling the FB twice in a function.
Can we define fixed timers in a FB and give its preset value as a variable to change it depending on the FB call?
Regards
Annie