FxPlug 4 frame at certain time

Hi guys! Is there any way to get a frame at certain time? I'm writing plug-in and want to use 2 frames before and 2 frames after current frame in order to render final image.

FxPlug 4 frame at certain time
 
 
Q