LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Communicate Between Omron NJ301-1200 and LabVIEW?

Hello,

Here with, I have Omron NJ 301-1200 PLC and LabVIEW 16. I want to communicate with plc without using DSC module. PLC support Ethernet/IP Driver and I have to same driver in LabVIEW 16 still i can not connect.Error code -251723760 is display.

I have only CPU of omron PLC.No other Modules are available for PLC.Is there any configuration in PLC?Extended modules necessary for connection?

PLS Help us.

0 Kudos
Message 1 of 8
(5,404 Views)

You have provided neither the Omron Manual (so we can see what the Controller expects) nor your code (so we can see what you have tried).  Without both of these, you are limiting yourself to a LabVIEW Forum User who has specific experience with this device.

 

Bob Schor

0 Kudos
Message 2 of 8
(5,356 Views)

Dear Sir,

Thank you for reply.

Here i send my PLC and LabVIEW Code.

I am facing problem with boolean data type while read from PLC

Error code: -251723773

EthernetIP Tag Read BOOL.vi;
Details: The data type returned for the request does not match the data type requested by the user

 

How to read and write boolean data type with NJ Series.

pls remove .doc extention from second file & write .smc2 extention. you get the PLC Code file.

 

Download All
Message 3 of 8
(5,346 Views)

Hiii.....!!!

I'm also facing the same problem with Omron NX1P PLC.

I am able to read/write data variables like Word,Real,UINT but unable to read/write Boolean's.

So please help if had any solution or alternative method.

Thanks in advance.

0 Kudos
Message 4 of 8
(5,225 Views)

Well, you've provided the "code that fails", which shows you reading two reals, a disabled reading of a Boolean, an Int, a DInt, an SInt, an Int, a DInt, an SInt, and finally a Bool, where I expect the failure is occuring.  You did not send anything that lets us look "inside" the missing functions that implement these reads, nor did you provide the manual from the Manufacturer describing the Protocol that explains what you are supposed to read and when.

.

Since we cannot test your code, you'll have to do a little more work.  Where did the failure occur?  Which of the Read functions (I'm guessing, but you should know) threw the BOOL error, the first (now disabled) Read or the second?  Did the error occur the first time this code ran, or did it run successfully at least once?

 

And where is the manual from the Manufacturer that explains how to use the Software?

 

And what is the "not-a-.doc" file that you sent?  I don't have any idea what a .smc2 extension means, nor do I expect I have software designed to read or understand such a file.

 

I think your best bet is to get in touch with the Manufacturer's Support Team.

 

Bob Schor

0 Kudos
Message 5 of 8
(4,404 Views)

@Bob_Schor wrote:

Well, you've provided the "code that fails",

 

Bob Schor


No he didn't Bob!  New poster on a "Zombie" thread.  No relationship with the previous vi is known and "BOOL.vi" is not attached.

 

I'll Split the thread to prevent other from making the same mistake. Smiley Wink


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(4,400 Views)

Hello 

Has anyone solved that problem?

Why it is not possible to read boolean tag from Omron NJ??

0 Kudos
Message 7 of 8
(2,065 Views)

It's almost certainly possible but maybe not as you think it should. EthernetIP is a byte protocol, so how booleans are transmitted if at all is likely vendor specific. Your PLC program probably maps the various booleans into specific bits in a byte address and if that is the case you would need to actually read that byte and mask the relevant bit with a AND node for instance.

Rolf Kalbermatter
My Blog
0 Kudos
Message 8 of 8
(2,058 Views)