Industrial Automation
Industrial Automation | Europe

myKnowledge

Main > Product Type > Automation Systems
Minimize Text   Default    Enlarge Text
 

Print
E-mail

Example EthernetIP SEND & RECV FB's Using CIP (Not FINS) For Sysmac NJ


 

Introduction
Here is an example and sample code of a pair of Function Blocks (FB) that allow sending (NjCipSendPlcMemory) and receiving (NjCipRecvPlcMemory) of blocks of data from Sysmac NJ CPU's to other NJ or CJ/CS PLC's using Cx1W-EIP21 (V1, V2 or V3) EthernetIP units.

These FB's operate in a very similar fashion to the inbuilt PLC functions SEND and RECV that transfer blocks of data between OMRON PLC's.  However the FB's attached here use Common Industrial Protocol (CIP) protocol to transfer data rather than FINS protocol (OMRON standard open protocol).  This means that no FINS addressing (Network, Node & Unit) need be defined.  To SEND or RECV data using CIP, only the IP address of the remote PLC is required.

These are useful if ...
1) Subnet mask is not Class C (255.255.255.0) - making FINS Node to IP Address conversion tables necessary
2) More than 32 PLC's are required in FINS Node to IP Address conversion table.
3) PLC's are on different subnets.
4) Only IP address is required to define an end point.
 
Please note that whilst there is no maximum size to read and write, data concurrency can not be guaranteed past 100 words (as multiple blocks are requested past this size).
 
See attached PDF help documents for more information and usage.
Applicable units
The FB's can only be used with Sysmac NJ CPU's with Ethernet/IP units (EIP) mounted to the CPU backplane. At time of writing this refers to:
  • CJ1W-EIP21 (V1, V2 & V3)
These FB's will not work with CJ1W-ETNxx units.
Example
Please open zip file "NJ CIP SEND-RECV V1.00.zip" and see sample code "NJ CIP Sample using CJ1W-EIP21 on NJ.smc2" for example usage. 
Function Block Library

Also included in the zip file is the library file containing both Function Blocks. Please use file "NJ To CJ CIP SendRecv FB's.slr" to include in your own Sysmac projects using the Library option.

 



Attachments

NjCipRecvPlcMemory.pdf - Size: 192953
NjCipSendPlcMemory.pdf - Size: 192348
NJ_CIP_SEND-RECV_V1.00.zip - Size: 2900083


Comments (View All Comments / Add Comment)

Related Articles
No related articles found.
Created 2020-03-10
Modified 2020-03-10
Views 1502

 

You are not logged in.