Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

The data type of Handle is structure _sCIP_HANDLE. The specifications are as follows:
Name
Handle
Handle
If the value of ErrorID is WORD#16#1C00, the CIP message error code is stored in ErrorIDEx.
The following example writes variable abc. The contents of variable def is written to variable abc.
LD
CIPWrite_instance
A
Execute
cip_h
Handle
'abc'
DstDat
UINT#1
Size
def
SrcDat
Writing Arrays
To write array data, pass a subscripted array element to DstDat as the parameter. Also pass a sub-
scripted array element to SrcDat as the parameter. The following example stores the contents of array
variable elements def[10] to def[13] in the four array variable elements abc[3] to abc[6].
LD
CIPWrite_instance
A
Execute
cip_h
Handle
'abc[3]'
DstDat
UINT#4
Size
def[10]
SrcDat
Maximum Write Data Size
The maximum size of the data that you can write depends on the data type and variable name that are
specified for DstDat, as given in the following table.
Maximum write data size [bytes] = Base size − Size of variable name of DstDat
Item in above formula
Base size

NJ-series Instructions Reference Manual (W502)

Meaning
Description
Handle
Handle
Handle
Handle
ghi
CIPWrite
Done
Busy
jkl
Error
mno
ErrorID
pqr
ErrorIDEx
stu
ghi
CIPWrite
Done
Busy
jkl
Error
mno
ErrorID
pqr
ErrorIDEx
stu
• Data type of variable specified for DstDat is a structure or STRING: 1,986 bytes
• Other data types: 1,988 bytes
2 Instruction Descriptions
Data type
Valid range
_sCIP_
---
HANDLE
UDINT
Depends on
data type.
ST
CIPWrite_instance(A, cip_h, 'abc', UINT#1, def,
ghi, jkl, mno, pqr, stu);
ST
CIPWrite_instance(A, cip_h, 'abc[3]', UINT#4, def,
ghi[10], jkl, mno, pqr, stu);
Meaning
Unit
Default
---
---
---
---
2
2-697

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents