主权项 |
1. A programmable controller comprising:
a bus for data transmission and reception; a synchronous-control signal line that transmits a synchronous control signal; a synchronous-control-signal generating unit that is connected to the synchronous-control signal line and generates the synchronous control signal whose period changes such that a frequency is proportional to a speed of movement of a moving workpiece, on a basis of a variable pulse signal from an encoder measuring a position of the workpiece; a counter unit that is connected to the bus and the synchronous-control signal line and latches, in a first internal memory, a count value obtained by counting a pulse, number of which is proportional to an amount of movement of the workpiece, on a basis of the pulse signal from the encoder at a timing synchronized with the synchronous control signal; an analog input unit that is connected to the bus and the synchronous-control signal line and latches, in a second internal memory, an analog signal that is a measurement result of a sensor measuring a thickness of the moving workpiece at a timing synchronized with the synchronous control signal; and a CPU unit that is connected to the bus and the synchronous-control signal line and reads a value in the first and second internal memories via the bus in synchronization with the synchronous control signal. |