X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-44
Start the Data Exchange (Use Mode 0)
!
!The data packet (M=0) for logical record B is sent.
!The WRITE completes successfully.
!
!A data packet (M=0) for logical record C is received
!and queued.
!
!An RR packet is received.
4. READ a logical record.
!
!The program wants input from the remote device. It waits
!for input with a READ. The remote device has already sent
!the data packet for logical record C, which is now
!transferred to the READ buffer.
!The READ completes successfully.
5. 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.
6. CLOSE the subdevice.
!
!Nothing is sent or returned.