- Posts: 146
- Thank you received: 26
_AIC vs _CIA (and _PIC vs _CIP)
I have tried to glean this from the user' manual, but ...
If an analog (or pulse) input is configured as a Motor Command, is there any difference between what is returned by GetValue (_AIC,cc) and GetValue (_CIA,cc) or the pulse equivalents?
Yes. _AIC will return the filtered input from an analog input regardless of which signal it is mapped to, or if it is mapped to a signal at all. _CIA returns the motor command from the analog channels. This is what get's applied to the motor channel if you are in analog command mode. However, _CIA will return this value whether the controller is in analog command mode or not.
The best way to differentiate them is by their arguments. _AIC is given an input channel argument, as it reports the filtered value per input channel. _CIA is given the Motor Output channel as an argument, as it reports motor commands.
It should work the same way for the pulse command equivalent runtime queries.
Thanks for your quick reply, but I think you missed the if part of my question:
If an analog (or pulse) input is configured as a Motor Command
In that case, and only that case, my reading of your reply is that the answer is not Yes rather than no -- the values returned by _AIC and _CIA would be the same.
Or have I mis-interpreted something?