Hello guys!
I have seen signals received from the PLC in many posts:
Code
DEFDAT
Decl int Carlength=1000
SIGNAL EXAMPLE $IN[1] TO $IN[16]
END
DEF Mainprog()
Carlength = Example_Func()
DEFFCT INT Example_Func()
;SIGNAL EXAMPLE $IN[1] TO $IN[16]
RETURN
ENDFCT
END
Display More
However, in this thread i would like to ask how should i send a value like 100 to PLC?
I think i have to "declare" signals as i wrote upper, but this time i have to use outputs:
However, i can't use RETURN in the function section to send to PLC the value, can i?
I hope you can help me guys!
Appreciate your help in advance!