Omron NX502-1 Series User Manual page 50

Machine automation controller cpu unit
Table of Contents

Advertisement

3 Client Function
Inter-
nal
Name
varia-
ble
State
InDNetAdr
InOption
SrcDat
DstDat
SendInstance
RcvInstance
External variable
IF ( (Trigger=TRUE) AND (DoFinsTrigger=FALSE) AND (_Port_isAvailable=TRUE) ) THEN
State:= 1;
DoFinsTrigger:=TRUE;
SendExecute := FALSE; // Send execution status
RcvExecute := FALSE; // Rcv execution status
InDNetAdr.NetNo :=USINT#0; // Set network address.
InDNetAdr.NodeNo :=USINT#2;
InDNetAdr.UnitNo :=BYTE#16#0;
InOption.isNonResp :=FALSE; // Set
InOption.TimeOut :=UINT#20;
InOption.Retry :=USINT#2;
SrcDat[0] :=WORD#16#1234; // Set command array.
SrcDat[1] :=WORD#16#5678;
END_IF;
IF (DoFinsTrigger=TRUE) THEN
SendInstance( Execute := SendExecute,
DstNetAdr := InDNetAdr,
CommPort := _NONE,
SrcDat := SrcDat[0],
SendSize := 2,
DstArea := _DM,
DstCh := 100,
Option := InOption);
RcvInstance ( Execute := RcvExecute,
SrcNetAdr := InDNetAdr,
CommPort := _NONE,
SrcArea := _DM,
3-12
Data type
SINT
_sDNET_ADR
_sRESPONSE
ARRAY [0..1] OF
WORD
ARRAY [0..1] OF
WORD
Send
Rcv
Name
Data type
_Port_isAvailable BOOL
Initial value
0
Sample programming status
NetNo:=0, NodeNo:=0,
Network address at send desti-
UnitNo:=16#0
nation
isNonResp:=FALSE,
Response
TimeOut:=0, Retry:=0
[2(16#0)]
Send data
[2(16#0)]
Receive data
Send instance
Rcv instance
Comment
Network Communications Instruction Enabled Flag
NX-series CPU Unit FINS Function User's Manual (W596)
Comment

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents