baggen

NX1P2 Serial Send ErrorID 0C0C

6 posts in this topic

Hey guys!

I recently started working with the Omron NX1P2 and I tried setting physical buttons on it that trigger a NX_SerialSend, however when I checked via a quick Python code I noticed that the SerialSend function wasn´t being excecuted correctly. I am using the NX1W-CIF001 to connect the PLC to a computer where the Python code is running. I also noticed that the NX_SerialSend function had a 0C0C error.

Does anybody have a clue as to what am I doing wrong or some possible tips?

PROBLE.png

Share this post


Link to post
Share on other sites

Error 16#0C0C is 'Instruction Executed to Inapplicable Port'. This information is in the NJ/NX Series Instruction Reference Manual.

You need to select the proper port by moving _eDEVICE_TYPE#_DeviceOptionBoard into your Port_1.DeviceType.

Share this post


Link to post
Share on other sites

Hi, thanks for the reply.

I had already considered it beforehand and the error still appears.

Notation.png

Share this post


Link to post
Share on other sites

Can you tell us the values of the Python variable? Watch tab page table when you're online is best

Share this post


Link to post
Share on other sites

Here's a pic of the watch tab when online

 

Annotation 2021-09-15 080443.png

Share this post


Link to post
Share on other sites

SlotNo: 1

IPAdr[0]:00

IPAdr[1]:00

IPAdr[2]:00

IPAdr[3]:00

IPAdr[4]:00

Share this post


Link to post
Share on other sites

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