29
1 FINS KOMMUNIKATION

1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

Embed Size (px)

Citation preview

Page 1: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

1

FINS KOMMUNIKATION

Page 2: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

2

FINS : Factory interface networking services.

Omron proprietary, all-level industrial communication protocol.

It runs over

• Ethernet• Controllerlink• DeviceNet• Serial

Page 3: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

3

How to FINS

Unit address 1 3 5 2 4

Node address 15

Network address : 34

So we want to communicate with something.Two question:

1. To whom?2. What?

Whom is what unit on what address on what network.What is a FINS Command

Page 4: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

4

FINS-Einstellungen mit Sysmac Studio

Konfiguration und Einstellung ->Betriebseinstellungen->FINS-Einstellungen

Page 5: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

5

FINS-Einstellungen mit Sysmac Studio

Host Nummer(letzte 8 Bits auf IP Adresse)

Page 6: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

6

Einstellungen mit dem CX-Programmer

Page 7: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

7

Einstellungen im PC

feste IP-Adresse einstellen

Page 8: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

8

Überblick auf FINS Service

Ethernet (EtherNet/IP)

DM Variable

DM:0#1234

DM:100#5678

Variable A

Variable B

I/O Memory Read (DM0)0101820000000001

Response010100001234

I/O Memory Write (DM100)01028200640000015678

Response01020000

#1234

#5678

Memory for CJ-series Units

Page 9: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

9

Überblick auf FINS Service

Page 10: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

10

Theorie der Protokolle

• Die verschiedenen Protokollschichten erzeugen einen großen ‘Overhead’, sodass auch bei wenig Informationen, lange Meldungen übertragen werden.

• Die verschiedenen Protokollschichten erzeugen einen großen ‘Overhead’, sodass auch bei wenig Informationen, lange Meldungen übertragen werden.

Page 11: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

11

Ethernet - Protokolle

FINS

UDP TCP

IP

Ethernet

Node number

UDP port number

TCP Port number

IP address

Ethernet address

Ethernet V2 IP UDP FINS header FINS data

Must be allocated.

Application level

Transport level

Internet level

Physical level

Page 12: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

12

Ethernet - Protokolle

FINS

UDP TCP

IP

Ethernet

Node number

UDP port number

TCP Port number

IP address

Ethernet address

Ethernet V2 IP UDP FINS header FINS data

Must be allocated.

Receives communications dataconforming to Ethernet address,IP address, UDP port number,and FINS node number.

Application level

Transport level

Internet level

Physical level

• Ethernet address: A fixed number is assigned to each Ethernet Unit and it cannot be changed.• IP address: Either use the default IP address (192.168.250.FINS_node number), or set the address in the word

allocated in the DM Area or in the Unit Setup from the CX-Programmer

Page 13: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

13

Vergleich: TCP oder UDP

TCP UDP

• UDP fügt nur die Portnummer dem Protokoll zu und gibt sonst die Daten einfach weiter an die Applikation. Es wird für Kommunikation innerhalb eines Netzes verwendet oder wenn weniger als 1446 Byte übertragen werden.

• TCP ist ein verbindungsorientiertes Protokoll (Verbindungen müssen auf- und abgebaut werden). Es macht eigenständig: Fehlererkennung, Sequenzierung, Priorisierung und Optimierung der übertragenen Teile.– Mehrere Verbindungen zu einem Rechner können gleichzeitig abgearbeitet werden

(Multiplexing)• TCP ist für weiter verzweigte Netze mit Router oder das Internet.

• UDP fügt nur die Portnummer dem Protokoll zu und gibt sonst die Daten einfach weiter an die Applikation. Es wird für Kommunikation innerhalb eines Netzes verwendet oder wenn weniger als 1446 Byte übertragen werden.

• TCP ist ein verbindungsorientiertes Protokoll (Verbindungen müssen auf- und abgebaut werden). Es macht eigenständig: Fehlererkennung, Sequenzierung, Priorisierung und Optimierung der übertragenen Teile.– Mehrere Verbindungen zu einem Rechner können gleichzeitig abgearbeitet werden

(Multiplexing)• TCP ist für weiter verzweigte Netze mit Router oder das Internet.

Page 14: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

14

Port

• Port-Nummer (z.B. FTP = 21, FINS = 9600) identifiziert die Applikation.

• Der Port repräsentiert eine 16 Bit -Adresse,

• die zur Identifikation eines eindeutigen Zugangspunktes dient, den das TCP-

oder UDP- Protokoll benötigt,

• um mit den übergeordneten Anwendungen bzw. Anwendungsprotokollen (FTP

oder Telnet) Daten austauschen zu können.

