beautypg.com

5 msg-snd function – Yaskawa MP920 Communications Module User Manual

Page 213

background image

8 Example Communications Module Applications

8.3.5 MSG-SND Function

8-22

8.3.5

MSG-SND Function

The following diagram shows a MELSEC Master MSG-SND ladder logic program for the
217IF Module of the MP920.

Send start
DB000200

Normal
completion
DB000211

Abnormal
completion
DB000212

Command

DB000201

DB000210

Executing

Transmission busy
monitioring timer

Stop
command
DB000202

Command
DB000201

003.00 DW00031

T

Command
DB000201

Executing

DB000210

Normal

completion

DB000211

Abnormal

completion

DB000212

MSG-SND

EXECUTE

ABORT

DEV-TYP

BUSY

COMPLETE

ERROR

PRO-TYP
CIR-NO
CH-NO
PARAM
DA00000

00005

00001

00002
00001

Stop
DB000202

DB000211

Normal
completion

Abnornal completion

Normal counter

DB000212

IFON

IEND

DEND

INC DW00024

DW00000

DW00026

DW00027

DW00001

SB000003

IFON

00000

00064

00001

00000

DW00005

DW00006

DW00007

DW00008

DW00009

DW00010

DW00011

DW00012

DW00024

IEND

00000

00000

00000

00000

One scan at startup

Stop command
DB000202

Normal
completion
DB000211

Abnormal
completion
DB000212

00001

DW00002

At startup, set the parameters in the first scan.

Remote station number setting

Connection code setting (readout)

Data address setting (address 0)

Data size setting (64 words)

Remote CPU No. setting

Coil offset setting

Input relay offset setting

Input register offset setting

Holding register offset setting

System register clear

Normal pulse counter clear

Force stop if still not completed 3 seconds
after the Send command is issued.

Stop counter added when the Stop
command is issued.

The executing coil turns ON when the CPU
receives the command.

The normal completion or abnormal completion
coil turns ON at processing completion.

Use PRO-TYP 1 (MEMOBUS communications).
CIR-NO (circuit number) 2 (depending on the connection port)
CH-NO (channel number) 1 (fixed at 1 with the 217IF Module)

Turns ON at receive completion of a query message and at
send completion of a response message.

Send started at 1-second intervals.

Function Send instruction

Normal pulse counter added

Ended by a transmission error

Error pulse counter added

Processing result stored

Status stored

Sends a message to a remote station.

Error counter clear

Low-speed scan (DWG L): SB000003
High-speed scan (DWG H): SB000001

00003

Stop command
DB000202

Stop counter
DB00021B

INC DW00023

Send start
DB000200

Send cycle timer

Transmission start

DB000200

001.00 DW00030

T

The circuit number
changes according to the
system configuration.

INC

Error counter
DW00025

DW00004

DW00025

DB000202

Set the station number set for MELSEC by
the station number setting switch.