Goals and Symptoms
The goal of this resolution is to provide a solution for connection a Magelis XBTGT2000-7000 series to a M238 PLC via the serial link. Also, it provides a procedure for importing the variables via the symbol configurator.
Facts and Changes
Hardware:
-Magelis XBTGT 2000/4000/5000/6000/7000 series
-TM238LDD24DT
-TM238LFDC24DT
-Schneider Electric Modbus drop cable VW3A8306R**
-BMXXCAUSBH018 programming cable for the M238
-XBTZG935 programming cable for the HMI
Software:
SoMachine v1.1.10
Causes and Fixes
The SoMachine application can be downloaded to the M238 using the BMXXCAUSBH018 USB programming cable. The HMI application can be downloaded using the XBTZG935 programming cable. The PLC and HMI download is manage via SoMachine. The Magelis XBTGT Com port 2 connects to the M238 Serial Link 1 or 2 using the Schneider Electric Modbus RS485 cable VW3A8306R**. In this example we are using Serial Link 1 on the M238.
1) From SoMachine add a Magelis XBTGT device
1.1) In this resolution we will use the Magelis XBTGT7340.
1.2) Verify the Magelis XBTGT was added successfully.
2) Create a Program Organization Unit (POU)
2.1) Create a Ladder Logic Diagram (LD)
2.2) This resolution use a ADD function Block to test the communication between the XBTGT and the M238.
2.3) Add the POU to the MAST Task Configuration as shown below:
3) Add the Symbol Configuration tool
3.1) Select the Symbol Configuration and click Open.
3.2) Double-click on Symbol Configuration and Refresh the list as shown below:
3.3) Select and add the variables to the right column
4) Set the communication path to download to the M238 using the USB cable BMXXCAUSBH018.
4.1) Set the communication path to download to the Magelis XBTGT7340 using the XBTZG935 cable.
5) Set the communication parameter for SL1 on the M238 as shown below:
Baud rate: 19200
Parity: None
Data bits: 8
Stop bits 1
RS485.
5.1) Add the SoMachine Network Manager under Serial Line 1.
5.2) Select SoMachine Network manager.
6) Launch Vijeo Designer to create the HMI application for the XBTGT7340. Double-click on 'HMI application'.
7) Import the tags to Vijeo Designer
8) Create a new panel with 3 numeric object.
Link the object to the tags created in SoMachine9) Set the HMI COM2 communication parameter as shown below:
Baud rate: 19200
Parity: None
Data bits: 8
Stop bits 1
RS485.
10) Copy and Paste the Equipment Address from the gateway' s PLC section.
10.1) Set the Equipment Address for the PLC.
11) Copy and Paste the Equipment Address from the gateway's HMI section.
11.1) Set the Equipment Address for the XBTGT7340
12) Build and download the application.