12-06-2021 09:18 AM - edited 01-13-2022 01:03 PM
Hey, it’s december. The time when the day starts with opening a door of an Advent calendar.
Check out the official BCI Advent calendar on LinkedIn with some interesting piece of information every day.
But just these days I noticed in a discussion that there are so many small improvements from Control plus bundle V1.0 to V2.3 that some of you maybe missed. What would be more obvious than showing you a tip every day ...
#01 #02 #03 #04 #05 #06
#07 #08 #09 #10 #11 #12
#13 #14 #15 #16 #17 #18
#19 #20 #21 #22 #23 #24
12-15-2021 09:44 AM
One of the most common errors:
You want to change the operation mode, but the HMI sticks in the old operation mode. It looks like the machine or HMI does not react.
The reason is that an unit or add-on sticks in the ExecState CANCEL. You can find the origin easily in the sequence analysis view (every station must have this view!). The newer HMI versions can even filter for specific ExecStates with the filter symbol.
Alternatively you can check the StateOverview PRG while you are logged in. The StateOverview PRG is a PLC-side solution of the HMI sequence analysis.
12-16-2021 09:28 AM - edited 12-17-2021 09:50 AM
Fasten the engineering time by using partial exports instead of the full export in Control plus Studio.
For example just export the PLC or HMI without all other runtimes and services:
By the way: If you edit an existing view and you don't add new variables or labels an HMI export is not necessary. Just save and deploy.
For the PLC you can even export only some single units or tree areas in Control plus Studio:
And while the export is running you can still work in the PLC editor. For example after creating a new enumeration in Control plus Studio, run the export and continue coding while the export is running.
12-17-2021 09:23 AM
Variables that are declared in the VAR area in methods lose their value after leaving the method.
Use the VAR_INST area to keep the variable in the memory and to get the same behaviour like the variable would have been declared in the function block itself.
For the VAR area the timer will never have Q=TRUE because the timer starts from beginning with every call of the method:
12-18-2021 09:14 AM
In the Targets folder of the station folder you can find several useful functions regarding the target system.
Drag and drop the NXHC file on a batch file to execute this function with the corresponding target system, for example map network drives with the VPB40, by default Y: for C:\OpconApp and Z: for D:\OpconData.
The other batch files provide functions
And how to remember if you must use the NXDC or NXHC file?
12-19-2021 09:24 AM
For Beginners the automatic IntelliSense is quite helpful:
But there is always a short delay when typing the first letter. You can deactivate the automatic IntelliSense and open it manually with CTRL+SPACE in case you really need it:
To automatically insert complete code snippets you can use the open source software AutoHotKey (download from autohotkey.com). You can download a AutoHotKey script template for Control plus from our website.
Programming a step chain has never been as fast as now: