FOR instruction
UNDER DEVELOPMENT
This instruction executes a set of instructions suiccessivelly for each member of an Object Set
Syntax:
for mem in objectSet
For Instruction Block (FIB)
end_for
where
- objectSet
- name of the SMI Object Set
- FIB
- Instructions to be executed for each member of objectSet
- mem
- is an arbitrary name representing objects in objectSet. The only constrain is that it must not confict with any other object name in FIB
Example
For Instruction Block (FIB)
One can think about FIB as if it was a function with one argument mem. This argument is then used by the instructions within FIB. The following are the SMI instructions that are suppotted within FIB. For each instruction its use within FIB is described.
DO instruction
Only the object that is beiing acted upon, can be replaced by argument ObjNm. As in the example above.
WAIT Instruction
Any of the objects within the WAIT bracket can be replaced by the argument. As in the example above.
Work is continuing on allowing other instructions to be used within FIB.