background image

Boo
lean

Bit strings

Integers

Real

num-

bers

Times, durations,

dates and text strings

BOOL

BYTE

WORD

DWORD

LWORD

USINT

UINT

UDINT

ULINT

SINT

INT

DINT

LINT

REAL

LREAL

TIME

DA
TE

T

OD

DT

STRING

SrcNetAdr

Refer to 

Function

 on page 3 - 9 for details on the structure _sDNET_ADR.

CommPort

For enumeration_ePORT enumerator, refer to 

Function

 on page 3 - 9.

SrcArea

For enumeration_eAREA enumerator, refer to 

Function

 on page 3 - 9.

SrcCh

OK

RcvSize

OK

Option

Refer to 

Function

 on page 3 - 9 for details on the structure _sRESPONSE.

DstDat[] ar-
ray

OK

Function

When 

Execute

 changes from FALSE to TRUE, 

SrcNetAdr

 and 

CommPort

 are requested to send the

data specified by 

SrcArea

 and 

SrcCh

.

The received data is stored in 

DstDat[]

.

The data type of 

SrcNetAdr

 is structure_sDNET_ADR. The specifications are shown below.

Variable

Name

Contents

Data type

Valid range

Unit

Initial
value

SrcNetAdr

Network ad-
dress at
source

Specifies the network
address and node ad-
dress at send source

_sDNET_AD
R

---

---

---

NetNo

Network ad-
dress

Network address

USINT

0 to 127

---

0

NodeNo

Node address Node address

USINT

Depends on
data type.

UnitNo

Unit address

Unit address

BYTE

Depends on
data type.

16#00

The data type of 

CommPort

 is enumeration_ePORT.

The meaning of the enumerator of enumeration_ePORT is as follows.

Enumerator

Meaning

_NONE

The send destination is not a serial port (host link mode).

The data type of 

SrcArea

 is enumeration_eAREA.

The meaning of the enumerator of enumeration_eAREA is as follows.

Enumerator

Meaning

_CIO

Core I/O Area, Work Area, etc.

_WR

Work Area

_HR

Holding Area

_TIMER

Timer Area

_COUNTER Counter Area
_DM

Data Memory Area

_EM0

0 bank area of Expansion Memory Area

3 Client Function

3 - 9

NX-series CPU Unit FINS Function User's Manual (W596)

 FINS Communications Instructions

3

 Rcv

Summary of Contents for NX102-10 Series

Page 1: ...Machine Automation Controller NX series CPU Unit User s Manual FINS Function NX701 1720 NX701 1620 NX102 12 NX102 11 NX102 10 NX102 90 W596 E1 01...

Page 2: ...ication Trademarks Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other countries for OMRON factory automation products Microsoft Windows Windows Vista Exc...

Page 3: ...nt Personnel in charge of introducing FA systems Personnel in charge of designing FA systems Personnel in charge of installing and maintaining FA systems Personnel in charge of managing FA systems and...

Page 4: ...Motion Control Instructions Reference Manual NJ NX series CPU Unit Built in EtherCAT Port User s Manual NJ NX series CPU Unit Built in EtherNet IP Port User s Manual NJ NX series CPU Unit OPC UA User...

Page 5: ...ries Database Connection CPU Units User s Manual NJ NX series Troubleshooting Manual Testing operation and debugging Using motion control Using EtherCAT Using EtherNet IP Using OPC UA Using FINS Using...

Page 6: ...n complying Product or iii repay or credit Buyer an amount equal to the purchase price of the non complying Product provided that in no event shall Omron be re sponsible for warranty repair indemnity...

Page 7: ...DUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR PROPERTY OR IN LARGE QUANTITIES WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO ADDRESS THE RISKS AND THAT THE OMRON PRODUCT...

Page 8: ...epresentative at any time to confirm actual specifications of purchased Product Errors and Omissions Information presented by Omron Companies has been checked and is believed to be accurate how ever n...

Page 9: ...shown below until they click into place Precautions for Correct Use Precautions for Correct Use 4 3 1 Connecting Controller Components Connector Hook Hook holes Slider Lock Release Move the sliders t...

Page 10: ...ifications and functionality for Controller with different unit versions and for different versions of the Sysmac Studio is given Precaution on Terminology In this manual download refers to transferri...

Page 11: ...ions 15 Unit Versions of CPU Units and Sysmac Studio Versions 18 Related Manuals 19 Revision History 20 Sections in this Manual 21 Section 1 FINS 1 1 Overview of FINS 1 2 1 1 1 Server Function of FINS...

Page 12: ...ction Overview of Client Function 3 2 FINS Communications Instructions 3 3 Send 3 4 Rcv 3 8 SendCmd 3 14 Section 4 Troubleshooting 4 1 Troubleshooting 4 2 Appendices A 1 Difference Between CS CJ serie...

Page 13: ...e following manuals for safety precautions NX series CPU Unit Hardware User s Manual Cat No W535 NX series NX102 CPU Unit Hardware User s Manual Cat No W593 Safety Precautions 11 NX series CPU Unit FI...

Page 14: ...ollowing manuals for precautions for safe use NX series CPU Unit Hardware User s Manual Cat No W535 NX series NX102 CPU Unit Hardware User s Manual Cat No W593 Precautions for Safe Use 12 NX series CP...

Page 15: ...lowing manuals for precautions for correct use NX series CPU Unit Hardware User s Manual Cat No W535 NX series NX102 CPU Unit Hardware User s Manual Cat No W593 Precautions for Correct Use 13 NX serie...

Page 16: ...llowing manuals for regulations and standards NX series CPU Unit Hardware User s Manual Cat No W535 NX series NX102 CPU Unit Hardware User s Manual Cat No W593 Regulations and Standards 14 NX series C...

Page 17: ...versions Checking Versions You can check versions on the ID information indications or with the Sysmac Studio Checking Unit Versions on ID Information Indications The unit version is given on the ID...

Page 18: ...e Sysmac Studio is online to check the unit version of a Unit You can do this for the following Units Model Unit for which unit version can be checked NX701 CPU Unit NX102 CPU Unit and NX Unit on CPU...

Page 19: ...procedure to check the unit version 1 Double click EtherCAT under Configurations and Setup in the Multiview Explorer Or right click EtherCAT under Configurations and Setup and select Edit from the men...

Page 20: ...ts the functions that were added for an upgrade is also required to use those functions Refer to the NJ NX series CPU Unit Software User s Manual Cat No W501 for the relationship be tween the unit ver...

Page 21: ...ilt with an NJ NX series CPU Unit CPU Unit operation CPU Unit features Initial settings Programming based on IEC 61131 3 language specifications NX series CPU Unit FINS Function User s Manual W596 NX7...

Page 22: ...suffix to the catalog number on the front and back covers of the manual W596 E1 01 Revision code Cat No Revision code Revision date Revised content 01 April 2018 Original production Revision History 2...

Page 23: ...Sections in this Manual 1 2 3 4 A I 1 2 3 4 A I FINS Server Function Client Function Troubleshooting Appendices Index Sections in this Manual 21 NX series CPU Unit FINS Function User s Manual W596...

Page 24: ...Sections in this Manual 22 NX series CPU Unit FINS Function User s Manual W596...

Page 25: ...1 2 Client Function of FINS 1 2 1 2 Applicable CPU Units 1 3 1 3 System Configuration 1 4 1 4 Relationship Between FINS Types and Units 1 5 1 5 Memory Used for CJ series Units 1 6 1 5 1 Setting for th...

Page 26: ...S CJ CP NSJ series Communications Commands Reference Manual Cat No W342 1 1 1 Server Function of FINS This function allows to receive FIN commands from external devices such as host computers or OM RO...

Page 27: ...701 20 1 2 Available Not available Version 1 16 or high er NX102 CPU Unit NX102 2 Available Available NX1P2 CPU Unit NX1P2 Not available Not available 1 NX701 00 does not support the Server Function o...

Page 28: ...er nal computers and OMRON CPU Units and receive FINS commands through the built in EtherNet IP port of the NX series CPU Unit Ethernet FINS command Built in EtherNet IP port NX series CPU Unit Or CS...

Page 29: ...rt number 9600 1 FINS TCP Usable or not Yes Maximum number of connections 16 2 Port number 9600 1 FINS communication service on Ethernet Number of nodes 254 Message length Max 2 012 bytes 1 This can b...

Page 30: ...etup and then use Memory Settings to set the area type and each address range of the memory used for CJ series Units For details refer to Sysmac Studio Version 1 Operation Manual Cat No W504 1 5 2 Com...

Page 31: ...for CJ series Units 2 1 Overview of Server Function 2 2 2 2 FINS Commands Supported by NX series CPU Units 2 3 2 3 Setting of FINS Node Address of Built in EtherNet IP Port 2 5 2 4 FINS Routing Table...

Page 32: ...nit receives FINS commands issued from external devices such as host comput ers or CS CJ CP series CPU Units on the Ethernet network and then can execute the requested serv ice 2 Server Function 2 2 N...

Page 33: ...WRITE 1 Fixed values are returned for the following values DIP switch information Fixed at 0 Program area size Fixed at 14 hex Timer counter size Fixed at 08 hex Memory card type SD Memory Card fixed...

Page 34: ...4 Sixteen ASCII code 20Hex space characters of below value are returned and can not be used Error message 2 Server Function 2 4 NX series CPU Unit FINS Function User s Manual W596...

Page 35: ...de address itself Controller Setup Built in EtherNet IP Port Settings FINS Settings FINS Node Address Settings IP address table method 1 This may vary depending on the setting of IP address FINS addre...

Page 36: ...2 Server Function 2 6 NX series CPU Unit FINS Function User s Manual W596...

Page 37: ...es in the same network and the FINS message communications are performed the local network table setting is required For details refer to A 1 Difference Between CS CJ series and NX series in FINS Rout...

Page 38: ...ection function are NX701 20 and NX102 To set whether to use the write protection function select Configurations and Setup Controller Setup Operation Settings FINS Settings Security Settings from the...

Page 39: ...pported Supported Supported 01 02 MEMORY AREA WRITE Not supported 01 03 MEMORY AREA FILL Not supported 01 04 MULTIPLE MEMORY AREA READ Supported 01 05 MEMORY AREA TRANS FER Not supported 05 01 CPU UNI...

Page 40: ...2 Server Function 2 10 NX series CPU Unit FINS Function User s Manual W596...

Page 41: ...t issue the FINS command from the NX102 CPU Unit for OMRON Unit provided with the FINS server function and then send and receive data Overview of Client Function 3 2 FINS Communications Instructions 3...

Page 42: ...receive mode change etc as required for various types of units such as CPU Units and CPU Special Units on the network or CPU Rack These instructions are executed over multiple cycles and perform the c...

Page 43: ...nstructions Instructions Name Page Send Send to Network page 3 4 Rcv Receive from Network page 3 8 SendCmd Send Command page 3 14 3 3 NX series CPU Unit FINS Function User s Manual W596 FINS Communica...

Page 44: ...estination Specifies the serial port at send destina tion _NONE _NONE SrcDat ar ray First element of array at send destination Beginning of data ar ray to be sent 16 0000 to 16 FFFF 1 SendSize Number...

Page 45: ...elow Variable Name Contents Data type Valid range Unit Initial value DstNetAdr Network ad dress at send destination Network address at send destination _sDNET_AD R NetNo Network ad dress Network addre...

Page 46: ...t_isAvailable Network Communi cations Instruction Enabled Flag BOOL TRUE A port is available FALSE A port is not available Precautions for Correct Use This instruction can be executed only when there...

Page 47: ...alue of SendSize exceeds the size of SrcDat e The value of _Port_isAvailable is FALSE f Communications fail Sample Programming Refer to Sample Programming on page 3 11 of the Rcv instruction 3 Client...

Page 48: ...receive destination Selects the serial port at receive destination _NONE _NONE SrcArea Data source area Specifies the area type at send source _CIO _WR _HR _TIMER _COUNTER _DM _EM0 _EM18 _DM SrcCh Dat...

Page 49: ...own below Variable Name Contents Data type Valid range Unit Initial value SrcNetAdr Network ad dress at source Specifies the network address and node ad dress at send source _sDNET_AD R NetNo Network...

Page 50: ...re currently used _Port_isAvailable Network Communi cations Instruction Enabled Flag BOOL TRUE A port is available FALSE A port is not available Precautions for Correct Use This instruction can be exe...

Page 51: ...DM100 Send 12345678 Ethernet cable Receive 12345678 Node address 1 Node address 2 ST Inter nal varia ble Name Data type Initial value Comment Trigger BOOL FALSE Execution condition DoFinsTrigger BOOL...

Page 52: ...Option TimeOut UINT 20 InOption Retry USINT 2 SrcDat 0 WORD 16 1234 Set command array SrcDat 1 WORD 16 5678 END_IF IF DoFinsTrigger TRUE THEN SendInstance Execute SendExecute DstNetAdr InDNetAdr CommP...

Page 53: ...stance Error TRUE THEN State 99 END_IF 3 Normal processing Trigger FALSE DoFinsTrigger FALSE 99 Abnormal processing Trigger FALSE DoFinsTrigger FALSE END_CASE END_IF 3 Client Function 3 13 NX series C...

Page 54: ...size 0 to max data length 2 Bytes 2 Option Response Response monitoring and retry specifications RespDat array Response storage ar ray In out Array to store re sponse Depends on da ta type 1 If you o...

Page 55: ...e as follows Enumerators Meaning _NONE The destination is not a serial port in Host Link Mode The data type of Option is structure _sRESPONSE The specifications are as follows Name Meaning Description...

Page 56: ...sidering the case when the send message or response is lost due to noise that occurs during communication If no response is returned within Option TimeOut it is recommended to retry the process When t...

Page 57: ...InOption _sRESPONSE isNonResp FALSE TimeOut 0 Retry 0 Response CmdDat ARRAY 0 1 OF BYTE 2 16 0 Send data RespDat ARRAY 0 1023 OF BYTE 1024 16 0 Receive data SendCmdInstance SendCmd SendCmd instance Ex...

Page 58: ...UINT 2 RespDat RespDat 0 Option InOption CASE State OF 1 Execute SendCmd SendCmdExecute TRUE IF SendCmdInstance Done TRUE THEN State 2 ELSIF SendCmdInstance Error TRUE THEN State 99 END_IF 2 Normal pr...

Page 59: ...4 Troubleshooting This section describes the errors that may occur during communications with CPU Units 4 1 Troubleshooting 4 2 4 1 NX series CPU Unit FINS Function User s Manual W596 4...

Page 60: ...Reference Manual Cat No W342 for details about the errors that may occur during communications with CPU Units Refer to the manual of each relevant unit for details about the errors that may occur dur...

Page 61: ...es and NX series in FINS Routing A 2 A 1 1 Communication When 0 Is Specified for the Destination Network Ad dress A 2 A 1 2 Operation of Routing Table during Clear All Memory operation A 4 A 1 NX seri...

Page 62: ...routing table during Clear All Memory operation A 1 1 Communication When 0 Is Specified for the Destination Network Address The communication may vary depending on the CPU Unit as described below CPU...

Page 63: ...Unit is connected to the opposite CS CJ ser ies CPU Unit When multiple FINS network Communications Units are connected to the opposite CS CJ series CPU Units and the FINS network Communications Unit i...

Page 64: ...shows the routing table setting for the CS CJ series CPU Unit Local network table No Local network table Unit number 1 1 0 2 2 1 3 A 1 2 Operation of Routing Table during Clear All Memory operation D...

Page 65: ...I Index I 1 NX series CPU Unit FINS Function User s Manual W596 I...

Page 66: ...on 16 R Rcv Receive from Network 3 8 Receive from Network 3 8 S Send Send to Network 3 4 Send Command 3 14 Send to Network 3 4 SendCmd Send Command 3 14 V Version 15 Index I 2 NX series CPU Unit FINS...

Page 67: ......

Page 68: ...60169 U S A Tel 1 847 843 7900 Fax 1 847 843 7787 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 Contact www ia omron com...

Reviews: