EasyManuals Logo
Home>Omron>Computer Hardware>Sysmac NJ-series

Omron Sysmac NJ-series User Manual

Omron Sysmac NJ-series
578 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 #272 background imageLoading...
Page #272 background image
8 CIP Message Communications
8-26
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
IF (CIPUCMMWrite_instance.Done=TRUE) THEN
Stage :=INT#2; // Normal end
ELSIF (CIPUCMMWrite_instance.Error=TRUE) THEN
Stage :=INT#10; // Error end
END_IF;
2 : // Request reading value of variable.
CIPUCMMRead_instance(
Execute :=TRUE,
RoutePath :='02\192.168.250.2', // Route path
TimeOut :=UINT#20, // Timeout value
SrcDat :='OriginalDat', // Source variable name
Size :=UINT#1, // Number of elements to read
DstDat :=ReadDat); // Read data
IF (CIPUCMMRead_instance.Done=TRUE) THEN
Stage :=INT#3; // Normal end
ELSIF (CIPUCMMRead_instance.Error=TRUE) THEN
Stage :=INT#40; // Error end
END_IF;
3 : // Send message
ReqPath.ClassID:=UINT#01;
ReqPath.InstanceID:=UINT#01;
ReqPath.isAttributeID:=TRUE;
ReqPath.AttributeID:=UINT#07;
CIPUCMMSend_instance(
Execute :=TRUE,
RoutePath :='02\192.168.250.2', // Route path
TimeOut :=UINT#20, // Timeout time
ServiceCode :=BYTE#16#0E, // Service code
RqPath :=ReqPath, // Request path
ServiceDat := Dummy, // Service data
Size :=UINT#0, // Number of elements
RespServiceDat :=RespDat); // Response data
IF (CIPUCMMSend_instance.Done=TRUE) THEN
Stage :=INT#0; // Normal end
ELSIF (CIPUCMMSend_instance.Error=TRUE) THEN
Stage :=INT#30; // Error end
END_IF;
0: // Processing after normal end
DoUCMMTrigger:=FALSE;
Trigger :=FALSE;
ELSE // Processing after error end
DoUCMMTrigger:=FALSE;
Trigger :=FALSE;
END_CASE;
END_IF;

Table of Contents

Other manuals for Omron Sysmac NJ-series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron Sysmac NJ-series and is the answer not in the manual?

Omron Sysmac NJ-series Specifications

General IconGeneral
BrandOmron
ModelSysmac NJ-series
CategoryComputer Hardware
LanguageEnglish

Related product manuals