Modbus TCP communication of Mitsubishi q series PLC

2020-10-12 498

Bcnet-q is a new type of Ethernet communication processor. It is designed to meet the increasing needs of plant equipment informatization (equipment network monitoring and production management). It is used for Ethernet data acquisition of Mitsubishi q0x / q0xu / q0xud series PLC. Bcnet-q supports most SCADA software in industrial control field, and supports Mitsubishi Ethernet protocol and modbustcp communication modes.

Tools / raw materials

·Mitsubishi q series PLC

·Standard Modbus TCP client

·Bcnet-q Ethernet communication module

Method / step

1. Modbustcp communication description

The modbustcp communication server is integrated into the bcnet-q module. Therefore, modbustcp clients, such as configuration software supporting modbustcp, OPC server, PLC and software developed by high-level language to realize modbustcp client, can directly access the internal data area of Mitsubishi q-series PLC. The Modbus protocol address has been mapped to the address area of q-series PLC by default in bcnet The energy numbers include: FC1, FC2, FC3, FC5, FC6, FC15 and fc16.

2. Communication configuration of upper computer (taking WinCC as an example)

1. Open WinCC software, create a new project, right-click "variable management", select "add new drive connection", and select "MODBUS" in the pop-up dialog box TCPIP.chn ”Click OK.

3. Right click "MODBUS TCPIP / IP unit ා 1" to select "connection of new driver", create a new name, click "properties", pop up the dialog box of properties, select "984" in "CPU type", fill in IP address of bcnet FX in "server", and click OK.

4. Right click "variable name" to create a new variable. Here we create a new d0 variable. Please click "select" to set the corresponding address, and a dialog box will pop up. Select "4x holding register" in "area", and fill in "402001" in "4x". Note: according to the modbustcp address correspondence, the address of d0 is 42001, because the address bits in WinCC are 6 bits, 42001 corresponds to WinCC It is 402001.

END

matters needing attention

·Standard Modbus TCP server

·PLC internal does not need programming, direct address communication.


Recommended news