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