002 TwinCAT3 QuickStart SampleProject
002 TwinCAT3 QuickStart SampleProject
2
User Surface
Solution Toolbox
Explorer Window
Editor
Properties
Window
Runtime
Modus
Information and Status line Message
Window
3
TC3 configuration for PC based Control System
TC3 configuration for PC based Control System
2
TC3 configuration for PC based Control System
4
TC3 configuration for PC based Control System
7
Free Run Modus
Runtime is running
in Free Run
8
Test inputs in Free Run mode
After selecting a
terminal, the online
status of the variables
is displayed in the
overview window.
9
Write outputs in Free Run Mode
1
4
10
Test outputs in Free Run Mode
After selecting an
output Terminal, the
status of the variables
can be written in the
overview window.
11
Creating a standard PLC project
1 2
5
4
Local PLC variable declaration & Creating Instance
14
Linking variables via the PLC instance
2 Right-click on the
respective variable in
the PLC instance and
select “Change Link”
to select the link
target in the device
tree (connection
point).
3 4
Build, rebuild and clean
Build (compile)
This command starts the compile process for the active
application. This means that the syntax of all objects of
this application are checked. The compile process runs
automatically before each login when the program has
changed. If the program was not changed since the last
error-free compile process, it is not recompiled.
Rebuild (recompile)
This command starts the compile process for the active
application, even if it was already compiled without error.
Clean
This command deletes the compile information for the
active application.
Activation of the configuration
1
2
About the Login button, can the PLC Project be downloaded and
switched to Online Mode:
PLC Login
1
PLC Start
2
PLC Logout
PLC Stop
18
Create FB_Blinker in FBD
4
1
2 3
5
6
19
Insert Box
Simply by drag and drop the first box is drawn in the first
network . Total 3 boxes are needed , which are inserted one
by one.
20
Setup of the FBs
21
Instantiation
22
Instantiation
23
Insert Negation
24
Insert Assignment
1
About right-click a Assignment is
connected behind fbTimer1.
2
A Variable bLed must be created.
The Variable must be declared
as VAR_OUTPUT.
On unused Signals, of functions
or function blocks , the " ??? "
must be deleted .
25
The Function Block
26
Create Program Digital
1
27 4
Create instance of FB_Blinker
Insert Box
By tapping the Implementation
name FB_Blinker, opens the
Selection Guide .
Insert now, the Instance name
fbBlinker1 on the ??? . The Auto
Declare window will opens.
By pressing the OK Button, the
Instance will be inserted in the
Declaration area.
28
Connect Variables to fbBlinker1
29
Call the Program Digital in Main
30
Onlinechange
31
Online View fbBlinker1
32
Contact
All images are protected by copyright. The use and transfer to third parties is not permitted.
Beckhoff®, TwinCAT®, EtherCAT®, Safety over EtherCAT®, TwinSAFE®, XFC® and XTS® are registered
trademarks of and licensed by Beckhoff Automation GmbH. Other designations used in this presentation may
be trademarks whose use by third parties for their own purposes could violate the rights of the owners.
The information provided in this presentation contains merely general descriptions or characteristics of
performance which in case of actual application do not always apply as described or which may change as a
result of further development of the products. An obligation to provide the respective characteristics shall only
exist if expressively agreed in the terms of contract.