External variable
Name
Data type
Comment
_Port_isAvailable BOOL
Network Communications Instruction Enabled Flag
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,
SrcCh := 100,
RcvSize := 2,
DstDat := DstDat[0],
Option := InOption);
CASE State OF
1: // Execute Send.
SendExecute := TRUE;
IF (SendInstance.Done=TRUE) THEN
State := 2;
ELSIF (SendInstance.Error=TRUE) THEN
State := 99;
END_IF;
3 Client Function
3 - 12
NX-series CPU Unit FINS Function User's Manual (W596)
Summary of Contents for NX102-10 Series
Page 24: ...Sections in this Manual 22 NX series CPU Unit FINS Function User s Manual W596...
Page 36: ...2 Server Function 2 6 NX series CPU Unit FINS Function User s Manual W596...
Page 40: ...2 Server Function 2 10 NX series CPU Unit FINS Function User s Manual W596...
Page 65: ...I Index I 1 NX series CPU Unit FINS Function User s Manual W596 I...
Page 67: ......