2 Instruction Descriptions
2-684
NJ-series Instructions Reference Manual (W502)
CIPOpen
The CIPOpen instruction opens a CIP class 3 connection with the specified remote node.
The CIPOpen instruction opens a CIP class 3 connection with another Controller on a CIP network. The
other Controller is specified with route path RoutePath. The handle Handle is output when the connec-
tion is open.
TimeOut specifies the timeout time. If a response does not return within the timeout time, it is assumed
that communications failed. The timeout time is reset when the CIPRead, CIPWrite, or CIPSend
instruction is executed.
The data type of Handle is structure _sCIP_HANDLE. The specifications are as follows:
Instruction Name
FB/
FUN
Graphic expression ST expression
CIPOpen Open CIP
Class 3 Con-
nection
FB CIPOpen_instance(Execute,
RoutePath, TimeOut, Done, Busy,
Error, ErrorID, ErrorIDEx, Handle);
Variables
Name Meaning I/O Description Valid range Unit Default
RoutePath Route path
Input
Route path Depends on data
type.
--- ---
TimeOut Timeout time Timeout time 1 to 65535 0.1 s 20
(2 s)
Handle Handle Output Handle
--- --- ---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
RoutePath OK
TimeOut OK
Handle Refer to Function for details on the structure _sCIP_HANDLE.
Function
Name Meaning Description Data type Valid range Unit Default
Handle Handle Handle _sCIP_
HANDLE
--- --- ---
Handle Handle Handle UDINT Depends on
data type.
--- ---
CIPOpen
CIPOpen_instance
Execute Done
RoutePath Busy
TimeOut Error
ErrorID
ErrorIDEx
Handle