2-717
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
CIPUCMMSend
The CIPUCMMSend instruction sends command data ServiceDat for the service specified with service
code ServiceCode as a UCMM explicit message.
The destination is specified with route path RoutePath.
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.
TimeOut specifies the timeout time. If a response does not return within the timeout time, it is assumed
that communications failed.
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.
You can read a maximum of 492 bytes of data. The maximum size of the data that you can write
depends on whether there is a request path attribute and the route path that is used, as given below.
Maximum write data size [bytes] = Base size − Attribute usage − Path information size
RespSer-
viceDat
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
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
Maximum Read/Write Data Size
Item in above formula Meaning
Base size 500 bytes
Attribute usage Attribute ID used: 12 bytes
Attribute ID not used: 8 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