Download MasterTool Programming, PONTO Series Programming

Transcript
Chapter 4
Instructions
MOB – Moving of Blocks of Operands
OPER1 – first operand of origin block
OPER2 – number of transfers to be carried out
OPER3 – control operand
OPER4 – first operand of designation block
OPER5 – number of transfers for scan
Description:
This instruction carries out the copy the value of a block of origin operands to the destination block.
It specifies the first operand of the origin block in OPER 1 and the first operand of the destination
block in OPER 4. The total number of transfers to be carried out is declared in parameter OPER 2, to
the number of transfers for the scan (OPER 5) should always be specified and a memory accumulated
to count the number of transfers (OPER 3).
If the origin or destination block is a table, the transfer should begin in its first position.
If the operand format is less than the origin, the more significant octets of the origin value are
ignored. If opposite is the case, the more significant octets of the destination are zeroed.
The number of transfers for scan is limited in 255 operands. In general, if possible, a high number of
transfers in the some scan should be avoided, to reduce the execution time of the program.
In each MOB instruction a memory is used as control operand (OPER 3), which should be zeroed
before the first execution.
WARNING:
The control operand should not have its contents altered in any part of the applications program,
under penalty of preventing the correct execution of the instruction. Each occurrence of this
instruction in the program should have an operand of exclusive control, different from to rest. This
operand cannot be retentive.
When connected, the outputs of the second and third cells show, respectively, that at least one of the
component operands of the origin or destination block has a greater address than the maximum
number declared for the operand or table used, no moving being carried out. If the value of the
second operand is negative the output origin index invalid is enabled.
The output of the first cell is enabled in the scan in which the moving is completed.
WARNING:
The input enable should remain active until the moving is concluded. As this instruction is executed
in multiple execution cycles, it should not be jumped while the moving is still in progress.
69