CD522_32BIT_ENCODER¶
Parameter | Value |
---|---|
Library_File_Name | CD522_AC500_V13.lib |
Available from CD522 firmware | V2.1 |
Available from PLC runtime system: | V1.0.2 |
Available from S500 I/O modules (DC551/DC505) firmware | V1.11 |
Type | Type_Function_Block_History |
The module CD522 can be used in 12 different configurable operating modes. The operating mode is configured in PLC Configuration using module parameters. After that, it is activated during the initialization phase (power-on, cold start, warm start).
The data exchange from and to the user program is performed using input and output operands. These necessary operands are created and reserved automatically, when one module CD522 is added into the I/O-Bus configuration.
In order to configure and use the function encoder of module CD522, different operating modes are available. The Function Block CD522_32BIT_ENCODER should be used with one of these operating modes:
Operating Mode 11 | “Incremental encoder” |
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down counter for position sensor x1 count, with possibility of touch/catch value, RPI function, set and reset actions. | |
Operating Mode 12 | “Incremental encoder X2” |
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down counter for position sensor x2 count, with possibility of touch/catch value, RPI function, set and reset actions. | |
Operating Mode 13 | “Incremental encoder X4” |
Should be specified in PLC Configuration; parameter “mode counter” in order to use one up/down counter for position sensor x4 count, with possibility of touch/catch value, RPI function, set and reset actions. |
The module CD522 provides 2 encoder functions for relative positioning with 3 signals. 2 signals are used for rotation discrimination and pulse count, identified by A0 and B0 for counter0 and A1 and B1 for counter1. The third one is used in multi-turn encoder to count the number of rotation (mechanical zero), identified by Z0 for counter0 and Z1 for counter1.
The rotation is identified with a shift angle (90°) between A and B signal. In the module CD522, the clockwise rotation is identified with A signal in advance to B (see picture below).
Clockwise rotation - A signal ahead from B signal | Counter-clockwise rotation - A signal late from B signal |
---|---|
Clockwise rotation in CD522 module | Counter-clockwise rotation in CD522 module |
Depending on which kind of operating mode is specified, the counting procedure will be x1, x2 or x4 count. Basically the x1 counting mode is used (mode 11). The encoder module discriminates the rotating way and count one pulse for each rising edge of the A signal.
With clockwise rotation, Function Block CD522_32BIT_ENCODER counts downwards.
With counter-clockwise rotation, Function Block CD522_32BIT_ENCODER counts upwards.
In order to increase resolution, the x2 counting mode can be specified (mode 12). The encoder module counts one pulse on each rising edge of A signal and one pulse on each rising edge of B signal.
The resolution could be multiplied by 4, using the x4 counting mode (mode 13). The encoder module counts a pulse on both rising and falling edge of A signal and B signal.