Jump to content

How to control physical devices using NX1P2 PLC and NB HMI


Go to solution Solved by Parky,

Recommended Posts

Posted

Hi.

I would like to know how to control my motor using NB HMI and the Sysmac Studio on NX1P2 PLC.

I have already established communication between the NX1P2  and NB HMI and the simulation works.

My goal is  to use the HMI to activate the motor connected to the NX1P2 PLC which has a program linked to NB HMI. 

In short, how does an HMI link physical I/O.

I would appreciate any working suggestion or guidance.


  • Solution
Posted

Normally, you would not use the physical I/O to control the motor but use internal bits to control the motor output

Like the attached, Cannot remember the memory map (internal bits/words) but the only physical I/O will be the output to drive the motor (assuming this is a simple direct on-line motor wired not communicating to a VFD.

Use internal bits for buttons on HMI but you could use the physical output in the PLC & display its status using that bit.

Your post is a liitle lacking information but below is a simple start stop logic using HMI buttons linked to internal bits as energise when pressed 

image.png.45d35d0e831768ef7c649e5c402b8167.png

Posted

Yeah, for sure no answer will be solid if you don't provide more info.  How is the motor connected to the PLC?  What are you trying to control?  On/off, speed control?

If you are trying to turn on a PLC output, make sure you put a variable on the appropriate output in the I/O Map screen and then turn on that output with your PLC program or HMI buttons.

Posted

Apologies for not being clear and offering details to assist my query.

Anyway, I've decided to rephrase the question to a simply program that could offer definite answers. 

I've attached  some screenshots of my simplified program.

My intention is to link the physical I/O to the NB HMI and the PLC, just as it will be the case for a SCADA system.

Simply put , the field activation of either  input push buttons and the subsequent response of the LED should be reflected on both the PLC program and the NB HMI.

I trust that any simplification of how this task accomplished will speedup my understanding of how HMIs work in OMRON.

LAD_001.thumb.png.01b66cbf4cb756c1474bf49bcf099fdf.png

Global_Variables_001.jpeg

NB_HMI_001.jpg

Posted

Let me start by acknowledging MrPLC's answer which has enlightened me. Thank you.

I managed to get the output for external LED to light up, however on the NB HMI the output did notI-O_Mapping_001.png.c96d70e65daf919fe9cda1e8b30b9747.pngGlobal_Variables_002.jpeg.thumb.png.a8a3b2254cc4f15efa60de358f8c3cec.pngGlobal_Variables_001.thumb.jpeg.11e3abb91987a84b2c5a1a9638ef1999.jpeg switches on . 

The remaining question now is how to get the LED on NB HMI to respond concurrently with the physical LED.

What I've noticed is that the instant I assigned LED to I/O Bit 03, the Global Variable changed from %W100.00 to BuiltInIO://cpu/#0/Output_Bit_03.

Any suggestion or tested solution will be greatly appreciated.

Posted

You can't have both a physical output and an address in the AT column, it's one or the other.  In your program, turn on 2 outputs, one for the physical and one to share with the NB.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...