Hi,
why does the Code not work in DeltaV Calc-Block?
'^/STRING[0].CV' := "TEST1";
'^/STRING[1].CV' := "TEST2";'^/STRING[2].CV' := "TEST3";
TEMP := 'IN1.CV';'^/OUTPUT.CV' := '^/STRING[TEMP].CV';
This Selector (TEMP) does not work. How can we fix it?
Thanks
In reply to AdrianOffield:
In reply to Matt Stoner:
In reply to Lars:
I've done something similar for silo history, I had to store the product grade and a string array is what would of helped. To do it, I had to use a dynamic reference that was built in the calc block, and then written to once the connection status was OK.
IF '^/HIS_LOT_PT.CST' = 0 THEN
'^/HIS_LOT_PT.CV' := '^/ACTIVE_LOT';
'^/HIS_GD_PT.CV' := '^/ACTIVE_GD';
'^/HIS_INDEX.CV' := ('^/HIS_INDEX.CV' > 3) ? 0 : '^/HIS_INDEX.CV' + 1;
(* Establish link to History Pointers*)
'^/HIS_LOT_PT.$REF' := "^/LOT_PREV" + '^/HIS_INDEX.CV';
'^/HIS_GD_PT.$REF' := "^/GD_PREV" + '^/HIS_INDEX.CV';
'^/ACTIVE_LOT' := '^/NEW_LOT.CV';
'^/ACTIVE_GD' := '^/NEW_GD.CV';
ENDIF
In reply to kdculb:
or you could just go with If in= 1 Then output:= "text 1" ... codes... [;)]
can´t remember if Case is supported in DV ??
Niklas Flykt
Klinkmann Oy
Key Account Manager safety products
nikfly@gmail.com