Delta AS Series Programming Manual page 943

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 4
The mode in D
is 3 (the data received ends with two specific characters.) and you set the mode for sending and
2
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.
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 X0.0.
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
_6
(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)
7.
D200=17 (number of the data received), and the content of the received data: D201=16#303A, D202=16#3031,
D203=16#3136, D204=16#3630, D205=16#3134, D206=16#3332, D207=16#3334, D208=16#0D46,
D209=16#000A.
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 sending of data is complete, the receiving flag SM98 is ON and then the PLC starts receiving data until it
receives the ending character (16#0D0A). When the reception of data is complete, SM100 is ON. If the
communication timeout occurs but the ending character (16#0D0A) is still not received, the communication
timeout flag SM104 is ON.
6 - 6 6 4

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents