Sample programs are described in Programming Manual. Please refer to MODBUS Interface specifications (LSPY-9025) and MODBUS Interface soecifications(LSPY-9038)
The programming manual can be downloaded from this website.