PLC to C converter