3 word block data read/write (server), 1 ) msg-snd function setting, 2 ) parameter setting – Yaskawa JAPMC-MC2303-E User Manual

Page 124

Advertising
background image

6

Message Send and Receive Functions

6.5 Programming Example

6.5.3 Word Block Data Read/Write (Server)

6-39

6.5.3 Word Block Data Read/Write (Server)

The following shows an example where the 262IF-01 acts as an FL-net message server to handle a word block data
read or write request with a data size of 10 words from a virtual address offset of 100 from remote device.

( 1 ) MSG-SND 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 reception.
When a word block data read request (transaction code: 65005) is received from a remote device, the 262IF-01 sends a
word block data read response (transaction code: 65205). At this time, data in MW00100 to MW000109 (10 words) is
read.
When a word block data write request (transaction code: 65006) is received from a remote device, the 262IF-01 sends
word block data write response (transaction code: 65206). At this time, data with a data size of 10 words is read from
virtual address offset 0 of the remote device and written to MW00100 to MW000109 (10 words) of the 262IF-01.
The virtual space address data size specified in the request message is stored in the data address (DW00005 and
DW00006).

Œ

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

PARAM03

DW00003

Option

0

Not used

PARAM04

DW00004

Function code

Not used

PARAM05

DW00005

Data address

FL-net virtual 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

Holding register offset

100

PARAM12

DW00012

Write range LO

0

Lower limit of write range

PARAM13

DW00013

Write range HI

32767

Upper limit of write range

PARAM14 to 16

DW00014
to DW00016

Reserved by the system

0

Advertising