In a cyclic process, the system starts in a particular state and returns to that state after undergoing a few different processes. The net work involved is the enclosed area on the P-V diagram.
If the cycle goes clockwise, the system does work. This is the case for an engine.
If the cycle goes counter-clockwise, work is done on the system every cycle. An example of such a system is a refrigerator or air conditioner.