Basic function principles

The 4-axis interface terminal module EM7004 integrates 4 Incremental encoder, 4 analog outputs with +/-10 V and 16 digital 24 V inputs and outputs. The digital inputs and outputs can be connected in single, two or three wire connection mode.
For the incremental encoder a 16-bit counter with quadrature decoder and a 16-bit latch can be read, set or enabled. In addition to encoder inputs A, /A, B, /B, an additional latch input L (24 V) and a gate input G (24 V) for disabling the counter are available. The "Value" input value represents a 16-bit "position counter".
The PLS function (Programmable Limit Switch) can be used to control digital outputs automatically depending on the encoder counter value (up to 75 entries).

Reference

An object description and an overview of adjustable encoder parameters can be found in chapter "TwinCAT System Manager - Object overview".