Delta AS Series Programming Manual page 945

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 6
The mode in D
is 5 (the data received starts and ends with a specific character) and you set the mode of sending and
2
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.
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 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
(ASCII code: 0106106412343FCRLF)
_6
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.
9.
To send more data, set the flag SM100 to OFF to start the operation again.
NOTE: When the data sending 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 until receiving the ending character
16#0A, and SM100 is ON. If the communication timeout occurs but the starting character 16#3A or the ending
character 16#0A is still not received, the communication timeout flag SM104 is ON.
6 - 6 6 6

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents