Development, begins together.
Banner alanı
IFM Sensor

Siemens S7-1200 External Encoder and Measuring Probe Connection with G2 (HSC + Technology Objects)

Erkan Teskancan

Kurumsal
  • OLM MUH
  • 1747605811486.webp

    🔧 Application Summary:​


    Siemens has provided an application example for the SIMATIC S7-1200 G2 series, enabling the connection of external encoders and measuring probes via high-speed counter (HSC) inputs. This example also includes integration with Motion Control Technology Objects (TO).

    🧩 Key Components Used:​


    • LHSCTO_HSCEncoder function block: Establishes a connection between HSC and TOs.
    • TO_ExternalEncoder: Using an external encoder as a leading value.
    • TO_PositioningAxis: Using an external encoder as an additional encoder.
    • TO_MeasuringInput: Performing measurements with a measuring probe.

    ⚙️ Supported Configurations:​


    1. External Encoder + Measuring Probe: Encoder is used as a leading value.
    2. Positioning Axis + External Encoder + Measuring Probe: Encoder is used as an additional encoder.

    Both configurations support passive homing and measuring operations.



    📐 Hardware and Software Requirements:​


    • CPU: SIMATIC S7-1200 G2 (e.g., 1212FC DC/DC/DC)
    • Firmware: V1.0 and above
    • TIA Portal: V20
    • Encoder: 24V HTL, with A/B signals, 2048 CPR recommended
    • Function Blocks: LHSCTO_HSCEncoder, MC_Home, MC_MeasuringInput, etc.



    🛠️ Engineering Steps:​


    1. HSC Configuration: HSC inputs are configured for the encoder and measuring probe.
    2. TO Creation: Necessary Technology Objects (TO_ExternalEncoder, TO_PositioningAxis, TO_MeasuringInput) are created.
    3. Function Block Integration: The LHSCTO_HSCEncoder block facilitates data exchange between HSC and TOs.
    4. Simulation: Encoder signals can be simulated using PTO (Pulse Train Output).



    📊 Application Example:​


    Siemens provides a sample TIA Portal project and library files for these configurations. These files facilitate quick testing and integration of the application.
     

    Attachments

    Back
    Top