Method of outputting positioning pulse by PLC
AssigneeLsis Co., Ltd.
InventorJo Dong Park
Life of this patent
Estimating the term…
Abstract
A method of outputting a positioning pulse by a programmable logic controller (PLC) is provided. The method includes setting up the desired cycle of a pulse to be output; determining a number of needed clocks based on a number of system clocks and a desired frequency according to the desired cycle; determining a total number of needed clocks based on the number of needed clocks and the desired frequency; determining a clock difference based on the number of system clocks and the total number of needed clocks; determining a first number of setup clocks corresponding to a first output pulse in a certain cycle; determining a second number of setup clocks corresponding to pulses except for the first output pulse; and outputting a pulse based on the first number of setup clocks and the second number of setup clocks.
Claims15
A method of outputting a positioning pulse by a programmable logic controller (PLC), the method comprising:
- setting up the desired cycle of a pulse to be output;
- determining a number of needed clocks based on a number of system clocks and a desired frequency according to the desired cycle;
- determining a total number of needed clocks based on the number of needed clocks and the desired frequency;
- determining a clock difference based on the number of system clocks and the total number of needed clocks;
- determining a first number of setup clocks corresponding to a first output pulse in a certain cycle;
- determining a second number of setup clocks corresponding to pulses except for the first output pulse;
- and
- outputting a pulse based on the first number of setup clocks and the second number of setup clocks.
A device of outputting a positioning pulse by a PLC, the device comprising:
- a needed clock calculation unit determining a number of needed clocks based on a number of desired clocks and a number of system clocks;
- a difference calculation unit determining a total number of needed clocks based on the number of needed clocks and the number of desired clocks and determining a clock difference based on the number of system clocks and the total number of needed clocks;
- a TGR value setup unit, setting a first number of setup clocks corresponding to a first output pulse in a cycle and a second number of setup clocks corresponding to pulses except for the first output pulse, as a TGR value;
- and
- a pulse output unit outputting a pulse based on the first number of setup clocks and the second number of setup clocks.
Dependencies are inferred from the claim text.