10 set bit (s{ }), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual

Page 254: 3) programming examples, 2) format (3) programming examples

Advertising
background image

8.9 Basic Functions

8-147

8

Command Reference

8.9.10 Set Bit (S{ })

(1) Overview

This command turns ON the specified bit if the logical operation result is true. It does not turn OFF the specified
bit, even if the logical operation result is false.

(2) Format

(3) Programming Examples

The Set Bit command (S{ }) programming examples are shown below.

Motion Programs

Sequence Programs

Applicable

Applicable

S { MB001000 } = MB001010 & MB001011;

A B

Item

Description

Usable Registers

A

Specified bit

• All bit type registers (Excluding # and C registers)
• The above registers with subscript

B

Logic

expression

• All bit type registers (Excluding # and C registers)
• The above registers with subscript
• Constants

Type

Motion Programs/

Sequence Programs

Ladder Programs

B

S{MB001000}=MB001010&
MB001011;

W

L

F

EXAMPLE

Advertising