PLC processor and PLC
AssigneeFanuc Corporation
InventorTakashi Yamauchi
Life of this patent
Estimating the term…
Abstract
A PLC (programmable logic controller) processor which carries out logical operations. The processor comprises a logical operation unit (2) for executing a logical operation, a jump inhibition unit (3), a jump condition checking unit (4) for checking whether or not a jump can be carried out while omitting executions of subsequent instructions, and a jump instruction execution unit (5) for executing the jump instruction. When the result of the checking by the jump condition checking means (4) indicates that subsequent instructions need not be executed and the jump should be carried out, the jump instruction execution means executes the jump, whereby unnecessary instructions are not executed, thus the speed of the logical processing is increased.
Claims12
A programmable logic controller processor for carrying out logical operations in accordance with a predetermined program having instructions, comprising:
- logic operation means for executing a logical operation of the instructions to produce a result for each executed instruction;
- jump inhibition means for inhibiting a jump of a subsequent instruction when a current instruction supplied to said logic operation means indicates the subsequent instruction is not to be jumped;
- jump condition checking means for checking whether the jump is to be executed based on the result of the logical operation for the current instruction and a signal indicating a condition of the subsequent instruction;
- and
- jump execution means for executing the jump after the logical operation of the current instruction if uninhibited by said jump inhibition means and indicated by said jump condition checking means.
A programmable logic controller having at least two processors for processing logical operations and other than logical operations, the logical operations processed in accordance with a predetermined program having instructions, comprising:
- an exclusive programmable logic controller processor for executing the logical operations, said exclusive programmable logic controller processor including:
- logic operation means for executing a logical operation of the instructions to produce a result for each executed instruction,
- jump inhibition means for inhibiting a jump of a subsequent instruction when a current instruction supplied to said logic operation means includes a first code indicating that the subsequent instruction is not to be jumped,
- jump condition checking means for checking whether the jump is to be executed based on the result of the logical operation for the current instruction and a second code in the current instruction indicating a condition of the subsequent instruction, and
- jump execution means for executing the jump after the logical operation of the current instruction in response to conditions of both said jump inhibition means and said jump condition checking means;
- and
- a second processor, operatively connected to said exclusive programmable logic controller processor, for executing processing concerning the other than logical operations.
A method for processing a predetermined program having program instructions, comprising the steps of:
- (a) executing a logical operation of a current program instruction having a jump condition flag corresponding to a subsequent program instruction and a jump inhibit flag;
- (b) generating a current logical result of the current program instruction;
- and
- (c) executing a jump in place of the subsequent program instruction in dependence upon the current logical result, the jump inhibit flag and the jump condition flag.
Dependencies are inferred from the claim text.