X25AM Programming Manual

PTP Applications
X25AM Programming Manual527201-001
3-50
Start the Data Exchange (Use Mode 1)
!The READ completes successfully.
!
!An RR packet is sent.
5. WRITE logical record C.
!
!The WRITE has a WRITE COUNT that is less than PACKETSIZE.
!The logical record will fit into 1 packet.
!
!The data packet (M=0) for logical record C is sent.
!The WRITE completes successfully.
!
!The remote device sends logical record D. The logical
!record will require five packets.
!
!Data packet 1 (M=1) for logical record D is received.
!Data packet 2 (M=1) for logical record D is received.
!An RR packet is sent.
!Data packet 3 (M=1) for logical record D is received.
!Data packet 4 (M=1) for logical record D is received.
!An RR packet is sent.
!Data packet 5 (M=0) for logical record D is received.
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.
Start the Data Exchange (Use Mode 1)
The program makes the call with a CONTROL 17. It starts the data exchange by
writing data for a packet. READ and WRITE can be in any order, depending on the
program logic and the response expected from the remote device. The program ends
the call with a CONTROL 12.
1. OPEN the subdevice.
!
!Nothing is sent or received.
2. SETMODE 31,1,0.
!
!Set the data-exchange mode to 1.