8 Message Communications
8-18
CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (W495)
Stage
:=INT#10;
// Error end
END_IF;
2 :
// Request reading value of variable.
CIPUCMMRead_instance(
Execute
:=TRUE,
RoutePath
:='RoutePathDat',
// 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
:='RoutePathDat',
// 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;
Summary of Contents for SYSMAC CJ1W-EIP21
Page 8: ...Manual Structure 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Page 42: ...Revision History 40 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Page 68: ...1 Introduction 1 26 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Page 266: ...9 FTP Server 9 20 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495...
Page 431: ...Index 1 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 I Index...
Page 436: ...Index 6 CJ series EtherNet IP Units Operation Manual for NJ series CPU Unit W495 Index...
Page 437: ......