- Posts: 37
- Thank you received: 1
SimulFlag
1 month 6 days ago #160
by jds
Hello,
I thought I had it working in the past but: can the simuflag be active at one op station and disabled at another? I've now configured it like discribed but nog I've got a mixture of some graphs showing the simulation button and other won't. This in the main and the siumualtion station. The reason for the question is to have an instructor simulate faults and operators train them (not to have the operators make there own faults
)
I thought I had it working in the past but: can the simuflag be active at one op station and disabled at another? I've now configured it like discribed but nog I've got a mixture of some graphs showing the simulation button and other won't. This in the main and the siumualtion station. The reason for the question is to have an instructor simulate faults and operators train them (not to have the operators make there own faults

Please Log in or Create an account to join the conversation.
1 month 5 days ago #161
by claes
Hi jds,
The filter function for the simulation button only looks at the local SimulFlag on the node where xtt is executing, not at the SimulFlag for the node of the actual object, that would be more correct.
/Claes
The filter function for the simulation button only looks at the local SimulFlag on the node where xtt is executing, not at the SimulFlag for the node of the actual object, that would be more correct.
/Claes
Please Log in or Create an account to join the conversation.
1 month 4 days ago #162
by jds
Claes,
that was what was in my mind and I could remember using it as so. But I 've got a mixture from both xtt's. In my main pc (plc process and instructors hmi) simulflag set, in the op station simulflag at 0.
case 1: only running the main machine: all graph's show correctly there simulation button.
case 2: first starting the PLC process, afterwards starting the op station -> every graph on the op station shows the simu button.
case 3: first starting the op station, afterwards the main station:
step1 -> when opening the graphs at the op station the first time everything looks OK no simu buttons.
step 2 -> But when openeing the graphs on the main pc some graphs had simu buttons, some don't (even with the same class).
step 3 -> The most strange behaivior -> when a graph is now opened at the main station and show a simu button, opening the same graph at the op station will now also show the simu button, even when it did not showed before (in step 1 of this case).
To be complete: I use the simuflag in some classes for ex. to bypass the communication error on a freq drive. In my opstation I have 2 class dummy's to transfer the correct pwg's (tip from the past). The plant hierarchy is mounted in the opstation, the node hierarchy isn't.
that was what was in my mind and I could remember using it as so. But I 've got a mixture from both xtt's. In my main pc (plc process and instructors hmi) simulflag set, in the op station simulflag at 0.
case 1: only running the main machine: all graph's show correctly there simulation button.
case 2: first starting the PLC process, afterwards starting the op station -> every graph on the op station shows the simu button.
case 3: first starting the op station, afterwards the main station:
step1 -> when opening the graphs at the op station the first time everything looks OK no simu buttons.
step 2 -> But when openeing the graphs on the main pc some graphs had simu buttons, some don't (even with the same class).
step 3 -> The most strange behaivior -> when a graph is now opened at the main station and show a simu button, opening the same graph at the op station will now also show the simu button, even when it did not showed before (in step 1 of this case).
To be complete: I use the simuflag in some classes for ex. to bypass the communication error on a freq drive. In my opstation I have 2 class dummy's to transfer the correct pwg's (tip from the past). The plant hierarchy is mounted in the opstation, the node hierarchy isn't.
Please Log in or Create an account to join the conversation.
1 month 4 days ago #163
by claes
Hi jds,
The methods mask, that describes wether a methods button should be displayed or not, is only calculated once when the it's first needed. It is then stored in the XttMethodsMask attribute in the object. This means that it's SimulFlag on the node where the object is first viewed that will decide wether the simulate button is displayed or not. XttMethodsMask.Flags.IsConfigured can be reset to recalculate the mask.
/Claes
The methods mask, that describes wether a methods button should be displayed or not, is only calculated once when the it's first needed. It is then stored in the XttMethodsMask attribute in the object. This means that it's SimulFlag on the node where the object is first viewed that will decide wether the simulate button is displayed or not. XttMethodsMask.Flags.IsConfigured can be reset to recalculate the mask.
/Claes
Please Log in or Create an account to join the conversation.
1 week 5 days ago #179
by jds
Hello Claes,
I had taken peace with the fact the simu button was available on all the operator windows as it isn't the biggest issue but now I'm facing again problems with it.
I've made a whole simulator to train our operators. Everything was working fine in development mode, so on all the graphs the simul button was shown.
Now I've changed my dev machine into a real node, leaving both the dev part and the rt installation living together on the same installation.
I deleted the simulation bus (999) and corresponding node settings leaving me with only the busconfig of the production machines nl. itself and an operator station.
I's remember when leaving both the busconfigs as is, the rt_plc will run twice which could be seen at for ex. a timer running twice as fast. Now this is not happening so I suppose there's only one process running.
Now the problem rises, no matter if the op station is already started or not, that from a particular part in the databases the methode mask leaves the simu reset. Even when I reset the "isconfig" flag, the mask stays for ex. 31. When I try to set the simu myself in the mask, the button is shown, but the simu graph can 't be opened. The same class's are used so the problem can't rely in
I had taken peace with the fact the simu button was available on all the operator windows as it isn't the biggest issue but now I'm facing again problems with it.
I've made a whole simulator to train our operators. Everything was working fine in development mode, so on all the graphs the simul button was shown.
Now I've changed my dev machine into a real node, leaving both the dev part and the rt installation living together on the same installation.
I deleted the simulation bus (999) and corresponding node settings leaving me with only the busconfig of the production machines nl. itself and an operator station.
I's remember when leaving both the busconfigs as is, the rt_plc will run twice which could be seen at for ex. a timer running twice as fast. Now this is not happening so I suppose there's only one process running.
Now the problem rises, no matter if the op station is already started or not, that from a particular part in the databases the methode mask leaves the simu reset. Even when I reset the "isconfig" flag, the mask stays for ex. 31. When I try to set the simu myself in the mask, the button is shown, but the simu graph can 't be opened. The same class's are used so the problem can't rely in
Please Log in or Create an account to join the conversation.
1 week 5 days ago #180
by jds
(pressed the wrong button and my post was launched, so I will continue here
)
can't rely in the fact of errors in the simulation of that class (so I think).
I'm getting pretty stuck here due the fact I can't know which objects will be simulated or not. Best for me: all ...
Is there something I can do to debug this?

can't rely in the fact of errors in the simulation of that class (so I think).
I'm getting pretty stuck here due the fact I can't know which objects will be simulated or not. Best for me: all ...
Is there something I can do to debug this?
Please Log in or Create an account to join the conversation.
Time to create page: 0.554 seconds