Omron NJ-series User Manual page 246

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

Advertisement

Additional Information
Some Basic I/O Units have more than one access method for the same I/O port, such as bit
string data and BOOL data. If you use initial values for this type of I/O port, set the initial values
for one of the access types to None.
 When Initial Values Are Set
The initial value is assigned to the variable at the following times.
• When power is turned ON
• When the operating mode changes from PROGRAM to RUN mode or from RUN to PROGRAM
mode
• When you select the Clear the present value of variables with Retain attribute Check Box, and
download the user program
• When a major fault level Controller error occurs
 When the Initial Value Specification Is Left Blank
The following initial values are used for variables for which the initial value specification is left blank.
Boolean and bit strings
Integers
Real numbers
Durations, dates, times of day,
and dates and times
Text strings
 Initial Value of Array Variables
Data type
Array specifications
 Initial Values for Derivative Data Types
You do not specify an initial value for the data type itself. You set an initial value for each individual
variable.
Data type
Structures
Unions
Enumerations
 Variables That Do Not Apply Initial Values
For the following variables, initial values are not applied when the power is turned ON, and the val-
ues before the power interruption are retained.
• Variables with Retain attribute
NJ-series CPU Unit Software User's Manual (W501)
Data type
BOOL, BYTE, WORD, DWORD,
and LWORD
SINT, INT, DINT, LINT, USINT,
UINT, UDINT, and ULINT
REAL and LREAL
TIME
DATE
TIME_OF_DAY
DATE_AND_TIME
STRING
Initial value specifications
• You can specify an initial value for each element.
• To specify initial values, you must specify a value or leave the specification
blank for each element.
Initial value specifications
• You can specify an initial value for each member.
• To specify initial values, you must specify a value or leave the specification
blank for each element.
• Initial values cannot be specified. Always zero.
• Initial values can be specified.
6 Programming
Default initial value
0
0
0.0
T#0S
D#1970-01-01
TOD#00:00:00
DT#1970-01-01-00:00:00
' '(blank character)
6
6-59

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents