12. Communication Design Examples Devices: Control Program: M1002 Set communication format: 9600, 7, E, 1 Retain communication setting 5 00ms Set receiving time-out: Select communication mode: MODBUS ASCII M0 Execute MODRD instruction M1 Execute the 1st MODWR instruction M2 Execute the 2nd MODWR instruction M3 Execute the 3rd MODWR instruction M0 Sending request M1 M2 M3 M0 Read the target value and the present value of the TC and store them in D1050 and D1051 M1 Set the TC target value as 24 ℃ DVP-PLC Application Examples 12-23 Devices Function M0 Execute MODRD instruction to read target and current temperature. M1 Execute the first MODWR instruction to set target temperature of TC.
M2 Execute the 2nd MODWR instruction to set the heating/cooling cycle time. M3 Execute the 3rd MODWR instruction to set the control mode as Cooling. MOV H86 D1120 SET M1120 MOV K500 D1129 RST M1143 LD= C0 K0 LD= C0 K1 LD= C0 K2 LD= C0 K3 LD= C0 K4 RST C0 SET M1122 MODRD K1 H4700 K2 MODWR K1 H4701 K240