DVP15MC11T Operation Manual
8.4.5 Exchange
FB/FC
Explanation
FC
Exchange is used for the data exchange. DVP15MC11T
Parameters
name
Meaning
Output
Description Valid range
In1
Input
Input Data to exchange
Depends on the data type of the variable
that the input parameter is connected to.
In2
Input Data to exchange
Depends on the data type of the variable
that the input parameter is connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In1
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
In2
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
Function Explanation
The Exchange instruction exchanges the values of In1 and In2.
Precautions for Correct Use
The data types of In1 and In2 must be same.
The instruction has no output but two input parameters.
Programming Example
The variable table and program
1
Exchange
EN ENO
In1
In2
Exchg_EN
Exchg_In1
Exchg_In2
8-24