2 Instruction Descriptions
2-702
NJ-series Instructions Reference Manual (W502)
The CIPSend instruction sends service data ServiceDat for the service specified with service code Ser-
viceCode as a class 3 explicit message.
The destination is specified with handle Handle.
RqPath specifies the request path.
Size specifies the number of elements to send. If ServiceDat is an array, specify the number of ele-
ments to send with Size. If ServiceDat is not an array, always specify 1 for Size. If no service data is
required, set Size to 0.
The response data received later is stored in RespServiceDat. The number of bytes of the response
data is stored in RespSize.
The data type of Handle is structure _sCIP_HANDLE. The specifications are as follows:
The data type of RqPath is structure _sREQUEST_PATH. The specifications are as follows:
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.
If ServiceDat or RespServiceDat is an array, pass a subscripted array element to it as the parameter.
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.
ServiceCode OK
RqPath Refer to Function for details on the structure _sREQUEST_PATH.
ServiceDat OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An array, structure member, or union member can also be specified.
Size OK
RespService-
Dat
OK OK OK OK OK OK OK OK OK OK OK OK OK OK
An array, structure member, or union member can also be specified.
RespSize OK
Function
Name Meaning Description Data type Valid range Unit Default
Handle Handle Handle _sCIP_
HANDLE
--- --- ---
Handle Handle Handle UDINT Depends on
data type.
--- ---
Name Meaning Description Data type Valid range Unit Default
RqPath Request path Request path (class ID,
instance ID, attribute ID)
_sREQUEST_
PATH
--- --- ---
ClassID Class ID Class ID UINT
Depends on
data type.
---
0
InstanceID Instance ID Instance ID UINT
isAttributeID Attribute
usage
TRUE:Attribute ID used.
FALSE:Attribute ID not
used.
BOOL FALSE
AttributeID Attribute ID Attribute ID UINT 0
Sending and Receiving Arrays