snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
snap ethernet-based i/o units protocols and programming guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Read <strong>and</strong> Write Packet Structure<br />
Parameters<br />
CHAPTER 4: USING THE IEEE 1394-BASED PROTOCOL<br />
The following table defines the parameters for all requests <strong>and</strong> responses:<br />
Parameter Full Name Description<br />
destination_id Destination<br />
identifier<br />
Not used by the SNAP Ethernet-<strong>based</strong> brain. Set<br />
this parameter to zero.<br />
tl Transaction label A label specified by the requester <strong>and</strong> identifying<br />
this transaction. This value is returned in the<br />
response packet.<br />
rt Retry code Not used by the SNAP Ethernet-<strong>based</strong> brain. Set<br />
this parameter to zero.<br />
tcode Transaction code Defines the type of packet:<br />
Write Quadlet Request = 0<br />
Write Block Request = 1<br />
Write Quadlet or Block Response = 2<br />
Read Quadlet Request = 4<br />
Read Block Request = 5<br />
Read Quadlet Response = 6<br />
Read Block Response = 7<br />
pri Priority Not used by the SNAP Ethernet-<strong>based</strong> brain. Set<br />
this parameter to zero.<br />
source_id Source identifier Optional parameter. If you are running two or more<br />
applications simultaneously, you can give each<br />
application a different ID in this parameter. If an<br />
error occurs, you can read the Source address in<br />
the memory map Status area to find out which<br />
application caused the error. See page 105.<br />
rcode Response code Indicates whether the comm<strong>and</strong> was successful.<br />
Successful comm<strong>and</strong> (ACK) = 0<br />
Unsuccessful comm<strong>and</strong> (NAK) = any number<br />
except zero. If you receive a NAK in this parameter,<br />
see “Error Codes” on page 98.<br />
destination_offset Destination offset Specifies the address location in the target node.<br />
data_length Data length Specifies the amount of data being sent in the data<br />
parameter of this packet. Maximum size is 2034<br />
bytes for data sent via TCP, or 1480 bytes for data<br />
sent via UDP.<br />
extended_tcode Extended<br />
transaction code<br />
Not used by the SNAP Ethernet-<strong>based</strong> brain. Set<br />
this parameter to zero.<br />
SNAP Ethernet-Based I/O Units Protocols <strong>and</strong> Programming Guide 93