LUA Tool Changer Commands

tool_changer.set_max_tools

This command is used to set the maximum number of tools allowed in a custom tool changer script. This will determine the number of tool slots offered in the F4 tool table for assignment

 

Syntax & Parameters

masso.tool_changer.set_max_tools (16) - the number in brackets is the maximum number of tools in your tool changer

 

 

 

Example program

masso.tool_changer.set_max_tools(16)

This sets the maximum number of tools in the tool changer to 16

 

 

 

 

 

 

tool_changer.set_h

This command is used to set a LUA or tool changer output High

 

 

Syntax & Parameters

masso.tool_changer.set_h (tool changer Output number) - This set the output in brackets to High

 

 

Example program

masso.tool _changer.set_h(1)

This set tool changer output-1 to High

 

 

 

 

tool_changer.set_l

This command is used to set a LUA or tool changer output Low

 

 

Syntax & Parameters

masso.tool_changer.set_l (tool changer Output number) - This set the output in brackets to Low

 

 

Example program

masso.tool _changer.set_l(1)

This set tool changer output-1 to low

 

 

 

 

 

tool_changer.output_status

This command is used to return the tool changer output status

1 - High,  0 - Low, 3 - Not assigned in F1 screen

The output can be stored in a variable

 

 

Syntax & Parameters

masso.tool_changer.output_status (tool changer Output number) - This returns the status of the output in brackets 

 

 

Example program

out1 = masso.tool_changer.output_status(1)

This returns tool changer  output-1 status with 1 for High and 0 for low and stores the result in a variable called out1

 

 

 

 

tool_changer.input_status()

This command is used to return the tool changer  input

1 - High,  0 - Low, 3 - Not assigned in F1 screen

The output can be stored in a variable

 

 

Syntax & Parameters

masso.tool_changer.input_status()(tool changer Input number) - This returns the status of the input in brackets 

 

 

Example program

in1 = masso.tool_changer.input_status(1)

This returns tool changer  Input-1 status with 1 for High and 0 for low and stores the result in a variable called in1