implement s7b2csv function using Java code; this is more efficient