X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-49
Wait for the Data Exchange (Use Mode 0)
9. CLOSE
!
!Nothing is sent or received.
Wait for the Data Exchange (Use Mode 0)
The program waits for the call with a CONTROL 11. It waits for the data exchange by
reading data for logical record. READ and WRITE can be in any order, depending on
the program logic and the response expected from the remote device.
!
!Nothing is sent or received.
2. CONTROL 11.
!
!Wait for an Incoming Call. When the CONTROL 11 completes
!successfully, then the circuit has been established and
!the Incoming Call received.
!
!An Incoming Call is received.
!A Call Accepted is sent.
!The CONTROL 11 completes successfully.
!
!The remote device writes logical record A that is less than
!PACKETSIZE. The logical record will fit into 1 packet.
!The data packet (M=0) for logical record A is received and
!queued.
3. READ a logical record.
!
!The program waits for data from the remote device with a
!READ. The remote device has already sent logical
!record A, which is now transferred to the READ buffer.
!The READ completes successfully.
!
!The remote device writes logical record B that is less than
!PACKETSIZE. The logical record will fit into 1 packet.
!The data packet (M=0) for logical record B is received.
4. READ a logical record.
!
!The program waits for data from the remote device with a
!READ. The remote device has already sent logical
!record B, which is now transferred to the READ buffer.