EJ2502 - operation modes

The EJ2502 output module has three basic operation modes with additional settings for each channel (channel 1: n=0, channel 2:n=1):

  • Pulse width (standard)
  • Pulse width and frequency (16 bit)
  • Pulse width and frequency 1 Hz (32-bit)

The basic setting is done via the process data selection.
The differences and setting options are illustrated in the following table.

Operation modes

Pulse width (standard)

OP mode can be set via
CoE Index 0x80n0:07 (ch.1: n=0, ch.2: n=1)

Pulse width and
frequency (16 bit)

Pulse width and frequency 1 Hz (32-bit)

CoE index 0x80n0:07

0

2

3

Not relevant

Mark/space ratio preset

Via process data (cyclic)

Frequency preset

Via CoE (acyclic)

[20 Hz to 20 kHz] via process data 16-bit unsigned (cyclic), 1 digit = 1 µs period

[1 Hz to 20 kHz]
via process data 32-bit unsigned (cyclic), 1 digit = 1 µs period

Used if

only the mark/space ratio is to be changed quickly in the real-time context.

mark/space ratio and frequency are to be changed quickly in the real-time context.

mark/space ratio and frequency are to be changed quickly in the real-time context.
The frequency can be set to min. 1 Hz.

Operating
range

PWM 20 Hz..20 kHz

PWM 100 ns frequ. resolution

PWM 1 Hz..20 kHz

PWM 20 Hz

PWM 1 Hz..20 kHz

Period value from

CoE
0x80n0:15*

CoE
0x80n0:15*

CoE 0x80n0:16*

Process data

Period unit

[1000 ns = 1 µs]

[100 ns]

[1000 ns = 1 µs]

Permissible value range

80..32657 (signed)
50..65535 (unsigned)

80..65535

50..1000000

0..65535 (only unsigned)

0..1000000

Frequency range

20 Hz..20 kHz

153 Hz..125 kHz

1 Hz..20 kHz

20 Hz..20 kHz

1 Hz..20 kHz

*The corresponding output frequency can be calculated from the period.

Impermissible values in the pulse width operation mode (standard), OP mode "100 ns"

  • If a value < 80 [*100 ns] is preset in the pulse width operation mode (standard), OP mode "100 ns", this cannot be processed.
  • If such an invalid value is entered, the EtherCAT device has to be started in the PREOP state and the CoE entry corrected in this state.