X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-48
Start the Data Exchange (Use Mode 0)
!
!The data packet (M=0) for logical record B is sent.
!The WRITE completes successfully.
!
!An RR packet is received.
5. READ a logical record.
!
!The program waits for data from the remote device with a
!READ.
!
!The remote device sends logical record C, which is
!transferred to the READ buffer.
!The READ completes successfully.
6. WRITE logical record D.
!
!The WRITE has a WRITE COUNT that is greater than PACKETSIZE.
!The logical record will require five packets.
!
!Data packet 1 (M=1) for logical record D is sent.
!Data packet 2 (M=1) for logical record D is sent.
!An RR packet is received.
!Data packet 3 (M=1) for logical record D is sent.
!Data packet 4 (M=1) for logical record D is sent.
!An RR packet is received.
!Data packet 5 (M=0) for logical record D is sent.
!The WRITE completes successfully.
!
!An Invitation To Clear data packet is received.
!Both sender and receiver have agreed to the way
!Invitation To Clear is encoded in the data.
7. READ a logical record.
!
!The data is read and interpreted as Invitation
!To Clear.
8. CONTROL 12.
!
!A Clear Request is sent.
!A Clear Confirmation is received.
!The CONTROL completes successfully.