Cb (clear bit), Bitnum is the i/o point in the module from 1 to 4 – Yaskawa LEGEND-MC User Manual

Page 85

Advertising
background image

75

LEGEND-MC User’s Manual

CB (Clear Bit)

[I/O]

DESCRIPTION:

The CB command clears a bit on the output port by setting it to logic zero. Slave controller or Modbus
outputs can be cleared also.

When using this command to access I/O on a slave controller in distributed control mode, use it with the
handle for outbound master commands. Do not use the handle which is for incoming slave update packets.
For example, if a slave is connected on handles E and F, reference the I/O for the slave on handle E.

ARGUMENTS: CB n

where

n is an integer corresponding to a specific output on the controller to be cleared (set to 0). The first output
on the controller is denoted as output 1. A LEGEND-MC controller has 4 digital outputs plus applicable I/
O connected by Modbus.

DISTRIBUTED CONTROL:

MODBUS:

NOTE: When using Modbus devices, the I/O points of the modbus devices are calculated
using the following formula:

n = (SlaveAddress*1000) + (HandleNum*1000) + ((Module-1)*4) + (Bitnum-1)

Slave Address is used when the ModBus device has slave devices connected to it and specified as
Addresses 0 to 255. The use of slave devices for modbus are very rare and this number will usually be 0.

HandleNum is the handle specifier from A to P (1 - 16).

Module is the position of the module in the rack from 1 to 16.

BitNum is the I/O point in the module from 1 to 4.

USAGE:

RELATED COMMANDS:

Handle

Command

Handle

Command

A

CB101 ~ CB104

I

CB901 ~ CB904

B

CB201 ~ CB204

J

CB1001 ~ CB1004

C

CB301 ~ CB304

K

CB1101 ~ CB1104

D

CB401 ~ CB404

L

CB1201 ~ CB1204

E

CB501 ~ CB504

M

CB1301 ~ CB1304

F

CB601 ~ CB604

N

CB1401 ~ CB1404

G

CB701 ~ CB704

O

CB1501 ~ CB1504

H

CB801 ~ CB804

P

CB1601 ~ CB1604

While Moving

Yes

Default Value

---

In a Program

Yes

Default Format

---

Command Line

Yes

Can be Interrogated

No

Used as an Operand

No

Distributed Control

Offset by 100

"SB"

Set Bit

"OP"

Define all outputs

Advertising