Erkan Teskancan
Kurumsal
- Thread Author
- #1

🔧 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:
- External Encoder + Measuring Probe: Encoder is used as a leading value.
- 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:
- HSC Configuration: HSC inputs are configured for the encoder and measuring probe.
- TO Creation: Necessary Technology Objects (TO_ExternalEncoder, TO_PositioningAxis, TO_MeasuringInput) are created.
- Function Block Integration: The LHSCTO_HSCEncoder block facilitates data exchange between HSC and TOs.
- 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.


















