6 receiving transparent message request (server), 1 ) msg-rcv function setting, 2 ) parameter setting – Yaskawa JAPMC-MC2303-E User Manual

Page 136

Advertising
background image

6

Message Send and Receive Functions

6.5 Programming Example

6.5.6 Receiving Transparent Message Request (Server)

6-51

6.5.6 Receiving Transparent Message Request (Server)

Because sending the response is not required when a transparent message is received by a server, only the MSG-RCV
function is started.
The following shows an example of transparent message reception according to non-procedure protocol.

Œ

When it is necessary to send a response for a transparent message request, the MSG-SND function must be
started. For details, refer to 6.5.4 Sending Request (Client)/Response (Server) according to Non-procedure Protocol
on page 6-42.

( 1 ) MSG-RCV Function Setting

The MSG-RCV function is set as follows:

( 2 ) Parameter Setting

The parameter list from DA00000 is set as follows:

Œ

For register access method and notes at register input, refer to 6.4 Displaying a Register List and Notes at Register
Input
on page 6-30.

In the above setting, setting Execute (DB000201) to ON (=1) causes a waiting state for message reception and then a
transaction code (10000) is stored in MW00000 and message data in the subsequent register (MW00001 and the subse-
quent) upon message reception.

Œ

For transaction codes, refer to 6.1.5 ( 5 ) PARAM05: Data Address on page 6-13.

Transmission device = FL-net

Protocol type = Non-procedure protocol

Circuit number = 1

Transmission buffer channel number = 1

Parameter list leading address

= DA00000

(DW00000 to DW00016 is used.)

Parameter list

F

· · · · · · ·

0

Register

Contents

Setting

Value

Remarks

PARAM00

DW00000

Processing result

PARAM01

DW00001

Status

PARAM02

DW00002

Remote node number

PARAM03

DW00003

Reserved by the system

0

PARAM04

DW00004

Function code

Not used

PARAM05

DW00005

Data address

PARAM06

DW00006

Data size

PARAM07

DW00007

Remote CPU number
(Address upper word)

PARAM08

DW00008

Coil offset

0

Not used

PARAM09

DW00009

Input relay offset

0

Not used

PARAM10

DW00010

Input register offset

0

Not used

PARAM11

DW00011

0

Not used

PARAM12

DW00012

Holding register offset

0

PARAM13

DW00013

Write range HI

65534

Upper limit of write range

PARAM14

DW00014

Reserved by the system

0

PARAM15

DW00015

Reserved by the system

0

PARAM16

DW00016

Reserved by the system

0

Clear to 0 only once, when the
power is turned ON.

Advertising