Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
The handle Handle is output when the connection is open.
TimeOut specifies the connection timeout time. If a response does not return from the remote node
within the connection timeout time after the CIPSend, CIPWrite, or CIPRead instruction is executed, it
is assumed that communications failed. The connection timeout time is reset when the CIPRead, CIP-
Write, or CIPSend instruction is executed and the remote node returns a response.
The data type of Handle is structure _sCIP_HANDLE. The specifications are as follows:
Name
Handle
Handle
The following example is for when RoutePath is '02\192.168.250.2' and TimeOut is UINT#20. The
CIPOpenWithDataSize instruction opens a CIP class 3 connection with the remote node with an IP
address of 192.168.250.2. The data length is 1,994 bytes and the timeout time is 2 s. The handle is
assigned to variable pqr.
LD
A
'02\192.168.250.2'
UINT#20
UINT#1994
The CIPOpenWithDataSize instruction opens a CIP class 3 connection with a remote
node on a CIP network. The remote node is specified with RoutePath.
Controller that executed the instruction
Handle=pqr
The obtained handle is assigned to this variable.
If the value of ErrorID is WORD#16#1C00, the CIP message error code is stored in ErrorIDEx. The
meaning and values of ErrorIDEx depend on the remote node. Refer to the manual for the remote node.
Related System-defined Variables
Name
*1
_EIP_EtnOnlineSta
*2
_EIP1_EtnOnlineSta
*3
_EIP2_EtnOnlineSta
*4
_EIPIn1_EtnOnlineSta
*1 Use this variable name for an NJ-series CPU Unit.
2-1000
Meaning
Description
Handle
Handle
Handle
Handle
CIPOpenWithDataSize_instance
CIPOpenWithDataSize
Execute
RoutePath
TimeOut
DataSize
ErrorIDEx
CIP class 3 connection is opened with a timeout time of 2 s.
Meaning
Online
Data type
_sCIP_
HANDLE
UDINT
ST
CIPOpenWithDataSize_instance(A,
abc
Done
Busy
def
Error
ghi
ErrorID
jkl
mno
Handle
pqr
IP address: 192.168.250.2
Data
type
BOOL
This variable indicates when built-in EtherNet/IP
port communications can be used.
TRUE: Communications are possible.
FALSE: Communications are not possible.

NY-series Instructions Reference Manual (W560)

Valid range
Unit
Default
---
---
---
Depends on
---
---
data type.
'2\192.168.250.2',
UINT#20, UINT#1994,
abc, def, ghi, jkl, mno,
pqr);
Description

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents