×
Siemens Industry Online Support
Siemens AG
Entry type: FAQ Entry ID: 109744561, Entry date: 03/02/2017
(1)
Rate

How do you configure the integrated counter of the compact CPUs 15xxC-1PN for Motion Control to make it usable for encoder acquisition?

  • Entry
  • Associated product(s)
In STEP 7 (TIA Portal), before you can select the hardware interface for the encoder under technology objects, you have to enable the HSC in the CPU properties.

You need the following hardware and software if you want to configure the HSC (High Speed Counter) for Motion Control for encoder acquisition:

  • Compact CPU 15xxC-1PN with firmware V2.0 (or higher)
  • STEP 7(TIA Portal)V14 (or higher)

Configuration
The following example shows you how to proceed for the CPU 1512C-1 PN.

  1. In the project navigation you right-click the CPU 1512C-1 PN and in the pop-up menu you select "Properties...".
  2. In the area navigation in the "General" tab you navigate to the high speed counters, "High speed counters (HSC) > HSC2", for example.
  3. Select the dialog "HSC2 > General" (Fig. 1) and enable the function: "Activate this high-speed counter".


    Fig. 1

  4. Select the dialog "HSC2 > Basic parameters" (Fig. 2) and enable the function: "Position input for Motion Control"
  5. In the section under that you select the "Module parameters" of the encoder used: "Signal type" and "Signal evaluation", for example.
  6. Then close the dialog with "OK".


    Fig. 2

  7. In the project navigation you open "Technology objects" and double-click the "Add new function" function.
  8. Click "Motion Control" and select a technology object, "TO_PositioningAxis", for example.
  9. Confirm with "OK". Now the object "PositioningAxis_1" is created in the "Technology Objects" folder.
  10. In the "Configuration" dialog you navigate to the "Hardware interface > Encoder" folder.
  11. Configure the "HSC_2" for the encoder (as shown in Fig. 3).
  12. Then click the OK icon (green check mark).


    Fig. 3

  13. Switch to the "Hardware interface > Data exchange" and under "Data exchange Encoder" you select the parameters for the encoder.
  14. When you have completed your configuration, save and compile your PLC station.

Further Information
More information is available in the manual under S7‑1500 Motion Control V4.0 in TIA Portal V15 - CPU 1511C-1 PN / CPU 1512C-1 PN.

Creation Environment
The screens in this FAQ response were created with STEP 7 (TIA Portal) V14.

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
https://www.siemens.com/cybersecurity#Ouraspiration.