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 #739 background imageLoading...
Page #739 background image
2-691
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
CIPOpen
3 :
CIPRead_instance(
Execute:=TRUE,
Handle :=CIPOpen_instance.Handle,
SrcDat :=’OriginalDat’,
Size :=UINT#1,
DstDat :=ReadDat);
IF (CIPRead_instance.Done=TRUE) THEN
Stage:=INT#4;
ELSIF (CIPRead_instance.Error=TRUE) THEN
Stage:=INT#30;
END_IF;
4 :
ReqPath.ClassID :=UINT#01;
ReqPath.InstanceID :=UINT#01;
ReqPath.isAttributeID:=TRUE;
ReqPath.AttributeID :=UINT#07;
CIPSend_instance(
Execute :=TRUE,
Handle :=CIPOpen_instance.Handle,
ServiceCode :=BYTE#16#0E,
RqPath :=ReqPath,
ServiceDat :=Dummy,
Size :=UINT#0,
RespServiceDat:=ResDat);
IF (CIPSend_instance.Done=TRUE) THEN
Stage:=INT#5;
ELSIF (CIPSend_instance.Error=TRUE) THEN
Stage:=INT#40;
END_IF;
5 :
CIPClose_instance(
Execute :=TRUE,
Handle :=CIPOpen_instance.Handle);
IF (CIPClose_instance.Done=TRUE) THEN
Stage:=INT#0;
ELSIF (CIPClose_instance.Error=TRUE) THEN
Stage:=INT#50;
END_IF;
0:
DoCIPTrigger:=FALSE;
Trigger :=FALSE;
ELSE
DoCIPTrigger:=FALSE;
Trigger :=FALSE;
END_CASE;
END_IF;
// Processing after normal end
// Processing after error end
// Request closing CIP class 3 connection.
// Handle
// Normal end
// Error end
// Handle
// Source variable name
// Number of elements to read
// Read data
// Normal end
// Error end
// Send message
// Handle
// Service code
// Request path
// Service data
// Number of elements
// Response data
// Request reading value of variable.

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