EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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
Loading...
2 Instruction Descriptions
2-674
NJ-series Instructions Reference Manual (W502)
SendCmd
The SendCmd instruction uses a serial gateway and sends a command to a Serial Communications
Unit. Or, it sends an explicit command to a DeviceNet Unit.
* If you omit an input parameter, the default value is not applied. A building error will occur.
Instruction Name
FB/
FUN
Graphic expression ST expression
SendCmd Send Com-
mand
FB SendCmd_instance(Execute,
DstNetAdr, CommPort, CmdDat,
CmdSize, RespDat, Option, Done,
Busy, Error, ErrorID, ErrorIDEx);
Variables
Name Meaning I/O Description Valid range Unit Default
DstNetAdr Destination
network
address
Input
Destination network address
---
---
---
CommPort Destination
serial port
Destination serial port Only _NONE _NONE
CmdDat[]
(array)
Command
array
Command to send Depends on data
type.
*
CmdSize Command
data size
Command data size 2 to maximum
data length
(depends on net-
work type)
Bytes 2
Option Response Response monitoring and retry
specifications
--- --- ---
RespDat[]
(array)
Response
storage array
In-out Array to store response Depends on data
type.
--- ---
Boolean
Bit strings Integers
Real
numbers
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 for details on the structure _sDNET_ADR.
CommPort Refer to Function for the enumerators of the enumerated type _ePORT.
CmdDat[]
(array)
OK
CmdSize OK
Option Refer to Function for details on the structure _sRESPONSE.
RespDat[]
(array)
OK
SendCmd
Execute Done
DstNetAdr Busy
CommPort Error
CmdDat ErrorID
CmdSize ErrorIDEx
RespDat
Option
SendCmd_instance

Table of Contents

Related product manuals