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:
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.