Sequence program

The sequence program for initial processing and communication line opening processing are required.

(1)Programming condition

This program performs the initial processing of the Ethernet module and the opening processing of connection No. 1 when the stopping PLC CPU starts running.

(a)I/O signal of Ethernet module

For A Ethernet Interface Module User’s Manual

(b) Device used by user

Device

Application

M102

COM.ERR turned off command

 

 

D100

IP address of Ethernet module

 

 

D110

Application setting

 

 

D111

Port No. of Ethernet module

 

 

D112 to D113

IP address of GOT

 

 

D114

Port No. of GOT

 

 

D200

Initial fault code

 

 

(c)Buffer memory settings used in the present example

 

Buffer memory

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

address

 

 

 

 

Item

 

 

 

 

 

Set value

 

 

 

Dec (Hex)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 to 1 (0 to 1H)

IP address of Ethernet module

 

C0A80013H

 

 

 

(192.168.0.19)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16 (10H)

 

Application setting*1

 

 

 

 

 

100H

 

 

 

 

24 (18H)

 

Port No. of Ethernet module

 

 

 

5001

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

25 to 26

 

IP address of GOT

 

 

 

 

FFFFFFFFH

 

 

(19 to 1AH)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

27 (1BH)

 

Port No. of GOT

 

 

 

 

 

FFFFH (fixed)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

80 (50H)

 

Initial fault code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*1 The details of the application setting are shown below.

 

 

 

 

 

 

 

Settings 1), 2) and 3) can be changed by the user.

 

 

 

 

 

 

 

 

4), 5) and 6) are fixed.

 

 

 

 

 

 

 

 

 

b15b14b13b12b11b10 b9

b8

b7

b6

b5

b4

b3

b2

b1

b0

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

0

 

 

 

 

 

 

 

 

 

5)

4)

3)

 

 

 

 

 

 

2)

1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6)

1)Fixed buffer application

0:For sending; no exchange

1:For receiving

2)Existence check

0:No

1:Yes

3)Pairing open

0:No

1:Yes

4)Communication format (Set to "1" (UDP/IP).)

0:TCP/IP

1:UDP/IP

5)Fixed buffer exchange (Set to "0" (With procedure).)

0:With procedure

1:Without procedure

6)Open method (Set to "00" (Active, UDP/IP).

00:Active, UDP/IP

10:Unpassive

11:Fullpassive

1

PREPARATORYFORPROCEDURESMONITORING 2

RANGESETBE

DEVICE CANTHAT 3

RANGEACCESS MONITORINGFOR 4

MONITORTOREDUNTANTSYSTEM HOW 5

CONNECTIONBUS 6

DIRECTTOCONNECTIONCPU 7

LINKCOMPUTER CONNECTION 8

ETHERNETCONNECTION

8. ETHERNET CONNECTION

8 - 35

8.4 PLC Side Setting