<br />{{Info|...This is needed because the original ZX4 number designations (7&8) overlapped those used on the SR axis. This created a problem on the ZX5, becasue it needed both. Decision was made to give V and W their own axis numbers for future compatibility}}<br /></translate>
+
<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>
}}
}}
{{Notes}}
{{Notes}}
Version du 4 octobre 2020 à 08:14
How to convert a TwinCAT2 project on an older Autoflow to TwinCAT3. This needs to be done when updating to Windows 10
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
Étape 2 - Get a backup of the original TSM file
Dial in to Camera PC
Open System manager
File->Save As
Rename it to [build number].[todays date]
Copy to c:\twinCAT\stuga\ on the "New" camera PC
Étape 3 - Get copy of current PLC and Reset project
Open the PLC Control program on the camera PC
Note the version of software currently running (.pro)
Find the .pro file in c:\TwinCAT\Stuga\
Copy to c:\twinCAT\stuga\ on the "New" camera PC
Also copy the latest PLC Reset project
Étape 4 - Convert the TC2 project to TC3
Open Visual Studio
Create a new TC3 project called [BuildNo] in c:\TwinCAT\Stuga\
Make sure "Create Directory..." is Unticked
Right Click on the project name and select ‘Load Project from TwinCAT 2.11 Version…’
Click Cancel on the two windows asking to convert the PLC project
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 - Ensure Sourcetree is installed on the camera PC
Procedure described here (up to step 5) if this has not been done already
Étape 6 - Replace the old PLC code with the version control latest
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
Build the solution to create the instances ready for linking
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.
Étape 10 - Copy the Axis Links
The PLC links will be missing - reinstate them as per System Manager on old Camera PC
Étape 11 - Remove the "Interpolate" Axis group
Right click and select delete
Étape 12 - 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
Commentaires
ennone0Draft
×
Erreur de saisie dans le nom du tutoriel
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #
Connexion
Pas encore enregistré ? Créez un compte pour profiter de toutes les fonctionnalités du service !