Creating CX7031 slave
In order to ensure that the PROFIBUS slave is configured and subsequently detected by the PROFIBUS master with all inputs and outputs, the PROFIBUS slave first must be created in TwinCAT.
Requirements:
- CX7031 as the target device.
Proceed as follows:
- 1. In the tree view on the left, right-click on I/O Devices.
- 2. In the context menu click Scan.
- 3. Select the devices you want to use and confirm the selection with OK.
- 4. Confirm the request with Yes to search for boxes.
The boxes are included. The Insert Module window appears. - 5. Add modules such as 1 BYTE Slave-Out/Master-In and 1 BYTE Slave-In/Master-Out for your process image.
- 6. Click on Cancel to close the Insert Module window.
- 7. Confirm the request whether to enable FreeRun with Yes.
- The PROFIBUS slave is displayed in the structure view with the inputs and outputs. You can add more modules by right-clicking on the box and then clicking on Add New Item in the context menu.
In the next step, you can expand the process image by creating additional virtual slaves. Or you can set the address, once the slave configuration is complete.