proficy machine edition logging

22
In Control Panel Select Admin Tools

Upload: iamtubalcain

Post on 24-Jun-2015

685 views

Category:

Documents


1 download

DESCRIPTION

Logging scenarios and setup in Proficy Machine edition View

TRANSCRIPT

Page 1: Proficy machine edition logging

In Control Panel

Select Admin Tools

In Control Panel

Select Admin Tools

Page 2: Proficy machine edition logging

Select Data Sources

Select Data Sources

Page 3: Proficy machine edition logging

ADD new system DSNADD new system DSN

Page 4: Proficy machine edition logging

We will use the MS Access Driver

We will use the MS Access Driver

Page 5: Proficy machine edition logging

Enter a DSN eg: “MyLog” and then select“Create”

Keep a note of the Data Source Name you use as you will need to use this exact name to connect through your scripting

Enter a DSN eg: “MyLog” and then select“Create”

Keep a note of the Data Source Name you use as you will need to use this exact name to connect through your scripting

Page 6: Proficy machine edition logging

Enter a filename you will need to remember this to use it in your Start MS Access script and also to configure the Table within it.

Enter a filename you will need to remember this to use it in your Start MS Access script and also to configure the Table within it.

Page 7: Proficy machine edition logging
Page 8: Proficy machine edition logging

Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:ODBC, which is set as “momentary” you will be able to connect to your data source “MyLog”

Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:ODBC, which is set as “momentary” you will be able to connect to your data source “MyLog”

Page 9: Proficy machine edition logging

This scripts logs data through the connected DSN The syntax must be correct. Try one variable first just to get it working Run Periodically at 1000mS

This scripts logs data through the connected DSN The syntax must be correct. Try one variable first just to get it working Run Periodically at 1000mS

Page 10: Proficy machine edition logging

This disconnects from the DSN

This disconnects from the DSN

Page 11: Proficy machine edition logging

Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:access, which is set as “momentary” you will be able to start MS Access The Path to MSAccess.exe must be as written in your script which may differ from above

Create this script. Run it “on condtion” and “when true” by placing a button on the screen which has “touch animation” with an internal variable eg:access, which is set as “momentary” you will be able to start MS Access The Path to MSAccess.exe must be as written in your script which may differ from above

Page 12: Proficy machine edition logging

Don’t forget to download the Project

Don’t forget to download the Project

Page 13: Proficy machine edition logging

Open the database file you created eg “Myaccessfile.mdb”

Open the database file you created eg “Myaccessfile.mdb”

Doubleclick on the column headers to change them to match your logging script

Doubleclick on the column headers to change them to match your logging script

Page 14: Proficy machine edition logging

Click SAVEClick SAVE

Page 15: Proficy machine edition logging
Page 16: Proficy machine edition logging

Accept ,”YES”Accept ,”YES”

Page 17: Proficy machine edition logging

Select Table1 as per you logging script to check the table is ok

Select Table1 as per you logging script to check the table is ok

Page 18: Proficy machine edition logging

Close MS AccessClose MS Access

Page 19: Proficy machine edition logging

Start runtime and click on your button to run the connect script

Start runtime and click on your button to run the connect script

Page 20: Proficy machine edition logging
Page 21: Proficy machine edition logging

Click on your button to run the MSaccess script

Click on your button to run the MSaccess script

Page 22: Proficy machine edition logging

You should have logged data

You should have logged data