EasyManua.ls Logo

Delta DVP-15MC Series - Address Instruction; Adr

Delta DVP-15MC Series
972 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 8 Logic Instructions
8-325
8_
Address Instruction
FB/FC
Explanation
Applicable model
FC
ADR is used to get the address of a variable.
DVP15MC11T
DVP15MC11T-06
ADR
EN ENO
In Out
Parameters
Parameter
name
Meaning
Input/
Output
Description Valid range
In Input vlaue
Input
The variable of which the address is to be
ouput
Depends on the data type
of the variable that the
input parameter is
connected to.
Out
Operation
result
Output Output variable address of IN
Depends on the data type
of the variable that the
output parameter is
connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
Pointer
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Pointer To xx
In
Out
Note:
1. The symbol indicates that the parameter is allowed to connect to the variable of the data type.
2. The data type xx of Pointer To xxmust be the same as that of IN.
Function Explanation
The ADR instruction is used to get the address of a variable. Get the variable address and then find
the value stored in the variable address by using the symbol ^.
Programming Example
The ADR instruction is used to get the address of input variable ADR_In and place it in the output
variable ADR1. The address of ADR_In is %MW0. After the ADR instruction is executed, ADR1 points
to %MW0. After ADD is executed, ADR1 points to %MW1. ADR1^ means to get the value from the
address of ADR1. (ADR1 value is %MW1 and ADR1^ means to get the value in %MW1.) The value
in %MW1 is moved to the OUT1 variable through executing MOVE instruction.

Table of Contents

Related product manuals