Powerpoint files on scripting in Proficy Machine Edition View GE Fanucs automation control suite. Not latest version but still applicable in most cases
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Proficy machine edition scripting
1.
2.
3.
4.
5.
6.
7.
8.
Editor's Notes
There are different ways to implement script functions with CIMPLICITY®Machine Edition we can use the proprietary script language ViewScript or VbScript. We have scripts that are directly attached to panels that will only run when the panel is open or Application scripts which can run at anytime. It is worth remebering that QuickPanels™ have certain limitations compared with Windows™ NT/CE machines. We can run applications from a touch button assuming that application is available to the local machine
We can run scripts from a touch button to shutdown runtime, logon logoff etc… but there are some limitations such as the SLEEP command cannot be used as it would cause the project to hang whilst this time elapsed.
We can set or reset variables through touch animation scripts
If we require operations that need to be paused then we need to write an application script. The main difference between Panel scripts and Application scripts as regards initiating the script is that panel scripts do not have the “Run On Startup/On Shutdown” feature. Here we are logging to a *.csv file at intervals it runs on condition that the variable “runscript1” is TRUE
So where do we get help with our scripting? Open the Toolchest select the ViewScripting folder here we have all of our ViewScripting commands. In the VbScripting folder there are a number of common commands but as VB is such a large language you will need to seek help elsewhre for non listed commands the web has many sites dealing with such commands.
Here we have the AppExec command this launches applications such as MS Access the Companion window shows the basic syntax and if this is not sufficient the we can click on the indepth help icon
We are noe presented with a full explanation and some examples
On our screen we have a touch button where we SET “runscript1” When we select the button our script starts to run until we reset the variable