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

Page 125

Advertising
background image

6.5 Programming Example

6.5.3 Word Block Data Read/Write (Server)

6-40

( 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 00000

Dest

DW00008

0001

0001
NL-2

STORE

Source 00000

Dest

DW00009

0002

0002
NL-2

STORE

Source 00000

Dest

DW00010

0003

0003
NL-2

STORE

Source 00100

Dest

DW00011

0004

0004
NL-2

STORE

Source 00000

Dest

DW00012

0005

0005
NL-2

STORE

Source 32767

Dest

DW00013

0006

0006
NL-2

STORE

Source 00000

Dest

DW00014

0007

0007
NL-2

STORE

Source 00000

Dest

DW00024

0008

0008
NL-2

STORE

Source 00000

Dest

DW00025

0009

0009
NL-2

END_IF

0010

0010
NL-1

SB000004

DB000202

0011

0011
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.

Write range LO

Write range HI

Clears the system registers.

Clears the normal pass counter.

Clears the error counter.

Parameter settings completed.

Always turns the Abort command OFF.

Advertising