FINS/TCP Method

Section 7-4

Example 2: Host Computer and Remote Node Connected Via Relay Node (Ethernet Unit)

Host computer

IP address: 196.36.32.50

Remote node

FINS network address: 1

 

FINS network address: 2

FINS node address: 50

Relay node

FINS node address: 1

FINS unit number: 0

IP address: 196.36.32.100

FINS unit number: 0

Ethernet

 

 

Unit

Controller Link

 

 

 

Ethernet

Controller Link

 

Unit

 

 

 

Destination IP Address: 196.36.32.100 (Ethernet Unit of relay node)

UDP port number: FINS UDP port number (Ethernet Unit of relay node)

FINS addresses (Remote node CPU Unit):

Network address: 2

Node address: 1

Unit number: 0

FINS addresses (Host computer):

Network address: 1

Node address: 50

Unit number: 0

FINS/TCP Sample

Program

Operation Overview

• This program reads 150 words of the PLC memory beginning at D00100

 

by sending a FINS command (MEMORY AREA READ, command code

 

0101) from a UNIX workstation (WS) to the PLC on the Ethernet network.

 

• If no response is received within two seconds of sending the FINS com-

 

mand, an error will occur.

Settings

• The Ethernet Unit IP address is 196.36.32.100, and the FINS node

 

address is 100.

 

• The FINS TCP port number at the Ethernet Unit (server side) is 9600

 

(default).

 

• The workstation’s IP address is 196.36.32.50 and the FINS node address

 

is allocated automatically.

 

• The FINS TCP port number at the workstation (client side) can be user-

 

set (if set to 0, the system automatically allocates an available port).

185

Page 209
Image 209
Omron CJ1W-ETN21 operation manual FINS/TCP Sample Program