AgentSkillsCN

mm-apr-keyence

在为APR配置Keyence安全设备与IO-Link设备时,可按以下步骤操作: (1) GL-VM72HP安全光幕的设置与OSSD接线; (2) NQ-EC8L EtherCAT IO-Link主站的配置; (3) 为NQ-EC8L导入ESI文件并完成PDO映射; (4) IO-Link传感器的集成; (5) 在TwinCAT中实现光幕触发逻辑。

SKILL.md
--- frontmatter
name: mm-apr-keyence
description: |
  Use when configuring Keyence safety and IO-Link devices for APR:
  (1) GL-VM72HP safety light curtain setup and OSSD wiring,
  (2) NQ-EC8L EtherCAT IO-Link master configuration,
  (3) ESI file import and PDO mapping for NQ-EC8L,
  (4) IO-Link sensor integration,
  (5) Light curtain trigger logic in TwinCAT.

Keyence Device Configuration Guide

Version: APR-2026.01 | TwinCAT: 3.1 Build 4024.65

Safety light curtain and IO-Link master setup for APR system.

Overview

This skill covers the configuration of Keyence devices in the APR system, including the GL-VM72HP safety light curtain for personnel protection and the NQ-EC8L EtherCAT IO-Link master for sensor integration.

Device Overview

DeviceModelPurpose
Safety Light CurtainGL-VM72HPPersonnel protection
IO-Link MasterNQ-EC8LSensor/actuator hub

GL-VM72HP Safety Light Curtain

Specifications

ParameterValue
ModelGL-VM72HP
Optical Axes72
Pitch (Spacing)20 mm
Protection Height1440 mm (72 × 20mm)
Output TypeOSSD (PNP, 24VDC)
Safety LevelType 4 / SIL 3 / PLe

OSSD Wiring

code
GL-VM72HP                    EL1904 (TwinSAFE)
┌─────────────┐              ┌─────────────┐
│ OSSD1 (PNP) │─────────────►│ DI 3        │
│ OSSD2 (PNP) │─────────────►│ DI 4        │
│ 24V         │◄─────────────│ 24V Supply  │
│ 0V          │◄─────────────│ 0V          │
└─────────────┘              └─────────────┘

Signal Behavior

ConditionOSSD1OSSD2
Clear (No obstruction)HIGHHIGH
Blocked (Intrusion)LOWLOW
FaultDiscordant-

Muting Configuration

If muting is required (e.g., product passage):

  1. Configure muting sensors
  2. Wire muting inputs to controller
  3. Implement muting logic in TwinSAFE

NQ-EC8L EtherCAT IO-Link Master

Specifications

ParameterValue
ModelNQ-EC8L
Ports8 × IO-Link / DI / DO
ProtocolEtherCAT (CoE)
IO-Link Version1.1

EtherCAT Topology

code
EK1100 → E1 Axis A → E1 Axis B → NQ-EC8L → (expansion)

ESI File

File: Keyence_NQ-EC8L_R1_8508.xml

Installation:

  1. Copy to C:\TwinCAT\3.1\Config\Io\EtherCAT\
  2. Reload Device Descriptions in TwinCAT
  3. Scan for devices

Port Configuration

Each port can be configured as:

  • IO-Link (sensor/actuator communication)
  • Standard DI (digital input)
  • Standard DO (digital output)

PDO Mapping

TxPDO (NQ-EC8L → Master)

ObjectNameType
Port 1 InputIO-Link data or DIVariable
Port 2 InputIO-Link data or DIVariable
.........
Port 8 InputIO-Link data or DIVariable

RxPDO (Master → NQ-EC8L)

ObjectNameType
Port 1 OutputIO-Link data or DOVariable
.........

TwinCAT Configuration

  1. Add NQ-EC8L to I/O tree (after scanning)
  2. Configure each port mode (IO-Link/DI/DO)
  3. For IO-Link: Configure IODD file for specific sensor
  4. Link PDO to PLC variables

Light Curtain Integration in TwinCAT

PLC Variable Declaration

iecst
VAR
    // From NQ-EC8L or direct wiring
    bLightCurtain_OSSD1  AT %I* : BOOL;
    bLightCurtain_OSSD2  AT %I* : BOOL;

    // Derived signals
    bLightCurtainOK      : BOOL;
    bLightCurtainFault   : BOOL;
END_VAR

Logic Implementation

iecst
// Both OSSD must be HIGH for clear condition
bLightCurtainOK := bLightCurtain_OSSD1 AND bLightCurtain_OSSD2;

// Discordant signals indicate fault
bLightCurtainFault := bLightCurtain_OSSD1 XOR bLightCurtain_OSSD2;

// Safety interlock
IF NOT bLightCurtainOK THEN
    // Trigger safety stop
    bSafetyStop := TRUE;
END_IF

Isaac Sim Integration

For simulation with Omniverse Isaac Sim:

  • Model light curtain as trigger volumes
  • OSSD signals simulated via OPC-UA or direct link
  • Test safety response in virtual environment

Troubleshooting

Light Curtain Issues

SymptomCauseSolution
OSSD always LOWAlignment issueRealign emitter/receiver
Intermittent triggersVibration/dustClean optics, check mounting
Discordant OSSDInternal faultReplace unit

NQ-EC8L Issues

SymptomCauseSolution
Not detectedWrong ESIInstall correct ESI file
IO-Link errorWrong IODDInstall sensor IODD
No dataPort mode wrongConfigure correct mode

Available References

  • references/gl-vm72hp-specs.md - GL-VM72HP safety light curtain specifications
  • references/nq-ec8l-esi.md - NQ-EC8L EtherCAT ESI reference
  • references/nq-ec8l-xml-analysis.md - Complete XML analysis of NQ-EC8L ESI file