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

[version en cours de rédaction][version en cours de rédaction]
Ligne 15 : Ligne 15 :
 
{{EPI}}
 
{{EPI}}
 
{{Tuto Step
 
{{Tuto Step
|Step_Title=<translate>Add Drive Configurator for AX8000 drives (if not installed already)</translate>
+
|Step_Title=<translate>Add Drive Manager 2 for AX8000 drives (if not installed already)</translate>
 
|Step_Content=<translate>{{Info|...This step needs to be done for the AX8000 drives only}}
 
|Step_Content=<translate>{{Info|...This step needs to be done for the AX8000 drives only}}
  
Ligne 100 : Ligne 100 :
 
|Step_Picture_03=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_132706.jpg
 
|Step_Picture_03=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_132706.jpg
 
|Step_Picture_04=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_132815.jpg
 
|Step_Picture_04=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_132815.jpg
}}
 
{{Tuto Step
 
|Step_Title=<translate>Install Drive Manager 2 Project</translate>
 
|Step_Content=<translate># Note which Device number has the drive in it
 
# Left-click on ''FILE.'' A new context menu open
 
# Move the mouse to ''Add.''
 
# Left-click on ''New Project''.
 
# Select TwinCAT Drive manager 2 on left
 
# Click on TwinCAT Drive manager 2 Project on right
 
# Save in the folder for the project (c:\TwinCAT\Stuga\[BuildNo])
 
# EtherCAT master will be the device that has the drive in from Step 1
 
# Leave the basic settings, Ok to scan
 
{{Info|1=...More information from Beckhoff https://infosys.beckhoff.com/english.php?content=../content/1033/ax8000_inbetriebnahme/3746354955.html&id=1243614138563339940}}</translate>
 
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
Ligne 155 : Ligne 142 :
 
|Step_Picture_04=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.jpg
 
|Step_Picture_04=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.jpg
 
|Step_Picture_04_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":11,"top":16,"width":1050,"height":813,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.29,"scaleY":1.29,"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/9/97/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.jpg","filters":[]},{"type":"wfellipse","version":"2.4.6","originX":"center","originY":"center","left":543.72,"top":97.28,"width":58.97,"height":58.97,"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":29.482969056283775,"ry":29.482969056283775},{"type":"wfarrow2line","version":"2.4.6","originX":"center","originY":"center","left":499.5,"top":69,"width":63,"height":42,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":4,"strokeDashArray":null,"strokeLineCap":"round","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,"x1":-31.5,"x2":31.5,"y1":-21,"y2":21,"x2a":19.296595683044963,"y2a":3.249593720792669,"x2b":10.421392543441295,"y2b":16.562398430198165},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":468,"top":48,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":531,"top":90,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"textbox","version":"2.4.6","originX":"center","originY":"center","left":437.54,"top":42,"width":114.89,"height":22.6,"fill":"#FF0000","stroke":"#FF0000","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":"Save All","fontSize":20,"fontWeight":"normal","fontFamily":"sans-serif","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"minWidth":20,"styles":{} }],"height":450,"width":600}
 
|Step_Picture_04_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":11,"top":16,"width":1050,"height":813,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.29,"scaleY":1.29,"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/9/97/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.jpg","filters":[]},{"type":"wfellipse","version":"2.4.6","originX":"center","originY":"center","left":543.72,"top":97.28,"width":58.97,"height":58.97,"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":29.482969056283775,"ry":29.482969056283775},{"type":"wfarrow2line","version":"2.4.6","originX":"center","originY":"center","left":499.5,"top":69,"width":63,"height":42,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":4,"strokeDashArray":null,"strokeLineCap":"round","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,"x1":-31.5,"x2":31.5,"y1":-21,"y2":21,"x2a":19.296595683044963,"y2a":3.249593720792669,"x2b":10.421392543441295,"y2b":16.562398430198165},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":468,"top":48,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":531,"top":90,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"textbox","version":"2.4.6","originX":"center","originY":"center","left":437.54,"top":42,"width":114.89,"height":22.6,"fill":"#FF0000","stroke":"#FF0000","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":"Save All","fontSize":20,"fontWeight":"normal","fontFamily":"sans-serif","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"minWidth":20,"styles":{} }],"height":450,"width":600}
}}
 
{{Tuto Step
 
|Step_Title=<translate>Add Drive Configurator</translate>
 
|Step_Content=<translate>{{Info|...This step needs to be done for the AX8000 drives only}}</translate>
 
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
Ligne 172 : Ligne 155 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Add Axis Task</translate>
 
|Step_Title=<translate>Add Axis Task</translate>
|Step_Content=<translate>Axis task may need to be added under the MOTION tree:
+
|Step_Content=<translate>A smooth setup will have detected the axes and added them under the MOTION tab already.
 +
 
  
# Add New Item
+
if not, an axis task may need to be added under the MOTION tree:
# NC/PTP Configuration
+
 
# Leave the Name as default</translate>
+
#Add New Item
 +
#NC/PTP Configuration
 +
#Leave the Name as default</translate>
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_145850.jpg
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_145850.jpg
 
|Step_Picture_01=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_145906.jpg
 
|Step_Picture_01=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_145906.jpg
Ligne 182 : Ligne 168 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Add Axes</translate>
 
|Step_Title=<translate>Add Axes</translate>
|Step_Content=<translate>If the axes do not exist under MOTION->NC Task->Axes, add them  
+
|Step_Content=<translate>{{Info|...This step may not be necessary if the Device scan added them automatically}}
 +
 
 +
If the axes do not exist under MOTION->NC Task->Axes, add them  
  
 
#Right Click Add axis
 
#Right Click Add axis
Ligne 196 : Ligne 184 :
 
{{Tuto Step
 
{{Tuto Step
 
|Step_Title=<translate>Map Axes</translate>
 
|Step_Title=<translate>Map Axes</translate>
|Step_Content=<translate>#Double click an axis
+
|Step_Content=<translate>{{Info|...This step may not be necessary if the Device scan added them automatically}}
 +
 
 +
#Double click an axis
 
#Settings tab
 
#Settings tab
 
#Click Link To IO
 
#Click Link To IO
Ligne 209 : Ligne 199 :
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
|Step_Title=<translate>Map all IO</translate>
+
|Step_Title=<translate>Install Drive Manager 2 Project</translate>
|Step_Content=<translate>Using the circuit diagrams, link all the IO refs up to the inputs and outputs
+
|Step_Content=<translate>#Note which Device number has the drive in it
 
+
#Left-click on ''FILE.'' A new context menu open
# Double click on the slices and Field Bus boxes in turn
+
#Move the mouse to ''Add.''
# Ensure you can see the Input / output channels (may need some resizing
+
#Left-click on ''New Project''.
# Double click on the relevant IO channel
+
#Select TwinCAT Drive manager 2 on left
# Type the number in the box
+
#Click on TwinCAT Drive manager 2 Project on right
# For Inputs, use ibInputArray and match the number. outputs use qbOutputArray
+
#Save with filename "[BuildNo] Drive Manager" in the folder for the project (c:\TwinCAT\Stuga\[BuildNo])
 
+
#EtherCAT master will be the device that has the drive in from Step 1
 
+
#Leave the basic settings, click OK
Repeat for all IO
+
#This should link up the drives set in previous steps to a Drive Manager project
 
+
{{Info|1=...More information from Beckhoff https://infosys.beckhoff.com/english.php?content=../content/1033/ax8000_inbetriebnahme/3746354955.html&id=1243614138563339940}}</translate>
<br />{{Warning|...Make sure you are using ibInputArray and qbOutputArray and not any others}}{{Pin|...Once you have used a reference, it disappears. if you have done this wrong, you can right click->clear the link}}<br /></translate>
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.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":1050,"height":813,"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/9/97/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143613.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":389.54,"top":290.07,"width":372.09,"height":22.95,"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":"wfarrow2line","version":"2.4.6","originX":"center","originY":"center","left":305.5,"top":252.5,"width":1,"height":47,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":4,"strokeDashArray":null,"strokeLineCap":"round","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,"x1":-0.5,"x2":0.5,"y1":23.5,"y2":-23.5,"x2a":8.072754210645003,"y2a":-3.334351146934093,"x2b":-7.923625470268037,"y2b":-3.6746996507833067},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":305,"top":276,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":306,"top":229,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"wfarrow2line","version":"2.4.6","originX":"center","originY":"center","left":307,"top":361,"width":0,"height":112,"fill":"rgba(255,0,0,0)","stroke":"#FF0000","strokeWidth":4,"strokeDashArray":null,"strokeLineCap":"round","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,"x1":0,"x2":0,"y1":-56,"y2":56,"x2a":8,"y2a":36,"x2b":-8,"y2b":36},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":307,"top":305,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586},{"type":"wfarrow2circle","version":"2.4.6","originX":"center","originY":"center","left":307,"top":417,"width":16,"height":16,"fill":"#aaa","stroke":"#666","strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":0.5,"shadow":null,"visible":true,"clipTo":null,"backgroundColor":"","fillRule":"nonzero","paintFirst":"fill","globalCompositeOperation":"source-over","transformMatrix":null,"skewX":0,"skewY":0,"radius":8,"startAngle":0,"endAngle":6.283185307179586}],"height":465,"width":600}
 
|Step_Picture_01=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143629.jpg
 
|Step_Picture_02=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143716.jpg
 
|Step_Picture_02_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":587,"height":469,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.02,"scaleY":1.02,"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/2/2f/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143716.jpg","filters":[]},{"type":"wfellipse","version":"2.4.6","originX":"center","originY":"center","left":91.66,"top":51.76,"width":59.7,"height":36.46,"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":29.8487335084682,"ry":18.230760741782483},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":252.19,"top":142.27,"width":234.63,"height":22.54,"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":"textbox","version":"2.4.6","originX":"center","originY":"center","left":286.34,"top":116,"width":118.71,"height":22.6,"fill":"#FF0000","stroke":"#FF0000","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":"Double Click","fontSize":20,"fontWeight":"normal","fontFamily":"sans-serif","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"minWidth":20,"styles":{} }],"height":479,"width":600}
 
|Step_Picture_03=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143739.jpg
 
|Step_Picture_03_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":584,"height":472,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.03,"scaleY":1.03,"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/bf/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143739.jpg","filters":[]},{"type":"wfellipse","version":"2.4.6","originX":"center","originY":"center","left":95.21,"top":53.32,"width":64.64,"height":35.59,"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":32.32181383717859,"ry":17.792773690712732}],"height":485,"width":600}
 
|Step_Picture_04=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143822.jpg
 
|Step_Picture_04_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":0,"top":0,"width":371,"height":422,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.62,"scaleY":1.62,"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/8/87/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143822.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":215.31,"top":105.57,"width":278.47,"height":34.67,"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":"textbox","version":"2.4.6","originX":"center","originY":"center","left":430.05,"top":106,"width":145.91,"height":22.6,"fill":"#FF0000","stroke":"#FF0000","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":"Clear a link","fontSize":20,"fontWeight":"normal","fontFamily":"sans-serif","fontStyle":"normal","lineHeight":1.16,"underline":false,"overline":false,"linethrough":false,"textAlign":"left","textBackgroundColor":"","charSpacing":0,"minWidth":20,"styles":{} }],"height":682,"width":600}
 
}}
 
{{Tuto Step
 
|Step_Title=<translate>Double check all IO references with someone else</translate>
 
|Step_Content=<translate>Any mistakes made will save hours if spotted here</translate>
 
}}
 
{{Tuto Step
 
|Step_Title=<translate>Activate configuration</translate>
 
|Step_Content=<translate></translate>
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143629.jpg
 
|Step_Picture_00_annotation={"version":"2.4.6","objects":[{"type":"image","version":"2.4.6","originX":"left","originY":"top","left":20,"top":20,"width":1057,"height":817,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":2.25,"scaleY":2.25,"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/9/90/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-20_143629.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":94.27,"top":225.27,"width":47.99,"height":47.99,"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":450,"width":600}
 
 
}}
 
}}
 
{{Tuto Step
 
{{Tuto Step
Ligne 246 : Ligne 216 :
 
|Step_Content=<translate>{{Info|...An output from tcMulti needs to be set up to an input on PLC reset to allow the PLC to reset itself. This is linke a physical wire between two PLCs but just exists in the software}}
 
|Step_Content=<translate>{{Info|...An output from tcMulti needs to be set up to an input on PLC reset to allow the PLC to reset itself. This is linke a physical wire between two PLCs but just exists in the software}}
  
# Expand PLC_Reset Instance to get to ibResetPLC
+
#Expand PLC_Reset Instance to get to ibResetPLC
# Double Click ibResetPLC to open the properties
+
#Double Click ibResetPLC to open the properties
# Link to</translate>
+
#Link to qbResetPLC (this is very far down the list)
 +
#Activate configuration</translate>
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-21_145235.jpg
 
|Step_Picture_00=Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-21_145235.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":352,"height":250,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.7,"scaleY":1.7,"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/4/4c/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-21_145235.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":290.2,"top":365.91,"width":165.07,"height":34.26,"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":426,"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":352,"height":250,"fill":"rgb(0,0,0)","stroke":null,"strokeWidth":0,"strokeDashArray":null,"strokeLineCap":"butt","strokeDashOffset":0,"strokeLineJoin":"miter","strokeMiterLimit":4,"scaleX":1.7,"scaleY":1.7,"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/4/4c/Create_a_TwinCAT_Project_from_Scratch_Annotation_2019-11-21_145235.jpg","filters":[]},{"type":"wfrect","version":"2.4.6","originX":"center","originY":"center","left":290.2,"top":365.91,"width":165.07,"height":34.26,"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":426,"width":600}

Version du 29 novembre 2019 à 16:44

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

Introduction

...Beckhoff Technical help is available on 01491 410539 option 3

Étape 1 - Add Drive Manager 2 for AX8000 drives (if not installed already)

...This step needs to be done for the AX8000 drives only
  1. Copy the Drive Manager 2 setup g:\design\TwinCAT3\TE5950-TC3-Drive-Manager-2.zip to Install Files on the PC running Visual Studio
  2. Close Visual Studio
  3. Extract the Zip File
  4. Run the Setup File

Étape 2 - 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 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 PLC Project for Reset

  1. On PLC, right click and 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 5 - Ensure Correct Machine Commented in tcMulti project


  1. Navigate to tcMulti_6_24 project->POUs->MAIN
  2. Scroll down to the machine types. The "comment State" can be toggled on and off by right clicking next to the step number on the left
  3. Your goal is to ensure the correct machine is highlighted and the incorrect ones are commented out (in green)
  4. Click Save All
...Check the date next to the machine types - you will want the latest one



Étape 6 - Add TwinSAFE project

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

Étape 7 - 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 8 - Scan for Devices

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


Étape 9 - Check EtherCAT validity

Check the Devices and boxes match the expected EtherCAT setup
...Check the green lights on the etherCAT boxes for connection status. Flickering Green means it is OK
Repeat steps 7 and 8 until the physical network matches the scanned network

You may need to Right Click->scan Boxes on the second device if the EtherCAT boxes do not appear


...If the boxes do not appear in the right order, there could be an EtherCAT In /Out crossover

Étape 10 - Name all EtherCAT devices according to network

...Do not start this step until the EtherCAT network is fully verified. You will waste a lot of time if you ignore this!


Click twice on each device (not double click) to enable the device to be renamed

rename to convention



Étape 11 - Map all IO References

Using the circuit diagrams, map all the IO ref numbers to the associated IO channels

  1. Double click a field-bus box or slice
  2. Ensure you can see the input / Output list (may need some screen resizing
  3. Double click an IO channel
  4. Enter the number in the search box
  5. Double click the associated IO Ref number from ibInputArray(inputs) or qbOutputArray(outputs)
...Click Save All regularly so you do not loose progress, as this process can take a considerable time

...Be very vigilant and ensure you only click on ibInputArray or qbOutputArray

Repeat for all IO

Étape 12 - Double check all IO references with someone else

Any mistakes made will save hours if spotted here

Étape 13 - Activate configuration



Étape 14 - Add Axis Task

A smooth setup will have detected the axes and added them under the MOTION tab already.


if not, an axis task may need to be added under the MOTION tree:

  1. Add New Item
  2. NC/PTP Configuration
  3. Leave the Name as default


Étape 15 - Add Axes

...This step may not be necessary if the Device scan added them automatically

If the axes do not exist under MOTION->NC Task->Axes, add them

  1. Right Click Add axis
  2. Name to convention nn Axis


Repeat for each axis on machine

Axis naming and configuration for different machines can be found here


Étape 16 - Map Axes

...This step may not be necessary if the Device scan added them automatically
  1. Double click an axis
  2. Settings tab
  3. Click Link To IO
  4. Connect to associated Drive
  5. Click Link to PLC
  6. Use the reference here to get the Axis Numbers


Repeat for each axis

...Make sure you select the correct channel number / letter is it is a dual drive

Étape 17 - Install Drive Manager 2 Project

  1. Note which Device number has the drive in it
  2. Left-click on FILE. A new context menu open
  3. Move the mouse to Add.
  4. Left-click on New Project.
  5. Select TwinCAT Drive manager 2 on left
  6. Click on TwinCAT Drive manager 2 Project on right
  7. Save with filename "[BuildNo] Drive Manager" in the folder for the project (c:\TwinCAT\Stuga\[BuildNo])
  8. EtherCAT master will be the device that has the drive in from Step 1
  9. Leave the basic settings, click OK
  10. This should link up the drives set in previous steps to a Drive Manager project

Étape 18 - Add PLC_Reset to tc3Multi Link

...An output from tcMulti needs to be set up to an input on PLC reset to allow the PLC to reset itself. This is linke a physical wire between two PLCs but just exists in the software
  1. Expand PLC_Reset Instance to get to ibResetPLC
  2. Double Click ibResetPLC to open the properties
  3. Link to qbResetPLC (this is very far down the list)
  4. Activate configuration


Commentaires

Draft