SendCmd
Issues a desired command and receives a response.
Instruction Name
FB/
FUN
Graphic expression ST expression
SendCmd
Send Com-
mand
FB
SendCmd
SendCmd
_instance
Execute
DstNetAdr
Done
CommPort
CmdDat
Option
Error
ErrorID
CmdSize
Busy
ErrorIDEx
RespDat
SendCmd_instance(Execute,
DstNetAdr, CommPort, CmdDat,
CmdSize, RespDat, Option, Done,
Busy
, Error, ErrorID, ErrorIDEx);
Variables
Meaning I/O Description Valid range Unit Default
DstNetAdr
Destination network
address
Input
Destination network
address
---
---
---
CommPort Destination serial port Destination serial port _NONE _NONE
CmdDat[]
(array)
Command array Command to send
Depends on da-
ta type.
*1
CmdSize Command data size Command data size
0 to max. data
length
*2
Bytes 2
Option Response
Response monitoring
and retry specifications
--- --- ---
RespDat[]
(array)
Response storage ar-
ray
In-out
Array to store re-
sponse
Depends on da-
ta type.
--- ---
*1. If you omit an input parameter, the default value is not applied. A building error will occur.
*2. This may vary depending on the network type.
Boo
lean
Bit strings Integers
Real
num-
bers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
DstNetAdr Refer to Function on page 3-15 for details on the structure _sDNET_ADR.
CommPort For enumeration_ePORT enumerator, refer to Function on page 3-15.
CmdDat[]
(array)
OK
CmdSize
OK
Option Refer to
Function on page 3-15 for details on the structure _sRESPONSE.
RespDat[]
(array)
OK
3 Client Function
3-14
NX-series CPU Unit FINS Function User's Manual (W596)