20 Custom Macro
The axis number refers to the physical ones. The relationship between the numbers and the names of axes will be defined by the machine tool builder by parameters in group AXIS. Usually axes 1, 2 and 3 are assigned to addresses X, Y and Z, respectively, but different specifications are also permissible.
Alarm - #3000
By defining #3000=nnn(ALARM),
a numerical error message (nnn=max. three decimal digits) and the text of error message can be provided. The text must be put in (,) brackets. A message may not be longer than 25 characters.
If the macro contains an error, i.e., the program runs to a branch in which a value has been defined to variable #3000, the program will be executed as far as the previous block, then the execution is suspended and the error message and the code of it (4nnn) are displayed on the screen. The number of the message is the sum of number specified on#3000 variable and 4000. If no number was specified, the code of the message would be 4000 if no text was specified the message field will be empty. The error state can be canceled by the RESET button.
Millisecond timer - #3001
The value of variable #3001 can be read and written.
The time interval between two time instants can be measured in milliseconds, with an accuracy of about 20 ms. Counter #3001 will overflow at 65536. The value of variable #3001 will start from zero at the time of
Main time timer - #3002
The value of variable #3002 can be read and written.
The time interval between two time instants can be measured in minutes, with an accuracy of about 20 ms.
At the time of
Counting is on as long as the START light is on, i.e., the time is being measured in the start condition of the control. It is located at time meter CUTTING2 of the parameter memory.
Suppression of block-by-block execution - #3003
If #3003=1, the control will not stop on completion of a block (in the state of single block mode) until that variable assumes value 0.
The value of the variable is 0 at
0 = not suppressed
1 = suppressed
179