Square-wave signal input
The square-wave signal input supports 2 square-wave signals, with an offset of 90°, and zero pulse.
The square-wave signal input is mapped to a 16-bit counter with latch function. The latch function can be triggered in two different manners which are addressed by the control word.
- Zero pulse on NIP input (X120B, connection 5A-5B)
- Positive or negative edge on 24 VDC latch input (X122, connection 2; corresponding to the probe input 1)
There are two modes of the probe function which are addressed by bit 8 of the control word (index 0x3210 subindex 1 bit 8):
- Continuous measuring: the value of the counter is saved with every latch signal, no release is necessary.
- Singular measuring: each measurement must be enabled in the control word.
The count will be stored until a new measurement is started.
Square-wave signal input |
Index |
Sub index |
PLC access (library: AmkDevAccess.lib) |
---|---|---|---|
Control word |
3210 |
1 |
SET_ENCODER_CONTROL |
Bit |
Name |
Meaning |
---|---|---|
0 |
Enable NIP Latch |
This bit activates the latch with NIP signal. In operation mode 'continuous measuring', this bit must be set only once. In operation mode 'singular measuring', the bit must be reset and set again when the corresponding bit of the status word was reset. The maximum measuring frequency of this module is 4 kHz. |
1 |
Enable EM1 Latch |
The bit activates the latch with a rising edge on probe input 1. In operation mode 'continuous measuring', this bit must be set only once. In operation mode 'singular measuring', the bit must be reset and set again when the corresponding bit of the status word was reset. The maximum measuring frequency of this module is 4 kHz. |
2 |
Init Counter |
By reset and new set of this bit, an initialisation of the count with the value of index 3210, sub index 2, is made. |
3 |
Enable EM1 Latch |
The bit activates the latch with a falling edge on probe input 1 input. In operation mode 'continuous measuring', this bit must be set only once. In operation mode 'singular measuring', the bit must be reset and set again when the corresponding bit of the status word was reset. The maximum measuring frequency of this module is 4 kHz. |
8 |
Single Trigger Mode |
This bit addresses the mode of measuring. 0: 'continuous measuring' is active 1: 'singular measuring' is active |
Square-wave signal input |
Index |
Sub index |
PLC access (library: AmkDevAccess.lib) |
Parameter |
---|---|---|---|---|
Actual count |
3200 |
2 |
GET_ENCODER_VALUE |
ID34075 |
Saved count (Reference count) |
3200 |
3 |
GET_ENCODER_LATCH |
ID34074 |
Square-wave signal input |
Index |
Sub index |
PLC access (library: AmkDevAccess.lib) |
---|---|---|---|
Status word |
3200 |
1 |
GET_ENCODER_STATUS |
Bit |
Name |
Meaning |
---|---|---|
0 |
Latch NIP |
A NIP occurs and a count is saved. The latch of a count with NIP must be activated by the control word, index 3210 subindex 1. Depending on the mode of measuring, this bit is set for one system cycle (ID2) ('continuous measuring') or until the corresponding release bit of the control word is reset ('singular measuring'). |
1 |
Latch EM1 |
A latch signal on probe input 1 occurs and a count is saved. The latch of a count with probe input 1 input must be activated by the control word, index 3210 subindex 1. Depending on the mode of measuring, this bit is set for one system cycle(ID2) ('continuous measuring') or until the corresponding release bit of the control word is reset ('singular measuring'). |
2 |
Initialized |
The initial value of index 3210 subindex 2 is loaded to the counter register. The initialisation is started by reset and set of index 3210 subindex 1, bit 2 |
3 |
Underflow |
In case of an underflow (0 to 65535) of the 16 bit count, this bit is set. It will be reset when the counter falls below 2/3 of the counter range (43690 to 43689) or when an overflow occurs. |
4 |
Overflow |
In case of an overflow (65535 to 0) of the 16 bit count, this bit is set. It will be reset when the counter falls below 1/3 of the counter range (21845 to 21846) or when an underflow occurs. |
5 |
EM1 Level |
Level of the probe input 1 input |