Fill Vector enables you to set a range of registers. The function copies a value from a desired operand or constant value (source), then writes that value into every operand within the range (target vector).
You can fill a vector of MI registers or Database registers by selecting the appropriate function.
Note that since there is no Ladder element for this function; you perform it by storing values into:
SI 141 to determine the start of the target vector,
SI 142 to determine the length of the target vector,
SI 143 to select the Fill Value; the register whose value will be written into each register within the target vector,
SI 140 to select the type of function. Storing the function number calls the function. In your application, call the function after you have entered all of the other parameters.
To use Fill Vector:
|
Note that when you run Test (Debug) Mode, the current value in SI 140 will not be displayed. |