Java code for popular PLC protocols