Hello everyone,
I’m working with the “AXL SE INC1 SYM (1088130)” module and the “AXC F 2152” CPU (version 00/2024.0.0). I’m trying to configure the encoder to count in both directions (positive and negative). I’ve mapped a LINT variable to the INC_Value, but I’m only getting positive values. When the count goes below zero, the encoder jumps to the maximum value (4294967295).
Additionally, I’m encountering an “Electrical encoder error detected” when turning the encoder, even though it’s wired correctly (24V) and A, A, B, B, Z, Z\ connected.
I also need to adjust the reference value from my logic program and then trigger the reference to update the current encoder value.
Lastly, is it possible to trigger an event in the program based on the encoder value (Set point), like an interrupt, or reduce the cycle time below 0.5 ms for positioning processes?
If anyone has a sample program or can provide guidance on these issues, I would greatly appreciate it.
Thanks in advance for your help!
The value 4294967295 is the highest value of the datatype UDINT (unsigned, double int 32bit).
Would you try to change from the datatype LINT to DINT, to see what happens?
DINT should range from -2,147,483,648 to 2,147,483,647
thank you for reply
what about referencing? how can I change the encoder current value? and how can I access the encoder configuration like current to handle?
