Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
Item in above formula
Size of variable name of
DstDat
Related System-defined Variables
Name
*1
_EIP_EtnOnlineSta
*2
_EIP1_EtnOnlineSta
*3
_EIP2_EtnOnlineSta
*4
_EIPIn1_EtnOnlineSta
*1 Use this variable name for an NJ-series CPU Unit.
*2 Use this variable name for port 1 on an NX-series CPU Unit, or for an NY-series Controller.
*3 Use this variable name for port 2 on an NX-series CPU Unit.
*4 Use this variable name for the internal communication port on an NY-series Controller.
Additional Information
Refer to the following manuals for details on CIP communications.
• NJ/NX-series CPU Unit Built-in EtherNet/IP Port User's Manual (Cat. No. W506)
• NY-series Industrial Panel PC / Industrial Box PC Built-in EtherNet/IP Port User's Manual (Cat. No.
W563)
• CJ-series EtherNet/IP Units Operation Manual for NJ-series CPU Unit (Cat. No. W495)
2-1012
• The size of the variable name is calculated as the total bytes for the ASCII charac-
ters in all structure levels plus two times the number of levels.
• If the number of bytes of ASCII characters in a level is an odd number, add 1.
• If a level in the structure is an array, add four times the number of dimensions in the
array.
• Periods and commas in the structure and arrays are not included in the variable
name size.
Example 1: When the Variable Name of DstDat Is aaa.bbbbb[1,2,3].cc
• The text string "aaa" in the first level is 3 bytes. It is an odd number, so 1 is added
to make 4 bytes.
• The text string "bbbbb[1,2,3]" in the second level is 5 bytes. It is an odd number,
so 1 is added to make 6 bytes.
• Also bbbbb[1,2,3] is a three-dimensional array, so 3 times 4, or 12, is added to
make 18 bytes.
• The text string "cc" in the third level is 2 bytes. It is an even number, so 2 bytes is
used in the calculation.
• If we add the number of levels 3 times 2, or 6, to 4 bytes for the first level, 18
bytes for the second level, and 2 bytes for the third level, the size of the variable
name come to 30 bytes.
Example 2: When the Variable Name of DstDat Is val
• The text string "val" in the first level is 3 bytes. It is an odd number, so 1 is added
to make 4 bytes.
• If we then add the number of levels 1 times 2, or 2, the size of the variable name
is 6 bytes.
Example 3: When the Variable Name of DstDat Is array[8].
• The text string "array" in the first level is 5 bytes. It is an odd number, so 1 is
added to make 6 bytes.
• It is a one-dimensional array. Therefore, 1 times 4, or 4, is added.
• If we then add the number of levels 1 times 2, or 2, the size of the variable name
is 12 bytes.
Data
Meaning
type
Online
BOOL
Meaning
Description
This variable indicates when built-in EtherNet/IP
port communications can be used.
TRUE: Communications are possible.
FALSE: Communications are not possible.

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents