The value 4 is not a valid port or set of ports. When you use a constant, the value OUT_AC (4) is automatically converted into an array of ports containing 0 and 2. If you use a variable with any of the motor commands it MUST be an array containing a list of ports OR it must be a scalar value of OUT_A (0), OUT_B (1), or OUT_C (2).
You should really never use anything other than the OUT_A, OUT_B, OUT_C, OUT_AB, OUT_AC, OUT_BC constants unless you really need to use a variable, in which case you need to follow the guidelines I mentioned above.
John Hansen
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: NO
Same result with the enhanced firmware.
(thanks you for the news that the shift operations are implemented there already!)
Logged In: YES
user_id=661666
Originator: NO
The value 4 is not a valid port or set of ports. When you use a constant, the value OUT_AC (4) is automatically converted into an array of ports containing 0 and 2. If you use a variable with any of the motor commands it MUST be an array containing a list of ports OR it must be a scalar value of OUT_A (0), OUT_B (1), or OUT_C (2).
You should really never use anything other than the OUT_A, OUT_B, OUT_C, OUT_AB, OUT_AC, OUT_BC constants unless you really need to use a variable, in which case you need to follow the guidelines I mentioned above.
John Hansen
Logged In: YES
user_id=9375
Originator: YES
Thank you very much for the explanation, now I see that.