Numerical controller
A numerical controller includes a first processing unit configured to execute a first process of determining whether or not a control program includes a wait command, a second processing unit configured to execute a second process of determining whether or not a wait condition included in the wait command is satisfied when it is determined that the control program includes the wait command, and a third processing unit configured to execute a third process different from the first process and the second process in response to executing the second process within a period of the first control cycle.
1 . A numerical controller comprising:
a first processing unit configured to execute a first process of determining whether or not a control program includes a wait command;
a second processing unit configured to execute a second process of determining whether or not a wait condition included in the wait command is satisfied when it is determined that the control program includes the wait command; and
a third processing unit configured to execute a third process different from the first process and the second process in a remaining period of a period of a first control cycle in response to executing the first process and executing the second process within the period of the first control cycle,
wherein, when the control program includes a first conditional statement, the first conditional statement is read a number of times set by a parameter within the period of the first control cycle, and the first processing unit determines that the wait command is included in the control program.
2 . The numerical controller according to claim 1 , wherein, when it is determined that the wait condition is satisfied in the second process, the second processing unit does not execute the second process during the remaining period of the first control cycle, and executes a next second process in a period of a second control cycle following the period of the first control cycle.
3 . The numerical controller according to claim 1 , further comprising a reception unit configured to receive input of a value set in the parameter.
4 . The numerical controller according to claim 1 , wherein the control program further includes a predetermined second conditional statement different from the first conditional statement, and wherein, in the second conditional statement, the first processing unit determines that the control program includes the wait command.