Fins/tcp sample program – Omron CS CJ1W-ETN21 User Manual

Page 209

Advertising
background image

185

FINS/TCP Method

Section 7-4

Example 2: Host Computer and Remote Node Connected Via Relay Node

(Ethernet 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).

Host computer

IP address: 196.36.32.50
FINS network address: 1
FINS node address: 50
FINS unit number: 0

Relay node

IP address: 196.36.32.100

Ethernet

Remote node

FINS network address: 2
FINS node address: 1
FINS unit number: 0

Controller Link

Ethernet
Unit

Controller Link
Unit

Advertising