Page 1
User Manual XI/ON 04/2011 MN05002035Z-EN XNE-2CNT-2PWM Technology Module...
Page 2
All rights reserved, also for the translation. None of this document may be reproduced or processed, duplicated or distributed by electronic systems in any form (print, photocopy, microfilm or any other process) without the written permission of Eaton Automa- tion AG, St. Gallen.
Page 3
(for example, by means of separate limit switches, mechanical inter- locks etc.). • The electrical installation must be carried out in accordance with the relevant regulations (e. g. with regard to cable cross sections, fuses, PE). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 4
• All work relating to transport, installation, commissioning and maintenance must only be carried out by qualified personnel. (IEC/HD 60364 (DIN VDE 0100) and national work safety regulations). • All shrouds and doors must be kept closed during operation. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Functions of the PWM outputs (PWM1 and PWM2)......... 5.1.1 Module restart with saved values ..............5.1.2 Operation modes of the PWM outputs Px............5.1.3 Continuous signal output..................5.1.4 Periodical signal output ..................5.1.5 Enabling the pulse output................... 5.1.6 Latch retrigger (PWM)..................XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 6
Diagnostic data....................103 10.3 Parameter in DPV1 ..................... 104 10.3.1 Parameter data of the module................105 Representation of the XNE-2CNT-2PWM in CANopen ......... 107 11.1 Objects for counter modules................107 11.1.1 General object overview for counter modules ........... 107 11.1.2 Object descriptions ....................
1.1 Documentation concept About this manual Documentation concept This manual describes the technology module XNE-2CNT-2PWM which is part of the product line XI/ON. In addition to the description of the technical features and functions, it also contains a descrip- tion of the I/O module's representation in different field bus systems.
This sign can be found next to all general notes that supply important information about one or more operating steps. These specific notes are intended to make operation easier and avoid unnecessary work due to incorrect operation. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
1.3.2 Notes concerning planning /installation of this product Warning All respective safety measures and accident protection guidelines must be consi- dered carefully and without exception. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 10
1 About this manual 1.3 Overview XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Getting Started - first steps for operating this module General information about the module The XNE-2CNT-2PWM provides 2 counter channels (CNT1 and CNT 2) with 3 count inputs each DI0 (A), DI1 (B) and DI2 (Z) as well as 2 channels with 2 outputs each, P0 and P1 (frequency output) and D1 and D2 (direction).
3 An executed Latch Retrigger is confirmed in the process input / check-back interface with MSG_CNT1_SW_LR = 1. 4 The load value (REG_CNTx_LOADVAL) is transferred into the register for the current count value CNT1 REG_CNTx_CNT (→ see also Register interface (page 91)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 13
AUX_REG1_RD_DATA, byte 3 (bytes 12 to 15 of the process input data /check-back inter- face ((→ see also Current count value (page 12)). Note For further functions of the XNE-2CNT-2PWM (parameterization, process image, in- ternal registers etc.), please read the following chapters. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 14
2 Getting Started - first steps for operating this module 2.2 Getting Started Figure 1: Count function, simplified repre- sentation XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
3 The pulses are output according to the parameterized period duration and the parameter- ized duty cycle (see above). (→ see Process input / check-back interface (page 28), byte 4, bit 5, STS_PWM1_RUN = 1) XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 16
2 Getting Started - first steps for operating this module 2.2 Getting Started Figure 2: PWM function, simplified repre- sentation Note For further functions of the XNE-2CNT-2PWM (parameterization, process image, in- ternal registers etc.), please read the following chapters. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
General description of the module General information about the register interface The module XNE-2CNT-2PWM contains an internal communication interface, the Register interface → see Chapter 9). The data area of the register interface is organized in double words and consists of 128 regis- ters large.
0x40 REG_CNT2_CNT current value CNT2 ADR AUX REG1 WR DATA 0x60 REG_PWM1_PD period duration PWM1 ADR AUX REG2 WR DATA 0x61 REG_PWM1_DC mark-to-space ratio PWM1 ADR AUX REG3 WR DATA 0x70 REG_PWM2_PD period duration PWM2 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Parameter interface Diagnostics interface 3.1.2 Structure of the process data The process data of the XNE-2CNT-2PWM contain • 24 byte process input data, → see page 28 • 24 byte process output data, → see page 32 Additionally, the module provides •...
FE 500 V Measurement ranges Count mode (all modes) up to 200 kHz Frequency measurement up to 200 kHz Period duration measurement up to 178 s 3.2.3 Wiring diagram Figure 6: Pin assignment XNE-2CNT- 2PWM XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Check the power supply to the module bus. No error message or diagnosis Ax, Bx, Zx green Input active Inputs not active Px, Dx green Output active red, Overload at output Output inactive XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
P1_DIAG, P2_DIAG, No diagnostic message D1_DIAG, D2_DIAG Diagnosis pending at channel (short circuit) HW_ERR No diagnostic message "Hardware error" Display of common errors of the module's hardware (e.g. CRC-error, adjust- ment error….). Change of device necessary. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
D2 ADR AUX REG1 RD DATA ADR AUX REG2 RD DATA ADR AUX REG2 RD DATA ADR AUX REG1 WR DATA ADR AUX REG2 WR DATA ADR AUX REG3 WR DATA X = reserved XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 26
Pulse direction, single sample (→ see page 42). 0001 Pulse direction, double sample 0010 AB mode, single sample 0011 AB mode, double sample 0100 AB mode, four samples 0101 to 1110 reserved 1111 AB only input XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 27
REG3 WR DATA = 0x70) ADR AUX REGx RD Address of the basic read registers DATA (Default ADR AUX REG1 RD DATA = 0x20, ADR AUX REG2 RD DATA = 0x21, ADR AUX REG3 RD DATA = 0x40) XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 29
No message active that reports that the upper count limit has been reached. The counter CNTx reports the upper count limit was reached. MSG_CNTx_ND No message active that reports a zero crossing. The counter CNTx reports a zero crossing. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 30
Function enabled, with a change from 0 → 1 the channel is set to the initial state STS_PWMx_RUN PWMx-signal output not active PWMx-signal output active STS_PWMx_SFKT_EN Special function of Z disabled for PWMx Special function of Z enabled for PWMx XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 31
Content of the register of which the address is transferred with the process input data (REG_RD_ADR) if REG_RD_ABORT = 0. If not, REG_RD_DATA = 0. AUX_REGx_RD_DATA 0 ... 2 Value, which is read from the register with the address defined in the parameterization in ADR_AUX_REGx_RD_DATA. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 33
(page 85). Before switching to REG_PWMx_LOGMSG, this register is set to "0". With a change from 1 → 0, all data from REG_PWMx_LOGMSG are copied to the MSG-bits in the Process input / check-back interface. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 34
REG_WR_DATA, Byte 3 AUX_REGx_WR_DATA, Byte 0 0 ... 2 Value which, during a write operation, has to be written to the register defined in (ADR AUX REGx WR DATA (page 27)) in the parameterization. AUX_REGx_WR_DATA, Byte 3 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
(0×00 00 00 00) REG_CNT2_LOADVAL (0×43) Note If a load value is loaded which is outside the count limits, the value is transferred and an error message is generated in REG_CONFIG_ ERRSTS (CNTx) (page 81). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
If a count limit is set so that the actual count value is outside the count range, the current value is set to the count limit which is closest to it. In this case no error mes- sage is recorded in register REG_CONFIG_ERRSTS. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
The counter enable is done by setting the bits CNT1_ ENABLE (CNT1) or CNT2_ ENABLE (CNT2) of the Process output / control interface (page 32). The following applies for the HW gate: STS_CNTx_RUN = 1, CNTx_GENERAL_DISABLE = 0 CNTx_ENABLE = 1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Compare value 1 CNT2 (0×47) (0×80 00 00 00) Note If a compare value is loaded which is outside the count limits, the value is transferred and an error message is generated in REG_CONFIG_ ERRSTS (CNTx) (page 81). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
The counter continues counting starting at the load value. Internal enable The internal enable is not automatically reset. The counter remains active. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
The counter continues counting starting at the upper count limit. Internal enable The internal enable is not automatically reset. The counter remains active. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 41
The internal enable is not automatically reset. The counter remains active. Note The counting operation starts with the current count value. The user can preset this value to a defined value (→ see Load load value (page 35)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
If CNTx_PAR_ERR = 1, then the counter cannot be activated. Note If a parameter error occurs, this is reported in the diagnostic data and an error mes- sage is set in REG_CONFIG_ ERRSTS (CNTx) (page 81). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 43
(page 25)) is set, the rising and falling edges of input Ax are evaluated, depending on the parameterization of input Ax. Signal Bx defines the count direction. Figure 7: Pulse and direc- tion Figure 8: Pulse and direc- tion, evaluation XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 44
(pos. count direction). The counter counts upwards, if the signal sequence is run through from the left to the right (neg. count direction). The points in the following figure mark the scan points (change in count value) depending on the parameterization. Figure 10: AB mode XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
REG_CNT1_LATCH and the load value 1 is trans- REG_CNT2_LATCH and the load value 2 is trans- ferred to counter 1. The count operation is not inter- ferred to counter 2. The count operation is not inter- rupted. rupted. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 46
Functions of Zx for PWM1 and PWM2, → see Special function of inputs Z1 and Z2 for the PWM (page 70)). 1010 to 1110 reserved 1111 Z just input Simple digital input, the status is reported via the check-back interface. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 47
Zx = 1, and disabled with Zx = 0. Note Enabling the counter can be done either via the hardware or the software gate. Please read Enabling the counter (page 37). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 48
After opening the HW gate, bit MSG_CNTx_SFKT page 28 in the Process input / check-back interface is set. Opening and closing the counter gate via HW or SW only influences the counter enable. Count values are not influenced. Figure 11: Count function, Zx as HW gate XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 49
0 → 1 at Zx after enabling the counter with CNTx_SFKT_DISABLE = 0. When executing a HW latch retrigger, the following applies: (REG_CNTx_LATCH) = (REG_CNTx_CNT) (REG_CNTx_CNT) = (REG_CNTx_LOADVAL) MSG_CNTx_SFKT = 1 CNTx_GENERAL_DISABLE = 0 CNTx_SFKT_DISABLE = 0 Zx 0 → 1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 50
(page 38)). Please use byte 0 (CNT1) or byte 1 (CNT2, bit 5 CNTx_SW_LR Process output / control interface (page 32). When executing a SW latch retrigger, the following applies: (REG_CNTx_LATCH) = (REG_CNTx_CNT) (REG_CNTx_CNT) = (REG_CNTx_LOADVAL) MSG_CNTx_SW_LR = 1 CNTx_GENERAL_DISABLE = 0 CNTx_SW_LR 0 → 1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 51
4 Functions of the count inputs (CNT1 and CNT2) 4.1 Basic functions of the count inputs CNTx Figure 12: Synchronization XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 53
Frequency in Hz Note The accuracy of the measurement increases with the length of the integration time. It should be noted that the measured value (REG_CNTx_MV) is only updated after the integration time has expired. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 54
REG_CNTx_INTTIME > 17800, then the value is transferred and an error bit is set in REG_CONFIG_ ERRSTS (CNTx) (page 81). The calculation of the measurement value will then be stopped and REG_CNTx_MV will be set to "0". XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 55
The accuracy of the measurement increases with the length of the integration time. It should be noted, that the measured value (REG_CNTx_MV) is only updated after the integration time has expired. Restrictions The following settings are not allowed: REG_CNTx_MUL = 0 REG_CNTx_DIV = 0 REG_CNTx_INTTIME = 0 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 56
MSG_CNTx_FQE is switched off. Note If REG_CNTx_DIV = 0, then the value is transferred and an error bit is set. The calculation of measurement values is stopped and REG_CNTx_MV is set to "0". XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 57
Revolutions speed in 1/s Note The accuracy of the measurement increases with the length of the integration time. It should be noted, that the measured value (REG_CNTx_MV) is only updated after the integration time has expired. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 58
This time is defined as a multiple of 10 ms in REG_CNTx_TO (page 93). If, during this time-out-time REG_CNTx_MV = 0, which means no pulse was detected, then MSG_CNTx_FQE = 1 = downtime! XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
In case of a power reset, the volatile contents of the PWM-registers (see below) are automat- ically loaded with the "start values after reset" from the reset-value-registers.. Table 12: REG_PWMx_PD REG_PWMx_PD_RV Reset-value REG_PWMx_DC REG_PWMx_DC_RV registers for a restart REG_PWMx_DHIGH REG_PWMx_DHIGH_RV REG_PWMx_DLOW REG_PWMx_DLOW_RV XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
PWMx_PAR_ERR = 1 (→ see Diagnostic data of the module (page 24)). If PWMx_PAR_ERR = 1, then the PWM can not be activated. Additionally to the diagnostic message, an error message is reported in the REG_CONFIG_ ERRSTS (PWMx) (page 83) when a parameter error was detected. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 61
0×7F FF FF FF non-volatile, for defined values (0×79) (= 50 %) during start/reset REG_PWM2_CNTSV 0 × 00 00 27 10 non-volatile Load value of the pulses to be given out (0× 74) (1000 pulses) XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 62
By means of this, the pulse output can be set within the range from 0,005588 Hz to 20 000 Hz. – Pulse width (constant): REG_PWMx_DC The pulse width is the ratio of pulse duration and period duration. Figure 14: Frequency modulation XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 63
(REG_PWMx_DHIGH + REG_PWMx_DLOW) results in a value > 0 x FF FF FF FE, then the change of the register content is transferred and an error message is set in the REG_CONFIG_ ERRSTS (PWMx) (page 83). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 64
REG_PWM2_DLOW Content of volatile, for changes during Period duration PWM2 in 41,667 ns/bit (0×73) REG_PWM2_DLOW_RV normal operation REG_PWM2_DLOW_RV 0 x 00 00 2E E0 non-volatile, for defined values (0×6B) (= 500 ?s) during start/reset XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Setting PWMx_GENERAL_DISABLE to "0" generally re-enables the PWM. It continues to work with existing register contents. Existing messages (MSG) should be reset when setting the PWM (→ see Chapter 8, Error handling in the control interface / check-back interface (page 85)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 66
Special function Zx (PWM): Hardware latch retrigger (page 73). 10 REG_PWMx_CNTDC = The start value from REG_PWMx_CNTSV is reloaded into the register of pulses to be given out. REG_PWMx_CNTSV → The signal output is continued with the start value. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
9 STS_PWMx_RUN = 0 The signal output is stopped, because REG_PWMx_CNTDC = 0. 10 PWMx_SW_LR 0 → 1 With another latch retrigger the procedure restarts and the signal output restarts, as long as PWMx_ENABLE = 1. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
The following always applies for the SW gate: STS_PWMx_RUN = 1, if PWMx_GENERAL_DISABLE = 0 and PWMx_ENABLE = 1 The signal output is done with an open SW gate PWMx_GENERAL_DISABLE = 0 and PWMx_ENABLE = 1 as long as REG_PWMx_CNTDC ≠ 0. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
The software latch retrigger is done by setting the bits PWMx_SW_LR in the Process output / control interface (page 32). The executed SW latch retrigger is confirmed through bit MSG_PWMx_SW_LR of the Process input / check-back interface (page 28) (bit 0 in byte 4 (PWM1) and byte 5 (PWM2)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
In single signal output, the counter of the pulses to be given out (REG_PWMx_CNTDC) is reloaded and the signal output is enabled. 1010 to 1110 reserved 1111 Z just input Simple digital input, the status is reported via the check-back interface. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 71
"0". This means, the output counter (REG_PWMx_LATCH) = (REG_PWMx_CNTDC) and is set to (REG_PWMx_CNTDC) = (REG_PWMx_CNTSV). The signal output is not interrupted. MSG_PWMx_NDDC reports the zero crossing, which means the expiration of the counter. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 72
5.1 Functions of the PWM outputs (PWM1 and PWM2) The following applies for the HW gate: STS_PWMx_RUN = 1, if PWMx_GENERAL_DISABLE = 0 and PWMx_SFKT_DISABLE = 0 and Zx = 1 Figure 15: Pulse output with HW and SW gate XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 73
Process output / control interface (page 32). When executing a SW latch retrigger, the following applies: (REG_PWMx_LATCH) = (REG_CNTx_CNTDC) and (REG_PWMx_CNTDC) = (REG_CNTx_CNTSV) and MSG_PWMx_SW_LR = 1 PWMx_GENERAL_DISABLE = 0 and PWMx_SW_LR 0 → 1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 74
5.1 Functions of the PWM outputs (PWM1 and PWM2) With every valid latch retrigger event, the register is always reloaded with the (REG_PWMx_CNTSV) and decremented with every pulse output until it becomes "0". Figure 16: Latch retrigger at the PWM XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 76
REG_CNTx_UFLW ≤ REG_CNTx_CNT ≤ REG_CNTx_CMP0 D=1 at CMP1 ≤ CNT ≤ OFLW 01 1011 REG_CNT1_CMP1 ≤ REG_CNT1_CNT ≤ REG_CNT1_OFLW 01 1100 reserved 01 1101 01 1111 11 1111 D1 = simple output to be controlled via the process data XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 77
D=1 for Tx at MSG_CNT_FQE Dx 0 → 1 at MSG_CNTx_FQE 0 → 1 Dx is switched on for defined pulse time if, within a defined time, no counter pulse has been received(MSG_CNTx_FQE (page 85)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 78
Dx 0 → 1 at MSG_CNTx_CMP1 0 → 1 Dx is switched on for a defined pulse time if the counter is equal to the compare value 0 or to the compare value 1 (MSG_CNTx_CMP0 or MSG_CNTx_CMP1 (page 85)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 79
0 → 1, if count value < (compare value 0 - hysteresis value) or if count value > (compare value 1 + hysteresis value). output 1 → 0, if count value ≥ compare value 0 or ≤ compare value 1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 80
0 → 1, if count value (REG_CNTx_CNT) < compare value 0 (REG_CNTx_CMP0). If the count value toggles around the compare value, the output is only switched when the count value differs by more then -10 pulses from the compare value. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
REG_CNT1_DIV = 0 or REG_CNT1_MUL = 0 Only valid for frequency measurement: REG_CNT1_INTTIME = 0 or REG_CNT1_INTTIME > 17800 A diagnostic message is pending. The diagnostic byte for CNT1 > 0 (see Diagnostic data of the module (page 24)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 82
REG_CNT2_DIV = 0 or REG_CNT2_MUL = 0 Only valid for frequency measurement: REG_CNT2_INTTIME = 0 or REG_CNT2_INTTIME > 17800 A diagnostic message is pending. The diagnostic byte 1 for CNT2 > 0 (see Diagnostic data of the module (page 24)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
(pulse width) set REG_PWM2_DC > 0 x FF FF FF FE 28 - 30 reserved A diagnostic message is pending. The diagnostic byte 2 for CNT2 > 0 (see Diagnostic data of the module (page 24)). XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Error messages of the module In addition to the higher-level operation- and application relevant diagnostic messages (→ see page 24), each channel of the XNE-2CNT-2PWM also reports channel specific errors via the Process input / check-back interface (page 28). A distinction is made between: •...
Page 86
Z1 and Z2 for the PWM (page 70)). MSG_PWMx_DO_ERR One of the outputs Px (page 24) or Dx (page 24) Short-circuit at one of the outputs of the PWM of the corresponding PWMx-channel sent an channels. error. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
• By means of this procedure, MSG bits of the Process input / check-back interface (page 28) can be read out or respectively set back without loosing messages. Figure 17: Flow chart for the storage of XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 88
8 Error handling in the control interface / check-back interface 8.1 Error messages of the module XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 93
Hysteresis of the D1 and 0×00 00 00 0A STS_DBP1 for CNT1 (10 pulses) REG_CNT1_DO1_IMP 0×30 Pulse time for a pulse output at 0×00 00 00 0A D1 in 10 ms/bit (100 ms) 0×31 reserved 0×3F XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 94
0×00 00 00 0A STS_DBP2 for CNT2 (10 pulses) REG_CNT2_DO2_IMP 0×40 Pulse time for a pulse output at 32 bit unsigned 0×00 00 00 0A D2 in 10 ms/bit (100 ms) 0×51 reserved 0× 5F XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 95
Start value after reset: Pulse 0×00 00 2E E0 duration PWM1 in 41,667 ns/bit (500 μs) REG_PWM1_DLOW_RV 0×6B Start value after reset: Period 0×00 00 2E E0 duration PWM1 in 41,667ns/bit (500 μs) 0×6C reserved 0×6F XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 96
(500 μs) REG_PWM2_DLOW_RV 0×7B Start value after reset: Space 0×00 00 2E E0 duration PWM2 in 41,667 ns/bit (500 μs) 0×7C reserved 0×7F Note Non-volatile registers can be written for a maximum of 100,000 times. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
Page 97
REG_PWMx_PD, REG_PWMx_DC, REG_PWMx_DHIGH and REG_PWMx_DLOW (→ see page 95 ff.) are loaded with the content of the respective reset value registers (for example REG_PWM1_PD_RV). Note Values that have been entered before get lost. XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.1 Process data of the module in PROFIBUS-DPV1 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.1 Process data of the module in PROFIBUS-DPV1 Note The structure of the process data bits in PROFIBUS-DPV1 basically corresponds to the general structure of the process data (→...
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.1 Process data of the module in PROFIBUS-DPV1 10.1.1 Process input / check-back interface Note Please find the meaning of the bits in the general description of the modules Pro- cess input / check-back interface in Chapter 3 from page 28.
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.1 Process data of the module in PROFIBUS-DPV1 10.1.2 Process output / control interface Note Please find the meaning of the bits in the general description of the modules Pro- cess output / control interface in Chapter 3 from page 32.
10.2 Diagnostics of the module in DPV1 Note The module XNE-2CNT-2PWM can only be used with the XI/ON DPV1 gateways. These gateways support the diagnostic function according to PROFIBUS DP speci- fication IEC/EN 61158, type 3. Please read the corresponding gateway manuals for the description of the diagnostic message structure of the DPV1 gateways (→...
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.2 Diagnostics of the module in DPV1 10.2.2 Diagnostic data The module's diagnostic data contain error messages that are operation and application rele- vant for the control system. 4 bytes are used to transfer the diagnostic data.
10.3 Parameter in DPV1 Note The module XNE-2CNT-2PWM can only be used with the XI/ON DPV1 gateways. These gateways support the parameterization according to PROFIBUS DP specifica- tion IEC/EN 61158, type 3. Please read the corresponding gateway manuals for the description of the parame- ter data structure of the DPV1 gateways (→...
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.3 Parameter in DPV1 10.3.1 Parameter data of the module Note A more detailed description of the module's parameter data can be found in the field bus independent module description (Chapter 3, section Parameter data of the mod- ule (page 25)).
Page 106
10 Representation of the XNE-2CNT-2PWM in PROFIBUS-DPV1 10.3 Parameter in DPV1 XI/ON: XNE-2CNT-2PWM 04/2011 MN05002035Z-EN www.eaton.com...
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules 11.1.1 General object overview for counter modules Table 24: Object Name page General object overview for counter...
Page 108
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Table 24: Object Name page General object overview for counter modules 5901 PWM Config page 125 5902 PWM Status page 127 5903 PWM Flags page 128 5904 PWM Diag...
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules 11.1.2 Object descriptions Object 5801hex – Encoder Config The object 5801 affects the configuration parameters of CNTx: • output parameters • sensor and input filter • sensor parameters •...
Page 110
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Structure of the data bytes Sub-index Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0×00 ≤ n ≥ 0×47...
Page 111
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5802hex – Encoder Status Status displays of the CNTx from the process input data. The object 5802 supplies the following status messages: • count direction • status of in- and outputs •...
Page 112
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5803hex – Encoder Flags Das Object 5803 supplies the following messages via the process input data: • reaching of limit values • execution of a SW latch retrigger •...
Page 113
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5804hex – Encoder Diag The object 5804 reads error messages of CNTx from the module's diagnostic data. Table 28: Feature Sub-index Description Object 5804 Name Encoder Diag...
Page 114
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5805hex – Encoder Native Status The object 5805 reads the counter's status byte and the flag byte (B1, B0) from the Process input / check-back interface of the module. The following operation states are reported.
Page 115
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5806hex – Encoder Optional Status The object 5806 supplies the following status messages: Table 30: Feature Sub-index Description Object 5806 Name Encoder Optional Status Object code ARRAY ...
Page 116
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5808hex – Encoder Control The object 5808 provides the following control functions for CNTx (Process output / control interface (page 32)): • general enabling or disabling of the count function •...
Page 117
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5810hex – Encoder Load Prepare Value The object 5810 contains the load value (load value register, CNT1 no. 0×23, CNT2 no. 0×43) for the "prepared loading" of the counters. Setting the counter's count value to this value is event-driven.
Page 118
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5811hex – Encoder Pulse Width The object 5811 is used for setting the pulse duration. The time is set in 1 ms/bit. Value range: 0 ms to 65535 ms (1 min 5 s).
Page 119
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5820hex – Measuring Integration Time The object 5820 is used to set the integration time for the counters. For the Frequency measurement (page 53), Revolutions speed measurement (page 57) the integration time is entered in 10 ms/bit.
Page 120
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5824hex – Encoder Measuring Divisor The object 5824 is used for scaling the measured value (→ see also Additional function: Measurement mode (page 52)). Table 35: Feature...
Page 121
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5825hex – Encoder Measuring Factor The object 5825 is used for scaling the measured value (→ see also Additional function: Measurement mode (page 52)). Table 36: Feature...
Page 122
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5827hex – Encoder Measuring Time Out The object 5827 defines the time out (in 10 ms/bit), after which a message (Object 5803hex (page 112) MSG_CNTx_FQE) is generated in period duration measurement.
Page 123
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5830hex – Encoder Measuring Value The object 5830 reads the measured value of the counters CNTx. Table 38: Feature Sub-index Description Object 5830 Name Encoder Measuring Value...
Page 124
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5831hex – Encoder Latch Value The object 5831 reads the value of the latch register for the counters CNTx. Table 39: Feature Sub-index Description Object 5831 Name...
Page 125
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5901hex – PWM Config The object 5901 affects the configuration parameters of PWMx: Write accesses initiate a parameter update via the internal module bus of the XI/ON station.
Page 126
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Sub-index Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0×00 ≤ n ≥ 0×47 (lsb) diagnostic mode D2 PWM2 (0×3F)
Page 127
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5902hex – PWM Status The object 5902 supplies the following status messages: • output status • operation status of the PWM Table 41: Feature Sub-index Description Object 5902...
Page 128
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5903hex – PWM Flags The object 5903 supplies the following status messages: • execution of a SW latch retrigger • zero-crossing of the counter for the signal output •...
Page 129
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5904hex – PWM Diag The object 5904 reads the module's diagnostic byte. Table 43: Feature Sub-index Description Object 5904 Name PWM Diag Object code ARRAY PDO mapping Data type 0×00...
Page 130
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5908hex – PWM Control The object 5908 provides the following control functions for the PWMx: • general enabling or disabling of the PWM function • start/stop of the signal output •...
Page 131
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Structure of the data byte The meaning of the diagnotic bits generally corresponds to the general description of the module (→ see Diagnostic data of the module). Sub-index...
Page 132
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5910hex – PWM Load Prepare Value The object 5910 contains the load value (load value register, PWM1 no. 0×64, PWM2 no. 0×74) for the "prepared loading" of the counters. Setting the count value of the signals to be given out to this value is event-driven.
Page 133
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5913hex – PWM Duty Cycle The object 5913 is used to set the duty cycle of the PWM pulse. Table 46: Feature Sub-index Description Object 5913 Name...
Page 134
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5920hex – PWM Period Duration The object 5920 contains the value for the period duration of the PWM. Table 47: Feature Sub-index Description Object 5920 Name PWM Period Duration...
Page 135
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 5931hex – PWM Latch Value The object 5931 reads the value of the latch register for the PWMx. Table 48: Feature Sub-index Description Object 5931 Name PWM Latch Value...
Page 136
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6810hex – Preset Value For Multi-Sensor Devices This object is used to adapt the encoder zero-point to the mechanical zero-point of the system. The object 6810hex (corresponds to object 6010hex in accordance with CiA DS-406) directly writes the counter value for the counter..
Page 137
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6820hex – Position Value For Multi-Sensor Devices The object 6820hex (corresponds to object 6020hex in accordance with CiA DS-406) contains the counter's counter value. . Table 50:...
Page 138
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B00hex – CAM 1 State Register The object 6B00 (corresponds to object 6300 in accordance with CiA DS-406) indicates whether the counter status is within a specified range. This range is limited by CAM1 Low...
Page 139
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B01hex – CAM 1 Enable Register The object 6B01 activates or deactivates the status message concerning the comparison result (object Object 6B00hex – CAM 1 State Register).
Page 140
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B02hex – CAM1 Polarity Register The object 6B02 can invert the status message for the comparison result (Object 6B00hex – CAM 1 State Register). Table 53: Feature...
Page 141
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B10hex – CAM 1 Low Limit The object 6B10 contains the compare value CMP0 of the counter module (→ see also Function of the CMPx compare registers (page 38)).
Page 142
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B20hex – CAM 1 High Limit The object 6B20 contains the compare value CMP1 of the counter module (→ see also Function of the CMPx compare registers (page 38)).
Page 143
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6B30hex – CAM 1 Hysteresis The object 6B30 defines the hysteresis value for compare value CMP0 and CMP1 which affects the digital output Dx assigned to the counter and the STS_DBPx.
Page 144
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6C00hex – Area State Register Object 6C00 contains two status bits that indicate the count value falling below the lower count limit (Object 6C01hex – Work Area Low Limit (page 145)) and exceeding the upper count limit (Object 6C02hex –...
Page 145
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6C01hex – Work Area Low Limit The object 6C01 defines the value for the lower count limit (→ see also Set count limits (page 36)). In the event of an underflow, bit 2 in Object 6C00hex – Area State Register (page 144) and bit 6 in Object 5803hex –...
Page 146
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6C02hex – Work Area High Limit The object 6C02 defines the value for the upepr count limit (→ see also Set count limits (page 36)). In the event of an underflow, bit 1 in Object 6C00hex – Area State Register (page 144) and bit 5 Object 5803hex –...
Page 147
11 Representation of the XNE-2CNT-2PWM in CANopen 11.1 Objects for counter modules Object 6FFFhex – Device Type The object 6FFF specifies the type of the second device profile supported. The object contains the value 0× 00 0A 01 96. The low word (0×01 96 = 406 ) specifies the device profile.
11 Representation of the XNE-2CNT-2PWM in CANopen 11.2 Emergencies of the XNE-2CNT-2PWM 11.2 Emergencies of the XNE-2CNT-2PWM With the EMERGENCY 7010 , a "general module error in the station" is reported. Additionally EMERGENCY 7011 defines precisely, if a change in the module's diagnostic data occurs.
Need help?
Do you have a question about the XNE-2CNT-2PWM and is the answer not in the manual?
Questions and answers