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

产品展示
联系我们

联系人:陈柳铭

手机:15579209656

电话:

Q Q:3136378118

邮箱:3136378118@qq.com

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

3617E数字输入模件
3617E数字输入模件
3617E数字输入模件
3617E数字输入模件
3617E数字输入模件
3617E数字输入模件

型号:3617E

类别:PROSOFT

联系人:陈柳铭

手机:15579209656

电话:15579209656

Q Q:3136378118

邮箱:3136378118@qq.com

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


在线咨询


3617E
从MCM复制数据。数据。将数据[0]和[1]读入数据类型为REAL的标签ENERGY\u CONSUMPTION。在梯形图逻辑中使用COP语句。这里有一个例子。因为标签MCM。数据。READDATA[0]只能在上述命令中使用,可以使用无条件COP语句。请注意,COP语句的长度值为1。在罗克韦尔自动化处理器中,COP语句将复制所需数量的“源”值,以填充指定长度的“Dest”标记。因此,上述语句将复制ReadData[0]和[1],以填充标签“Energy\u Consumption”所需的32位。注意:不要使用MOV语句。MOV将数据从源寄存器转换为目标寄存器数据类型。这将创建一个数据转换语句,并将导致原始数据的丢失或损坏。下表是读取多个浮点值和设备地址的示例。该表显示了7个连续的浮点值(14个Modbus地址)。值说明类型40261 KW需求(功率)浮子。高位16位40263无功功率浮点。上16位40265 VA视在功率浮点。高16位40267功率因数浮点。高位16位40269伏电压,线对线浮动。高位16位40271伏电压,线路至中性点浮动。上16位40273安培电流浮动。高16位将命令配置为读取这7个浮点,如下所示。如下图所示,在ControlLogix处理器内配置7个浮点数组。以下COP语句将从MCM复制数据。数据。将数据[0]至[13]读入阵列MCM\U FLOAT\U DATA[0]至[6]。“Length”参数设置为必须从MCM复制的浮点值的数目。数据。READDATA数组。
3617E数字输入模件 3617E数字输入模件 3617E数字输入模件
Copy data from the MCM.DATA.READDATA[0] and [1] into the tag ENERGY_CONSUMPTION that has a data type of REAL. Use a COP statement within the ladder logic. Here is an example. Because the tag MCM.DATA.READDATA[0] should only be used within the above command, an unconditional COP statement can be used. Notice the length of the COP statement is a value of 1. Within a Rockwell Automation processor, a COP statement will copy the required amount of "Source" values to fill the "Dest" tag for the Length specified. Therefore, the above statement will copy ReadData[0] and [1] to fill the 32 bits required for the tag "Energy_Consumption". Note: Do not use a MOV statement. A MOV will convert the data from the Source register to the destination register data type. This would create a data casting statement and will result in the loss or corruption of the original data.The following table is an example to read Multiple Floating-Point values and device addresses. The table shows 7 consecutive floating-point values (14 Modbus addresses). Value Description Type 40261 KW Demand (power) Float. upper 16 bits 40263 VAR Reactive Power Float. upper 16 bits 40265 VA Apparent Power Float. upper 16 bits 40267 Power Factor Float. upper 16 bits 40269 VOLTS Voltage, line to line Float. upper 16 bits 40271 VOLTS Voltage, line to neutral Float. upper 16 bits 40273 AMPS Current Float. upper 16 bits Configure the command to read these 7 floats as follows. Configure an array of 7 floats within the ControlLogix processor as shown in the following illustration. The following COP statement will copy the data from MCM.DATA.READDATA[0] TO [13] into the array MCM_FLOAT_DATA[0] TO [6]. The "Length" parameter is set to the number of Floating-Point values that must be copied from the MCM.DATA.READDATA array.



相关产品