Skip to main content
Submitted by nimams on Fri, 11/03/2017 - 16:59

Hi,

I would like to know why the following command invoke the code-error interrupt, "CMDERR ":
II 0,8,15,0;

I have this command in the auto subroutine. Also, the controller is DMC 4060. Thank you for your help.

Comments 1

andriys on 11/07/2017 - 10:42

Hello nimams,
When using II command, if the first argument is set to 0, it disables input interrupt. When first two arguments are used, the 3rd argument (number 15 in your case) is ignored.
What are your expectations for this command?
To troubleshoot the error you are receiving, include TC1 command in your #CMDERR routine. The TC command reports programming or command errors detected by the controller. The TC1 command returns a number between 1 and 255 and a human-readable message. This number is a code that reflects why a command was not accepted by the controller. This command is useful when the controller halts execution of a program or when the response to a command is a question mark.
Thank you,
Andriy Stasyuk
Applications Engineer