![background image](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532192.webp)
187
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
j
BSET(041)
#0500
T0010
T0010
00003
LD
000004
00004
AND NOT
000003
00005
j
BSET(041)
#0300
T0010
T0010
00006
LD
000003
00007
OR
000004
00008
TIM
0010
#9999
(041)
j
BSET
#0500
T0010
T0010
(041)
j
BSET
#0300
T0010
T0010
0000
04
0000
03
0000
03
0000
04
0000
03
0000
04
Address
Instruction
Operands
5-15-12 MOVE BIT: MOVB(042)
(
042
)
MOVB S C D
Operand Data Areas
Ladder 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
Summary of Contents for CVM1D
Page 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Page 463: ...iv...
Page 465: ...vi...