XG5000 Project Creation and Configuration

Step Action
1

Open XG5000 and select Project è New Project.

2

Enter a name in the Project name field and select the CPU series of your XEM CPU from the CPU Series drop-down. Press OK to create the new project.

3

Double-click on LSPLC [B0S0 Internal Cnet] to configure the XEM CPU’s built-in RS-485 port.

4

Change the Baud Rate of CH 2 to 19200. Change the Operation Mode of CH 2 to Use P2P. Press OK when done.

5

Right-click on LSPLC [B0S0 Internal Cnet] and select Add Itemè P2P Communication.

6

Select 01 and press OK.

7

Under P2P 01(Internal), double-click P2P Channel.

8

Select Modbus RTU client for Channel 2. Press OK when done.

9

Press Yes to continue since no blocks have been created yet.

10

Double-click on Global/Direct Variables. This will allow you to create the variables for SV_ON, START, and ISEL0 – ISEL5.

11

Create Global Variables like the ones shown.

12

Under P2P 01(Internal), double-click P2P Block.

13

Create the Modbus RTU Client blocks shown below.

14

Save the project. XG5000 Example Code for L7C shows some sample code that uses these global variables.

 

 

 

 

 

 

LP214-3