Virtual Encoder Signals

How could we create virtual encoder signals in Rapid program?