On this page
Keyence DL-EN1
Sensor commands, status and I/O operations through the KEYENCE DL-EN1 communication unit.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| DL-EN1 | Access supported sensors through the DL-EN1 TCP command interface. Match connected sensors, parameter numbers and available commands to the applicable DL-EN1 manual. |
Set up the DL-EN1 and sensors
The DL-EN1 exposes attached sensor measurements and parameters through TCP ASCII commands. This entry uses command fields, rather than DM/D addresses or Modbus registers. Record the unit’s MAC address, IP address, command port, sensor IDs and model-specific data numbers.
- Install and power the communication unit, main amplifier and expansion amplifiers according to their manuals. Connect Ethernet to the gateway network. A sensor ID identifies an attached amplifier; it is independent of the IP address.
- A new DL-EN1 has no assigned IP address. Connect the configuration PC to the same network and start KEYENCE IP Setting Tool. Identify the unit by its printed MAC address. Use the scan function to find devices that already have an address.
- Select Setup IP addr., check the MAC again, and assign an unused fixed IP. This example uses
192.168.1.34, with a gateway host such as192.168.1.10/24. Select the required address behavior for the next power cycle. The following original window comes from the KEYENCE DL-EP1 IL manual and displays DL-EP1. DL-EN1 manual section 2-3 also specifies IP Setting Tool or BOOTP; select the actual DL-EN1 MAC in your network.
- Check the DL-EN1 TCP command port. Its factory command port is
64000; use the configured value if changed, and do not select reserved port8500. Record the attached sensor’s ID and data table. For example, GT2 measurement data number is037; other sensors may use different numbers.
Configure the gateway
Open Development configuration → Collection configuration. Add a device and select Keyence DL-EN1. Create a TcpClient channel with remote address 192.168.1.34:64000. For a direct connection, leave backup and bind addresses empty and SSL disabled. The remote address identifies the DL-EN1, not a local listening interface. See Collection configuration for shared channel fields.
Associate the saved channel, enable Allow method invocation, save the device and enable the connected channel/device. The execution interval does not schedule sensor command calls.
Plugin properties
| Parameter | Meaning and setting |
|---|---|
| Read/write timeout | Default 3000 ms. Allow time for the sensor and network to return one response. A device error requires correcting its cause, rather than increasing the timeout. |
| Pre-frame delay | Default 0 ms. Wait before sending each request when the target requires pacing; this is separate from a polling interval. |
| Retry count | Default 3, a shared collection scheduler property. Inspect the explicit command response; do not interpret this as automatic repetition of arbitrary commands. |
| Read/write duty cycle | Default 3, minimum 1. The shared scheduler arranges a read after n writes. This entry has no register polling, so this field does not schedule M0/SR commands. |
| Write priority | Off by default. A shared register scheduler option; it does not convert this entry’s commands into variable writes. |
| Reverse string byte words | Off by default. Used for ordinary register strings; DL-EN1 commands and returned fields are ASCII text and need no word-byte swap. |
| Data order | Default ABCD; also BADC/CDAB/DCBA. Does not reorder ASCII measurement text or apply decimal scaling. |
Enter one command request
Select the device and open Protocol debugging. The commands array for ExecuteCommandsAsync contains the ordered fields of one request. The driver joins them with commas and appends CRLF.
| Operation | Field array | Request before the automatic CRLF |
|---|---|---|
| Read all amplifier measurements | ["M0"] | M0 |
| Read all measurements and output states | ["MS"] | MS |
| Read GT2 measurement from ID 01 | ["SR", "01", "037"] | SR,01,037 |
| Read its decimal position | ["FR", "01", "037"] | FR,01,037 |
In the multiline editor, enter the SR request as three lines:
SR
01
037Do not put SR,01,037 in one field, or combine M0 and SR as a batch. Each field must contain 1–256 printable ASCII characters without commas, CR or LF. The complete frame, including delimiters and CRLF, must not exceed 16 KiB. Check the target and field order in the confirmation dialog before executing one request.
This entry provides explicit command calls. It has no ordinary register variables, additional variable properties, or periodically bound ExecuteCommandsAsync method. Do not enter 037 or SR,01,037 as a variable address.
Compare the measurement
Read the amplifier display, then issue M0. A displayed value of 12.345 corresponds to the manual’s raw measurement field +000012345. Determine decimal scaling from the specific sensor or FR response; dividing every model’s value by 1000 is incorrect.
Values contains nonempty fields split from the response. Depending on the command, these can include an ID, data number and value. They do not correspond one-for-one to input fields. Interpret them using that command’s response format.
| Result or error | Action |
|---|---|
+100000000 | Sensor error marker; check the amplifier. |
+099999999 / -099999999 | Over-range / under-range markers. |
-099999998 | Invalid measurement marker. |
009 / 012 | Invalid write value, unsupported data, or an operation disallowed in the current state. Check model, mode and command. |
014 / 016 | Write / read protection; check the data table’s access rules. |
020 / 022 | Data number / sensor ID out of range. |
| No response | Check IP, TCP command port, CRLF framing and unit status. |
Command formats are in DL-EN1 User’s Manual sections 2-3 and 2-4. The tool windows are from the KEYENCE DL-EP1 IL manual , pages 2-10 and 2-11.





