The oRepeat Object monitors the value of the oLogic Object pointed to by the Input property. When the Input value transitions to the active state, which is specified by the InvertIn property, the Result property is set to 1 and a timer is started which counts in 1/60th of a second increments. When the timer's value reaches the value specified by the Period property, then the Result property is cleared to 0 and the repeat function is started. The repeat function then cycles the Result property at a rate specified by the Rate property which is also in 1/60th of a second increments. When the Input value transitions to an inactive state, the Result property is cleared to 0 and the Object restarts the operation. The Operate property determines if operation is active and the Result property is updated. Each time the Result property is updated, its value is also copied to the oLogic property of the Object pointed to by the Output property. If the InvertOut property is set to 1, then the value of the Result property is inverted before it is copied. |