Interface analysis for communication tasks in the safety grade programmable logic controller