how to use the PLC