Program Transfer via Ethernet
TwinCAT offers a facility for transferring the user program to the Bus Terminal Controller over the fieldbus. The BC/BX can be selected as the target system in PLC Control, after saving in the registry and restarting the TwinCAT system. The TwinCAT-level TwinCAT PLC is necessary.
Minimum requirements:
- TwinCAT 2.10 build 1251
Initializing the Bus Terminal Controllers
Possibility 1: If you use TwinCAT as a polling PLC.
The coupler must first be made known to the system before it can be selected in PLC Control.
Enter the Bus Terminal Controller in the System Manager, specify type, quantity and size of the fieldbus variables and link them with a task. Save your settings and activate the configuration. Then start the TwinCAT system and the cyclic task.
Possibility 2: If you only use TwinCAT for programming or configuring:
Click the TwinCAT icon, and open the features. You can enter the BX9000 under the AMS router.
Name: variable
AMS Net Id: IP address plus ".1.1"
IP address: IP address of the BX9000
Transport type: TCP/IP
Now start TwinCAT, either in the configuration mode (the blue TwinCAT icon) or in the RUN mode (the green TwinCAT icon)
TwinCAT System Manager
PLC Control
When TwinCAT PLC Control is restarted, TwinCAT asks for the target platform, i.e. the device on which the user program is later to run. TwinCAT offers two target platforms as controller, the PC or the Bus Terminal Controller.
Two options are available to you for transmission to the Bus Terminal Controller:
- AMS for BCxx00 (Bus Terminal Controller without online change)
- AMS for BCxx50 and BX (Bus Terminal Controller with online change)
- BC serial – the serial cable for communication via the RS232 interface of the PC and the programming interface of the Bus Terminal Controller
- For the BC9191, select "BCxx50 or BX via AMS"
After your program has been created, select the target system under the Online toolbar. TwinCAT must be running to do this. In the sample, this is the Ethernet card with Box 1 and the Run-Time 1 of the Bus Terminal Controller.