Using methods in IEC 61131-3 programming language