X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-51
Start the Data Exchange (Use Mode 1)
3. CONTROL 17.
!
!A Call Request is sent.
!A Call Connected is received.
!CONTROL 17 completes.
4. WRITE the data for the first packet for logical record A.
!
!The WRITE has a WRITE COUNT equal to PACKETSIZE. The
!M bit is set to one.
!
!The first data packet (M=1) for logical record A is sent.
!The WRITE completes successfully.
5. WRITE the data for the second and last packet for logical record A.
!
!The WRITE has a WRITE COUNT that is less than
!PACKETSIZE. This is the final packet for
!logical record A. The M bit is set to 0.
!
!The final data packet (M=0) for logical record A is sent.
!The WRITE completes successfully.
!
!An RR packet is received.
6. READ a data packet.
!
!The program waits for data from the remote device with a
!READ.
!
!The remote device sends the first and only packet (M=0)
!of logical record B. The data is transferred to the READ
!buffer. The READ completes successfully.
!
7. CONTROL 12.
!
!A Clear Request is sent.
!A Clear Confirmation is received.
!CONTROL 12 completes.
8. CLOSE the subdevice.
!
!Nothing is sent or received.