Programming manual
CNC 8055
CNC 8055i
B.
·M· & ·EN· MODELS
SOFT: V02.2X
·451·
Program control instructions
PROGRAM CONTROL INSTRUCTIONS
Display instructions.
Enabling and disabling instructions.
Flow control instructions.
Subroutine instructions.
( section 14.2 )
(ERROR integer, "error text")
Stops the execution of the program and displays the indicated error.
(MSG "message")
Displays the indicated message.
(DGWZ expression 1, ..... expression 6)
Define the graphics area.
( section 14.3 )
(ESBLK and DSBLK)
The CNC executes all the blocks between ESBLK and DSBLK as if it were a single block.
(ESTOP and DSTOP)
Enabling (ESTOP) and disabling (DSTOP) of the Stop key and the external Stop signal (PLC).
(EFHOLD and DFHOLD)
Enabling (EFHOLD) and disabling (DFHOLD) of the Feed-hold input (PLC).
( section 14.4 )
( GOTO N(expression) )
It causes a jump within the same program, to the block defined by the label N(expression).
( RPT N(expression), N(expression), P(expression) )
It repeats the execution of the portion of the program between the blocks defined by means of the labels
N(expression).
(IF condition <action1> ELSE <action2>)
It analyzes the given condition that must be a relational expression. If the condition is true (result equal to 1),
<action1> will be executed, otherwise (result equal to 0) <action2> will be executed.
( section 14.5 )
(SUB integer)
Subroutine definition.
( RET )
End of subroutine.
( CALL (expression) )
Call to a subroutine.
(PCALL (expression), (assignment instruction), (assignment instruction),...) )
Call to a subroutine. In addition, using assignment instructions, it is possible to initialize up to a maximum of 26
local parameters of this subroutine.
(MCALL (expression), (assignment instruction), (assignment instruction),...) )
Same as the PCALL instruction, but making the indicated subroutine modal.
( MDOFF )
Cancellation of modal subroutine.