Omron Sysmac NJ-series User Manual page 271

Machine automation controller cpu unit built-in ethernet/iptm port
Hide thumbs Also See for Sysmac NJ-series:
Table of Contents

Advertisement

ST
Internal
Variables
Trigger
DoUCMMTrigger
Stage
WriteDat
ReadDat
ReqPath
RespDat
Dummy
CIPUCMMWrite_instance
CIPUCMMRead_instance
CIPUCMMSend_instance
External
Variables
_EIP_EtnOnlineSta
*1 For an NX701 CPU Unit, replace the variable with _EIP1_EtnOnlineSta (Port1 Online) or _EIP2_EtnOnlineSta
(Port2 Online), depending on the built-in EtherNet/IP port which is used.
For an NX1P2 CPU Unit, replace the variable with _EIP1_EtnOnlineSta (Port1 Online).
// Start sequence when Trigger changes to TRUE.
IF ((Trigger=TRUE) AND (DoUCMMTrigger=FALSE) AND (_EIP_EtnOnlineSta=TRUE))
THEN
DoUCMMTrigger
Stage
CIPUCMMWrite_instance(
Execute
SrcDat
CIPUCMMRead_instance(
Execute
DstDat
CIPUCMMSend_instance(
Execute
ServiceDat
RespServiceDat
END_IF;
IF (DoUCMMTrigger=TRUE) THEN
CASE Stage OF
1 :
CIPUCMMWrite_instance(
Execute
RoutePath
TimeOut
DstDat
Size
SrcDat
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (W506)
Variable
Data type
BOOL
BOOL
INT
INT
INT
_sREQUEST_
PATH
ARRAY[0..10] OF
BYTE
BYTE
CIPUCMMWrite
CIPUCMMRead
CIPUCMMSend
Variable
Data type
*1
BOOL
:=TRUE;
:=INT#1;
:=FALSE,
:=WriteDat);
:=FALSE,
:=ReadDat);
:=FALSE,
:= Dummy,
:=RespDat);
:=TRUE,
:='02\192.168.250.2',
:=UINT#20,
:='WritingDat',
:=UINT#1,
:=WriteDat);
8 CIP Message Communications
Initial value
False
False
0
1234
0
(ClassID:=0, InstanceID:=0,
isAttributeID:=False, Attribu-
teID:=0)
[11(16#0)]
16#0
Constant
// Initialize instance.
// Dummy
// Initialize instance.
// Dummy
// Dummy
// Initialize instance.
// Dummy
// Dummy
// Request writing value of variable.
// Route path
// Timeout value
// Source variable name
// Number of elements to write
// Write data
Comment
Execution condition
Processing
Status change
Write data
Read data
Request path
Response data
Dummy
Comment
Online
8
8-25

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac nx-seriesSysmac nx1p2-10 seriesSysmac nx1p2-90 seriesSysmac nj501-5 seriesSysmac nj501-4 seriesSysmac nj501-3 series ... Show all

Table of Contents