2 Instruction Descriptions
2-704
NJ-series Instructions Reference Manual (W502)
CIPClose
The CIPClose instruction closes the CIP class 3 connection to the specified handle.
The CIPClose instruction closes the CIP class 3 connection specified with the handle Handle.
The data type of Handle is structure _sCIP_HANDLE. The specifications are as follows:
The following figure shows a programming example.
Instruction Name
FB/
FUN
Graphic expression ST expression
CIPClose Close CIP
Class 3 Con-
nection
FB CIPClose_instance(Execute,
Handle, Done, Busy, Error,
ErrorID, ErrorIDEx);
Variables
Name Meaning I/O Description Valid range Unit Default
Handle Handle Input Handle obtained with CIPOpen
instruction
--- --- ---
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
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.
--- ---
CIPClose
CIPClose_instance
Execute Done
Handle Busy
Error
ErrorID
ErrorIDEx
CIPClose_instance(A, cip_h, abc, def,
ghi, jkl, mno);
LD
ST
def
ghi
jkl
mno
abc
cip_h
A
CIPClose
CIPClose_instance
Execute Done
Handle Busy
Error
ErrorID
ErrorIDEx