Clear - Omron NY532-5400 Reference Manual

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

Advertisement

Clear

The Clear instruction initializes a variable.
Instruction
Clear
Initialize
Variables
Name
Meaning
InOut
Data to
initialize
Out
Return
value
Bit strings
OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK OK
InOut
An enumeration, array, array element, structure, or structure member can also be specified.
Out
OK
Function
The Clear instruction initializes the value of data to initialize InOut.
If an initial value attribute is set for a variable, the specified initial value is used. If an initial value attri-
bute is not set, the default initial value for the data type of InOut is used. If InOut is an external variable,
the default initial value of the data type of InOut is used regardless of the initial value attribute of the
global variable for the external variable.
The default values for the data types are given below.
BOOL
BYTE, WORD, DWORD, or LWORD
USINT, UINT, UDINT, ULINT, SINT, INT, DINT, LINT,
REAL, or LREAL
TIME
DATE
TOD
DT
STRING
NY-series Instructions Reference Manual (W560)
Name
FB/FUN
FUN
I/O
Description
In-out
Data to initialize
Output
Always TRUE
Data type
Graphic expression
(@)Clear
EN
ENO
InOut
Out
Valid range
Depends on data type.
TRUE only
Integers
Default initial value
FALSE
16#0
0
T#0ms
D#1970-1-1
TOD#0:0:0
DT#1970-1-1-0:0:0
''
2 Instruction Descriptions
ST expression
Clear(InOut);
Unit
Default
---
---
---
---
Times, durations,
dates, and text strings
2
2-373

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents