Integration into TwinCAT
TX1200
18
Version: 1.1
Now link the global variables of the PLC program with the Bus Terminal inputs and outputs, create the
allocations, and activate the configuration. Then start the device in run mode.
Your CX is now ready for use.
After pressing the button the flap drive can be moved. The current position is stored in variable
wActValue
.
5.3
Integration into TwinCAT (BC9191)
This example describes how a simple PLC program for MP-Bus can be written in TwinCAT and how it is
linked with the hardware. The task is to control an individual flap drive and change it with a button.
Unpacking the example files https://infosys.beckhoff.com/content/1033/tcplclibmpbus/Resources/
Hardware
Setting up the components
The following hardware is required:
• 1x potential feed terminal 24V DC
• 1x digital 2-channel input terminal KL1002 (for the Open and Close functions)
• 1x end terminal KL9010
Set up the hardware and the MP-Bus components as described in the associated documentation.
This example assumes that the address of the flap drive is known.
Software
Creation of the PLC program
Create a new PLC project for BC-based systems (BCxx50 via AMS) and add the libraries
TcMPBus.lbx
and
TcSystemBCxx50.lbx
. Then navigate to
Project → Options... → Build
and select
Treat LREAL as REAL
.
Содержание TwinCAT 2 TX1200
Страница 1: ...Manual EN TX1200 TwinCAT 2 PLC Library TcMPBus 2022 06 02 Version 1 1...
Страница 2: ......
Страница 79: ......