Developed an Android app to communicate the Allen Bradley PLC via Ethernet/IP along with programming the ladder logic on Rockwell Automation Studio 5000 software which allow user to control Allen-Bradley PLC modules such as light tower and monitor the PowerFlex 525 motor driver motor speed.
In order to develop the Android app, we need to download/install the Android studio on our computer. After setup of the Android project, we also need to create a Victual device that can run this Android app. For example, we could create 2 momentary push button with proper controller tag on ladder logic Studio 5000, that could perform the following screen:
Figure 1: Example GUI of simple green/red button run on Victual device.
The Figure 1 shown that the green button has the controller tag of “green” and red button has the controller tag of “red”. In addition to them, there is also a toggle switch which use for emergency stop for PLC with controller tag of “stop”.
The Allen-Bradley PowerFlex 525 AC motor drive as shown in the figure 3. This PowerFlex motor driver is controlled by PLC through Ethernet. The Ethernet is done by created a new Ethernet module in the I/O configuration section of the Controller Organizer windows (At Ladder Logic RSLogix 5000 software program).
Figure 2: Allen-Bradley PowerFlex 525 AC motor drive
We use the Android studio which used as direct interface between machine and operator shown in Figure 3.
Figure 3: Android studio PLC controller App
The Light tower connect to PLC via input/output module, PowerFlex drive connect to PLC controller by Ethernet. The PLC controller is connecting through the Ethernet to Computer which running the Android application. Each module (PLC, PowerFlex, and Computer) has its own IP address that used within the same network.