Nj-Series Instructions Reference Manual (W502 - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

Function
The SerialSend instruction sends data in No-protocol Mode from the port and the Serial Communica-
tions Unit specified with Port. The data that is sent is contained in send data array SrcDat[]. The number
of array elements to send is specified in number of send data elements SendSize.
To attach start and end codes to the send data, set them in the DM Area words that are assigned to the
Special Unit.
If you add start and end codes, the maximum number of bytes to send is 259 (1-byte start code, 2-byte
end code (for CR+LF specification), and 256 bytes of send data).
The data type of destination port Port is the structure _sPORT. The specifications are as follows:
Name
Port
UnitNo
PhysicPortNo
The following figure shows a timing chart. Communications is performed to the end after the value of
Done changes to TRUE.
SerialSend Instruction Execution
Flag
Prepare SrcDat[] before Execute
changes to TRUE.

NJ-series Instructions Reference Manual (W502)

Meaning
Description
Destination
Destination port
port
Unit number
Unit number of Serial
Communications Unit
Serial port
Serial port number on
number
Serial Communications
Unit
TRUE
Execute
FALSE
TRUE
Busy
FALSE
Done
TRUE
FALSE
Error
TRUE
SrcDat[]
FALSE
TRUE
FALSE
Data transmission started.
SerialSend Instruction Execution Flag changes to TRUE.
2 Instruction Descriptions
Data type
Valid range
_sPORT
---
_eUnitNo
_CBU_No00 to
_CBU_No15
USINT
1 or 2
Data transmission ended.
SerialSend Instruction Execution Flag changes to FALSE.
2
Unit
Default
---
---
_CBU_
No00
---
1
2-659

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents