How To Communicate Between NB HMI And Sysmac NJ Controller With CJ1W-SCUx2-unit IntroductionThis 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
Prerequisite Software
Wiring between NB and SCUx2The RS-232C connection method using serial ports COM1/COM2. This is the simplest and most feasible method. The following cables are recommended.
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.
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
The cable for connecting the NB5Q/NB7W/NB10W Unit serial port COM2 to
The cable for connecting the NB5Q/NB7W/NB10W Unit serial port COM2 to
NJ controller setup
|
![]() |
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.
Link:
http://www.myomron.com/index.php?action=kb&print=1562
Comments | ||
|