We are moving! We are currently migrating our community to the new Bosch Connected Industry Online Portal. The community will be available latest in the new year again, until then it will be in read-only mode. Click here for more information.
11-05-2021 01:31 PM
The Control On Addon has a Parameter to change the Control On Button Type from normally open (N.O.) to normally closed (N.C.)
Can a similar option be added for the Control Off button? I would like to use this object with a Control Off Signal that is normally closed.
Solved! Go to Solution.
11-08-2021 10:42 AM
As a temorary hack you can create your own flag flag in OES, use it as object parameter and transfer original button state to this flag in Station.Unit.OnCall method in TwinCAT.
11-08-2021 01:51 PM
I like the idea, but the ControlOn object requires a DigitalInput for the IsControlOffButtonPressed Parameter. I don't think I can create a flag that OES would allow me to use as a digital input, but I'm ready to learn something new if it is possible.
I came up with this work around for now...
ParImm.UserEnableControlOn := NormallyClosedControlOffSignal;
I could modify the object on my own, but I'm not sure if it's allowed, and I'd prefer to stay with the official version. I'd actually be perfectly happy to make the changes myself and submit a diff, but I'm not sure if BCI is setup to handle code contributions from the community.
11-08-2021 02:50 PM
Please check the chapter "Creating IO Flags" in the CpStudio documentation. It describes how to create flags that can be used just like digital I/O. (The first sentence of the chapter doesn't make much sense, but the rest should be just what you need...)
11-08-2021 03:01 PM
That is exciting information. I had no idea this functionality existed!