	
	int32 angle;
	
	public void OS_run()
	{
		if( tDIR == 0 ) {
			return;
		}
		
		if( !runforever ) {
			if( time > 0 ) {
				time - 1;
			}
			else {
				tDIR = 0;
				return;
			}
		}
		addtime + 1;
		
		if( tDIR == 1 ) {
			angle + 1;
			#.OS.REMO_ModuleWrite( (int)(ID * 0x00010000 + 0x0000), angle );
		}
		if( tDIR == 2 ) {
			angle - 1;
			#.OS.REMO_ModuleWrite( (int)(ID * 0x00010000 + 0x0000), angle );
		}
	}
	
	