How-to
Choosing the SINA_POS positioning telegram and command path
Short answer
For a two-position S7-1200 to SINAMICS S110 axis over PROFINET, use SIEMENS telegram 111 with the SINA_POS block, select the same telegram in TIA Portal and STARTER, retype WORD symbols to UINT after a V13 to V14 conversion, and match the CPU firmware version to the precompiled drivelib. Scale the stored targets into the drive's length units before the first write.
On this page
- Use Telegram 111 with the SINA_POS block
- Configure the same telegram in TIA Portal and STARTER
- Command path from the KTP700 to the drive
- Fix the WORD to UINT errors after converting V13 to V14
- Match the CPU firmware version to the precompiled drivelib
- Worked example: 400 mm and 200 mm targets into drive length units
- Checks before the first powered move
- Questions asked
For a two-position axis — an S7-1200 driving a SINAMICS S110 over PROFINET, with a KTP700 asking for a stored up and a stored down target — the answer is SIEMENS telegram 111 and the SINA_POS block, selected identically in TIA Portal and STARTER. Three things decide whether the axis moves: the telegram both tools agree on, the data types left behind by a V13 to V14 conversion, and the CPU firmware version matched to the precompiled drivelib version. This article walks the configuration, the command path from the HMI to the drive, both compile fixes, and the length-unit arithmetic that turns the two targets into numbers the drive accepts.
Use Telegram 111 with the SINA_POS block #
The vendor's positioning examples settle the telegram choice. Siemens' application example for STEP 7 V5 positions an S120 from an S7-300/-400 over PROFIBUS/PROFINET, moves two axes, transfers setpoints and actual values in SIEMENS telegram 111, and uses blocks such as FB283 (support entry 67261457). A second example positions a drive from an S7-1200 over PROFINET with the SINA_POS block (support entry 109736845). Choose SIEMENS telegram 111 for SINA_POS positioning; the documentation delivered with your installed drivelib names the telegram it expects, and for this library family that entry is 111.
Telegram 111 carries the position setpoint toward the drive and status back, but which status bits ride along depends on the drive family — Why Telegram 111 does not carry SINAMICS S210 digital input status documents one such gap on a related drive. How a telegram's words become drive commands is the subject of How PROFINET drive control telegrams map PLC commands to a drive.
Configure the same telegram in TIA Portal and STARTER #
Configure the S110 in STARTER: enable extended positioning, set the length-unit factor for the axis, and select SIEMENS telegram 111 as the drive's process data. Then, in the TIA Portal project, set the drive device's process data to the same telegram so both sides report identical cyclic lengths. A mismatch here compiles cleanly and transfers nothing sensible, so read the configured lengths back from both tools before the first download.
Use application example 98961635, which pairs an S7-1200 with an S120, as the pattern: take its block set, telegram selection and interlocks, and adapt the drive side to the S110. Do not restore a backup from the other drive unmodified — its device objects describe hardware you do not have, and that is where converted projects fail first.
Command path from the KTP700 to the drive #
SINA_POS is the only path from PLC logic to the axis, so wire the path in this order:
- Call SINA_POS from a cyclic block, so its enables and setpoints are written every scan rather than once.
- Store the two targets as PLC tags in drive length units, in the width the block's position input declares — check the interface of your installed library instead of assuming 16 or 32 bits.
- Give each target a KTP700 button: the button writes its tag to the block's position input and then asserts the block's start input for one scan.
- Interlock every start on the block's status outputs: issue a request only when the drive reports ready and faultless, and never while the axis reports busy with the previous move.
- Prove the path with the lower target only: command it, wait for the done indication, and compare the actual position the telegram reports against the machine scale.
If a button press does nothing while the drive sits powered and connected, the cause is almost always the enable chain rather than the telegram — the knowledge-base page on troubleshooting an S110 axis that never enables with SINA_POS works through that chain in order.
Fix the WORD to UINT errors after converting V13 to V14 #
Converting the example project from TIA Portal V13 to V14 changes how the compiler types the example's symbols: interface symbols and constants typed WORD no longer match block inputs now typed UINT, and the compile stops with data-type errors on those symbols. This is a deliberate change between V13 and V14, not a damaged project. Fix it in one pass: retype every affected symbol from WORD to UINT, recompile, and clear the error list before touching anything else. Retyping one symbol at a time hides related mismatches behind the first error.
Match the CPU firmware version to the precompiled drivelib #
Swapping the example's CPU for another S7-1200 at firmware version 4.0 breaks the compile even with the data types clean: the precompiled drivelib is delivered compiled for the CPU firmware version the example targeted and cannot be recompiled inside your project. Two fixes, in this order: keep the CPU at the version the example targets, or install a newer precompiled drivelib version built for version 4.0. The version list in the library's delivery documentation decides, so read it before choosing the CPU rather than after the compile fails. Matching program version to firmware revision is the same discipline as Matching PLC software versions to controller firmware revisions.
Worked example: 400 mm and 200 mm targets into drive length units #
Inputs: the stored top target is 400 mm and the stored lower target is 200 mm, both from the application; the axis length unit is 0.001 mm per LU, an example of the factor set in the drive's EPOS configuration — the drive you commission shows the factor it actually uses.
Rule: telegram 111 carries the position setpoint as a binary integer in drive length units, so a target in millimetres is divided by the length-unit factor before it reaches the block's position input.
Arithmetic: 400 mm / 0.001 mm per LU = 400,000 LU for the top target; 200 mm / 0.001 mm per LU = 200,000 LU for the lower target; the relative travel between them is 400,000 - 200,000 = 200,000 LU.
Result: the up request writes 400000 LU to the position input, and the down request writes 200000 LU.
Decision: command the lower target first and hold it to a physical check — with this factor the axis must stop 200 mm along the travel, and if it lands at half or double that distance, your configured length unit is wrong by exactly that ratio. A drive set to 0.01 mm per LU needs 40,000 and 20,000 LU for the same physical moves; divide by the factor in the drive, never by a remembered constant.
Checks before the first powered move #
Compile the converted project clean of data-type and library errors, and confirm the configured process-data lengths agree in TIA Portal and STARTER. Before any powered motion, configure the EPOS limit switches so an overrun cannot reach the mechanics — the knowledge-base page on configuring EPOS limit switches for the S110 with SINA_POS covers that setup — and keep the drive's safety circuit wired to its own safety terminals rather than to PLC logic alone. Then test both targets from a safe machine state, confirm the actual travel independently of the screen, and hand the buttons to production only after both stops check out.
Questions asked
Do I still need STARTER when the PLC project runs in TIA Portal?
Yes. At V13 and V14, the S110's EPOS parameters and its telegram selection are edited in STARTER; TIA Portal holds the PLC project, the SINA_POS calls and the PROFINET connection, but it does not edit the drive's positioning parameters. Configure the drive in STARTER first, set the process data in the PLC project to the same telegram, and keep both tools in step while you commission.
Why can I not recompile the drivelib for my CPU version?
A precompiled library is delivered already compiled for specific CPU firmware versions and cannot be recompiled inside your project, because the source is not delivered. That is why a CPU at version 4.0 fails while the original CPU compiles: the delivered code targets the older firmware. Read the version list in the library's delivery documentation and install the precompiled version that matches your CPU, or keep the CPU the example targets.
What should the KTP700 screen show while testing the two positions?
Show the drive-ready, busy, positioning-done and fault indications from the block on the same screen as the two position buttons. A fault that appears and clears between presses is invisible on a page with only the buttons, and a busy bit that never drops tells you the axis never reached done. Command the lower target first and confirm done before trying the upper one.
The drive is powered and the network is live, but the axis ignores commands - where is the fault?
Usually in the enable chain, not the telegram. The drive needs its power-on enable, controller enable and safety circuit satisfied before any position setpoint has an effect. Use the block's status outputs to separate a request that was never sent from one that was rejected, then work the chain in order from terminal wiring to the block's enable inputs before touching the telegram configuration again.


