DVP-ES3 Series Programming Manual 6. D200=6 (number the data received), the content of data received: D201=16#0031, D202=16#0032, D203=16#0033, D201=16#0034, D202=16#0035, D203=16#000A 7. SM100=ON: reception of data is complete. 8. 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 starts receiving data until receiving the ending character (16#0A). When the reception of data is complete, SM100 is ON. If the communication timeout occurs but the ending character (16#0A) is still not received, the communication timeout flag SM104 is ON.
Example 4 The mode in D 2 is 3 (the data received ends with two specific characters.) and you set the mode for sending and receiving data to 16-bit mode (SM106=OFF). This example uses a DVP-ES2 as the external equipment and writes H1234 to 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#3136, D103=16#3630, D104=16#3134, D105=16#3332, D106=16#3334, D107=16#0D46, D108=16#000A. 3. Set D10=16#0003 (mode: 3), D11=16#0D0A (the ending characters are 16#0D and 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 the 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) 6-556