Skip to end of banner
Go to start of banner

PLC Demo Example PROFIdrive AC1

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Two different examples were prepared using PLC Siemens S7-1500. The first example performs motor control via ProfiDrive with another Hilscher solution, the NIC52-RE, without the need for any PC. In the second, more detailed visualization is performed by using WinCC PC Runtime instead of NIC52-RE.

Demo System

A minimum of TIA Portal 15.1 must be installed to open the TIA Portal files.

S7-1500 PLC is not working without SD card. Get Siemens SD Card before starting.

PROFIdrive Example with NIC52-RE

The detailed PLC Startup Guide for the NIC52-RE based ProfiDrive Example can be accessed from the PLC Startup Guide - NIC52-RE based PROFIdrive Example.

PLC Settings

NIC52-RE Device Settings

NETX90-MC Device Settings

  • ProfiNet Interface: X2

  • IP address: 172.20.11.88

  • Subnet Mask: 255.255.255.0

  • ProfiNet Device Name: nic52pns

  • IP address: 172.20.11.92

  • Subnet Mask: 255.255.255.0

  • ProfiNet Interface: netx90repns

  • IP address: 172.20.11.91

  • Subnet Mask: 255.255.255.0

IP assignment processes of the boards are carried out automatically thanks to ProfiNet Device Name. Therefore, the above ProfiNet device names must be assigned to the relevant devices. Otherwise, the IP assignment problem will occur. You can change ProfiNet device name with the Hilscher tool "Ethernet Device Setup".

You can change Device Settings parameters using TIA Portal.

The following table describes the functions of the DIP switches on the NIC52-RE.

DIP Index

Speed[RPM] - (Left side DIP switches)

Meaning

1

12.5%

Set motor speed to 12.5%.

2

25.0%

Set motor speed to 25%.

3

37.5%

Set motor speed to 37.5%.

4

50%

Set motor speed to 50%.

5

62.5%

Set motor speed to 62.5%.

6

75%

Set motor speed to 75%.

7

87.5%

Set motor speed to 87.5%.

8

100%

Set motor speed to 100%.

DIP Index

Control - (Right side DIP switches)

Meaning

1

Start

0 - Stop motor, 1 - Start motor

2

Dir

Motor DIrection: 0-CCW / 1-CW.

3

-

-

4

-

-

5

-

-

6

-

-

7

Reset

Reset ProfiDrive: 0-Reset disable, 1-Reset enable.

8

Power Enable

ProfiDrive Power: 0-Disabled, 1-Enable

At startup, all Control DIP switches should be set to 0. Then, "Power enable" and "Start" switches should be made 1 respectively. In order for the motor to rotate, the desired RPM value must be set from the left-side DIP switches.

Blinking of the 2 LEDs in the middle of the RPM LED group indicates an error status. In this case, follow the steps below:

  1. Turn off all Control DIP switches.

  2. Turn the Reset DIP switch to on, wait a few seconds and turn it off again.

  3. Turn on the Power Enable DIP switch.

  4. Turn on the Start DIP switch.

  5. Set the desired speed from the Speed DIP switch group.

If the error status is not cleared due to any problem, check the connections, IP addresses, NIC52-RE and NETX90-MC boards' firmware, settings, initialization, and motor calibration respectively.

Whether the NETX90-MC and NIC52-RE boards can establish a connection with the PLC can be understood by the flashing Red LED on them completely extinguished.

The LEDs on the NIC52-RE show the motor RPM. When the middle two LEDs are lit, the motor speed is 0. The 8 LEDs on the right side show the CW direction and the ones on the left show the CCW direction. Each LED indicates a 12.5% motor speed.

PROFIdrive Example with WinCC PC Runtime

The detailed PLC Startup Guide for theWinCC PC Runtime based ProfiDrive Example can be accessed from the PLC Startup Guide - WinCC PC Runtime based PROFIdrive Example.

PLC Settings

WinCC PC Runtime

NETX90-MC Device Settings

  • ProfiNet Interface: X2

  • IP address: 172.20.11.88

  • Subnet Mask: 255.255.255.0

  • IP address: 172.20.11.254

  • Subnet Mask: 255.255.255.0

  • ProfiNet Interface: netx90repns

  • IP address: 172.20.11.91

  • Subnet Mask: 255.255.255.0

IP assignment processes of the boards are carried out automatically thanks to ProfiNet Device Name. Therefore, the above ProfiNet device names must be assigned to the relevant devices. Otherwise, the IP assignment problem will occur. You can change ProfiNet device name with the Hilscher tool "netIdent".

You can change Device Settings parameters using TIA Portal.

At startup, all switches should be set to OFF. If the Status is RED, turn the Reset switch ON, wait for minimum 1 second and turn it OFF again(Status will turn green). Turn the Power switch ON. Turn the Start/Stop switch ON. Set the desired direction from the Direction switch. Adjust the desired motor speed from the scroll bar in the middle. The motor’s actual speed can be seen with the gesture on the right side.

If the error status is not cleared due to any problem, check the connections, IP addresses,NETX90-MC board’s firmware, settings, initialization, and motor calibration respectively.

Whether the NETX90-MC board can establish a connection with the PLC can be understood by the flashing Red LED on it completely extinguished.

  • No labels