Toshiba T2N Network Card User Manual


 
61
6 F 3 B 0 3 6 2
5.4 PC Link Protocol Transmission (Data read)
The T series PC link protocol allows a T2N on the network to read register data from another T2N
or T3H port's registers into its own registers.
As is the case with the computer link protocol, the PC link protocol uses UDP/IP as its
transmission protocol.
The PC link main port uses a UDP socket for message transmission and transmits to the slave
Ethernet Port message transmission UDP socket. The user program that runs on the main port is
discussed later.
When this function is used on the PC link slave port, the T2N simply performs the:
Parameter setup and
Operating mode control (message transmission permission)
that were described in an earlier chapter. There is no need to create any special user programs on
the T2N.
Usage Recommendations
1. Since UDP/IP does not provide control functions to guarantee communication reliability, higher level
protocols (such as retry) are required.
2. No processing is performed if a PC link protocol transmission message is received at any point
other than a message transmission UDP socket.
Register read request (using the RECV instruction)
a. Function
The register data specified by the remote port (T2N/T3H) is read to the specified register on the
local port (T2N).
b. Transfer parameters
A 3100H
Module designation
A+1 CMD = 0021H
Command number
A+2 WordSize
(1) Transfer register data length: 1 to 485 words
A+3 SRID
(2) Local port register type code
A+4 SRegNO
(3) Local port register number
A+5 DRID
(4) Remote port register type code
A+6 DRegNO
(5) Remote port register number
A+7 Timecnt
(6) Timer count
A+8
A+9
D-IPAddress
Remote port IP address (The input format is the same as that
for parameter setup requests.)
A+10 D-UDP PortNO Remote port message transmission UDP port number