¥ 799.00
¥ 799.00
¥ 799.00
¥ 799.00
¥ 799.00
易卖工控网(www.ymgk.com)提供”TSXASZ401模块全新现货”,产品详情:品牌/厂家:、型号:TSXASZ401、成色:全新、货期:现货 1天内发货、保修:180天,更多产品详情就上易卖工控网。
这里要强调一下LADDR,它是硬件组态中CP341的起始逻辑地址,寻找这个地址是在硬件组态中找到CP341卡件后在属性中的I/O地址中看到的的起始地址。
表4-1 引脚功能表
引脚功能表
4.2 数据交换程序地址的规划
当通讯模块编写完成后需对数据交换地址进行定义,然后调用地址内的数据参与逻辑运算及程序的编写。
数据交换方式分为数字量只读、数字量读写、模拟量只读、模拟量读写四种数据交换方式;只读的定义是指PKS读PLC的数据;读写的定义是指PKS不仅可以读PLC的数据,也可以向PLC写数据。(注:PKS为主站,PLC为从站)
在气化PKS系统与污泥脱水机PLC系统数据交换中模拟量只读数据调用的数据块是DB11,数据类型为real;模拟量读写数据调用的数据块是DB8,数据类型为real;数字量只读数据调用地址段为M210.0~M212.4;数字量读写数据调用地址段为M213.0~M213.7。详见图4-2。
DB模块图
图4-2 DB模块图
4.3 QuickBuilder组态
4.3.1 创建通道
创建通道时主要配置参数如下:
Type:通道类型Modbus Channel
Name:通道名(WN_CHANNEL)
Port Type:端口类型(Terminal Server)
Protocol:协议(ModbusRTU)
Terminal ServerTCP Host Name:
MOXA的IP地址(10.10.16.163)
Terminal ServerTCP Port No.:
MOXA端口号(4002)
其中TerminalServer TCP Port No取决于通讯所用MOXA的哪个端口,使用一个端口则为4001,使用二个端口则为4002,共四个端口可供选用。
LADDR is the starting logical address of CP341 in the hardware configuration. Looking for this address is the starting address seen in the i/o address in the attribute after finding the CP341 card in the hardware configuration.
Table 4-1 pin function table
Pin menu
4.2 planning of data exchange program address
After the communication module is written, it is necessary to define the data exchange address, and then call the data in the address to participate in logic operation and program writing.
The data exchange modes are divided into four data exchange modes: digital quantity read-only, digital quantity read-write, analog quantity read-only and analog quantity read-write; Read only refers to PKS reading PLC data; The definition of read / write means that PKS can not only read PLC data, but also write data to PLC. (Note: PKS is the master station and PLC is the slave station)
In the data exchange between gasification PKS system and sludge dehydrator PLC system, the data block of analog read-only data call is DB11, and the data type is real; The data block of analog quantity read / write data call is db8, and the data type is real; The address segment for calling digital read-only data is m210.0 ~ m212.4; The calling address range of digital quantity read / write data is m213.0 ~ m213.7. See Figure 4-2 for details.
DB module diagram
Figure 4-2 DB module diagram
4.3 quickbuilder configuration
4.3.1 creating channels
The main configuration parameters when creating a channel are as follows:
Type: channel type MODBUS channel
Name: channel name (wn\u channel)
Port type: port type (terminal server)
Protocol: Protocol (ModbusRTU)
Terminal serverTCP host name:
IP address of moxa (10.10.16.163)
Terminal serverTCP port No.:
Moxa port number (4002)
The terminalserver TCP port no depends on which moxa port is used for communication. If the first port is used, it is 4001, and if the second port is used, it is 4002. A total of four ports are available.