SINUMERIK 840D sl to S7-1500: NCVAR Selector, PROFINET Names and Alarm 150202

A PROFINET link can be healthy while the PLC still cannot read a single machine datum. The reason is architectural: on SINUMERIK 840D sl, machine data (MD) is maintained by the NC kernel, not stored as an ordinary PLC data block. This article separates what Siemens official documentation confirms from the field-proven but version-dependent workflow, so you do not copy a third-party block name into a commissioning report as if it were an official standard.

Chinese version: 840D sl / S7-1500 NCVAR guide; related reading: 828D to S7-1200/1500: PN/PN coupler versus GET/PUT, 828D PLC Programming Tool and basic blocks, Setting Data vs Machine Data on 828D, 840D sl alarm number ranges and manual index.

10.1 Three layers: link, PLC project, NC variables

Three-layer architecture
LayerOwnerTypical objectsStill fails when
LinkPROFINET / Industrial EthernetDevice name, IP, switch, CPU portName not assigned, station mismatch, topology or port fault
PLC engineeringSTEP 7 / TIA PortalHardware configuration, OB/FC/FB, DBWrong project version, blocks not downloaded, inconsistent compile
NC variablesNCK + NCVAR SelectorMD, R parameters, interface signals, system variablesVariable not selected, DB offset mismatch, symbols not imported
广告

Table 1: PROFINET connectivity does not grant direct access to NC variables

Siemens’ SINUMERIK 840D sl / 828D basic functions documentation confirms three points: the latest NC-VAR-Selector can be used with every NC software version, DB 120 is the standard variable DB whose information content is independent of software version, and variables selected on an older NC version do not have to be selected again after an upgrade. The practical conclusion is narrow but important: the NC owns the data; the PLC receives a mapped image.

10.2 Six-step NCVAR Selector workflow

Six-step NCVAR workflow

The following is the common field workflow. Menu names and generated block names vary by tool release and must be checked against the installation on your machine.

  1. Create a Selector project. Choose the NCU as target and enter its Ethernet or MPI address. Confirm the NCU is powered and visible before selecting variables.
  2. Browse the variable tree. NC variables are grouped by area: NC (whole control), B (mode group), C (channel), T (tool), A (axis/spindle), V/H (feed/main drive). Select by area instead of searching only for a parameter number.
  3. Assign target DB and offsets. Specify the PLC DB number, byte offset and data type. A BOOL/INT/DINT/REAL/STRING mismatch appears on site as implausible or rapidly changing values.
  4. Generate symbols and interface blocks. Field projects commonly export XML or SDF, import it into a STEP 7 project and compile. Keep the export with the project archive.
  5. Call the generated blocks in the PLC. Trigger reads and writes on an edge or at a controlled cycle, not on every scan. Check BUSY and ERROR before trusting the payload.
  6. Download and verify online. Compare a known NC value with the HMI display, then test a write only on an agreed variable and record the original value.

Scope note: FC100, FB450, FB451, SUSV_0 and status words such as 16#0001 / 0002 / 0004 are widely circulated field examples. They are not confirmed here as a universal official interface. Use the blocks generated by your own Selector version and the machine builder’s documentation.

10.3 The TIA Portal trap

Field sources consistently describe NCVAR Selector as a classic STEP 7 v5 / Simatic Manager add-on rather than a built-in TIA Portal feature. The usual route is to generate and compile symbols in the v5 environment, then migrate the resulting blocks into the Portal project. Exact support depends on Selector release, STEP 7 version and NCU firmware; do not assume one machine’s route transfers to another.

Before travelling to site, confirm the NC software version, PLC type and engineering software version. If the machine builder already created a mapping, locate the existing DB and symbol table first; creating a second mapping with different DB numbers is a reliable way to create ambiguous data.

10.4 Using the generated blocks: trigger, parameter, status, poll

NC variable read/write chain
CheckpointField practiceFailure signature
TriggerEdge-trigger one read/write requestPermanent BUSY and rising CPU load
ParametersVerify variable number, target DB and byte offsetReading the neighbouring variable and blaming NC drift
StatusEvaluate ERROR / STATUS before consuming dataError word mistaken for process data and written back
PollingChoose a cycle that matches the processToo fast consumes resources; too slow hides transitions

Table 2: Four checkpoints for NC variable access

For a small number of cyclic status bits, an existing interface signal or DB mapping may be sufficient. NCVAR is a commissioning and integration tool, not a reason to route every signal through it.

10.5 PROFINET device names after a CPU swap

After replacing a CPU or PN interface module, or restoring a project, a station can revert to its default device name. A name that differs from the engineering project by spelling, hyphenation or case will not produce a healthy station.

  1. Read the configured device name from the project and record it exactly.
  2. Locate the physical station by MAC address with a topology or scan tool; do not guess from cabinet position.
  3. Assign the device name character for character as configured.
  4. Power-cycle or force the station to re-attach and confirm that the name mismatch diagnostic clears.
  5. Only then return to the generated NC variable blocks.

A correct device name means the station can be found. It does not prove that the NC variable mapping is correct. Accept both layers separately.

10.6 Alarm 150202 is not automatically a PROFINET name fault

150202 five-step triage
广告

In the SINUMERIK HMI alarm context, 150202 reads “Waiting for a connection to %1”. The placeholder is the useful part: it may name the NC, the PLC or another internal bus node. It is not a synonym for a PROFINET device-name error and it is not specific to S7-1500.

