Menu

SF4501 FinsServer

Overview

FINS Protocol

The FINS protocol, fully known as Factory Interface Network Service, is a communication protocol developed by Japan's Omron Corporation for industrial automation control networks. It is primarily used for communication between PLCs (Programmable Logic Controllers) and computers to achieve data exchange and program downloading.


Example

Preparation

  • Sinsegye’s iComputer;

  • MetaFacture V1.0.4.4 programming software;

1. Open the software and create a new project

IMG_257

2. Select standard project and name it Fins

IMG_258

3. Select Sinsegye device, choose PLC programming language (ST language in this example)

IMG_259

4. Log in to iComputer

IMG_260IMG_261

5. Right-click "Application" and select "Attribute"

IMG_262

6. Click "Target Memory Settings" - check "Override Target Memory Settings" - click "Yes"

IMG_263

7. Sinsegye supports setting up to 64M of input, output and memory

IMG_264

8. Open the program PLC_PRG, create new variables mapped to %I, %Q, %M

IMG_265

The register addresses in the FINS protocol correspond to PLC addresses as follows:

Register PLC Address
CIO0~CIO32767 %I Area
CIO32768~CIO65535 %Q Area
D0~D33554431 %M Area

When using Sinsegye’s Fins protocol, data size limits are imposed on transmissions between %I Area and %Q Area:

Variable Address Range Max Supported Components Description
%IW0~%IW32767

0x0000

~0x7FFF

(0~32767)

32768 16-bit register in %I Area
%QW0~%QW32767

0x7FFF

~0xFFFF

(32768~65535)

32768 16-bit register in %Q Area

No size limit for %M, maximum 64M

Therefore, in the example PLC:

wIn1 corresponds to address W5 in %I Area (CIO5),

aInput array occupies addresses 100-199 in %I Area (CIO100~CIO199)

wOut1 corresponds to address W3 in %Q Area (CIO32771)

aOutput array occupies addresses 100-199 in %Q Area (CIO32868~CIO32967)

wMem1 is mapped to address W7 in %M Area (D7)

aMem array occupies addresses 100-199 in %M Area (D100~D199)

9. Log in to iComputer, download and run the program

IMG_266

IMG_267

IMG_268

10. Assign arbitrary values to variables. The example assignments are as follows:

Variable Initial value
wIn1 99
aInput[0]--aInput[4] 11,12,13,14,15
aOutput[0]--aOutput[4] 101,102,103,104,105
aMem[0]--aMem[4] 201,202,203,204,205
IMG_269  
IMG_270  
IMG_271  

11. Open the HslCommunication test tool, select Omron—Fins Tcp—enter the IP address (192.168.105.5 in this example), the default port number is 9600, click "Connect.

IMG_272

IMG_273

Fins Read Function

1. Adjust the Big-endian/Little-endian of data transmission. A reconnection is required for the changes to take effect.

IMG_274

 

2. Read wIn1 with address CIO5, successful read value 99

IMG_275

 

3. Read wOut1 with address CIO32771, successful read

IMG_276

 

4. Read wMem1 with address D7, successful read.

IMG_277

 

5. Read the aMem array of PLC, corresponding to Fins' D100 data, select "ushort read":

IMG_278

6. Batch read D100-D109, set quantity to 10, click "ushort read"

IMG_279

IMG_280

 

7. Read aInput[0] data in PLC, starting address is CIO100

IMG_281

 

8. Batch read aInput data

IMG_282

9. Read the aOutput[0] data in PLC, the starting address of %Q area is CIO32767, and the mapped address of aOutput[0] in PLC is %QW100, so aOutput[0] corresponds to CIO32868

IMG_283

8. Batch read aOutput data in PLC

IMG_284


Fins Write Function

1. Write data to wIn1 at address CIO5 with modified value 88

IMG_285

2. Write to %M area: aMem[50] (D150 address), write value 50, click "ushort write".

IMG_286

3. Write to %I area: aInput[51] (CIO151 address), write value 51, click "ushort write".

IMG_287

4. Write to %Q area: aOutput[52] (CIO32920 address), write value 52, click "ushort write".

IMG_288

Last modified: 2025-07-31