Variables; Data Memory - Hitachi MICRO-EHV+ Applications Manual

Table of Contents

Advertisement

Chapter 3
Programming
3.6

Variables

3.6.1

Data memory

In HX-CODESYS programming, external I/Os and data memory (internal registers) are handled as variable names
instead of direct I/O addresses, such like "A1_switch". If new variable name is used, below Auto Declare window
appears. Enter an each field according to following table.
Item
Scope
Name
Type
Object
Initialization
Address
Comment
Flags
CONSTANT
RETAIN
PERSISTENT
Bit access
Any bit data in integer type data can be accessed by adding suffix dot and number (decimal 0 to 63).
Example
Descriptions
Choose "VAR" in normal use. If global variable is used, choose "VAR_GLOBAL".
Refer to section 3.6.7 Global variable for further information.
Variable name is defined. Refer to section 3.6.3 Available characters for variable names.
Data type is defined. Refer to section 3.6.5 Data type.
In case of local variable, POU name is defined.
Initial value when program starting can be set here. If it's blank, initialization value is 0.
No need to enter I/O address. HX-CODESYS will assign to free address automatically.
Any text comment can be input.
Enter a value in the Initialization field.
The value is maintained by a battery after switch off of the PLC. If new application is
downloaded, it will be initialized. (Refer to section 3.13 Run / Stop / Reset)
The value is maintained by a battery after switch off of the PLC. If new application is
downloaded, it will be maintained. (Refer to section 3.13 Run / Stop / Reset)
WORD type (16 bits)
BOOL type (1 bit)
3 – 18
Login display

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents