1/13/2017 10:05 PM | |
Joined: 3/14/2008 Last visit: 9/12/2024 Posts: 2095 Rating:
|
Hi zonouzi, With the block StrDiOu, you are combining a BOOL variable and a BYTE variable to a Structure type. APL variables which are used to interconnect in CFC are of the type:STRUCT. They have the following view, for example the Bad variable of StrDiOu: Bad :STRUCT Value :BOOL:=0; //Value ST :BYTE:=16#FF; //Signal Status END_STRUCT; So, what you must do is create a STRUCT of the variable you want to connect to the output variable: Bad. I don't why you want to connect the Bad signal to the CSF of the valve. It's no use and here is why: Variables with structs are created because each variable can have a Signal Status. For example, a variable can have the value 16#60 for the signal status and this is indicated that the signal is simulated. To indicate the status, this is handled in the CFC blocks and is represented by several variable of type: WORD->Status1, Status2 etc... |
If I could help you, you can use the RATE button. Thank you. |
|
Follow us on