Hello everybody,
I want to create a NamedSet with only numeric entry. The named set e.g. should look like: 123, 456, 789. DeltaV doesn't allow me to do this becaus it expects letters. When I enter 123A, 456A, 789A it works, but this is not possible for my Task, because i Need to write this numbers into a log file.
Any ideas to solve this? Thanks!
I also could read the named set entries character by character, but I don't know how to do this as well.
A Named Set entry requires that at least one character be an alpha character. You should be getting an error dialog that has as part of its statement "and must include at least one alpha character."
If you have to have the numbers in a log file you'll probably have to create the named set with a letter in each entry and then use an expression to look at the named set parameter value and pass the value to a string parameter that has the letter stripped out. You could use the SELSTR expression referencing the .CVI field of the named set parameter such as
'^/PARAM1.CV' := SELSTR('^/PARAMSET.CVI',"123","456","789")
where PARAM1 is a string parameter and PARAMSET is a named set parameter where 0 is blank, 1 = "123A", 2 = "456A", 3 = "789A"
In reply to LostEngineer0:
In reply to Scott Thompson:
In reply to handia:
Andre Dicaire
In reply to Andre Dicaire:
Hi, System limitations cannot be overcome. You have to do a workaround in either way. You can use "Signal characterizer" block, as it gives direct relation between two numbers. The block would have to be kept in a composite & link this composite in all module instances it is used. Alternatively, you can replace this composite with a floating point array parameter & an ACT block to select the right array value. But both floating point array or SGCR block can end up in rounding errors, resulting in wrong string written. If you want the data in pure strings, then you can use SELSTR function in the composite (Since the code will be used in many instances, I guess a composite will be must). When you say, the product value is stored in a "Table"? where is exactly this table? in Excel or some other external SW (with "Autofill" Function)? In that case, you can even keep the named set to 123A, etc; & use functions in excel / table to remove the last character. Best Regards, Amod.
In reply to amodbobade: