FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

FieldPoint error codes list missing

Hi everybody,
   Here 
       http://zone.ni.com/reference/en-XX/help/371361A-01/lverror/error_code_ranges/
   you can find a list of LabVIEW error codes;  in the list, the FieldPoint error code section is missing.

   Opening Extended Optomux VIs, opening SerialHandler (VISA).vi, I reached a point containing error codes, which ranges from 32896 to  33026 (or something like that......). 

   On Field Point Programmer reference, optomux errors goes from 00 to 8C

   What am I getting in "error code" field of error out terminal of extended optomux VIs?  Is there a list with complete errors?

   More: what is the link between Status word (the one obtained from "Write discrete with status") and error codes? Is it simply "1"  when some error is detected?


   It's quite important to have a deep knowledge of errors when you build an embedded critical application.....

   Thank you for helping me!

graziano.
Message 1 of 10
(5,584 Views)

I am confused about what kind of application you are developing.

Optomux commands apply only to Serial Fieldpoint modules. As per your other threads, it appears you are developing an embedded application with cFP-20xx, which is an ethernet controller.

Are you using Optomux VIs to communicate from the cFP-20xx out to other serial Fieldpoints?

What are exactly the errors which you are missing documentation for?

AlessioD

 

 

Message 2 of 10
(5,548 Views)
OK, AlessioD, I must explain!

    My architecture is like this:

     PC --> cFP-2020 --> FP 1001 (with I/O modules.....)

   comunication with cFP-2020 is via serial port RS232; comunication from cFP-2020 to FP-1001 is via 485 serial port.  cFP-2020 comunicates with FP 1001 with Extended Optomux commands.

   cFP-2020 runs an embedded application (ethernet cable detatched).

   I know it's a strange architecture, but it was defined by the customer!!!!

   Thanks!!!

graziano
0 Kudos
Message 3 of 10
(5,546 Views)
....still waiting for an answer Smiley Sad

graziano

0 Kudos
Message 4 of 10
(5,488 Views)
....still waiting for an answer

graziano

0 Kudos
Message 5 of 10
(5,473 Views)
Hei? Smiley SadSmiley SadSmiley Sad
Message 6 of 10
(5,446 Views)

Sorry, but I believe you did not answer my last questions.

I was asking for what errors are you getting back from your software.

AlessioD

Message 7 of 10
(5,444 Views)
Hi AlessioD,
    If you expand all the sub-VIs, starting from, say, (!J)Read Discrete (VISA).vi, that is an optomux VI, you'll reach Serial Handler (VISA).vi.  There you find the error generation.  The numbers assigned to errors seems not to be like constants defined in FP-1000 Programmer Reference Manual.

   In FP-1000 Programmer Reference Manual, for example, E_PUCLR_EXP error (power up clear expected error) has an Error Number (Hex) 00 (page 2-2).

   In the picture below, it seems that a Power up clear error has an error 32896 (resembles much a VISA error code...).

    Is there an utility to get Optomux error codes from General errors?  I mean, errors reported from optomux VIs.

   Thanks!

graziano
Download All
0 Kudos
Message 8 of 10
(5,439 Views)
In the attached picture I am reporting the case structure that handles the errors returned by the FP modules. Basically what is being done here is a transaltion from the HEX code (eg. 0x8C) to the standard decimal error for the Fieldpoint APIs.
You can find a list of the error meanings for the standard codes (eg. 32896, which is hex 00) by opening MAX>>Help>>Help Topics>>Fieldpoint>>Fieldpoint Error and Warning codes.
 
If you want to extract the HEX code from the Optomux VIs, probably you can modify the SerialHandler(VISA).vi and bypass the hex to decimal conversion that's in between.
 
Hope this helps,
 
AlessioD
 
 
 
 
Message 9 of 10
(5,420 Views)
Thank you, AlessioD,

    this time it's 5 stars!

graziano
0 Kudos
Message 10 of 10
(5,415 Views)