Delta AS Series Programming Manual page 949

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 10
The mode in D
is 9 (the set ending character or the set quantity of data is received) and set the mode of sending
2
data/mode of receiving data to 8-bit mode (SM106=ON).
1.
The length for the data to be sent: D20=4.
2.
The contents for the data to be sent: D100=16#0031, D101=16#0032, D102=16#0033, D103=16#0034.
3.
Set D10=16#0009 (mode: 9), D11=16#0A0F (the ending character is 16#0A and the set data length is 16#0F).
4.
Enable the contact X0.0.
5.
The PLC sends out 4 pieces of data.
Sending data: PLC→external equipment 31 32 33 34
6.
The external equipment receives data from the PLC and then sends 15 pieces of data to the PLC.
External equipment → PLC 31 32 33 34 35 0A 41 42 43 44 45 46 47 48 49
_6
7.
D200=6 (number of the data received), and the content of the received data: D201=16#0031, D202=16#0032,
D203=16#0033, D204=16#0034, D205=16#0035, D206=16#000A.
The PLC stops receiving data after the 6
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 receiving the set ending character or the set quantity of data, the SM100 is ON. If the communication
timeout occurs but the set ending character or the set quantity of data is still not received, the communication
timeout flag SM104 is ON.
6 - 6 7 0
th
piece of data is received.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents