[version en cours de rédaction] | [version en cours de rédaction] |
(Page créée avec « {{Tuto Details |Description=<translate>How to create a TwinCAT project from an existing project on a similar machine</translate> |Categories=Software |Difficulty=Very har... ») |
|||
Ligne 8 : | Ligne 8 : | ||
}} | }} | ||
{{Introduction | {{Introduction | ||
− | |Introduction=<translate>If you are confident and proficient in using the Visual Studio editor to | + | |Introduction=<translate>If you are confident and proficient in using the Visual Studio editor to create TwinCAT projects, you can shortcut a lot of the data inputting by copying and modifying an existing project. This will keep the naming conventions and links exactly the same |
{{Warning|...This should only be attempted if the machine has exactly the same EtherCAT box, drive and module setup}}<br /></translate> | {{Warning|...This should only be attempted if the machine has exactly the same EtherCAT box, drive and module setup}}<br /></translate> | ||
Ligne 27 : | Ligne 27 : | ||
|Step_Title=<translate>Paste the solution</translate> | |Step_Title=<translate>Paste the solution</translate> | ||
|Step_Content=<translate>Paste the solution on the ZX5 front end PC in C:/TwinCAT/Stuga.</translate> | |Step_Content=<translate>Paste the solution on the ZX5 front end PC in C:/TwinCAT/Stuga.</translate> | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Open and rename</translate> | ||
+ | |Step_Content=<translate>Open Solution and... | ||
+ | |||
+ | 1: rename the solution to the current build (i.e. Z067). | ||
+ | |||
+ | 2: rename the project to the current build. </translate> | ||
+ | |Step_Picture_00=TB0422_Commissioning_ZX5_Software_2018_4d0422_Commissioning_ZX5_Software_2018.jpg | ||
+ | |Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":-8,"top":8,"width":1067,"height":651,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":2.17,"scaleY":2.17,"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/a/ac/TB0422_Commissioning_ZX5_Software_2018_4d0422_Commissioning_ZX5_Software_2018.jpg","filters":[]},{"type":"wfnumberedbullet","version":"2.4.6","originX":"left","originY":"top","left":371,"top":191.98,"width":25,"height":25,"fill":"rgb(0,0,0)","stroke":"#FF0000","strokeWidth":0,"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,"objects":[{"type":"circle","version":"2.4.6","originX":"center","originY":"center","left":0,"top":0,"width":24,"height":24,"fill":"#FF0000","stroke":null,"strokeWidth":1,"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,"radius":12,"startAngle":0,"endAngle":6.283185307179586},{"type":"text","version":"2.4.6","originX":"center","originY":"center","left":0,"top":0,"width":7.79,"height":15.82,"fill":"rgba(255,255,255,255)","stroke":null,"strokeWidth":1,"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,"text":"1","fontSize":14,"fontWeight":"normal","fontFamily":"arial","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"styles":{} }],"number":1},{"type":"wfnumberedbullet","version":"2.4.6","originX":"left","originY":"top","left":179,"top":226.97,"width":25,"height":25,"fill":"rgb(0,0,0)","stroke":"#FF0000","strokeWidth":0,"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,"objects":[{"type":"circle","version":"2.4.6","originX":"center","originY":"center","left":0,"top":0,"width":24,"height":24,"fill":"#FF0000","stroke":null,"strokeWidth":1,"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,"radius":12,"startAngle":0,"endAngle":6.283185307179586},{"type":"text","version":"2.4.6","originX":"center","originY":"center","left":0,"top":0,"width":7.79,"height":15.82,"fill":"rgba(255,255,255,255)","stroke":null,"strokeWidth":1,"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,"text":"2","fontSize":14,"fontWeight":"normal","fontFamily":"arial","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"styles":{} }],"number":2}],"height":447.13375796178343,"width":600} | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Update MAC address</translate> | ||
+ | |Step_Content=<translate>{{Info|...Because you are working on a new PC, the physical hardware has changed. You need tell the project that the hardware is different}} | ||
+ | |||
+ | The hardware can use 1 or 2 devices. For the EtherCAT network port device: | ||
+ | |||
+ | # Double click | ||
+ | # Device MAC Addresses, Device 4 > Adapter > select OS (NDIS) > Search > EtherCAT. This should automatically update the mac address. | ||
+ | |||
+ | |||
+ | For the NDIS (PCI) Device | ||
+ | |||
+ | Device 1 > Adapter > PIC > Search > BUS.</translate> | ||
+ | |Step_Picture_00=TB0422_Commissioning_ZX5_Software_2018_4d0422_Commissioning_ZX5_Software_2018.jpg | ||
+ | |Step_Picture_01=TB0422_Commissioning_ZX5_Software_2018_5d0422_Commissioning_ZX5_Software_2018.jpg | ||
+ | }} | ||
+ | {{Tuto Step | ||
+ | |Step_Title=<translate>Update EtherCAT devices</translate> | ||
+ | |Step_Content=<translate>Update EtherCAT devices. This compares the solution’s EtherCAT boxes to the ones on the current build. Any differences between the current solution and the current build will be highlighted and explained by the system. Issues highlighted in RED are completely different to what the solution would expect. Issues highlighted in BLUE are ok, this suggests that a new version of hardware is being used but is compatible with the solution. | ||
+ | |||
+ | To do this right click on the target device and press “Scan”. | ||
+ | |||
+ | NOTE: If this does not work, repeat steps, save changes and online reset (Right click device x).</translate> | ||
}} | }} | ||
{{Notes}} | {{Notes}} | ||
{{PageLang | {{PageLang | ||
+ | |Language=en | ||
|SourceLanguage=none | |SourceLanguage=none | ||
|IsTranslation=0 | |IsTranslation=0 | ||
− | |||
}} | }} | ||
{{Tuto Status | {{Tuto Status | ||
|Complete=Draft | |Complete=Draft | ||
}} | }} |
How to create a TwinCAT project from an existing project on a similar machine
Auteur Gareth Green | Dernière modification 21/11/2019 par Gareth Green en cours de rédaction ⧼frevu-button-review-label⧽
Pas encore d'image
How to create a TwinCAT project from an existing project on a similar machine
TwinCAT, Project, Existing
If you are confident and proficient in using the Visual Studio editor to create TwinCAT projects, you can shortcut a lot of the data inputting by copying and modifying an existing project. This will keep the naming conventions and links exactly the same
The build needs to be the same machine type and have an identical EtherCAT box and drive setup
You can create a backup in three ways
Paste the solution on the ZX5 front end PC in C:/TwinCAT/Stuga.
Open Solution and...
1: rename the solution to the current build (i.e. Z067).
2: rename the project to the current build.
The hardware can use 1 or 2 devices. For the EtherCAT network port device:
For the NDIS (PCI) Device
Device 1 > Adapter > PIC > Search > BUS.
Update EtherCAT devices. This compares the solution’s EtherCAT boxes to the ones on the current build. Any differences between the current solution and the current build will be highlighted and explained by the system. Issues highlighted in RED are completely different to what the solution would expect. Issues highlighted in BLUE are ok, this suggests that a new version of hardware is being used but is compatible with the solution.
To do this right click on the target device and press “Scan”.
NOTE: If this does not work, repeat steps, save changes and online reset (Right click device x).
en none 0 Draft
Vous avez entré un nom de page invalide, avec un ou plusieurs caractères suivants :
< > @ ~ : * € £ ` + = / \ | [ ] { } ; ? #