Implementation of the Module DC541-CM¶
Note
The implementation of the module functions of the function module DC541-CM is performed by means of function blocks. Access to the channels configured as normal inputs and outputs is performed using the function block DC541 IO: DC541_IO
Configuration of DC541-CM is described in the chapter for Automation Builder configuration DC541-CM Configuration: DC541-CM Interrupt and Counter ModuleDC541 Hardware: Digital Input/Output Module DC541-CMDC541 Library: DC541 Library
The module’s cycle time is set automatically depending on its channel configuration. The following values are possible for the cycle time:
I/O device: | 50 µs | |
Counting device: | 1-2 functions 3-4 functions 5-8 functions |
50 µs 100 µs 200 µs |
“Functions” are:
|
|
|
|
|
|
|
|
|
|
|
|
The used cycle time can be read at output CYCLE of the block DC541_GET_CFG: DC541_GET_CFG DC541_GET_CFG.
The following table shows an overview of all possible combinations.
Con- figured as | Function/ can be con- figured for channel | C0 | C1 | C2 | C3 | C4 to C7 | Max. number of channels for this function | Remark and reference to alternative combinations (a and b) |
---|---|---|---|---|---|---|---|---|
Mode 1: Interrupt function; mutually exclusive with mode 2 (counting functions). | ||||||||
Interrupt | Dig. input | 1 | 1 | 1 | 1 | 4 | 8 | Each channel can be configured individually as interrupt input or output. |
Interrupt inp. | 1 | 1 | 1 | 1 | 4 | 8 | ||
Dig. output | 1 | 1 | 1 | 1 | 4 | 8 | ||
Mode 2: Counting functions and multifunctional I/Os; mutually exclusive with mode 1 (interrupt functions). | ||||||||
Multi-function I/Os, PWM, counters, time and frequency measuring | Dig. input | 1 | 1 | 1 | 1 | 4 | 8 | Normal input |
Dig. output | 1 | 1 | 1 | 1 | 4 | 8 | Normal output | |
PWM, resolution 10 kHz | 1 | 1 | 1 | 1 | 4 | 8 | Outputs a pulsed signal with an adjustable on-off ratio. | |
Frequency output, resolution 2.5 kHz |
1 | 1 | 1 | 1 | 4 | 8 | Outputs an adjustable frequency (endless output or output of a specified number of pulses). | |
Up/down counter, 50 kHz |
1 | 1 | OK *1) |
OK *1) |
OK *1) |
2 | *1) a) Both channels (0 and 1) configured as 50 kHz counter => Channels 2 to 7 can be configured as digital I/Os. b) Only one channel (0 or 1) configured as 50 kHz counter => Second channel can be configured as counter < 50 kHz or for time/frequency measurement with a max. resolution of 200 µs. The remaining channels (2 to 7) can be configured as digital I/Os. |
|
Up/down counter, 5 kHz |
1 | 1 | 1 | 1 | OK *2) |
4 | *2)
or as digital I/Os. The remaining channels (4 to 7) can be configured as digital I/Os. |
|
Up/down counter, 2.5 kHz |
1 | 1 | 1 | 1 | 4 | 8 | ||
Time/ frequency measurement, resolution 50 µs |
1 | OK *3) |
OK *3) |
OK *3) |
OK *3) |
1 | *3) Channel 0 configured for a max. resolution of 50 µs => Channels 1 to 7 can be configured as digital I/Os. |
|
Time/ frequency measurement, resolution 100 µs |
1 | 1 | OK *4) |
OK *4) |
OK *4) |
2 | *4)
|
|
Time/ frequency measurement, resolution 200 µs |
1 | 1 | 1 | 1 | 4 | 8 | Times, frequencies and rotational speeds are measured with a max. resolution of 200 µs. | |
High-speed counter | Bidirectional 32 bit counter, 50 kHz max. |
Channels 0 to 3: Track A, track B, zero track, touch trigger | OK *6) |
1 | For connection of an incremental transmitter. For signals up to 50 kHz. This frequency corresponds to a motor with a rotational speed of 3000 rpm. The counter always uses the first 4 channels (0 to 3). *6) The remaining channels (4 to 7) can be configured as limit values, as 5 kHz counters, for time/frequency measurement with a resolution of 200 µs or as digital I/Os. |
|||
Axis of rotation (endless counting) |
1 | OK *7) |
1 | “Endless” forward counting. An overflow occurs corresponding to the 32 bit value. *7) The remaining channels can be configured as limit values, as 5 kHz counters, for time/frequency measurement with a resolution of 200 µs or as digital I/Os. |
||||
32 bit counter incl. sign | 1 | OK *8) |
1 | *8) The remaining channels can be configured as limit values, as 5 kHz counters, for time/frequency measurement with a resolution of 200 µs or as digital I/Os. | ||||
Limit values for 32 bit counter | OK *9) | 1 | 1 | Various counting values of the 32 bit counter can be displayed directly via these outputs. *9) In this case, the channels 0 to 3 are used as 32 bit counters. |