2 Instruction Descriptions
2-692
NJ-series Instructions Reference Manual (W502)
CIPRead
The CIPRead instruction uses a class 3 explicit message to read the value of a variable in another Con-
troller on a CIP network.
Instruction Name
FB/
FUN
Graphic expression ST expression
CIPRead Read Variable
Class 3 Explicit
FB CIPRead_instance(Execute,
Handle, SrcDat, Size, DstDat,
Done, Busy, Error, ErrorID,
ErrorIDEx, RcvSize);
Variables
Name Meaning I/O Description Valid range Unit Default
Handle Handle
Input
Handle obtained with CIPOpen
instruction
---
---
---
SrcDat Source vari-
able name
Name of variable to read in
other Controller
Depends on data
type.
''
Size Number of
elements to
read
Number of elements to read 0 to 1988 1
DstDat Read data In-out Read data value Depends on data
type.
--- ---
RcvSize Read data
size
Output Read data size 0 to 1988 Bytes ---
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.
SrcDat OK
Size OK
DstDat OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An enumeration, array, structure, structure member, or union member can also be specified.*
RcvSize OK
CIPRead
CIPRead_instance
Execute Done
Handle Busy
SrcDat Error
Size ErrorID
DstDat
ErrorIDEx
RcvSize