Chapter 8 Logic Instructions
8-25
FB/FC
FC
MoveDigit is used for moving digits.
Parameters
Meaning
Description Valid range
In
Input
Move source
Depends on the data type of the variable
that the input parameter is connected to.
InPos
Input
Position of digit in In to
move
Depends on the data type of the variable
that the input parameter is connected to.
InOutPos
Input
Position of digit in Out to
receive the digit
Depends on the data type of the variable
that the input parameter is connected to.
Size
Input
Number of digits to move
Depends on the data type of the variable
that the input parameter is connected to.
InOut
Input
Move destination
Depends on the data type of the variable
that the input parameter is connected to.
Boolean
Bit string Integer
Real
number
Time, date
String
STRING
In
● ● ● ● ● ● ● ●
InPos
●
InOutPos
●
Size
●
InOut
● ● ● ● ● ● ● ●
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data
type.
Function Explanation
MoveDigit moves Size digits from InPos of move source In to InOutPos of move destination InOut.
Precautions for Correct Use
The instruction has no output but input parameter.
The move can not be performed if the value of Size is 0.
If the value of InPos exceeds the range of the data type of In, the move will not be performed.
MoveDigit
EN ENO
In
InPos
InOutPos
Size
InOut