Function
The SendCmd instruction sends the contents of command array CmdDat[] to the destination specified
with destination network address
DstNetAdr
and destination serial port
CommPort
.
The command data size
CmdSize
specifies how many elements of CmdDat[] contain the command.
The response that is returned is stored in response storage array RespDat[].
The data type of
DstNetAdr
is structure _sDNET_ADR. The specifications are as follows:
Name
Meaning
Description
Data type
Valid range
Unit
Default
DstNetAdr
Destination
network ad-
dress
Destination network ad-
dress
_sDNET_AD
R
---
---
---
NetNo
Network ad-
dress
Network address
USINT
0 to 127
---
0
NodeNo
Node address Node address
USINT
Depends on
data type.
UnitNo
Unit address
Unit address
BYTE
Depends on
data type.
16#00
The data type of
CommPort
is enumerated type _ePORT.
The meanings of the enumerators of enumerated type _ePORT are as follows:
Enumerators
Meaning
_NONE
The destination is not a serial port in Host Link Mode.
The data type of
Option
is structure _sRESPONSE. The specifications are as follows:
Name
Meaning
Description
Data type
Valid range
Unit
Default
Option
Response
Response monitoring
and retry specifications
_sRES-
PONSE
---
---
---
isNonResp
No response
TRUE: Response is not
required.
FALSE: Response is re-
quired.
BOOL
Depends on
data type.
---
FALSE
TimeOut
Timeout time
Timeout time
0: 2.0 s
UINT
0.1 s
20
(2.0 s)
Retry
Retry count
Retry count
USINT
0 to 15
Time
s
0
If no response is returned within the timeout time
Option.TimeOut
when the value of the Response Not
Necessary Flag
Option.isNonResp
is FALSE, the command is retried until the response is returned.
The retry count is specified by
Option.Retry
.
The timeout time is
Option.TimeOut
multiplied by 0.1 s. However, if the value of
Option.TimeOut
is 0,
the timeout time is 2.0 s. The default value of
Option.TimeOut
is 2.0 s.
3 Client Function
3 - 15
NX-series CPU Unit FINS Function User's Manual (W596)
FINS Communications Instructions
3
SendCmd
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: ......