3 block move (blk), Jprogramming examples, Joverview – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 153: Jdescription designation method

Advertising
background image

Sequence Commands

4.5.3 BLOCK MOVE (BLK)

4 -20

J

Programming Examples

Type

Motion Program

Ladder Logic Program

B

W

SFL MB001000 N=5

W=10

SHFTL MB001000 N=5

W=10

L

F

Example: The 10 bits with MB00100A (bit A of MW00100) as the leading bit are shifted five

bits to the left.

SFL

MB00100A

N5

W10 ;

F

A

S S S S S S S S S S S S S S S S S S S S S S S S S S

1 1 0 0 0

MW00100

MW00101

1

3

0

F

A

MW00100

MW00101

3

0

Enter “0”.

0 is placed in the lower five bits.

The upper five bits are deleted.

S S S S S S S S S S S S S S S S S S S S S S S S S S

S S S S S S S S S S S S S S S S S S S S S S S S S S

S S S S S S S S S S S S S S S S S S S S S S S S S S

0

1

0

1

1

0

0

0

1 0 0 0 0 0

With the SFL command, if the number of shifts is greater than the bit width, all data with the specified bit width
will be set to 0.

4.5.3 BLOCK MOVE (BLK)

J

Overview

The BLK command moves the specified number of words from the beginning of the source
register to the beginning of the destination register.

J

Description

Designation Method

BLK MW001000 N5 W10 ;

A

B

C

A: Leading bit number
B: Number to be shifted
C: Bit width

4

A

EXAMPLE

"

INFO

Advertising
This manual is related to the following products: