Sample Computer Link Protocol Program - Toshiba T2N Instruction Manual

Cpu module ethernet port
Hide thumbs Also See for T2N:
Table of Contents

Advertisement

5.2 Sample Computer Link Protocol Program

This section presents a sample program that runs on the host computer (a personal computer or
workstation) and that uses computer link protocol transmission.
This program issues a read/write request for 32 words from the start of the T2N D registers.
Operating environment
Hardware:
Software:
Transfer parameters
Local IP address:
Local UDP port number:
Remote IP address:
Remote UDP port number:
/**********************************************************************/
/*
/*
SAMPLE.H
/*
/*
/*
Write and read requests can be issued to other T2N units
/*
by modifying this definition file.
/*
/*
/*
/*
(C) Copyright TOSHIBA Corporation 1995
/*
All Rights Reserved
/*
/**********************************************************************/
/*---------------------------*/
/* Definition declarations
/*---------------------------*/
#define
MY_PORT
#define
DST_PORT
#define
DST_IP
#define
LOOP
#define
DATASIZ
#define
RECVTOUT
#define
REG_TYPE
#define
REG_ADR
Toshiba J-3100PV
3Com Etherlink
(3C509/B)
PC-NFS Pro 1.1.1.0
Microsoft VisualC
1.0
133. 113. 98. 200
3001
133. 113. 98. 10
3001
*/
3001
3001
"133.113.98.10"
10
32
30
"D"
"0000"
51
/* Local port number
/* Remote port number
/* Remote IP address
/* Data transmission execution count */
/* Data length
/* Computer link function = word units */
/* RECVFROM timeout time
/* Register type
/* Register start address */
6 F 3 B 0 3 6 2
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pu235nPu245n

Table of Contents