First steps with the BX3100
For the following sample, the following hardware and software components are required:
Hardware
- FC310x from firmware 2.0
- BX3100
- KL10x4
- KL20x4
- KL9010
- PROFIBUS cable + cabling material (such as 24 VDC power supply unit etc.)
Software
- TwinCAT 2.9 build 947 (minimum TwinCAT PLC level)
Sample 1: Default Configuration
a.) Open the file (File). This file contains the System Manager file for the master configuration with the FC310x card and the BX3100 slave. Select the correct PCI address for the FC3101.
and set PROFIBUS address 2 on the BX3100.
Activate the configuration and start the system. The TwinCAT icon (bottom right on the desktop) should be green. The bus LED on the BX3100 should also be green. Should this not be the case, check the BX3100 address and the physical connection with the PROFIBUS master (terminating resistors etc.).
b.) Open the file (File). This file is the PLC project for the BX3100. Select the BX3100 under >Online\Selecting the target system<.
Load the project into the controller (>Online\Login<) and Start the program (>Online\Start<). The PLC LED on the BX3100 should now be orange.
masterproject.tsm
Program description
The program increments a value >Profibus_Out_1< as long as the variable Profibus_Input_1 contains the value = 0. At the same time, the first digital output cycles with approx. 2 Hz. In the System Manager, the variable >Var 36< can be forced to a value unequal zero. This stops the counter, and the first digital output is set to a fixed value of "one".