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.
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.
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:
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?
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: