beautypg.com

2 bit left shift (sfl), Joverview, Jdescription designation method – Yaskawa MP900 Series Motion Programming Manual User Manual

Page 152: Data types

background image

4.5 Data Operations

4 -19

Example: Five bits with MB001005 (bit 5 of MW00100) as the leading bit are shifted three

bits to the right.

Before

execution

SFR

MB00100A

N3

W5 ;

9

5

0

0 entered.

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 1 1 1

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 0 0 1 1

MW00100

MW00100

With the SFR 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.2 BIT LEFT SHIFT (SFL)

J

Overview

The SFL command shifts a bit string designated by the leading bit number and bit width the
specified number of shifts to the left.

J

Description

Designation Method

SFL MB001000 N5 W10 ;

A

B

C

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

Data Types

Bit (B)

Integer (W)

Double

Integer (L)

Real

Number (F)

Constant

Leading Bit
Number

Yes

No

No

No

No

Number to
be Shifted

No

Yes

No

No

Yes

Bit Width

No

Yes

No

No

Yes

4

INFO

This manual is related to the following products: