PLC

writing to output pin instead of input