Using Cip Communications Instructions - Omron Sysmac NJ-series User Manual

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

8 CIP Message Communications
8-2-3

Using CIP Communications Instructions

CIP message communications include the following processes. If CIP class 3 connections are used,
the open and close processes are required before and after the data is sent and received.
Process
Open process
Execute this process before you use a CIP message. Open pro-
(only for CIP
cessing is continued until a CIP class 3 connection is established.
class 3 connec-
*1
tions)
Sending and
This process is used to read and write data for specified variables
receiving vari-
with the Network Publish attributes.
*2
able data
Sending CIP
You can set the required CIP command.
commands
Close process
This process closes the connection.
(only for CIP
class 3 connec-
tions)
*1 The maximum number of connection handles that you can obtain simultaneously by the opening process is 32.
Even if a connection is broken for a timeout, the handle is not released. Execute the CIPClose instruction.
*2 Addresses in memory for CJ-series Units (e.g., D0000) cannot be specified directly. To access memory for CJ-series
Units, access a variable with an AT specification. (Accessing is possible only for an NJ-series CPU Unit.)
Local Controller
CIPRead
Execute
Handle
'VAR_1'
SrcDat
Size
5
DstDat
MyArray
WORD[10]
*
* To access memory for CJ-series Units in
the local Controller, you also must assign
the required addresses to variables.
MyArray : ARRAY[0..9] OF WORD:
MyArray[0] :
Value of D00000 in remote Controller
Value of D00001 in remote Controller
Value of D00002 in remote Controller
MyArray[9] :
Value of D00009 in remote Controller
Precautions for Correct Use
Precautions for Correct Use
You can execute up to 32 CIP communications instructions at the same time regardless of the
instruction types.
Use exclusive control in the user program so that the number of CIP communications instruc-
tions executed at the same time does not exceed the above numbers.
8-6
Description
(1) Variable
specified.
(2) Reads data
starting at D0000
for the number of
elements.
RcvSize
.......
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
CIPOpen
CIPOpenWithDataSize
CIPUCMMRead
CIPUCMMWrite
CIPRead
CIPWrite
CIPUCMMSend
CIPSend
CIPClose
Remote Controller
VAR : ARRAY[0..9] OF WORD AT %D0
Network Publish attribute
Addresses in the memory for
CJ-series Units are assigned to the
variable and the variable is given
the Network Publish attribute.
Instruction
D00000
Assigned
D00001
D00002
.......
D00009

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents