PCWORX and retain values

kaputt

Level-1
Beiträge
100
Reaktionspunkte
10
Zuviel Werbung?
-> Hier kostenlos registrieren
Grüss Gott!

I am new to Phoenix (coming from S7 - and it looks like I'm quickly returning).

The controller is a 3050 (don't have it here - running simulator), and as far as I've understood, it is quite capable.
The HMI is Schneider IGSS and the protocol is OPC-UA.

I'm using the CTRL_PID function from Oscat. I can address the input variables directly from IGSS.
But the parameter settings are of course input_var's that CANNOT BE HOOKED AS RETAIN IN PCWORX. Why is this not allowed? Wake up you developers!
Guess what happens after a cold start.

Do I need to pack the controller in my own FB with triplicated parameters?
MyFBInputs ->Update if 0 -> MyFBOutputs (Retain) -> CTRL-inputs!

Any better solutions?

Kaputt
 
Hello kaputt,

normally you can mark nearly all variables as retain, even when they're an input to a FB or FC.

But you've keep in mind when you're using a global Variable that the option is only available in the global Variable sheet.
In the local Variable sheet the Variable is than marked as "Var_External" (somekind of pointer to the global with the same name) and all options are grey.

In case this is not the solution I need to know more about the application, maybe a screenshot of the variable may help.

Of course you can call also our free automation hotline +4952819462888

Greetings

Frank

call number 72766
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Thanks for the reply!

I'll make a screenshot when I'm back in office after the Pingst.

In the mean time I've made a 'mother' FB that calls a modified Oscat CTRL-FB (Input_Var are changed to Var with 'Retain'). The 'mother' has got the initial input_var parameters from her instance call and they are copied to the CTRL -var's when it is detected that a new instance is downloaded ( = if the gain is 0). This is not a bad solution.

I am not familiar with the Phoenix CPU behavior, and I am not keen of being the 'hero of the day' by resetting all parameters during production when I do a simple program change/download.

The clue is not to find out what a new system can do, but what it cannot.

MfG
Kaputt
 
Zurück
Oben