2 Instruction Descriptions
2-658
NJ-series Instructions Reference Manual (W502)
SerialSend
The SerialSend instruction sends data in No-protocol Mode from a serial port on a Serial Communica-
tions 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
SerialSend SCU Send
Serial
FB SerialSend_instance(Execute,
Port, SrcDat, SendSize, Done,
Busy, Error, ErrorID, ErrorIDEx);
Variables
Name Meaning I/O Description Valid range Unit Default
Port Destina-
tion port
Input
Destination port
---
---
---
SrcDat[]
(array)
Send data
array
Send data array Depends on data type. *
SendSize Number of
send data
elements
Number of elements to send
from SrcDat[]
0 to 256 Bytes 1
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
Port Refer to Function for details on the structure _sPORT.
SrcDat[]
(array)
OK
SendSize OK
SerialSend
Execute Done
Port Busy
SrcDat Error
SendSize ErrorID
ErrorIDEx
SerialSend_instance