Galil DMC-1400 用户手册

下载
页码 235
DMC-1400  Series Command Reference SB 
● 181   
SB  
FUNCTION:  Set Bit 
DESCRIPTION: 
The SB command sets one of three bits on the output port.  
Note:  When using Modbus devices (DMC-1415/1416/1425 ONLY), the I/O points of the 
Modbus devices are calculated using the following formula: 
 
n = (SlaveAddress*10000) + (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 F.   
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. 
ARGUMENTS:  SB n 
where  
n is an integer in the range 1 to 3 decimal. 
USAGE:     
While Moving 
Yes 
Default Value 
--- 
In a Program 
Yes 
Default Format 
--- 
Command Line 
Yes 
 
 
Can be Interrogated 
No 
 
 
Used as an Operand 
No 
 
 
Controller Usage 
ALL  
RELATED COMMAND: 
Configure output port 
Clear Bit 
EXAMPLES: 
SB 3 
Set output line 3 
SB 1 
Set output line 1