How can i change Parameter definition dialog in structured text?
I need change the delay time for TON function in structured text. I see that the Parameter definition dialog is "Pte". i make this script
PROGRAM Sedimentador VAR Pre:TIME;Out1:BOOL; In1:BOOL; In2:BOOL; In3:BOOL; Temp2 : TON; END_VAR In1:= true; In2:= true;In3:= true; Pre:= T#5s; In3:=True; Temp2(IN:=In1,RES:=In3,Pte:=Pre,OUT=>Out1); END_PROGRAM When i check this program, it shows "unknown pin" in the Pte parameter. I verified that in the time section the access parameter was true.
The parameter Pte is not a pin and therefore not externally addressable. You should use the block TIMER, which has a pin for the external timing. To use this, the block must still be set to external (ME: = TRUE and MI: = FALSE)