Saving parameters after shut down

More
13 years 4 months ago - 13 years 4 months ago #35443 by mariusl
Jorge,
I dont understand your problem exactly but let me try and explain as I see it.

I would connect the iocontrol.0.tool-number to the file like this:
Code:
net tool_number_save iocontrol.0.tool-number => paramsaver.invalueS-00 net tool_number_read paramsaver.invalueS-00 => classicladder.0.your-tool-number-input

This way you save the last tool_number in the file and you also connect it to your classicladder as input. In the classic ladder you could compare the requested_tool_number to the current tool_number and decide how many positions to turn to get to the correct tool. The saved tool_number is always the current tool_number at start up.

EDIT: I would write a component to handle the logic.

Regards
Marius


www.bluearccnc.com

Last edit: 13 years 4 months ago by mariusl.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago - 13 years 4 months ago #35444 by ArcEye
Hi

.............but I can not make my LinuxCNC, assume the value of the variable paramsaver.............


The automatic updating of tool number when Axis opens has come up recently in another thread
www.linuxcnc.org/index.php/english/forum...urret?start=30#35273

3 options are

Use M61 to update the number in gcode

Use M6Tn to update the number by trying to change to the number already in the spindle, so it will do nothing (if your toolchanger works that way) and update the number.

Change iocontrol so that a tool change sequence can be triggered for the current tool number as determined by the toolchanger component, or whatever is connected to the trigger pin.
Again will do nothing and the number is updated.

I used the latter way to write a new version of iocontrol, which is what tld70 and cncbasher are using.

If you want to use the modified iocontrol to do it, a rip build version and install build version for 2.6 are on the thread that tld70 mentioned.
www.linuxcnc.org/index.php/english/forum...-tool?start=30#28977

regards
Last edit: 13 years 4 months ago by ArcEye.

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #144951 by jurod
Hi people
Is it possible to use paramsaver in the gladevcp panel?
If so, how?

In file pyvcp_options.hal

########################## FILE SAVER ###################################
loadusr -W paramsaver f=10 s=10 b=1 filename=memory_pins onstart=1 onexit=1

net material_out pyvcp.spinbox.0.param_pin <= paramsaver.outvalueF-000
net material_in pyvcp.mat => paramsaver.invalueF-000

net podlozka_out pyvcp.spinbox.1.param_pin <= paramsaver.outvalueF-001
net podlozka_in pyvcp.pris => paramsaver.invalueF-001

net fmdx_in gladevcp.fmdx-f paramsaver.invalueF-002
#net fmdx_out gladevcp.fmdx-s paramsaver.outvalueF-000



########################## FILE SAVER END ###################################

In file HCNC.ui


<child>
<object class="GtkLabel" id="fmdxlab">
<property name="width_request">40</property>
<property name="height_request">25</property>
<property name="visible">True</property>
<property name="label" translatable="yes">DX</property>
<attributes>
<attribute name="foreground" value="#000000"/>
</attributes>
</object>
<packing>
<property name="x">2</property>
<property name="y">25</property>
</packing>
</child>
<child>
<object class="HAL_SpinButton" id="fmdx">
<property name="width_request">100</property>
<property name="height_request">25</property>
<property name="visible">TRUE</property>
<property name="can_focus">TRUE</property>
<property name="digits">3</property>
<property name="tooltip_text" translatable="yes">Pozadovany rozmer v smere DX</property>
<property name="invisible_char">&#x25CF;</property>
<property name="adjustment">fmdxadj</property>
</object>

<packing>
<property name="x">50</property>
<property name="y">25</property>
</packing>
<object class="GtkAdjustment" id="fmdxadj">
<property name="lower">1</property>
<property name="upper">3600</property>
<property name="value">2152</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
<property name="page_size">10</property>

</object>
</child>

Please Log in or Create an account to join the conversation.

More
7 years 1 month ago #145160 by andypugh
There is a simpler way to save setting in GladeVCP than paramsaver:
linuxcnc.org/docs/2.7/html/gui/gladevcp....ariables_in_gladevcp

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 5 years 10 months ago #154481 by jurod
Hi
I have problem with paramsaver syntax. "safe tool change" . I would like the syntax and links to hal components. I need at the toolchange, write new tool to paramsavers. I would like to look into yours hal and ini.
I don't know how to use M68, with motion.analog-out-xx.

My hal:
# _DO NOT_ include your HAL commands here.
# Put custom HAL commands in custom_postgui.hal
# The commands in this file are run after the GUI loads

# **** Setup of spindle speed display using pyvcp -START ****

net spindle-vel-cmd-rpm-abs => pyvcp.spindle-speed

#prisavky s materialom
net appc halui.mdi-command-10 pyvcp.appc
net ap halui.mdi-command-12 pyvcp.ap
net am halui.mdi-command-13 pyvcp.am
net nul halui.mdi-command-14 pyvcp.nul


########################## FILE SAVER ###################################
#
loadusr -W paramsaver f=3 s=1 b=0 filename=memory_pins onstart=1 onexit=1

net material_in pyvcp.mat => paramsaver.invalueF-000
net material_out pyvcp.spinbox.0.param_pin <= paramsaver.outvalueF-000

net podlozka_in pyvcp.pris => paramsaver.invalueF-001
net podlozka_out pyvcp.spinbox.1.param_pin <= paramsaver.outvalueF-001

############################### Memory tool #########################################

net tool_number_in iocontrol.0.tool-number => paramsaver.invalueS-000
net tool_number_out ?????????????????? <= paramsaver.outvalueS-000

net writetrigger motion.digital-out-03 paramsaver.writetrigger
net readtrigger motion.digital-out-04 paramsaver.readtrigger

########################## FILE SAVER END ###################################

.......
Last edit: 5 years 10 months ago by jurod.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #154666 by jurod
Please help me. Some example, link, reference, anythink.

Please Log in or Create an account to join the conversation.

Time to create page: 0.204 seconds
Powered by Kunena Forum