Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Software > Programming
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How To Create And Use Structures For HMI In The CJ2


Introduction

The purpose of this article is to show how easy it is to create a Data Structure in the CJ2 PLC for the use with an HMI.
In this example the CJ1W-MCH72 (Motion Controller) unit is being used for Data Structure and for HMI an NS5. For the Structure only the (CIO) data of the MCH72 is used. The HMI Structure can be expanding with internal Program Variables. For example Data Exchange with the MCH72 etc.
The Article shows how to create a Data Structure in a few steps. 

 

1. Allocation Settings

Set the Automatic Memory Allocation (STRUCT)

 

2. Unit Structure

Create or Import a Structure for the Unit

Common:

Commands:

 

Information:

 

 

3. HMI Structure

Create or Import a Structure for the HMI

Commands:


 

Information:


 

 

4. Unit Address

Verify the Unit address from the I/O table


 

 
5. Symbols

Create a Symbol and assign the Structure (COMMON) to the Unit address

 

Create the HMI Structure and assign the Publication Net.Variable

 

 
6. Function Block

Create a Structure Text Function Block and Link the HMI Structure to the Data Structure

 
7. CX-Designer

Select and COPY the HMI Net.Variable Symbols  (CTRL+C) from the CX-Programmer file...


 

And PASTE (CTRL+V) them into the Symbol Table of the CX-Designer file

 


PLC: CJ2M-CPU33, CJ1W-MCH72, HMI/NS: NS5-TQ11B-V2
All the files that are used for this example are attached.
 



Attachments

Structure_MCH72.zip - Size: 101647


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2011-07-28
Modified 2011-10-19
Views 8351

 

You are not logged in.