StepActionAcceptance
1 Read the objectCapture the complete text and identify %1You know which component is awaited
2 Check timingNormal start-up delay versus persistent alarmSelf-clearing within seconds is usually start-up sequencing
3 Check NC/PLCConfirm both sides reached RUN / finished start-upA stalled partner keeps the other waiting
4 Check the linkInspect internal bus cabling, plugs, node address and baud rateRecent swaps or parameter restores are common triggers
5 Re-verifyPower up in order, then read back a known NC variableAlarm gone but stale data is not a pass

Table 3: triage 150202 by the awaited object, not by a keyword guess

Field recipes such as clearing PLC RUN, replacing a PN switch, renaming the station, restoring machine data or restarting the CPU may all appear in one successful repair, but none is a universal first step. Identify %1 and the topology first.

10.7 Four backups before changing any mapping

Keep at least four separate backups: NCK start-up data including parameters and compensations; the complete PLC project with symbols and comments; SINAMICS drive parameters; and a full machine image or disk backup. A PLC-only backup still leaves a machine with programs but no NC data after a board swap.

Acceptance sequence: station online under the correct name, no active NC/PLC alarms, generated blocks report no ERROR, readback matches the HMI, a controlled write changes only the agreed variable, mapping survives a power cycle, and the archive records the exact software versions.

10.8 Scope and compliance

  • The statements that MD is maintained by the NC, DB 120 is the standard variable DB and the latest Selector works across NC software versions come from Siemens’ SINUMERIK 840D sl / 828D basic functions documentation. Variable-area grouping follows the Siemens NC variables and interface signals list manual.
  • The six-step workflow, block names, error words and TIA migration guidance are field/second-source practice, not a single official procedure. Verify them against the delivered tools, project versions and machine builder documentation.
  • No manual text is reproduced, and no cracked software, key generator, third-party drive link or bundled manual archive is offered. Writing MD, modifying a PLC project or restarting a control must be performed by qualified personnel under the machine builder’s procedure.

Frequently Asked Questions

What does NCVAR Selector do, and why cannot the PLC read 840D MD directly?

It creates a mapping between NC variables and PLC address space. MD belongs to the NC kernel; without a generated symbol and DB mapping, the PLC sees an online station but has no address from which to read the datum.

Does alarm 150202 always mean a wrong PROFINET device name?

No. The decisive information is the awaited component in %1. Check start-up timing, internal bus, node settings and device name in that order. A device-name fault is one possible cause, not the definition of the alarm.

Can NCVAR Selector be used directly inside TIA Portal?

Field sources describe a classic STEP 7 v5 workflow: generate symbols and blocks there, then migrate them into a Portal project. Exact support depends on tool and firmware versions, so verify against the delivered documentation and a live project.

Last updated: 2026-11-16

Where to go next

Read the guide, get the right instrument, or walk the diagnosis through with someone — pick whichever you need.

Also available in Chinese: SINUMERIK 840D sl 与 S7-1500 怎么通讯?PROFINET 设备名 + NCVAR Selector 从 PLC 读写 MD 全流程
The original Chinese version — same procedure, with the full field notes.
© 版权声明
THE END
喜欢就支持一下吧
点赞8赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容

CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
CNC电气调试问题解答 | 数控机床电气工程师资料共享屋
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
图片-CNCShare | 数控电气技术中心
FANUC PMC Scan Time: Why Inputs Get Missed and Timers Fire Early-CNCShare | 数控电气技术中心
FANUC PMC 扫描周期怎么导致信号漏采、定时器提前:中文现场排查-CNCShare | 数控电气技术中心
Schematic ↔ I/O Table ↔ PMC Ladder: Three-Way Cross-Reference Fault Tracing-CNCShare | 数控电气技术中心
电气原理图 ↔ I/O 分配表 ↔ PMC 梯形图三方对照:从报警反查到端子和元件的完整路径-CNCShare | 数控电气技术中心
数控电气调试软件与官方手册哪里下载?FANUC / 西门子 / 三菱 / 海德汉 官方入口与版本对应-CNCShare | 数控电气技术中心
SINUMERIK 828D G290 vs G291: DIN and ISO Mode Side by Side-CNCShare | 数控电气技术中心
SINUMERIK 828D G290 G291 怎么切?DIN 写法与 ISO 写法逐行对照-CNCShare | 数控电气技术中心
SINUMERIK 840D sl to S7-1500: NCVAR Selector, PROFINET Names and Alarm 150202-CNCShare | 数控电气技术中心
SINUMERIK 840D sl 与 S7-1500 怎么通讯?PROFINET 设备名 + NCVAR Selector 从 PLC 读写 MD 全流程-CNCShare | 数控电气技术中心
CNC Alarm Message Chinese Reference: 120 Common English Phrases and a 30-Second Triage Method-CNCShare | 数控电气技术中心
Five Peripheral Alarm Clusters on CNC Machines: Coolant, Lubrication, Chip Conveyor, Air and Hydraulics - From English Alarm Text to PMC Feedback to Action-CNCShare | 数控电气技术中心
数控机床英文报警中文对照(120 条句式样例)+ 看到英文报警后 30 秒定位该查哪个点-CNCShare | 数控电气技术中心
文章精选
专心做好一件事
打造更优雅的WordPress主题-CNCShare | 数控电气技术中心
专心做好一件事
打造更优雅的WordPress主题