摘要 |
Provided is an A/D conversion device, comprising: an A/D conversion part (120) which converts to a digital value an analog value which is inputted from outside; a shared memory (140), further comprising an A/D conversion value storage region (141) which stores the converted digital value, and a log storage region (142) which logs the digital value which is stored in the A/D conversion value storage region (141), and whereby read access is possible from a central processing unit (200) which controls a programmable controller overall; a logging execution part (131) which stores in the log storage region (142) the digital value which is stored in the A/D conversion value storage region (141) as logging data (700); a given point number logging detection part (132) which monitors whether, after carrying out a preceding interrupt generation request, the number of items of the logging data (700) which is stored in the log storage region (142) has reached a prescribed number; and an interrupt generation part (133) which, if the number of items of the logging data (700) has reached the prescribed number, carries out an interrupt generation request with respect to the central processing unit (200). |