EX Series Card-type IO
The DEKWELL EX series card-type I/O consists of an adapter module, an I/O module, a power supply module, and a terminal module. The adapter supports multiple communication buses.
The adapter module converts the standard communication bus into the communication bus of the product module, enabling the expansion of different types and numbers of I/O modules. I/O modules can be categorized into digital input modules, digital output modules, analog input modules, analog output modules, and functional modules, allowing users to choose the appropriate combination based on their specific field needs.
The EX-6021 is a single-channel differential encoder module widely used in industrial automation, robotics, servo control systems, elevators, motor control, and other mechanical equipment requiring precise position and speed feedback. The EX-6021 module primarily offers the following functions:
1. Counting function:
The counting function is a basic function of the EX-6021, used to count the number of input pulses, etc.
2. Z-phase function:
This function allows the count value to be automatically reset to zero during the counting process;
3. Initial value function:
This function allows you to set an initial count value, enabling the count to start from that initial value.
4. Counting direction function:
This function enables bidirectional counting on the EX-6021: 0 indicates that the counting direction is the same as the actual rotation direction, and 1 indicates that the counting direction is opposite to the actual rotation direction.
Today we will introduce the use and configuration of the DEKW EX-6021 in Codesys.
01. Steps for using EX-6021 in Codesys
To install the XML description file into Codesys, click on the Tools & Devices repository in the top left corner. Install the EX-1100 description file.
Attach the EX-6021 to the EX-1100 adapter, open Codesys, and scan for the adapter and module, as shown in the figure.
To configure the EX-6021 communication parameters, double-click “EX_6021” > “IO Mapping”. Users can configure the corresponding parameters as shown in the figure.
02. EX-6021 Configuration Parameters
Note: Parameter settings need to be configured before the module runs. For example, if using TwinCAT, set them in Startup; in OMROM software, find the corresponding module in the module editing initialization parameter settings and configure it; if no settings are required, use the default values and no operation is needed.
03. EX-6021 Process Data
Note: Downlink data addresses must be consecutive and cannot be separated. Downlink data (digital and analog) needs to be configured by the user according to the specific usage scenario, while uplink data is the feedback data from the module's operation.
04. EX-6021 Module Operation
1. Counting function
Set the downlink digital Count Enable bit in the EX-6021 process data to enable the EX-6021 counting function. At this time, field input pulses can be collected, and the count value is fed back in the uplink analog Count Value bit.
2. Z-phase function
First, set the downlink digital quantity Count Enable bit in the EX-6021 process data to enable the EX-6021 counting function. Then, set the downlink digital quantity Z Phase Enable bit to enable the Z phase clearing function.
3. Initial value function
First, set the Count Enable bit in the downlink digital data of EX-6021 to enable the EX-6021 counting function. Then, set the user-defined initial value (0-4294967295) for the downlink analog quantity Initial Count Value. Finally, set the Set Initvalue Enable bit in the downlink digital quantity to enable the initial value function.
Example: Set Count Enable = 1;
Initial Count Value = 1000;
Set Initvalue Enable = 1;
The count value becomes 1000 and starts counting from 1000;
4. Counting direction function
First, set the Count Enable bit in the EX-6021 process data to enable the EX-6021 counting function. Then, set the Counting Direction bit in the downlink digital data, where 0 indicates that the counting direction is the same as the actual rotation direction, and 1 indicates that the counting direction is opposite to the actual rotation direction.
05. EX-6021 Parts Description
Parts Specification Sheet:
06. EX-6021 Terminal Wiring