欢迎来到瑞昌明盛自动化设备有限公司官网!

产品展示
联系我们

联系人:麦女士

手机:+86 15270269218

电话:

Q Q:3136378118

邮箱:stodcdcs@gmail.com

地址:江西省九江市瑞昌市东益路23号赛湖农商城401号

3HAC022999-001使用指导
3HAC022999-001使用指导
3HAC022999-001使用指导
3HAC022999-001使用指导
3HAC022999-001使用指导
3HAC022999-001使用指导

型号:3HAC022999-001

类别:ABB

联系人:麦女士

手机:+86 15270269218

电话:+86 15270269218

Q Q:3136378118

邮箱:stodcdcs@gmail.com

地址:江西省九江市瑞昌市东益路23号赛湖农商城401号


在线咨询


BitClear用于清除(设置为0)定义字节数据中的指定位。
基本示例
指令位清除的基本示例如下所示。
示例1
常量num奇偶校验位:=8;
变量字节数据1:=130;
位清除数据1,奇偶校验位;
变量data1中的位8(奇偶校验位)将设置为0,例如变量的内容
数据1将从130更改为2(整数表示)。数据类型的位操作
使用位清除时的字节如下图所示。
XX050002147
论据
位清除位数据位位置
位数据
数据类型:字节
要更改的整数表示的位数据。
比特波斯
钻头位置
数据类型:num
位数据中的位位置(1-8)设置为0。
局限性
数据类型字节的范围为0-255十进制。
位位置在1到8之间有效。
下一页继续
1说明
1.6. BitClear-清除字节数据中的指定位
机器人软件-操作系统
3HAC 16581-1版本:J 27
©版权所有2004-2010 ABB。保留所有权利。
语法
比特清除
[位数据':=“]<var或pers(INOUT)of byte>','
[BitPos':=“]<num的表达式(IN)>';”
相关信息
有关信息,请参阅
在字节数据位集中设置指定位-在第页的字节数据中设置指定位
28
检查是否设置了字节数据中的指定位BitCheck-检查字节数据中的指定位
设置在第772页
其他bit功能技术参考手册-快速概述
3HAC022999-001使用指导 3HAC022999-001使用指导 3HAC022999-001使用指导
BitClear is used to clear (set to 0) a specified bit in a defined byte data.
Basic examples
A basic example of the instruction BitClear is illustrated below.
Example 1
CONST num parity_bit := 8;
VAR byte data1 := 130;
BitClear data1, parity_bit;
Bit number 8 (parity_bit) in the variable data1 will be set to 0, e.g. the content of the variable
data1 will be changed from 130 to 2 (integer representation). Bit manipulation of data type
byte when using BitClear is illustrated in the figure below.
xx0500002147
Arguments
BitClear BitData BitPos
BitData
Data type: byte
The bit data, in integer representation, to be changed.
BitPos
Bit Position
Data type: num
The bit position (1-8) in the BitData to be set to 0.
Limitations
The range for a data type byte is 0 - 255 decimal.
The bit position is valid from 1 - 8.
Continues on next page
1 Instructions
1.6. BitClear - Clear a specified bit in a byte data
RobotWare - OS
3HAC 16581-1 Revision: J 27
© Copyright 2004-2010 ABB. All rights reserved.
Syntax
BitClear
[ BitData ':=' ] < var or pers (INOUT) of byte > ','
[ BitPos ':=' ] < expression (IN) of num > ';'
Related information
For information about See
Set a specified bit in a byte data BitSet - Set a specified bit in a byte data on page
28
Check if a specified bit in a byte data is set BitCheck - Check if a specified bit in a byte data
is set on page 772
Other bit functions Technical reference manual - RAPID overview
 



相关产品