DVP-15MC Series Motion Controller Operation Manual
8-338
_8
Function Explanation
The SetBitOffsetValue instruction is used to set the value of the specific bit of the specified address to TRUE
or FALSE. The
StartRegister
parameter is a Pointer-type variable. The
Offset
parameter specifies the offset
value which regards the bit0 of the variable the
StartRegister
parameter points to as the reference. The
Value
parameter shows the setting value of the specified bit, which is TRUE or FALSE. The bit which is specified
by
StartRegister
and
Offset
together can be set to TRUE or FALSE through this instruction.
If the specified offset value exceeds the range of the starting address of
StartRegister
, the operation will be
performed according to the corresponding offset address which regards the StartRegister as the starting
address.
See more in the following example.
Precautions for Correct Use
The
StartRegister
parameter of the SetBitOffsetValue instruction is a Pointer-type variable and needs to
use the ADR instruction to gain the address.
Programming Example
The variable table and program
Variable name
Device address
Data type
Present value
SetBOV_EN
BOOL
TRUE
SetBOV _StartR
%MW0
UINT
SetBOV _Offset
UINT
SetBOV _Value
BOOL
SetBitOffsetValue
StartRegister
Offset
Value
EN
E NO
SetBOV _Value
SetB OV_En
SetB OV_Offset
ADR( SetBOV _StartR)
Program Explanation
When the SetBOV_EN variable is TRUE, set the value of the specified bit to the value of SetBOV_Value
by changing the values of SetBOV_Offset and SetBOV_Value variables.
See the explanation below.
1. When SetBOV _Value is set to FALSE and the value of SetBOV _Offset is 2, the value of Bit2
of SetBOV _StartR
(
%MW0
)
is FALSE.
2. When SetBOV _Value is set to TRUE and the value of SetBOV _Offset is 2, the value of Bit2
of SetBOV _StartR
(
%MW0
)
is TRUE.
3. When SetBOV _Value is set to FALSE and the value of SetBOV _Offset is 16 (which regards
Bit0 of the variable that StartRegister points to as the reference bit ), the value of Bit1 of
%MW1 is FALSE.
4. When SetBOV _Value is set to TRUE and the value of SetBOV _Offset is 16 (which regards
Bit0 of the variable that StartRegister points to as the reference bit ), the value of Bit1 of
%MW1 is TRUE.
Summary of Contents for DVP-15MC Series
Page 19: ...DVP 15MC Series Motion Controller Operation Manual 1 4 _1 MEMO...
Page 23: ...DVP 15MC Series Operation Manual 2 4 _2 MEMO...
Page 31: ...DVP 15MC Series Motion Controller Operation Manual 3 8 _3 MEMO...
Page 75: ...DVP 15MC Series Motion Controller Operation Manual 6 26 _6 MEMO...
Page 87: ...DVP 15MC Series Motion Controller Operation Manual 7 12 _7 MEMO...
Page 432: ...Chapter 8 Logic Instructions 8 345 8_ MEMO...
Page 470: ...DVP 15MC Series Motion Controller Operation Manual 10 34 10 MEMO...
Page 878: ...DVP 15MC Series Motion Controller Operation Manual 11 408 11 1 MEMO...
Page 920: ...DVP 15MC Series Motion Controller Operation Manual A 16 A MEMO...
Page 941: ...D 1 D Explanation of Homing Modes Table of Contents D 1 Explanation of Homing Modes D 2...
Page 966: ...DVP 15MC Series Motion Controller Operation Manual D 26 D MEMO...