Convert TC2 Project to TC3 : Différence entre versions

[version en cours de rédaction][version en cours de rédaction]
 
(12 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 15 : Ligne 15 :
 
{{EPI}}
 
{{EPI}}
 
{{Tuto Step
 
{{Tuto Step
|Step_Title=<translate>Get connected to the Camera PC of the machine to be updated</translate>
+
|Step_Title=<translate>Get connected to the Camera PC of the machine to be updated</translate>
|Step_Content=<translate>You will need to get a backup of the TC2 project from this machine, and use it to set up all the correct IO links in the TC3 project</translate>
+
|Step_Content=<translate>You will need to get a backup of the TC2 project from this machine, and use it to set up all the correct IO links in the TC3 project
 +
 
 +
 
 +
 
 +
{{Idea|...If you do not have access to the original camera PC, you will need to get hold of an old PC (normally windows 7 or windows 8 PCs) with TwinCAT2 installed on it, and use this to connect to the Beckhoff PLC using "Open From Target". There are a number of old "CNC" Pcs in the setup room that can be used for this}}</translate>
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Get a backup of the original TSM file</translate>
 
|Step_Title=<translate>Get a backup of the original TSM file</translate>
|Step_Content=<translate># Dial in to Camera PC
+
|Step_Content=<translate>#Dial in to Camera / VM PC
# Open System manager
+
#Open System manager
# File->Save As
+
#File->Save As
# Rename it to [build number].[todays date]
+
#Rename it to [build number].[todays date]
# Copy to c:\twinCAT\stuga\ on the "New" camera PC</translate>
+
#Copy to c:\twinCAT\stuga\ on the "New" camera PC</translate>
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_Annotation_2020-06-16_144208.jpg
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_Annotation_2020-06-16_144208.jpg
 
|Step_Picture_01=Convert_Autoflow_TC2_Project_to_TC3_Annotation_2020-06-16_144304.jpg
 
|Step_Picture_01=Convert_Autoflow_TC2_Project_to_TC3_Annotation_2020-06-16_144304.jpg
Ligne 30 : Ligne 34 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Get copy of current PLC and Reset project</translate>
 
|Step_Title=<translate>Get copy of current PLC and Reset project</translate>
|Step_Content=<translate># Open the PLC Control program on the camera PC
+
|Step_Content=<translate>#Open the PLC Control program on the camera PC
# Note the version of software currently running (.pro)
+
#Note the version of software currently running (.pro)
# Find the .pro file in c:\TwinCAT\Stuga\
+
#Find the .pro file in c:\TwinCAT\Stuga\
# Copy to c:\twinCAT\stuga\ on the "New" camera PC
+
#Copy to c:\twinCAT\stuga\ on the "New" camera PC
# Also copy the latest PLC Reset project</translate>
+
#Also copy the latest PLC Reset project
 +
{{Info|...If the camera PC is not available, you can lookup the last installed version from the Control Systems Log and find the version backup from G:\Design\TwinCAT\Previous Versions}}<br /></translate>
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_dotpro.jpg
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_dotpro.jpg
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":829,"height":387,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.72,"scaleY":0.72,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/5/5e/Convert_Autoflow_TC2_Project_to_TC3_dotpro.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":146.27,"top":9.32,"width":86.82,"height":19.78,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":280,"width":600}
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":829,"height":387,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.72,"scaleY":0.72,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/5/5e/Convert_Autoflow_TC2_Project_to_TC3_dotpro.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":146.27,"top":9.32,"width":86.82,"height":19.78,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":280,"width":600}
Ligne 53 : Ligne 58 :
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
|Step_Title=<translate>Ensure Sourcetree is installed on the camera PC</translate>
+
|Step_Title=<translate>Create the clone to pull the latest tc3Multi and PLC_Reset</translate>
|Step_Content=<translate>Procedure described [https://stuga.dokit.app/wiki/Create_a_TwinCAT_Project_from_Scratch here] (up to step 5) if this has not been done already</translate>
+
|Step_Content=<translate>* Create the clone in c:\TwinCAT\[BuildNo]\Source
 +
* If an error is produced after cloning, just use the "Add" function to add the clone
 +
 
 +
<br /></translate>
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Replace the old PLC code with the version control latest</translate>
 
|Step_Title=<translate>Replace the old PLC code with the version control latest</translate>
 
|Step_Content=<translate>#Delete the old PLC projects
 
|Step_Content=<translate>#Delete the old PLC projects
#using Add existing item, add the PLC_Reset and tc3Multi PLC projects from c:\stuga\versionControl. Ensure Use Original Location is selected
+
#using Add existing item, add the tc3Multi  then PLC_Reset projects from c:\TwinCAT\[BuildNo]\Source.
 +
#Ensure Use Original project Location is selected
 
#Build the solution to create the instances ready for linking
 
#Build the solution to create the instances ready for linking
 
#Ensure the Port numbers are correct (851=tc3Multi, 852=PLC_Project)</translate>
 
#Ensure the Port numbers are correct (851=tc3Multi, 852=PLC_Project)</translate>
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_125956.jpg
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":357,"height":185,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.68,"scaleY":1.68,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/7/79/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_125956.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":186.94,"top":200.96,"width":317.44,"height":45.45,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":311,"width":600}
 
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
Ligne 89 : Ligne 96 :
 
{{Info|...A lot of the Autoflows have been modified on the EtherCAT network - eg a sensor input may have blown and the sensor has been moved to a different port. Using this method ensures you get exactly the same setup.}}
 
{{Info|...A lot of the Autoflows have been modified on the EtherCAT network - eg a sensor input may have blown and the sensor has been moved to a different port. Using this method ensures you get exactly the same setup.}}
  
<br /></translate>
+
<br />
 +
{{Warning|...Don't miss the links on the "Slices", these are one level down on the IO Device Tree}}</translate>
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_Linking_TC2_TC3.jpg
 
|Step_Picture_00=Convert_Autoflow_TC2_Project_to_TC3_Linking_TC2_TC3.jpg
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":3238,"height":1819,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.19,"scaleY":0.19,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/3/31/Convert_Autoflow_TC2_Project_to_TC3_Linking_TC2_TC3.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":233,"top":179.19,"width":100,"height":9.15,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":1.65,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1.64,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":521,"top":244.19,"width":100,"height":9.15,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":1.65,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1.64,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":337,"width":600}
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":3238,"height":1819,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.19,"scaleY":0.19,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/3/31/Convert_Autoflow_TC2_Project_to_TC3_Linking_TC2_TC3.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":233,"top":179.19,"width":100,"height":9.15,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":1.65,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1.64,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":521,"top":244.19,"width":100,"height":9.15,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":1.65,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1.64,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":337,"width":600}
 +
|Step_Picture_01=Convert_TC2_Project_to_TC3_Screenshot_2024-02-20_092135.JPG
 +
|Step_Picture_01_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":1369,"height":781,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.44,"scaleY":0.44,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/3/3f/Convert_TC2_Project_to_TC3_Screenshot_2024-02-20_092135.JPG","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":66.29,"top":32.38,"width":128.08,"height":59.61,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":545,"top":176.14,"width":100,"height":290.1,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":60,"top":197.82,"width":100,"height":56.74,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":342,"width":600}
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Change the inverterGoFwd links</translate>
 +
|Step_Content=<translate>TC2 software used a system of inverter objects to control the spindles, saw blade and extractor. The mapping will show InverterGoFwd mapping.
 +
 +
These need to be changed to the correct output numbers for the outputs in question.
 +
 +
On an Autoflow, these are
 +
 +
Slice MC03B (ModuleB)
 +
 +
Ch0 - Y62 Spindle Inverter
 +
 +
 +
Slice MC2F (module F)
 +
 +
Ch1 - Y97 Saw Blade
 +
 +
Ch 2 - Y98 Extractor</translate>
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Copy the Axis Links</translate>
 
|Step_Title=<translate>Copy the Axis Links</translate>
|Step_Content=<translate>The PLC links will be missing - reinstate them as per System Manager on old Camera PC</translate>
+
|Step_Content=<translate>The PLC links will be missing - reinstate them as per System Manager on old Camera PC
 +
 
 +
 
 +
If The 'Link to PLC' field is not viewable on Twincat 2 project use the below guide for the correct links required:
 +
 
 +
[[Naming Convention for Axis Drives]]</translate>
 +
|Step_Picture_00=Convert_TC2_Project_to_TC3_Capture.JPG
 +
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":405,"height":79,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.48,"scaleY":1.48,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/5/58/Convert_TC2_Project_to_TC3_Capture.JPG","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":301.02,"top":88.13,"width":561.52,"height":32.12,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":117,"width":600}
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
Ligne 101 : Ligne 137 :
 
|Step_Content=<translate>Right click and select delete</translate>
 
|Step_Content=<translate>Right click and select delete</translate>
 
|Step_Picture_00=Removing_TwinCAT3_Interpolation_Licence_Annotation_2020-09-11_162024.jpg
 
|Step_Picture_00=Removing_TwinCAT3_Interpolation_Licence_Annotation_2020-09-11_162024.jpg
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Change V and W axis PLC links</translate>
 +
|Step_Content=<translate>When converting for a ZX4 machine, the V and W axis links will need to be changed
 +
 +
 +
V = arrAxis[11]
 +
 +
W = arrAxis[12]
 +
 +
<br />{{Info|...This is needed because the original ZX4 number designations (7&8) overlapped those used on the SR and SY axis. This created a problem on the ZX5, because it used both a V axis and SR&SZ. Decision was made to give V and W their own axis numbers for future compatibility}}<br /></translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Add the reset link</translate>
 +
|Step_Content=<translate>Set a link from ibResetPLC on PLC_Reset to qbResetPLC on tc3Multi</translate>
 +
|Step_Picture_00=Convert_TC2_Project_to_TC3_Screenshot_2021-03-16_160039.jpg
 +
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":1053,"height":895,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":0.57,"scaleY":0.57,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"crossOrigin":"","cropX":0,"cropY":0,"src":"https://stuga.dokit.app/images/b/b8/Convert_TC2_Project_to_TC3_Screenshot_2021-03-16_160039.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":115,"top":488.23,"width":100,"height":18.79,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":392.27,"top":132.57,"width":318.15,"height":16.64,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":2,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"rx":0,"ry":0}],"height":510,"width":600}
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Ensure the front end has the latest software versions</translate>
 +
|Step_Content=<translate></translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Update the front end parameters</translate>
 +
|Step_Content=<translate>In params.saw, the following parameters must be updated
 +
 +
controllerType=5
 +
 +
amsnetId= [AmsNetId of the new Beckhoff PC]
 +
 +
twinCAT Address=[AmsNetId of the new Beckhoff PC]
 +
 +
AllWasteAtStart=1
 +
 +
useSawForYNotch=1</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Update the Control Systems log</translate>
 +
|Step_Content=<translate>Update
 +
 +
* Front End PC and OS
 +
* Back End PC and OS
 +
* Software versions</translate>
 
}}
 
}}
 
{{Notes}}
 
{{Notes}}

Version actuelle datée du 20 février 2024 à 10:22

Auteur avatarGareth Green | Dernière modification 20/02/2024 par Gareth Green en cours de rédaction

Introduction

The Beckhoff system provides a system for upgrading to TC3 from a TC2 project. This tutorial goes through the steps required to ensure the links and setup of the original TC2 project are copied through to TC3.

Étape 1 - Get connected to the Camera PC of the machine to be updated

You will need to get a backup of the TC2 project from this machine, and use it to set up all the correct IO links in the TC3 project


...If you do not have access to the original camera PC, you will need to get hold of an old PC (normally windows 7 or windows 8 PCs) with TwinCAT2 installed on it, and use this to connect to the Beckhoff PLC using "Open From Target". There are a number of old "CNC" Pcs in the setup room that can be used for this

Étape 2 - Get a backup of the original TSM file

  1. Dial in to Camera / VM PC
  2. Open System manager
  3. File->Save As
  4. Rename it to [build number].[todays date]
  5. Copy to c:\twinCAT\stuga\ on the "New" camera PC


Étape 3 - Get copy of current PLC and Reset project

  1. Open the PLC Control program on the camera PC
  2. Note the version of software currently running (.pro)
  3. Find the .pro file in c:\TwinCAT\Stuga\
  4. Copy to c:\twinCAT\stuga\ on the "New" camera PC
  5. Also copy the latest PLC Reset project
...If the camera PC is not available, you can lookup the last installed version from the Control Systems Log and find the version backup from G:\Design\TwinCAT\Previous Versions


Étape 4 - Convert the TC2 project to TC3

  1. Open Visual Studio
  2. Create a new TC3 project called [BuildNo] in c:\TwinCAT\Stuga\
  3. Make sure "Create Directory..." is Unticked
  4. Right Click on the project name and select ‘Load Project from TwinCAT 2.11 Version…’
  5. Click Cancel on the two windows asking to convert the PLC project
  6. Ignore or cancel any warnings about libraries (this part will be replaced later)

...Once created, you will have a copy of all the devices and boxes in the project with the correct naming.



Étape 5 - Create the clone to pull the latest tc3Multi and PLC_Reset

  • Create the clone in c:\TwinCAT\[BuildNo]\Source
  • If an error is produced after cloning, just use the "Add" function to add the clone


Étape 6 - Replace the old PLC code with the version control latest

  1. Delete the old PLC projects
  2. using Add existing item, add the tc3Multi then PLC_Reset projects from c:\TwinCAT\[BuildNo]\Source.
  3. Ensure Use Original project Location is selected
  4. Build the solution to create the instances ready for linking
  5. Ensure the Port numbers are correct (851=tc3Multi, 852=PLC_Project)

Étape 7 - Connect to the Beckhoff Backend PC

Add a new route

Étape 8 - Update the EtherCAT Device Adaptor

Navigate to the Adaptor settings and search for the correct one on the new Beckhoff PC

...When you converted the TC2 project, it imported all the etherCAT boxes, but critically, it also imported the "EtherCAT Device". This is the hardware spec of the original Beckhoff PC, with a MAC address, etc. You now need to change this in the project to the EtherCAT device on the new Beckhoff PC


Étape 9 - Add the IO Links

...This is a LOT easier on a dual screen PC!
...Regrettably, the upgrade will not keep all the IO links, so these need to be entered again manually


Using System Manager on the Camera PC, create new copies of all the links on all devices from the System Manager to the new project.

...A lot of the Autoflows have been modified on the EtherCAT network - eg a sensor input may have blown and the sensor has been moved to a different port. Using this method ensures you get exactly the same setup.


...Don't miss the links on the "Slices", these are one level down on the IO Device Tree


Étape 10 - Change the inverterGoFwd links

TC2 software used a system of inverter objects to control the spindles, saw blade and extractor. The mapping will show InverterGoFwd mapping.

These need to be changed to the correct output numbers for the outputs in question.

On an Autoflow, these are

Slice MC03B (ModuleB)

Ch0 - Y62 Spindle Inverter


Slice MC2F (module F)

Ch1 - Y97 Saw Blade

Ch 2 - Y98 Extractor

Étape 11 - Copy the Axis Links

The PLC links will be missing - reinstate them as per System Manager on old Camera PC


If The 'Link to PLC' field is not viewable on Twincat 2 project use the below guide for the correct links required:

Naming Convention for Axis Drives



Étape 12 - Remove the "Interpolate" Axis group

Right click and select delete



Étape 13 - Change V and W axis PLC links

When converting for a ZX4 machine, the V and W axis links will need to be changed


V = arrAxis[11]

W = arrAxis[12]


...This is needed because the original ZX4 number designations (7&8) overlapped those used on the SR and SY axis. This created a problem on the ZX5, because it used both a V axis and SR&SZ. Decision was made to give V and W their own axis numbers for future compatibility

Étape 14 - Add the reset link

Set a link from ibResetPLC on PLC_Reset to qbResetPLC on tc3Multi



Étape 15 - Ensure the front end has the latest software versions

Étape 16 - Update the front end parameters

In params.saw, the following parameters must be updated

controllerType=5

amsnetId= [AmsNetId of the new Beckhoff PC]

twinCAT Address=[AmsNetId of the new Beckhoff PC]

AllWasteAtStart=1

useSawForYNotch=1

Étape 17 - Update the Control Systems log

Update

  • Front End PC and OS
  • Back End PC and OS
  • Software versions

Commentaires

Draft