DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming 2-5. When the DMV replies to the three communication commands successfully, D 2 +1 (Y1) in the PLC is On (the communication with the DMV is complete). 2-6. If the DMV does not reply after the timeout period 100ms, the PLC will set D 2 +2 (Y2) to On (a 2-7. If the DMV replies with an execption code, the PLC will resend the command to the DMV communication timeout occurs). automatically, and go back to step 2-3 ~ step 2-5. The program in the PLC and the comments are shown below. Remark: D8 in the example is described below. 3-1. When the first command is sent, the value in D8 indicates a program number.
In the example, program number 20 is used, and therefore H14 (or K20) is written into D8 in advance. 3-2. The the third command is sent, D8 becomes a start device in which data received from the DMV is stored. In the example, two-word data is read. When the completion flag is ON, the data read is stored in D8 and D9. 3-522