Basic function principles
Table of contents |
---|
The EL1502 input terminal counts binary pulses and transfers the current value to the higher-level controller.
In addition to the 32 bit up/down counter, further available operating modes are a 32 bit gated counter or two 32 bit counters. In gated counter mode, a low or high level at the Gate input inhibits the counting function of the terminal.
If two 32 bit counters are active, the U/D input (terminal point 1) is configured as the input for the first counter and the Clock 2 input (terminal point 5) as the input for the second counter.
Beyond that, two digital outputs can be set.
The maximum input frequency is limited to 100 kHz for the EL1502; the counters react to the rising edge of the input signal.
The use of EL1502 is described below.
Operating mode selection and parameterization
- Click on the EL1502 terminal in the TwinCAT system configuration tree in the TwinCAT System Manager (fig. EL1502 in the TwinCAT tree).
- The operation mode can now be selected via the "Process Data" and "CoE - Online" tabs in the TwinCAT System Manager (Config mode) (Fig. "Process Data" tab & "CoE - Online" tab).
- Parameterization takes place via the CoE objects, indices 0x80xx (CoE - Online tab) (fig. "CoE - Online" tab).
- Click on the row of the indexes to be parameterized and enter a corresponding value in the "SetValue" dialog.
- After parameterization read in the configuration again. To do this, click on the button "Reload I/O devices".
From the controller (TwinCAT PLC)
- the counter value can be set (index 0x7000:03, 0x7010:03, 0x7020:03),
- the counter function of the terminal inhibited (index 0x7000:04, 0x7010:04, 0x7020:04) and
- the outputs activated (index 0x7000:02, 0x7010:02, 0x7020:02).
In addition an internal function can be activated that enables the automatic setting of outputs with defined counter values (index 0x8000:01, 0x8010:01, 0x8020:01).