<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Create custom H and M functions for CNC g-code</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6b4106ddf8/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6b4106ddf8/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/6b4106ddf8/</id><updated>2023-02-16T09:40:35.723000Z</updated><subtitle>Recent posts to Create custom H and M functions for CNC g-code</subtitle><entry><title>Create custom H and M functions for CNC g-code</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/6b4106ddf8/?limit=25#1c19" rel="alternate"/><published>2023-02-16T09:40:35.723000Z</published><updated>2023-02-16T09:40:35.723000Z</updated><author><name>cyril-gr</name><uri>https://forge.codesys.com/u/cyril-gr/</uri></author><id>https://forge.codesys.com960584e97a65373909d0cf15717f2bae4f8593bf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am developing a cartesian-like robot which will follow a certain pattern by the means of a g-code. While in motion, I want to use H functions to switch ON and OFF some devices and M functions to initiate processes as described in the following link:&lt;br/&gt;
H function: &lt;a href="https://product-help.schneider-electric.com/Machine%20Expert/V2.0/en/codesys_softmotion/codesys_softmotion/modules/_sm_cnc_din66025_hfunction.html" rel="nofollow"&gt;https://product-help.schneider-electric.com/Machine%20Expert/V2.0/en/codesys_softmotion/codesys_softmotion/modules/_sm_cnc_din66025_hfunction.html&lt;/a&gt;&lt;br/&gt;
M function: &lt;a href="https://product-help.schneider-electric.com/Machine%20Expert/V2.0/zh/codesys_softmotion/codesys_softmotion/modules/_sm_cnc_din66025_mfunction.html" rel="nofollow"&gt;https://product-help.schneider-electric.com/Machine%20Expert/V2.0/zh/codesys_softmotion/codesys_softmotion/modules/_sm_cnc_din66025_mfunction.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately, I couldn't manage to find any intel on how to create such function files nor how to link them to a g-code command. Does anyone know how to make it and/or could share some relevant references?&lt;/p&gt;
&lt;p&gt;I am using CodeSys v3.5 SP16 Patch 4 and a plc from Festo cpx-e-cec-m1.&lt;/p&gt;
&lt;p&gt;Thank you in advance!&lt;/p&gt;
&lt;p&gt;Cyril&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>