Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

What is error number -4470 returned by Flexmotion command mean

The error is returned from the first Flex_config_axis. The other commands return 0. - Thanks in advance

FlexStatus = flex_initialize_controller(PCI7344, 0);
FlexStatus = flex_config_axis (PCI7344, 0, 0, NIMC_STEP_OUTPUT3, 0, SlideMotorAxis); // Slide Motor Axis
FlexStatus = flex_config_axis (PCI7344, 0, 0, NIMC_STEP_OUTPUT2, 0, FeedMotorAxis); // Feed Motor Axis
0 Kudos
Message 1 of 4
(3,207 Views)
It is really odd since that error code is not specified in the error database, however I can suggest to you to try out the following:

1. Use the resources when calling a function, for example instead of PCI7344 send 0x01 (if board ID is 1), or instead of Step Output 1 send 0x41, makes sense?
2. Make sure FlexStatus is declared as i32.
3. Axes should be disable when configuring them.
4. Check the Software Reference Manual since I don't believe 0 is valid for Axis.

Good luck!

Nestor.
Nestor
0 Kudos
Message 2 of 4
(3,207 Views)
Thanks, Nester. For a reason I can't explain now I declared FlexStatus as short instead of i32, so the bogus return value was the result of the overflow. Sometimes problems are the reasult of simple errors.
0 Kudos
Message 3 of 4
(3,207 Views)
You're welcome, I'm glad is working now... good luck on your application.

Nestor.
Nestor
0 Kudos
Message 4 of 4
(3,207 Views)