X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-53
Wait for the Data Exchange (Use Mode 1)
5. READ data from a packet.
!
!The program waits for data from the remote device with a
!READ. The remote device has already sent the final
!data packet for logical record B. The data is
!transferred to the READ buffer.
!The READ completes successfully.
!
!An RR packet is sent.
6. WRITE the data for the first and only data packet for
logical record B.
!
!The M bit is set to 0.
!
!The WRITE has a WRITE COUNT that is equal to PACKETSIZE.
!
!The first and only data packet (M=0) for logical record B
!is sent.
!The WRITE completes successfully.
!
!An interrupt packet is received.
7. READ data from a packet.
!
!The program waits for data from the remote device with a
!READ. An interrupt packet has been received. Bit 13
!in the MCW is 1. Data from the interrupt packet is
!transferred to the READ buffer.
!The READ completes successfully.
!
!An Interrupt Confirmation is sent.
8. CONTROL 12.
9. CLOSE the subdevice.
!
!Nothing is sent or received.