X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-46
Wait for the Data Exchange (Use Mode 0)
5. WRITE logical record D.
!
!The remote device writes logical record D that is less than
!PACKETSIZE. The logical record will fit into 1 packet.
!The data packet (M=0) for logical record D is received and
!queued.
6. READ a logical record.
!
!The program waits for data from the remote device with a
!READ. The remote device has already sent logical record D,
!which is now transferred to the READ buffer.
!The READ completes successfully.
7. WRITE logical record E.
!
!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 E is sent.
!Data packet 2 (M=1) for logical record E is sent.
!An RR packet is received.
!Data packet 3 (M=1) for logical record E is sent.
!Data packet 4 (M=1) for logical record E is sent.
!An RR packet is received.
!Data packet 5 (M=0) for logical record E is sent.
!The WRITE completes successfully.
8. CLOSE the subdevice.
!
!Nothing is sent or returned.