EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #744 background imageLoading...
Page #744 background image
2 Instruction Descriptions
2-696
NJ-series Instructions Reference Manual (W502)
CIPWrite
The CIPWrite instruction uses a class 3 explicit message to write the value of a variable in another Con-
troller on a CIP network.
* If you omit an input parameter, the default value is not applied. A building error will occur.
* You cannot specify a STRING array.
The CIPWrite instruction writes the value of the network variable specified with destination variable
name DstDat at another Controller on a CIP network. The other Controller is specified with Handle. The
content of source data ScrDat is written.
Size specifies the number of elements to write. If DstDat is an array, specify the number of elements to
write with Size. If DstDat is not an array, always specify 1 for Size. If the value of Size is 0, nothing is
written regardless of whether DstDat is an array or not.
Instruction Name
FB/
FUN
Graphic expression ST expression
CIPWrite Write Variable
Class 3 Explicit
FB CIPWrite_instance(Execute,
Handle, DstDat, Size, SrcDat,
Done, Busy, Error, ErrorID,
ErrorIDEx);
Variables
Name Meaning I/O Description Valid range Unit Default
Handle Handle
Input
Handle obtained with CIPOpen
instruction
--- ---
---
DstDat Destination
variable name
Name of variable to write in
another Controller
Depends on data
type.
---
''
Size Number of
elements to
write
Number of elements to write
0 to 1980 1
SrcDat Source data
Data value to write
Depends on data
type.
*
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.
DstDat OK
Size OK
SrcDat OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
Handle An enumeration, array, structure, structure member, or union member can also be specified.*
Function
CIPWrite
CIPWrite_instance
Execute Done
Handle Busy
DstDat Error
Size ErrorID
SrcDat ErrorIDEx

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals