Create a TwinCAT Project from Scratch : Différence entre versions

[version en cours de rédaction][version en cours de rédaction]
Ligne 13 : Ligne 13 :
 
{{EPI}}
 
{{EPI}}
 
{{Tuto Step
 
{{Tuto Step
|Step_Title=<translate></translate>
+
|Step_Title=<translate>Start a new project</translate>
|Step_Content=<translate></translate>
+
|Step_Content=<translate># Open Visual Studio
 +
# Click on New project
 +
# Choose TwinCAT projects->TwinCAT XAE Project (xml format)
 +
# Name is build number (no Suffix)
 +
# Location is c:\TwinCAT\Stuga\
 +
# Untick "Create Directory for solution"
 +
 
 +
This creates the template</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Add PLC Project for Reset</translate>
 +
|Step_Content=<translate># Add Existing Item
 +
# Navigate to g:\Design\TwinCAT3\PLC_Reset_1_1
 +
# Select the .Plcproj file
 +
# Copy Project to solution file</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Add PLC Project for tcMulti</translate>
 +
|Step_Content=<translate># Add Existing Item
 +
# Navigate to g:\Design\TwinCAT3\tcMulti_6_24
 +
# Select the .Plcproj file
 +
# Copy Project to solution file</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Add TwinSAFE project</translate>
 +
|Step_Content=<translate>{{Info|...From Z071 there is no twinSAFE project as the Estop circuit is hard wired}}</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Add the route to the PLC</translate>
 +
|Step_Content=<translate># From Dropdown box select the Build number (If it does not exist we will need to add a new route)
 +
# If there is a request for a platform change, click Yes
 +
# On success, the Route dropdown will not read Error</translate>
 +
}}
 +
{{Tuto Step
 +
|Step_Title=<translate>Scan for Devices</translate>
 +
|Step_Content=<translate># Expand IO
 +
# Right click on devices, Scan
 +
# Untick RT-Ethernet
 +
# Untick COM-Port
 +
# Just have the EtherCAT ports
 +
# Scan for boxes - Yes
 +
# If there is a request for New Device Type, Click Apply to All, Click Yes
 +
# Check the Devices and boxes match the expected EtherCAT setup
 +
 
 +
 
 +
Repeat this until the physical network matches the scanned network
 +
 
 +
{{Idea|...Check the green lights on the etherCAT boxes for connection status. Flickering Green means it is OK}}<br /></translate>
 
}}
 
}}
 
{{Notes}}
 
{{Notes}}
 
{{PageLang
 
{{PageLang
 +
|Language=en
 
|SourceLanguage=none
 
|SourceLanguage=none
 
|IsTranslation=0
 
|IsTranslation=0
|Language=en
 
 
}}
 
}}
 
{{Tuto Status
 
{{Tuto Status
 
|Complete=Draft
 
|Complete=Draft
 
}}
 
}}

Version du 20 novembre 2019 à 14:41

Auteur avatarGareth Green | Dernière modification 12/09/2023 par Gareth Green en cours de rédaction

Pas encore d'image

Étape 1 - Start a new project

  1. Open Visual Studio
  2. Click on New project
  3. Choose TwinCAT projects->TwinCAT XAE Project (xml format)
  4. Name is build number (no Suffix)
  5. Location is c:\TwinCAT\Stuga\
  6. Untick "Create Directory for solution"

This creates the template

Étape 2 - Add PLC Project for Reset

  1. Add Existing Item
  2. Navigate to g:\Design\TwinCAT3\PLC_Reset_1_1
  3. Select the .Plcproj file
  4. Copy Project to solution file

Étape 3 - Add PLC Project for tcMulti

  1. Add Existing Item
  2. Navigate to g:\Design\TwinCAT3\tcMulti_6_24
  3. Select the .Plcproj file
  4. Copy Project to solution file

Étape 4 - Add TwinSAFE project

...From Z071 there is no twinSAFE project as the Estop circuit is hard wired

Étape 5 - Add the route to the PLC

  1. From Dropdown box select the Build number (If it does not exist we will need to add a new route)
  2. If there is a request for a platform change, click Yes
  3. On success, the Route dropdown will not read Error

Étape 6 - Scan for Devices

  1. Expand IO
  2. Right click on devices, Scan
  3. Untick RT-Ethernet
  4. Untick COM-Port
  5. Just have the EtherCAT ports
  6. Scan for boxes - Yes
  7. If there is a request for New Device Type, Click Apply to All, Click Yes
  8. Check the Devices and boxes match the expected EtherCAT setup


Repeat this until the physical network matches the scanned network

...Check the green lights on the etherCAT boxes for connection status. Flickering Green means it is OK

Commentaires

Draft