EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #829 background imageLoading...
Page #829 background image
2-781
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
SktTCPSend
The data type of Socket is structure _sSOCKET. The specifications are as follows:
* These members are not used for this instruction.
Refer to the NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506) for details on
socket services.
• Execution of this instruction is continued until processing is completed even if the value of Execute
changes to FALSE or the execution time exceeds the task period. The value of Done changes to
TRUE when processing is completed. Use this to confirm normal completion of processing.
• Refer to Using this Section on page 2-2 for a timing chart for Execute, Done, Busy, and Error.
• This instruction can be used only for the built-in EtherNet/IP on NJ-series CPU Units.
• This instruction must be used in ST. It cannot be used in a ladder diagram.
• Up to 2,000 bytes of data can be sent with one instruction. A maximum of 2,000 bytes is sent even if
the SendDat[] array is larger than 2,000 bytes.
• Data is not sent if the value of Size is 0.
• You can execute a maximum of 32 of the following instructions at the same time: SktUDPCreate,
SktUDPRcv, SktUDPSend, SktTCPAccept, SktTCPConnect, SktTCPRcv, SktTCPSend, SktGetTCP-
Status, SktClose, and SktClearBuf.
• An error occurs in the following cases. Error will change to TRUE.
• There is a setting error for the local IP address.
• The value of a member of Socket is outside of the valid range.
• Data transmission is in progress for the socket specified with Socket.
Name Meaning Description Data type Valid range Unit Default
Socket Socket Socket _sSOCKET
--- --- ---
Handle Handle Handle for data commu-
nications
UDINT Depends on
data type.
--- ---
SrcAdr* Local address Local IP address and
port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
DstAdr* Destination
address
Destination IP address
and port number
_sSOCKET_
ADDRESS
--- --- ---
PortNo* Port number Port number UINT 1 to 65535
--- ---
IpAdr* IP address IP address or host
name. A DNS or Hosts
setting is required to use
a host name.
STRING Depends on
data type.
Related System-defined Variables
Name Meaning
Data
type
Description
_EIP_EtnOnlineSta Online BOOL Status of built-in EtherNet/IP port communications
TRUE: Can be used.
FALSE: Cannot be used.
Additional Information
Precautions for Correct Use

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals