/
Commissioning RevPi PROFIBUS
Commissioning RevPi PROFIBUS
This article shows how to commission PROFIBUS DP communication with the Revolution Pi.
Hardware
RevPi Core 3+
Gateway module for PROFIBUS
PROCENTEC ProfiCore Ultra PROFIBUS Master
Instructions
We want to configure the PROFIBUS network as follows:
Item | Master | Slave |
---|---|---|
Node-ID | 1 | 5 |
Module Configuration |
| 2 Bytes input/output |
Hardware setup
Connect the Revolution Pi Module and the Modular Gateway PROFIBUS Module with the PiBridge adapter.
Switch the DIP switches of the Modular Gateway PROFIBUS Module to node address 5.
Connect the PROFIBUS cable between the master and the slave module
Revolution Pi Configuration
Perform the PiCtory configuration
Reset the PiControl driver “piTest -x”
Check that the configuration has been applied and shows the two devices:
pi@RevPi35745:~ $ piTest -d
Found 2 devices:
Address: 0 module type: 95 (0x5f) RevPi Core V1.2
Module is present
input offset: 1024 length: 6
output offset: 1030 length: 5
Address: 31 module type: 77 (0x4d) Gateway Profibus V1.0
Module is present
input offset: 0 length: 244
output offset: 512 length: 244
Check the power LEDs are lighting green. If not, check the PiBridge adapter and the power supply.
Perform a constant change of the first two bytes of the output data, i.e., like so:
pi@RevPi35745:~ $ O1=3 O2=4; while true; do let "O1=$O1+1"; let "O2=$O2+1"; piTest -w Output_1,$O1; piTest -w Output_2,$O2; sleep 1; done
ProfiCore
Download the GSD file for the Modular Gateway PROFIBUS
Import this GSD file in the PROFIBUS Master
Configure the PROFIBUS Network. You may use “Load Project” with this configuration
Switch the PROFIBUS Master Operational
PROFIBUS cyclic data exchange
Perform a constant change of the first two bytes of the output data, i.e., like so on the RevPi:
pi@RevPi35745:~ $ O1=3 O2=4; while true; do let "O1=$O1+1"; let "O2=$O2+1"; piTest -w Output_1,$O1; piTest -w Output_2,$O2; sleep 1; done
Let the first two output bytes of the PROFIBUS Master perform some changes using the watch I/O dialog, i.e., decrease and increase.
Monitor the cyclic data exchange via the ProfiCore software
Check
Modular Gateway PROFIBUS Module
LED | Status |
---|---|
Power | GrEEN |
Online | Green |
Offline | off |
Fault | off |
Revolution Pi Module
LED | Status |
---|---|
Power | GrEEN |
A1 | don't care |
A2 | don't care |
Verwandte Artikel
, multiple selections available,
Related content
Commissioning RevPi Gate PROFINET IRT - Device with CODESYS
Commissioning RevPi Gate PROFINET IRT - Device with CODESYS
More like this
Configure a PROFINET Device
Configure a PROFINET Device
Read with this
RevolutionPi IO-Modules FAQ
RevolutionPi IO-Modules FAQ
More like this
Revolution Pi Hardware FAQ
Revolution Pi Hardware FAQ
Read with this
Revolution Pi Software FAQ
Revolution Pi Software FAQ
Read with this
Revolution Pi Questions And Answers
Revolution Pi Questions And Answers
Read with this