Omron SYSMAC CV Series Operation Manual page 130

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Differentiated and Immediate Refresh Instructions
0000
00
Diagram A
0000
00
Diagram B
Immediate Refreshing
118
The execution condition is always compared to the execution condition that ex-
isted the last time the instruction was scanned, which may not be the previous
cycle if an instruction is in a step in an SFC program, in a section of the program
skipped by a jump, in a subroutine, etc. In the following examples, we will as-
sume that the MOVE instruction is scanned each cycle.
(030)
MOV
A001 D00000
(030)
jMOV
A001 D00000
In diagram A, the non-differentiated MOV(030) will move the content of A001 to
D00000 whenever it is scanned with 000000 ON. If the cycle time is 80 ms and
000000 remains ON for 2.0 seconds, this move operation will be performed 25
times and D00000 will contain the last value moved to it.
In diagram B, the differentiate up instruction jMOV(030) will move the content of
A001 to D00000 only once after 000000 goes ON. Even if 000000 remains ON
for 2.0 seconds, the move operation will be executed only during the first cycle in
which 000000 has changed from OFF to ON. Because the content of A001 could
very well change during the 2 seconds while 000000 is ON, the final content of
D00000 after the 2 seconds could be different depending on whether MOV(030)
or jMOV(030) was used.
All operands and other specifications for instructions are the same regardless of
whether the differentiated or non-differentiated form of an instruction is used.
When inputting, the same function codes are also used.
Operation of differentiated instructions can be uncertain when the instructions
are programmed between IL and ILC, between JMP and JME, or in subroutines.
Refer to 5-8 INTERLOCK and INTERLOCK CLEAR – IL(002) and ILC(003) , 5-9
JUMP and JUMP END – JMP(004) and JME(005) , and 5-30 Subroutines and
5-31 Interrupt Control for details.
CV-series PCs also provide differentiation instructions: DIFU(013) and
DIFD(014). These instruction operate as the differentiated variations of the
OUTPUT instruction: DIFU(013) turns ON a bit for one cycle when the execution
condition has changed from OFF to ON and DIFD(014) turns ON a bit for one
cycle when the execution condition has changed from ON to OFF. Refer to 5-7-2
DIFFERENTIATE UP/DOWN – DIFU(013) and DIFD(014) for details.
Up or down differentiation can be combined with immediate refreshing in a
single instruction.
Many instructions are provided in an immediate refresh version, distinguished
by an exclamation mark, !, at the beginning of the mnemonic. An immediate re-
fresh instruction updates the status of input bits just before, or output bits just
after, the instruction is executed. If the instruction has a word operand, the whole
word is updated, and if the instruction has a bit operand, only the byte (leftmost
or rightmost 8 bits) containing the bit operand is updated.
The I/O response time is reduced with an immediate refresh instruction because
status is read from the input bit or written to the output bit without waiting for the
next I/O refresh period. Refer to 6-5 I/O Response Time for details on the effects
of immediate refresh instructions on I/O response time.
Section 5-4
Address Instruction
Operands
00000
LD
000000
00001
MOV(030)
A0001
D00000
Address
Instruction Operands
00000
LD
000000
jMOV(030)
00001
A001
D00000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents