5 programming example, 1 word block data read (client), 1 ) msg-snd function setting – Yaskawa JAPMC-MC2303-E User Manual

Page 118: 2 ) parameter setting

Advertising
background image

6

Message Send and Receive Functions

6.5 Programming Example

6.5.1 Word Block Data Read (Client)

6-33

6.5 Programming Example

Cyclic transmission is performed automatically if cyclic transmission setting (FL-net transmission definition) is made.
For message transmission, it is necessary to create a user program using the message send and receive functions (MSG-
SND function and MSG-RCV function).
The following shows a programming example using the message send/receive function.

Œ

When a server receives either of the following message requests from a client, it is not necessary to create the user pro-
gram.
Network parameter read, profile read, log data read and clear, message loopback

6.5.1 Word Block Data Read (Client)

The following shows an example where the 262IF-01 acts as an FL-net message client to request a word block data
read with a data size of 512 words from a virtual address 0 to the remote device (node number 1).

( 1 ) MSG-SND Function Setting

The MSG-SND function is set as follows:

( 2 ) Parameter Setting

The parameter list from DA00000 is set as follows.

Œ

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

When the Execute (DB000201) is set to ON (=1) from the above settings, the 262IF-01 sends a word block data read
request (transaction code: 65005).
When a word block data read response (transaction code: 65205) is received from a remote node, the 262IF-01 writes
read data to MW00000 to MW000511 (512 words).

Œ

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

Transmission device = FL-net

Protocol type = MEMOBUS

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

1

PARAM03

DW00003

Option

0

Not used

PARAM04

DW00004

Function code

09H

Word block data read

PARAM05

DW00005

Data address

0

FL-net virtual address

PARAM06

DW00006

Data size

512

PARAM07

DW00007

Remote CPU number
(Address upper word)

0

When the destination node is the
262IF-01, 0 must be set.

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

Holding register offset

0

PARAM12 to 16

DW00012 to
DW00016

Reserved by the system

0

Advertising