日本語 English

Comparison of FINS-UDP and FINS-TCP

Comparison of FINS-UDP and FINS-TCP
ItemFINS-UDPFINS-TCP
ConnectionNot neededRequired
SpeedFastSomewhat slow
ReliabilityNormalHigh
Number of connectionsUnlimitedMax. 16

Should You Choose FINS-UDP or FINS-TCP?

On a factory LAN

For communicating with PLCs on the same LAN, FINS/UDP is common. It is fast and easy to set up.

Over a VPN or the internet

When reliability matters, FINS/TCP is suitable.

Comparison

  • FINS-UDP

  • FINS-TCP

  • Characteristics

    Because it is a connectionless protocol, when the PC sends data to the PLC it sends it one-way regardless of whether the PLC is there FINS UDP communication sequence

    - Connectionless, so there is no limit on the number of connections
    - Broadcast can be used
    - Reliability drops when communicating across multi-level IP networks (e.g. the internet)
    - No connection procedure, so the time it takes is saved (fast)

  • Characteristics

    Because it is a connection-oriented protocol, a connection is requested and established before the PC sends messages to the PLC FINS TCP communication sequence

    - Limited number of connections
    - Broadcast cannot be used
    - Reliable even across multi-level IP networks (e.g. the internet)
    - The connection procedure makes processing take longer than UDP/IP
    - The clients that can connect can be restricted in the server settings

  • Frame structure
    Ethernet2 IP UDP FINS FCS

  • Frame structure
    Ethernet2 IP TCP FINS/TCP
    header
    FINS FCS
  • UDP port number

    The PLC port number defaults to 9600 (changeable)
    The PC port number can be anything, but using 9600 like the PLC makes it easy to understand

  • TCP port number

    ← same as UDP

  • Connectionless

  • TCP connections

    FINS/TCP connections on the PLC:
    max. 16 (simultaneous)

  • Communication procedure

    Sends FINS frames directly with no preparation

  • Communication procedure

    1. Establish the TCP connection
    2. Exchange FINS node address information
    The PC sends with node address = 0 and receives a free FINS node address (automatically allocated FINS node address)
    3. Send FINS frames using the obtained FINS node address
    FINS TCP communication sequence

  • Automatically allocated FINS address

    The node address is obtained with the FINS node address data send command

    Send command
    Header"FINS"
    Length0x0000000c
    Command0x00000000
    ErrorCode0x00000000
    ClientNodeAddress0x00000000

    Receive command
    Header"FINS"
    Length0x00000010
    Command0x00000001
    ErrorCode0x00000000
    ClientNodeAddress0x00000001-0x000000fe
    ServerNodeAddress0x00000001-0x000000fe
  • FINS/TCP header

    With FINS/TCP, a FINS/TCP header is added before the FINS frame

    Header"FINS"
    Length0x00000014-0x000007e4
    Command0x00000002
    ErrorCode0x00000000
    FINS frame

    Length is the number of bytes from Command to the end of the FINS frame

Frame examples

FINS-UDP frame
FINS headerFINS command
ICFRSVGCTDNADA1DA2SNASA1SA2SID MRCSRCTEXT
(Example) 800002000100000A0001 0501-

FINS-TCP frame
FINS/TCP headerFINS header
HeaderLengthCommandErrorCodeICFRSVGCT
(Example) "FINS"000000140000000200000000800002

FINS header (continued)FINS command
DNADA1DA2SNASA1SA2SIDMRCSRCTEXT
000100000A00010501-

Related pages

FAQ

Should I choose FINS-UDP or FINS-TCP?

For communicating with PLCs on the same LAN, FINS/UDP is common because it is fast and easy to set up. FINS/TCP is suitable when communication reliability matters, such as over a VPN or the internet.

What are the characteristics of FINS-UDP?

FINS-UDP is connectionless and fast because no connection procedure is needed. Broadcast is possible and there is no limit on the number of connections.

What are the characteristics of FINS-TCP?

FINS-TCP is connection-oriented and communicates after a connection is established. It is highly reliable and supports automatic allocation of FINS node addresses.

Comments