3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-17
Note: If the cells adjacent to the operands are grayed, this means they support index registers E
and F for those cells in the table above. For example, device D of operand S1 supports index
registers E and F.
Continuous execution vs. Pulse execution
1.
The execution type for instructions can be divided into two types: continuous execution
instructions and pulse execution instructions. The execution time is shorter when instructions
are not executed. Using the pulse option for an instruction will reduce the scan time of the
program.
2.
The ‘pulse’ function allows the associated instruction to be activated on the rising edge of the
control input. The output instructions are true for one program scan.
3.
Thereafter, while the control input remains ON, the associated instruction is false. To
re-execute the instruction the control input must be turned OFF then ON again.
Pulse execution instruction
X0
D10
D12
MOVP
When X0 goes from OFF
→
ON, the MOVP
instruction will be executed one time and
instruction cannot be re-executed again in the
same program scan. This is a pulse execution
instruction.
Continuous execution instruction
X1
D10
D12
MOV
When X1=ON, the MOV instruction will execute
every program scan This is called continuous
execution instruction.
The above figures show that when X0, X1=OFF, the instruction will not be executed and the
contents of the destination operand “D12” will remain unchanged.
Operands
1.
Bit addresses such as X, Y, M, S can be used in numerical order to define a WORD or a
portion of a word. Successive bits can be written to a word address and a word address can be
broken into bits. This is accomplished using the MOV instruction and a special designator in
front of the bit address, such as: KnX, KnY, KnM, KnS. The n represents 4 bits, 8 bits, 12 bits
or 16 bits to be moved into a word address or moved from a word address. n=1 represents 4
bits, n=2 represents 8 bits, n=3 represents 12 bits and n=4 represents 16 bits.
2.
Data register D, Timer T, Counter C and Index Register E, F can all be assigned as operands.
3.
A D register is a 16-bit register. It can also be assigning as a 32-bit register which consumes
two consecutive D registers.
4.
If the operand of a 32-bit instruction is assigned to D0, D1 is also used to comprise a 32-bit
value. The upper 16-bits is D1 and D0 is the lower 16-bits.
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...