2-703
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Communications Instructions
2
CIPSend
You can read a maximum of 1,990 bytes of data. The maximum size of the data that you can write
depends on whether there is a request path attribute, as given below.
Maximum write data size [bytes] = Base size − Attribute usage
Refer to the following manuals for details on CIP communications.
• NJ-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506)
• CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (Cat. No. W495)
• 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.
• Execute the CIPOpen instruction to obtain the value for Handle before you execute this instruction.
• You can use this instruction only through a built-in EtherNet/IP port on an NJ-series CPU Unit or a
port on an EtherNet/IP Unit connected to an NJ-series CPU Unit.
• If a variable is written to an OMRON Controller, the variable must be published to the network. Pub-
lish the variable to the network in advance.
• 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 Handle.Handle is outside of the valid range.
• The value of ServiceCode is outside of the valid range.
• The value of a member of RqPath is outside of the valid range.
• The value of Size is outside of the valid range.
Refer to the sample programming that is provided for the CIPOpen instruction (page 2-684).
Maximum Read/Write Data Size
Item in above formula Meaning
Base size 1,992 bytes
Attribute usage Attribute ID used: 12 bytes
Attribute ID not used: 8 bytes
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
Sample Programming