1. A control device for controlling a control object apparatus, the control device comprising: a memory configured to store a plurality of global variables and respective reference data corresponding to the global variables; a processor configured to execute a plurality of tasks and to manage the reference data, each task including a program; a receiver; and a transmitter, wherein the plurality of the tasks is executed in parallel, with each task of the plurality of tasks being executed in different cycles, the plurality of tasks being executed in parallel includes at least one update task for updating the global variables, and at least one read-only reference task for referencing the reference data corresponding to the global variables, the processor is further configured to update a first value of the reference data to correspond to a first value of a global variable prior to executing a reference task and to maintain the first value of the reference data until the reference task is completed, and to update, during execution of the reference task, the first value of the global variable to have a second value, such that the updating of the first value of the global variable and execution of the reference task are performed concurrently, the processor is further configured to set a collection target, and to collect a value of the collection target when the plurality of tasks is executed, the receiver is configured to receive, from a tool device, the collection target and a collection cycle in which the value of the collection target is collected, the processor is further configured to collect the value of the collection target in the collection cycle when the plurality of tasks is executed, and the transmitter is configured to transmit collection results to the tool device.