NX1P2 Serial Communication using NX_SerialSend and NX_SerialRcv

Modified on Fri, 24 Jan at 1:08 PM

This should be a concise and clear heading that indicates the main topic of the guide. (On Top)

Ex. "TG - FH/FHV Software - Updating Firmware" 



Purpose

Describe how NX1P2 communication using NX1W-CIF01 with NX_SerialSend and 

NX_SerialRcv



Problem Explanation/Objective

Using a NX1P2-1042DT ver 4.0 along with NX1W-CIF01 , serial communication can be implemented using NX_SerialSend and NX-SerialRcv for barcodes and other 3rd party devices that talk serial method.  



Supported devices

NX1P2-1042DT 

NX1W-CIF01




Requirements

NX1P2-1042DT 

NX1W-CIF01

Sysmac Studio software

Supermon ver 5.0 software



Procedure

Step 1

In Sysmac Studio under Multiview Explorer , Configuration and Setup, Controller Setup, and Option 

Board Settings, select NX1W-CIF01 in Option board 1 and set serial communication mode to No-Protocol, 

Baud rate 9600, Data length as 8 bits, Parity as None, and Stop bit as 1 

bit.



Step 2

In terms of wiring the NX1W-CIF01, make sure that RS and CS are jumpered, unit’s RD connects to 3rd

party device SD, unit’s SD connects to 3rd party device RD and unit’s SG1 connects 3rd parties SG or 

signal ground. 


Step 3

In I/O Map, under Option Board Settings and NX1W-CIF01 , right click and Display Node Location Port .

Assign a variable OP1_Node_location_information with Data Type _sOPTBOARD_ID



Step 4

When using NX_SerialSend instruction, you must define a DevicePort which is the object that 

represents your device port as Data type _sDEVICE_PORT, your DeviceType as Data Type 

_eDEVICE_TYPE with valid range _DeviceOptionBoard

Define these variables in the first cycle.



Step 5

In the NX-SerialSend instruction, assign your variable for DevicePort. Define the Array Data for your 

Send Data and Send Size as UINT#4. 



Step 6

Download the NX1P2 with NX1W-CIF01 final sample and open a Watch tab and drop the 

NX_SerialSend instruction into your watch tab. Assign numbers into your MySendArray[0..9] and watch 

the variable appear on your computer under Supermon ver 5.0.




Step 7

Open a Watch tab and drop the NX_SerialRcv instruction into your watch tab.  Watch your Array 

RcvData_Lsr[0..5] when variables are populated Data Out COMA and Send button is selected in

Supermon ver 5.0.











Date/Revision History

First Review : 


Author:

Michael Pesigan, Senior Technical Support Specialist


References

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article