<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Postprocessor - Simply read of coolant table? in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/postprocessor-simply-read-of-coolant-table/m-p/10929234#M116633</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m currently looking for a simply way to read the variables from the coolant table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today i use the old method to read the first two coolant states from the tool (Flood and Mist) and activate them with M8 and M10:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var mapCoolantTable = new Table(
  [9, 8, 10],
  {initial:COOLANT_OFF, force:true},
  "Invalid coolant mode"
);

var c = mapCoolantTable.lookup(tool.coolant);
    if (c) {
      writeBlock(mFormat.format(c));
    } else {
      warning(localize("Coolant not supported."));
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i looking for simple method to read the var c from the "new" cooland table method (here from the fanuc pp):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var coolants = [
  {id:COOLANT_FLOOD, 8},
  {id:COOLANT_MIST,  10},
  {id:COOLANT_THROUGH_TOOL, 41},
  {id:COOLANT_AIR, 42},
  {id:COOLANT_AIR_THROUGH_TOOL, 43},
  {id:COOLANT_SUCTION, 44},
  {id:COOLANT_FLOOD_MIST, 45},
  {id:COOLANT_FLOOD_THROUGH_TOOL, 46},
  {id:COOLANT_OFF, 9}
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i have to adapt the Var c line to read from the var coolant array my numbers as output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var c = mapCoolantTable.lookup(tool.coolant);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best case would be something like this to have a easy read function:&lt;/P&gt;&lt;P&gt;var c = mapcoolantsArray.lookup(tool.coolant)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Feb 2022 17:23:32 GMT</pubDate>
    <dc:creator>justontour</dc:creator>
    <dc:date>2022-02-04T17:23:32Z</dc:date>
    <item>
      <title>Postprocessor - Simply read of coolant table?</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/postprocessor-simply-read-of-coolant-table/m-p/10929234#M116633</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i´m currently looking for a simply way to read the variables from the coolant table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Today i use the old method to read the first two coolant states from the tool (Flood and Mist) and activate them with M8 and M10:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var mapCoolantTable = new Table(
  [9, 8, 10],
  {initial:COOLANT_OFF, force:true},
  "Invalid coolant mode"
);

var c = mapCoolantTable.lookup(tool.coolant);
    if (c) {
      writeBlock(mFormat.format(c));
    } else {
      warning(localize("Coolant not supported."));
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i looking for simple method to read the var c from the "new" cooland table method (here from the fanuc pp):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var coolants = [
  {id:COOLANT_FLOOD, 8},
  {id:COOLANT_MIST,  10},
  {id:COOLANT_THROUGH_TOOL, 41},
  {id:COOLANT_AIR, 42},
  {id:COOLANT_AIR_THROUGH_TOOL, 43},
  {id:COOLANT_SUCTION, 44},
  {id:COOLANT_FLOOD_MIST, 45},
  {id:COOLANT_FLOOD_THROUGH_TOOL, 46},
  {id:COOLANT_OFF, 9}
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do i have to adapt the Var c line to read from the var coolant array my numbers as output?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;var c = mapCoolantTable.lookup(tool.coolant);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best case would be something like this to have a easy read function:&lt;/P&gt;&lt;P&gt;var c = mapcoolantsArray.lookup(tool.coolant)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Feb 2022 17:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/postprocessor-simply-read-of-coolant-table/m-p/10929234#M116633</guid>
      <dc:creator>justontour</dc:creator>
      <dc:date>2022-02-04T17:23:32Z</dc:date>
    </item>
  </channel>
</rss>

