Delta AS Series Programming Manual page 989

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

AS Ser ies Pro gra mm in g M anu al
Example 2
Slave Mode
Using the CANRS instruction, the received data from the master are stored in the devices starting from D120 and the 8-
byte data in D20~D27 are sent back. M110 changes to On when the sending and receiving are over.
See the explanation of relevant parameters.
Slave mode_MsgID=1
Communication mode
Communication ID
Sent-data length
Starting device where
sent data are stored
Starting device where
received data are stored
Communication
completion flag
_6
Communication error flag
1.
As M1 is on, set the MsgID of the sent message to 2 and MsgID of the received message to 1 and then wait to
receive data.
A. The received 6-byte data from the master are placed in D120~D127.
Device
Content
B. Then the 8-byte data in D20~D27 start to be sent back to the master. M110 changes to On as the data sending is
done.
Device
Content
6 - 7 1 0
2= Slave mode, sends data after receiving data.
MsgID of the sent message,
D0=2
8 BYTE
D20
D120 for storing MsgID
D121 for storing the number of received packets
D122.... for storing received data
M110
M111
D120
1
D10~D15
H0B (Defined by users)
D121
D122~D127
6
H0A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents