Omron NJ-series User Manual page 240

Machine automation controller cpu unit software
Hide thumbs Also See for NJ-series:
Table of Contents

Advertisement

 Making a Range Specification
Input the start point and end point after the data type name in the Data Type Column in the variable
table.
Start point: The minimum value that you can store in the variable.
End point: The maximum value that you can store in the variable.
Example:
Variable Table
Variable name
abc
abc
 Specifications of Range Specifications
Item
Data types that
you can specify
Operation for
attempts to write
out-of-range
value
NJ-series CPU Unit Software User's Manual (W501)
Data type
INT (0 ..100)
The end point of the range specification
The start point of the range specification
Range specification: Minimum 0 to maximum 100
Variable type
Case
User program
Write from the
Sysmac Studio
or a CIP mes-
sage
Communi-
cations
Tag data links
(both via built-
in EtherNet/IP
ports and Eth-
erNet/IP Units)
Input refreshing from slaves
and Units
Forced refreshing values
Specification
Operation
An error does not occur and the value is written.
The CPU Unit does not perform a range check
when the value of a variable changes due to the
execution of an instruction.
When the value is
A command error occurs.
an integer
For an element of
an integer array
variable
For a member of an
integer structure
For an integer struc-
A command error does not
ture
occur and the value is writ-
ten.
For an integer array
An error occurs if you attempt to write to a single
member that specifies a range. An error does not
occur if you attempt to write to a structure that
contains a member for which a range is specified.
An error does not occur and the value is written.
An error does not occur and the value is written.
6 Programming
6
6-53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents