EasyManua.ls Logo

Omron SYSMAC CV Series - Move Bit: Movb(042)

Omron SYSMAC CV Series
636 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...
199
The following example shows how to use BSET(041) to change the PV of a timer
depending on the status of CIO 000003 and CIO 000004. When CIO 000003 is
ON, TIM 0010 will operate as a 50-second timer; when CIO 000004 is ON,
TIM 0010 will operate as a 30-second timer.
TIM 0010 #9999
00000 LD 000003
00001 AND NOT 000004
00002 jBSET(041)
#0500
T0010
T0010
00003 LD 000004
00004 AND NOT 000003
00005 jBSET(041)
#0300
T0010
T0010
00006 LD 000003
00007 OR 000004
00008 TIM 0010
#9999
(041)
jBSET #0500 T0010 T0010
(041)
jBSET #0300 T0010 T0010
0000
04
0000
03
0000
03
0000
04
0000
03
0000
04
Address Instruction Operands
5-15-12MOVE BIT: MOVB(042)
(
042
)
MOVB S C D
Operand Data AreasLadder Symbol
Variations
MOVB(042)
S: Source word or data CIO, G, A, #, DM, DR, IR
C: Control word CIO, G, A, T, C, #, DM, DR, IR
D: Destination word CIO, G, A, DM, DR, IR
When the execution condition is OFF, MOVB(042) is not executed. When the
execution condition is ON, MOVB(042) transfers a single specified bit from the
source word to the specified bit in the destination word. The other bits in the des-
tination word are not changed.
Source bit (00 to 15)
Destination bit (00 to 15)
Control Word Contents
Source word (S)
Destination word (D)
Precautions C must be BCD and must be within the values specified above.
Flags ER (A50003): Control word content is not BCD.
Rightmost and leftmost eight bits are not 00 to 15.
Content of a*DM word is not BCD when set for BCD.
Example
Description
Data Movement Instructions Section 5-15

Table of Contents

Related product manuals