Sb (set bit), Sb (set, Bit) – Yaskawa SMC–4000 User Manual
Page 214
204
SMC–4000 User Manual
SB (Set Bit)
[I/O]
DESCRIPTION:
The SB command sets one of eight bits on the output port, or Modbus I/O.
ARGUMENTS: SB n
where
n is an integer in the range 1 to 8 decimal or Modbus address.
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. Please note that 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 COMMAND:
EXAMPLES:
While Moving
Yes
Default Value
---
In a Program
Yes
Default Format
---
Command Line
Yes
Can be Interrogated
No
Used as an Operand
No
SB 3
Set output line 3
SB 1
Set output line 1
SB 6002
Set output 2 on Modbus device on handle F