beautypg.com

Cb (clear bit) – Yaskawa SMC–4000 User Manual

Page 84

background image

74

SMC–4000 User Manual

CB (Clear Bit)

[I/O]

DESCRIPTION:

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

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. An

SMC–4000

controller has 8 digital outputs plus applicable I/O

connected by Modbus.

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 H (1 - 8).

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:

SB (Set Bit)

OP (Output Port)

EXAMPLES:

While Moving

Yes

Default Value

---

In a Program

Yes

Default Format

---

Command Line

Yes

Can be Interrogated

No

Used as an Operand

No

CB 1

Clear output bit 1

CB 2

Clear output bit 2

CB 3

Clear output bit 3

CB 6002

Clear output 2 on Modbus device on handle F