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

Page 121

Advertising
background image

6.5 Programming Example

6.5.2 Word Block Data Write (Client)

6-36

6.5.2 Word Block Data Write (Client)

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

( 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 access method and notes at register input, refer to 6.4 Displaying a Register List and Notes at Register
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 write
request (transaction code: 65006).
Data of MW00000 to MW000511 (512 words) is read and written in the virtual address of a remote device for data size
of 512 words from offset 0.
When a word block data response (transaction code: 65206) is received from a remote device, COMPLETE in the
MSG-SND function goes ON for one scan.

Œ

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

0Bh

Word block data write

PARAM05

DW00005

Data address

0

FL-net virtual address

PARAM06

DW00006

Data size

512

PARAM07

DW00007

Remote CPU number
(Address upper word)

0

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

DW00012

Reserved by the system

0

PARAM13

DW00013

Reserved by the system

0

PARAM14

DW00014

Reserved by the system

0

PARAM15

DW00015

Reserved by the system

0

PARAM16

DW00016

Reserved by the system

0

Advertising