EasyManuals Logo

Omron NX102-12 Series User Manual

Omron NX102-12 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 #287 background imageLoading...
Page #287 background image
ST
Internal
variables
Variable Data type Initial value Comment
Trigger BOOL False Execution condi-
tion
DoUCMMTrigger BOOL False Processing
Stage INT 0 Status change
WriteDat INT 1234 Write data
ReadDat INT 0 Read data
ReqPath _sRE-
QUEST_P
ATH
(ClassID:=0, InstanceID:=0,
isAttributeID:=False, AttributeID:=0)
Request path
RespDat ARRAY[0..10] OF
BYTE
[11(16#0)] Response data
Dummy BYTE 16#0 Dummy
CIPUCMMWrite_instance CIPUCMMWrite
CIPUCMMRead_instance CIPUCMMRead
CIPUCMMSend_instance CIPUCMMSend
External
variable
Variable Data type Constant Comment
_EIP_EtnOnlineSta
*1
BOOL
Online
*1. For an NX701 CPU Unit and an NX102 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 :=TRUE;
Stage :=INT#1;
CIPUCMMWrite_instance(
Execute :=FALSE, // Initialize instance.
SrcDat :=WriteDat); // Dummy
CIPUCMMRead_instance( // Initialize instance.
Execute :=FALSE, // Dummy
DstDat :=ReadDat); // Dummy
CIPUCMMSend_instance(
Execute :=FALSE, // Initialize instance.
ServiceDat := Dummy, // Dummy
RespServiceDat :=RespDat); // Dummy
END_IF;
IF (DoUCMMTrigger=TRUE) THEN
CASE Stage OF
1 : // Request writing value
of variable.
8 CIP Message Communications
8-25
NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (W506)
8-2 CIP Message Communications Client Function
8
8-2-7 Sample Programming for CIP Connectionless (UCMM) Message
Communications

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NX102-12 Series and is the answer not in the manual?

Omron NX102-12 Series Specifications

General IconGeneral
BrandOmron
ModelNX102-12 Series
CategoryController
LanguageEnglish

Related product manuals