DVP-ES3 Series Programming Manual 8. SM100=ON: reception of data is complete. 9. To send more data, set the flag SM100 to OFF to start the operation again. NOTE: When the sending of data is complete, the receiving flag SM98 is ON and then the PLC is ready to receive data. When the PLC receives the starting character 16#3A, it starts receiving data. The interval timeout between receiving each piece of data is set in D11. When the interval time exceeds the set timeout 16#0F (15 ms) and no data is coming in, SM100 is ON. Example 6 The mode in D 2 is 5 (the data received starts and ends with a specific character) and you set the mode of sending and receiving data to 16-bit mode (SM106=OFF).
The example uses a DVP-ES2 as the external equipment and reads data from D100 in the DVP-ES2. _6 1. The length for the data to be sent: D20=17. 2. The contents for the data to be sent: D100=16#303A, D101=16#3031, D102=16#3133, D103=16#3630, D104=16#3034, D105=16#3030, D106=16#3831, D107=16#0D37, D108=16#000A 3. Set D10=16#0005 (mode: 5), D11=16#3A0A (the starting character is 16#3A and the ending character is 16#0A). 4. Enable the contact M0. 5. The PLC sends 17 pieces of data. Sending data: PLC→external equipment 3A 30 31 30 36 31 30 36 34 31 32 33 34 33 46 0D 0A (ASCII code: 0106106412343FCRLF) 6. The external equipment receives data from the PLC and the last 2 data are 16#0D and 16#0A.
External equipment → PLC 3A 30 31 30 36 31 30 36 34 31 32 33 34 33 46 0D 0A (ASCII code: 0106106412343FCRLF) 7. D200=15 (number of the data received), and the content of the received data: D201=16#303A, D202=16#3031, D203=16#3033, D204=16#3132, D205=16#3332, D206=16#4234, D207=16#0D34, D208=16#000A. 8. SM100=ON: reception of data is complete. 6-558