|
229 | 229 | <Tab> |
230 | 230 | <TabPage Title="Automatic rendering"> |
231 | 231 | <div class="mt-4"> |
232 | | - <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2" Presentation="@_selectedPresentation" /> |
| 232 | + <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x" Presentation="@_selectedPresentation" /> |
233 | 233 | </div> |
234 | 234 | </TabPage> |
235 | 235 | <TabPage Title="Code reference"> |
|
337 | 337 | </TabPage> |
338 | 338 | <TabPage Title="Example sequence"> |
339 | 339 | <div class="mt-4"> |
340 | | - <AXOpen.Core.AxoTaskCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2.Sequencer" /> |
341 | | - <AXOpen.Core.AxoSequencerCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2.Sequencer" /> |
| 340 | + <AXOpen.Core.AxoTaskCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.Sequencer" /> |
| 341 | + <AXOpen.Core.AxoSequencerCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.Sequencer" /> |
342 | 342 | <article class="rounded-xl border border-slate-200 bg-white p-4"> |
343 | 343 | <h4 class="text-lg font-semibold text-slate-900">Sequencer Step Logic</h4> |
344 | 344 | <p class="mt-1 text-sm text-slate-600">Each block below is parsed from |
|
370 | 370 | </Tab> |
371 | 371 | </div> |
372 | 372 | </TabPage> |
373 | | - <TabPage Title="AxoKrc4 on KRC5"> |
374 | | - <div class="mt-4 space-y-4"> |
375 | | - <div class="flex items-center gap-2"> |
376 | | - <span class="text-xs font-medium text-slate-500">Maturity:</span> |
377 | | - <MaturityBadge ComponentName="KUKA KRC4 v_5_x_x" /> |
378 | | - </div> |
379 | | - <p class="text-sm text-slate-600"> |
380 | | - The same <code>AxoKrc4</code> proxy drives a KUKA KRC5 cell — the DIO512 slot layout is identical, |
381 | | - so only the GSDML and the device template differ. This tab runs against the <code>kuka_rb2</code> |
382 | | - KRC5 device provisioned by <code>kuka_krc5_dio512</code>. |
383 | | - </p> |
384 | | - <Tab> |
385 | | - <TabPage Title="Automatic rendering"> |
386 | | - <div class="mt-4"> |
387 | | - <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5" Presentation="@_selectedPresentation" /> |
388 | | - </div> |
389 | | - </TabPage> |
390 | | - <TabPage Title="Code reference"> |
391 | | - <div class="mt-4 space-y-6"> |
392 | | - <div> |
393 | | - <h4 class="text-sm font-semibold text-gray-900 mb-1">Component declaration (ST)</h4> |
394 | | - <p class="text-xs text-slate-500 mb-2"> |
395 | | - <SourceFileLink Path="@_plcComponent3Path" Label="@_plcComponent3Path" OnOpen="OpenModalAsync" /> |
396 | | - — <ComponentDeclaration> region |
397 | | - </p> |
398 | | - @if (_c3DeclarationSnippet != null && !_c3DeclarationSnippet.IsError) |
399 | | - { |
400 | | - <CodeBlock Content="@(_c3DeclarationSnippet.Content ?? string.Empty)" Language="language-iecst" /> |
401 | | - } |
402 | | - else if (_loadingCode) |
403 | | - { |
404 | | - <div class="p-4 text-center text-slate-500">Loading...</div> |
405 | | - } |
406 | | - else |
407 | | - { |
408 | | - <p class="text-xs text-orange-600">Unable to load snippet</p> |
409 | | - } |
410 | | - </div> |
411 | | - <div> |
412 | | - <h4 class="text-sm font-semibold text-gray-900 mb-1">Component Run call (ST)</h4> |
413 | | - <p class="text-xs text-slate-500 mb-2"> |
414 | | - <SourceFileLink Path="@_plcComponent3Path" Label="@_plcComponent3Path" OnOpen="OpenModalAsync" /> |
415 | | - — <Initialization> region |
416 | | - </p> |
417 | | - @if (_c3InitSnippet != null && !_c3InitSnippet.IsError) |
418 | | - { |
419 | | - <CodeBlock Content="@(_c3InitSnippet.Content ?? string.Empty)" Language="language-iecst" /> |
420 | | - } |
421 | | - else if (_loadingCode) |
422 | | - { |
423 | | - <div class="p-4 text-center text-slate-500">Loading...</div> |
424 | | - } |
425 | | - else |
426 | | - { |
427 | | - <p class="text-xs text-orange-600">Unable to load snippet</p> |
428 | | - } |
429 | | - </div> |
430 | | - </div> |
431 | | - </TabPage> |
432 | | - <TabPage Title="Hardware configuration"> |
433 | | - <div class="mt-4 space-y-6"> |
434 | | - <div> |
435 | | - <h4 class="text-sm font-semibold text-gray-900 mb-1">Device instantiation (hwl)</h4> |
436 | | - <p class="text-xs text-slate-500 mb-2"> |
437 | | - <SourceFileLink Path="@_hwcPlcLineYmlPath" Label="@_hwcPlcLineYmlPath" OnOpen="OpenModalAsync" /> |
438 | | - — <KukaKrc5Device> region |
439 | | - </p> |
440 | | - @if (_hwcKrc5DeviceInstanceSnippet != null && !_hwcKrc5DeviceInstanceSnippet.IsError) |
441 | | - { |
442 | | - <CodeBlock Content="@(_hwcKrc5DeviceInstanceSnippet.Content ?? string.Empty)" Language="language-yaml" /> |
443 | | - } |
444 | | - else if (_loadingCode) |
445 | | - { |
446 | | - <div class="p-4 text-center text-slate-500">Loading...</div> |
447 | | - } |
448 | | - else |
449 | | - { |
450 | | - <p class="text-xs text-orange-600">Unable to load snippet</p> |
451 | | - } |
452 | | - </div> |
453 | | - <div> |
454 | | - <h4 class="text-sm font-semibold text-gray-900 mb-1">Device template (hwl)</h4> |
455 | | - <p class="text-xs text-slate-500 mb-2"> |
456 | | - <SourceFileLink Path="@_hwcDeviceKrc5TemplatePath" Label="@_hwcDeviceKrc5TemplatePath" OnOpen="OpenModalAsync" /> |
457 | | - </p> |
458 | | - </div> |
459 | | - <div> |
460 | | - <h4 class="text-sm font-semibold text-gray-900 mb-1">PROFINET IO system wiring (hwl)</h4> |
461 | | - <p class="text-xs text-slate-500 mb-2"> |
462 | | - <SourceFileLink Path="@_hwcPlcLineYmlPath" Label="@_hwcPlcLineYmlPath" OnOpen="OpenModalAsync" /> |
463 | | - — <KukaKrc5IoSystem> region |
464 | | - </p> |
465 | | - @if (_hwcKrc5IoSystemSnippet != null && !_hwcKrc5IoSystemSnippet.IsError) |
466 | | - { |
467 | | - <CodeBlock Content="@(_hwcKrc5IoSystemSnippet.Content ?? string.Empty)" Language="language-yaml" /> |
468 | | - } |
469 | | - else if (_loadingCode) |
470 | | - { |
471 | | - <div class="p-4 text-center text-slate-500">Loading...</div> |
472 | | - } |
473 | | - else |
474 | | - { |
475 | | - <p class="text-xs text-orange-600">Unable to load snippet</p> |
476 | | - } |
477 | | - </div> |
478 | | - </div> |
479 | | - </TabPage> |
480 | | - <TabPage Title="Example sequence"> |
481 | | - <div class="mt-4"> |
482 | | - <AXOpen.Core.AxoTaskCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.Sequencer" /> |
483 | | - <AXOpen.Core.AxoSequencerCommandView Component="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.Sequencer" /> |
484 | | - <article class="rounded-xl border border-slate-200 bg-white p-4"> |
485 | | - <h4 class="text-lg font-semibold text-slate-900">Sequencer Step Logic</h4> |
486 | | - <p class="mt-1 text-sm text-slate-600">Each block below is parsed from |
487 | | - <SourceFileLink Path="@_plcComponent3Path" Label="AxoKrc4_v_5_x_x_Krc5Showcase.st" OnOpen="OpenModalAsync" />. |
488 | | - </p> |
489 | | - @if (_c3StepLogicBlocks.Count > 0) |
490 | | - { |
491 | | - <div class="mt-4 space-y-3"> |
492 | | - @foreach (var step in _c3StepLogicBlocks) |
493 | | - { |
494 | | - _c3StepsBySymbol.TryGetValue(step.StepSymbol, out var liveStep); |
495 | | - <AxoStepCard Step="step" LiveStep="liveStep" /> |
496 | | - } |
497 | | - </div> |
498 | | - } |
499 | | - else if (_loadingCode) |
500 | | - { |
501 | | - <div class="mt-4 p-4 text-sm text-slate-500">Loading step logic...</div> |
502 | | - } |
503 | | - else |
504 | | - { |
505 | | - <div class="mt-4 p-4 text-sm text-orange-700 bg-orange-50 rounded border border-orange-200"> |
506 | | - No sequencer step blocks were detected. |
507 | | - </div> |
508 | | - } |
509 | | - </article> |
510 | | - </div> |
511 | | - </TabPage> |
512 | | - </Tab> |
513 | | - </div> |
514 | | - </TabPage> |
515 | 373 | </Tab> |
516 | 374 | </div> |
517 | 375 | </article> |
|
609 | 467 | s => s.Symbol.Substring(s.Symbol.LastIndexOf('.') + 1), |
610 | 468 | s => s |
611 | 469 | ); |
612 | | - _c2StepsBySymbol = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2.Steps |
613 | | - .ToDictionary( |
614 | | - s => s.Symbol.Substring(s.Symbol.LastIndexOf('.') + 1), |
615 | | - s => s |
616 | | - ); |
617 | | - _c3StepsBySymbol = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.Steps |
| 470 | + _c2StepsBySymbol = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.Steps |
618 | 471 | .ToDictionary( |
619 | 472 | s => s.Symbol.Substring(s.Symbol.LastIndexOf('.') + 1), |
620 | 473 | s => s |
|
635 | 488 | { |
636 | 489 | var seq1 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x.Sequencer; |
637 | 490 | var steps1 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x.Steps; |
638 | | - var seq2 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2.Sequencer; |
639 | | - var steps2 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_2.Steps; |
640 | | - var seq3 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.Sequencer; |
641 | | - var steps3 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.Steps; |
| 491 | + var seq2 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.Sequencer; |
| 492 | + var steps2 = Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.Steps; |
642 | 493 | this.StartPolling(seq1, 250); |
643 | 494 | foreach (var step in steps1) |
644 | 495 | { |
|
655 | 506 | this.StartPolling(step.Order, 250); |
656 | 507 | this.StartPolling(step.Descr, 500); |
657 | 508 | } |
658 | | - this.StartPolling(seq3, 250); |
659 | | - foreach (var step in steps3) |
660 | | - { |
661 | | - this.StartPolling(step.IsActive, 250); |
662 | | - this.StartPolling(step.IsEnabled, 250); |
663 | | - this.StartPolling(step.Order, 250); |
664 | | - this.StartPolling(step.Descr, 500); |
665 | | - } |
666 | 509 | } |
667 | 510 | } |
668 | 511 |
|
|
688 | 531 | <!-- </RccComponentCommandView> --> |
689 | 532 |
|
690 | 533 | <!-- KRC5 instance markers --> |
691 | | - <!-- <Krc5GenericComponentStatusView> --> |
692 | | - <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.ExampleRobot" Presentation="Status-Display" /> |
693 | | - <!-- </Krc5GenericComponentStatusView> --> |
694 | | - |
695 | | - <!-- <Krc5GenericComponentCommandView> --> |
696 | | - <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc4_v_5_x_x_krc5.ExampleRobot" Presentation="Command-Control" /> |
697 | | - <!-- </Krc5GenericComponentCommandView> --> |
| 534 | + <!-- <GenericComponentStatusView> --> |
| 535 | + <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.ExampleRobot" Presentation="Status-Display" /> |
| 536 | + <!-- </GenericComponentStatusView> --> |
| 537 | + <!-- <GenericComponentCommandView> --> |
| 538 | + <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.ExampleRobot" Presentation="Command-Control" /> |
| 539 | + <!-- </GenericComponentCommandView> --> |
| 540 | + <!-- <RccComponentStatusView> --> |
| 541 | + <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.ExampleRobot" Presentation="Status-Display" /> |
| 542 | + <!-- </RccComponentStatusView> --> |
| 543 | + <!-- <RccComponentCommandView> --> |
| 544 | + <RenderableContentControl Context="@Entry.Plc.Ctx.kuka_robotics_documentation.axoKrc5_v_5_x_x.ExampleRobot" Presentation="Command-Control" /> |
| 545 | + <!-- </RccComponentCommandView> --> |
698 | 546 | } |
0 commit comments