Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Automation Systems > Machine Controllers
Minimize Text   Default    Enlarge Text
 

Print
E-mail

How To Communicate Between NB HMI And Sysmac NJ Controller With CJ1W-SCUx2-unit


Introduction

This is a quick start tutorial on how to get the communication between the NB HMI and the Sysmac NJ controller with Serial communication. This turorial applies to all NB HMI models.

Models

 NJ-Controllers

NB HMI

SCU Units

NJ301-1xxx NB3Q-TW00B CJ1W-SCU22 - 2 RS-232C ports
NJ501-1xxx NB3Q-TW01B CJ1W-SCU32 - 2 RS-422A/485 ports
NJ501-4xxx NB5Q-TW00B CJ1W-SCU42 - 1 RS-232C port and 1 RS-422A/485 port
  NB5Q-TW01B  
  NB7W-TW00B  
  NB7W-TW01B  
  NB10W-TW00B  
  NB10W-TW01B  

 

Prerequisite Software
  • NB-Designer
  • Sysmac Studio 
Wiring between NB and SCUx2

The RS-232C connection method using serial ports COM1/COM2. This is the simplest and most feasible method.

The following cables are recommended.
XW2Z-200T (Cable length: 2m) by OMRON
XW2Z-500T (Cable length: 5m) by OMRON

 

The RS-422A and RS-485 connection method using the serial port COM2. Using this method, the communication distance can be extended to a maximum of 500m.

The following cables are recommended.
NB-RSEXT-2M (Cable length: 2m) by OMRON
Note please adopt 4-wire RS-422A connection, and Host Link does not support 2-wire RS-485 connection.

 

If you want to create your own cable this is how the pin configuration looks like.

The cable for connecting the NB3Q Unit serial port COM1 to OMRON PLC


 

The cable for connecting the NB3Q Unit serial port COM1 to OMRON PLC


 

The cable for connecting the NB5Q/NB7W/NB10W Unit serial port COM1 to
OMRON PLC (RS-232C)

 

The cable for connecting the NB5Q/NB7W/NB10W Unit serial port COM2 to
OMRON PLC (RS-232C)

 

The cable for connecting the NB5Q/NB7W/NB10W Unit serial port COM2 to
OMRON PLC (RS-422A)

 

NJ controller setup


Step 1: Open a new project in Sysmac Studio.




 

Step 2: Setup the CPU/Expansion Racks. Configuration and Setup -> CPU/Expansion Racks. In this example we are using a CJ1W-SCU42 unit. 



Step 3: Edit Special Unit Settings. Double click on the SCU unit and change the following settings as shown in the illustration below.

Port2: Port settings - User setting

Port2: Baud rate - 115200bps

 

 

These settings will not be similar to the NB serial settings. The communication will be RS232 in NB-Designer settings and Hostlink here in Sysmac Studio.

 

Step 4: Add variables that are made as addresses as for the CJ-series in CX-Programmer. Programming -> Data -> Global Variables.




When specifying an address in memory used for CJ-series Units; Add a % character to the beginning of the addresses in AT when specifying memory used for CJ-series Units. This is shown in the following table:



Step 5: Create your application as desired.

In this example we have one button that activates one lamp and also will add 1 to a word address as long it is active.
 



Step 6: Go online and synchronize your application with your NJ controller.



 

 


 

NB terminal setup

Step 1: Open a new project in NB-Designer.
 

 

Step 2: Add a NB HMI. Add an OMRON CJ_CS Series and under Connector select Serial Port. Connect the NB HMI and the PLC with the Serial Port line.

Now you have created the communication device list.

Step 3: Right click on the NB and select Property. Select the 'COM1 Setting' and change the Baud Rate to 115200 as shown in the illustration below.

Step 4: Enter the variables that you want to use.

Button:

 

Lamp:

 

Word:

 

Step 5: Create your application in the NB HMI screens that you can find under the Project Structure window on the right.

In this example we have one button that activates one lamp and also will add 1 to a word address as long it is active.


Step 6: Download your application to your NB HMI.

 
 

 


Now the setup and programming are done. When the NB HMI is connected to the NJ controller via the CJ1W-SCU42 it will read and display the values of the required variables

 

 

 

 

Additional Information

The details and references for this article were made at the time of NB-Designer Version 1.23 and Sysmac Studio Version 1.06. Newer versions may operate and function differently. Contact your local Omron representative for more information.




Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2013-06-10
Modified 2015-02-09
Views 46517

 

You are not logged in.