• Portnummern von 0 bis 1023 sind meist schon fest vergeben durch die IANA

(Internet Assigned Numbers Authority)

• Port-Nummer (z.B. FTP = 21, FINS = 9600) identifiziert die Applikation.

• Der Port repräsentiert eine 16 Bit -Adresse,

• die zur Identifikation eines eindeutigen Zugangspunktes dient, den das TCP-

oder UDP- Protokoll benötigt,

• um mit den übergeordneten Anwendungen bzw. Anwendungsprotokollen (FTP

oder Telnet) Daten austauschen zu können.

• Portnummern von 0 bis 1023 sind meist schon fest vergeben durch die IANA

(Internet Assigned Numbers Authority)

Page 15: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

15

FINS-Befehl über Ethernet

Page 16: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

16

FINS-Antwort im Ethernet

Page 17: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

17

FINS(1), ICF, RSV,GCT

Page 18: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

18

FINS(2),DNA, DA1, DA2, SNA

Page 19: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

19

FINS(3) SA1, SA2, SID

Page 20: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

20

FINS Command Code

Code List MRC SRC MRES SRES

Command code

MRC: Main request codeSRC: Sub-request codeMRES: Main response codeSRES: Sub-response code

Siehe Handbuch: W342 Section 5-1

Page 21: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

21

FINS Command Code Code ListMRC: Main request codeSRC: Sub-request codeMRES: Main response codeSRES: Sub-response code

MRC SRC MRES SRES

Response code

Siehe Handbuch : W420 7-1-1

Page 22: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

22

FINS Command Code

Command Format(Hex)

Command codeBeginning address

No. Of items (binary)

I/O Memory area code

Word Bit

Lesen 10(Hex: 00 0A) Worte von D100 (Hex: 00 64 00)

Siehe Handbuch: W342 Section 5-3

01 0101 01 8201 01 82 00 64 00 00 0A

Beispiel : MEMORY AREA READ: 01 01

Page 23: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

23

Beispiel : FINS Header + FINS Command + FINS Parameter Lesen 10 Worte (Hex:000A) von Speicher (D100) .

IP Node Port Unit-Nr.

PC 192.168.250.10 10 9600 0

SPS 192.168.250.3 3 9600 0

ICF RSVImmer 0

GCTKann immer auf 03 stehen

DNAZielnetzwerk-nr.00 Lokal

DA1Ziel Node Nr.(Hex)

DA2Ziel Unit Nr.

SNAQuellnetzwerk Nr. 00 Lokal

SA1Quell Node Adress(Hex)

SA2Quell Unit Adress

Service ID(Wird1:1 zurückgemeldet)

80 00 03 00 03 00 00 0A 00 00

FINS Header (Hex)

MRC (Memory area read) SRC (Memory area read)

01 01

Variable type „DM“ Start adress 100 Bitpostion Anzahl Worte

82 0064 00 000A

FINS: 800003000300000A0000010182006400000A

FINS HeaderFINS Command

FINS Parameter

FINS Parameter:

FINS Command :(Lesen)

Page 24: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

24

Response Format

ICFBit.7+Bit.6 gesetzt (Antwort)

RSVImmer 0

GCT DNAZielnetzwerk-nr.00

DA1Ziel Node Nr.

DA2Ziel Unit Nr.

SNAQuellnetzwerk Nr. 00

SA1Quell Node Adress

SA2Quell Unit Adress

Service ID00-FFWird1:1 zurückgemeldet

C0 00 02 00 0A 00 00 03 00 XX

FINS CommandIst gleich wie das„Sende-Kommando“

MRC (Memory area read) SRC (Memory area read)

01 01

FINS EndecodeKein Fehler

0000 Siehe Handbuch : W342 SECTION 5-1-3

C00002000A000003000401010000####

Daten in D100

FINS Header

Page 25: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

25

Beispiel:

Schreiben von: ABCDAFFEDEAD(Hex) in D100 bis D102 mit Multiway FINS/UDP

Page 26: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

26

Beispiel:

Schreiben von: 123456789abc87654321 (Hex) in D110 mit Multiway FINS/TCP Anzeigen in ARRAY1[0..5]

Page 27: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

27

Hardware Beschreibung

CJ1M-CPU1-ETN CJ1M Ethernet-CPU-Baugruppe

Page 28: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

28

Hardware Beschreibung

Page 29: 1. 2 FINS : Factory interface networking services. Omron proprietary, all-level industrial communication protocol. It runs over Ethernet Controllerlink

29

FINIS DELECTAT