欢迎光临瑞昌明盛进出口贸易有限公司官网!
主营业务|产品PLC系统 DCS系统 伺服系统 机器人系统(模块 备件)
全国咨询热线:+86 15270269218
联系我们
瑞昌明盛进出口贸易有限公司
手机:+86 15270269218
QQ:3136378118
邮箱:stodcdcs@gmail.com
地址 :江西省九江市瑞昌市东益路23号赛湖农商城401号
联系人:麦女士
您的位置: 首页>>产品展示 >
产品展示 》 ABB 》 3HNM07686-1模块备件产品尺寸

3HNM07686-1模块备件产品尺寸

型号:3HNM07686-1

联系人:肖经理
公司名称:瑞昌明盛进出口贸易有限公司
公司地址:厦门市思明区吕岭路1733号创想中心2009-2010单元
手机:+86 15270269218
QQ:3136378118
邮箱:stodcdcs@gmail.com

用法
ClearRawBytes用于将rawbytes变量的所有内容设置为0。
基本示例
该指令的基本示例如下所示。
示例1
VAR rawbytes raw_数据;
VAR num整数:=8
VAR num float:=13.4;
PackRawBytes integer,raw\u data,1\IntX:=力;
PackRawBytes float,raw\u data,(RawBytesLen(raw\u data)+1)\Float4;
ClearRawBytes raw\u data\FromIndex:=5;
在前4个字节中放置整数的值(从索引1开始),在接下来的4个字节中放置整数的值
从索引5开始计算浮点值。
示例中的后一条指令从索引5开始清除原始_数据的内容,即。
浮点将被清除,但整数保留在raw_数据中。中有效字节的当前长度
3HNM07686-1模块备件产品尺寸 3HNM07686-1模块备件产品尺寸
Usage
ClearRawBytes is used to set all the contents of a rawbytes variable to 0.
Basic examples
A basic example of the instruction is illustrated below.
Example 1
VAR rawbytes raw_data;
VAR num integer := 8
VAR num float := 13.4;
PackRawBytes integer, raw_data, 1 \IntX := DINT;
PackRawBytes float, raw_data, (RawBytesLen(raw_data)+1) \Float4;
ClearRawBytes raw_data \FromIndex := 5;
In the first 4 bytes the value of integer is placed (from index 1) and in the next 4 bytes
starting from index 5 the value of float.
The last instruction in the example clears the contents of raw_data, starting at index 5, i.e.
float will be cleared, but integer is kept in raw_data. Current length of valid bytes in
在线客服
联系方式

热线电话

+86 15270269218

上班时间

周一到周五

公司电话

+86 15270269218

二维码
线