Setting of External Device

To communicate MELSEC-A Series (Ethernet Interface Unit) with the display, you need to set the ladder program of the External Device and the DIP switch of the Ethernet Interface Unit. Settings of the sample ladder program and the DIP switch are shown below.

Please refer to the manual of the External Device for more details.

Example of Ladder Program

LD

M9038

 

DMOVP

Hxxxxxxxx  D100

: IP address of External Device*1

MOVP

K0  D102

 

MOV

H8000  D116

: Connecting method (TCP)

MOV

K1024  D124

: Port No. of External Device (in case of entering "1024" for example)

DMOV

Hxxxxxxxx  D125

: IP address of display*1

DMOV

HFFFFFFFF  D128

 

MOV

HFFFF  D130

 

LD

M9036

 

TOP

H0000  H0000  D100  K50

 

LD

X19

 

MOV

K5  D113

 

TOP

H0000  K13  D113  K1

 

LD

M9036

 

OUT

Y0019

: Initial request signal

LD

M9036

 

OUT

Y0008

: Open request signal

END

 

 

 

*1:   xxxxxxxx shows IP address (in Hex). Check with a network administrator about IP address. Do not set the duplicate IP address.

IMPORTANT:

 

Settings of Interface Unit

 

Mode Setting Switch

Settings

Setup Description

0

On-line

Communication Condition Setting Switch

DIP Switch

Settings

Setup Description

SW1

OFF

Selection of line processing at TCP timeout error

SW2

OFF

Data Code Setting

SW3

ON

CPU Communication Timing Settings

SW4

OFF

Initial Timing Settings

 

NOTE