pasterbali.blogg.se

Karel software solution fanuc syntax
Karel software solution fanuc syntax














When G00X# is executed as 1/ 1000mm, CNC assign 123456 to #1, and actual instruction value is G00X12346. when using expression to specify variable, put expression in bracket.Ĭited variable value is rounded automatically according to minimum setting unit. To use variable value in program, variable number follows it after appointing. When variable value is defined in program, decimal can be ignored.įor example : When define #1 = 123 ; actual value of variable #1 is 123.000. If output oversteps effective range, P/S warning NO.111 is issued. Local variable and common variable can have value 0 or values as following shows: System variable is used to read and write transformation of all kinds of data when CNC is running, such as tool current position and compensation value. Data of variable #500-#999 is stored even if power is cut. when power is cut, variable #100-#199 are initialized to empty. And when macroprogram is called, independent variable assign local variable.Ĭommon variable has the same meaning in different macro program. Local variable is only used to store data in macroprogram, such as operation outcome When power is cut, local variable is initialized to empty. The variable is always empty, no value is assigned to the variable. Variable can be divided into four types according to variable number. Here, expression must be closed in bracket. Variable is appointed by variable number ( # ) and latter variable number.Įxpression can be used to appoint variable number. Variable is permitted by computer, but user macro is not. When variable is used, variable value can be changed by program or operation in MDI panel. When user macro is used, numerical value can be appointed directly or by variable.

KAREL SOFTWARE SOLUTION FANUC SYNTAX CODE

General workpiece program appoints G code and ship distance with numerical value directly for example, GO1 and X100.0.














Karel software solution fanuc syntax