Omron CJ1W-EIP21 Network Card User Manual


 
205
FINS/TCP Method Section 8-3
After a connection has been established as a FINS/TCP client, it can be termi-
nated in the following ways.
If the connection is closed by the server.
• If there is no response from the client when the keep-alive function is in
effect.
Even if the connection is closed at the FINS/TCP client, requests continue to
be made to the FINS/TCP server every few seconds to open a connection.
Note After the EtherNet/IP Unit or built-in EtherNet/IP port is powered up or
restarted, the IP address for the connection used as the FINS/TCP client is
the remote IP address that was set in the FINS/TCP Tab Page of the CX-Pro-
grammer’s Edit Parameters Dialog Box. To dynamically change the remote IP
address (i.e., during CPU Unit operation), execute the CMND(490) instruction
in the ladder program and send a FINS command (FINS/TCP CONNECTION
REMOTE NODE CHANGE REQUEST; command code: 27 30 hexadecimal)
to the EtherNet/IP Unit or built-in EtherNet/IP port.
Procedure for Using FINS/TCP
1,2,3... 1. Make the basic settings.
Refer to Initial Settings in 3-1-1 Procedures.
2. Make the following settings on the FINS/TCP Tab Page of the CX-Pro-
grammer's Edit Parameters Dialog Box.
FINS/TCP port (default: 9600)
Server/Client: Specifies whether the connection will operate in FINS/
TCP server mode or client mode.
Target IP address for client: Specifies the IP address of the target
FINS/TCP server.
Target IP address for server: Specifies allowed client IP addresses
when protection is enabled.
• Automatically allocated FINS node address for server: Specifies the
address to allocate when automatically allocating a FINS node ad-
dress to the target FINS/TCP client.
Keep-alive: Specified whether to use the keep-alive function.
Note Normally this function is used and the option is selected.
Enable protect via IP address:
Note Select this option only when protecting as the server.
3. Select Transfer to PLC from the PLC Menu and click the Yes Button. The
setting data will be transferred to the CPU Bus Unit System Setup Area in
the CPU Unit.
4. Make the routing table settings and transfer them to each PLC. (See note
1.)
Set the routing tables with CX-Integrator, and transfer it to each PLC.
5. Create a ladder program that includes the SEND(090), RECV(098), and
CMND(490) instructions.
Note (1) Routing tables are required in the following situations:
When communicating with a PLC or computer on another network
(e.g., remote programming or monitoring using FINS messages or a
CX-Programmer)
When multiple Communications Units are mounted to a single PLC
(i.e., CPU Unit)