3 ) programming example – Yaskawa JAPMC-MC2303-E User Manual

Page 119

Advertising
background image

6.5 Programming Example

6.5.1 Word Block Data Read (Client)

6-34

( 3 ) Programming Example

The following shows an example of ladder programming executed by the settings in the previous page.

IF

SB000003==true

0000

0000
NL-1

STORE

Source 00001

Dest

DW00002

0001

0001
NL-2

STORE

Source 00009

Dest

DW00004

0002

0002
NL-2

STORE

Source 00000

Dest

DW00005

0003

0003
NL-2

STORE

Source 000512

Dest

DW00006

0004

0004
NL-2

STORE

Source 00000

Dest

DW00007

0005

0005
NL-2

STORE

Source 00000

Dest

DW00008

0006

0006
NL-2

STORE

Source 00000

Dest

DW00009

0007

0007
NL-2

STORE

Source 00000

Dest

DW00010

0008

0008
NL-2

STORE

Source 00000

Dest

DW00011

0009

0009
NL-2

STORE

Source 00000

Dest

DW00012

0010

0010
NL-2

STORE

Source 00000

Dest

DW00024

0011

0011
NL-2

STORE

Source 00000

Dest

DW00025

0012

0012
NL-2

END_IF

0013

0013
NL-1

One scan at startup

Sets parameters in the first scan after startup.
(Low-speed scan (DWG.L): SB000003,
High-speed scan (DWG.H): SB000001)

Sets the coil offset.

Sets the input relay offset.

Sets the input register offset.

Sets the holding register offset.

Clears the system registers.

Clears the normal pass counter.

Clears the error counter.

Sets the remote node number.

Sets the function code (word block read).

Sets the data address (address 0).

Sets the data size (512 words).

Sets the remote CPU number.

Advertising