Delta AS Series Programming Manual page 944

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example 5
The mode in D
is 4 (the data received starts with a specific character and you set the timeout value to 5–255 ms.) and
2
you set the mode of sending and 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#0004 (mode: 4), D11=16#3A0F (the starting character is 16#3A and set the time value to 16#0F,
meaning 15ms).
4.
Enable the contact X0.0.
5.
The PLC sends 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 7 consecutive words to the PLC with an
interval of 1 ms between each sending.
External equipment → PLC 30 3A 35 36 37 38 39
7.
D200=6 (number of the data received), and the content of the received data: D201=16#003A, D202=16#0035,
D203=16#0036, D204=16#0037, D205=16#0038, D206=16#0039.
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.
Cha p ter 6 App l ied Ins truc tio ns
6_
6 - 6 6 5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents