Bit right-shift (sfr) command -18, 5 data operations, 1 bit right-shift (sfr) command ! ! ! ! outline – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual

Page 150: Detailed explanation, Program example

Advertising
background image

MotionSuite™ Series Machine Controller Motion Programming Manual

Chapter 4: Sequence Commands

4-18

4.5

Data Operations

In this section, the data commands that execute data shift, movement, and initialization are
explained.

4.5.1

Bit Right-shift (SFR) Command

!

!

!

! Outline

In a bit string designated by heading bit number and bit width, the Bit Right-shift (SFR)
command shifts as many numbers as designated towards the right.

!

!

!

! Detailed Explanation

Command Method

Data Type

$ = Yes

× = No

!

!

!

! Program Example

Example: Heading: MB001005 (bit 5 of MW00100)/bit width: 5

Bit (B)

Integer (W)

32-bit Integer (L)

Real (F)

Constant

Heading Bit Number

$

×

×

×

×

Number to be Shifted

×

$

×

×

$

Bit Width

×

$

×

×

$

Type

Motion Program

Ladder Program

B

W

SFR MB001000 N=5 W=10;

SHFTR MB001000 N=5 W=10

L

F

SFR MB001000

N5 W10;

A

B

C

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

Advertising