SlideShare una empresa de Scribd logo
1 de 22
In Control Panel Select Admin Tools
Select Data Sources
ADD new system DSN
We will use the MS Access Driver
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 filename you will need to remember this to use it in your Start MS Access script and also to configure the Table within it.
 
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”
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 disconnects from the DSN
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
Don’t forget to download the Project
Open the database file you created eg “Myaccessfile.mdb” Doubleclick on the column headers to change them to match your logging script
Click SAVE
 
Accept ,”YES”
Select Table1 as per you logging script to check the table is ok
Close MS Access
Start runtime and click on your button to run the connect script
 
Click on your button to run the MSaccess script
You should have logged data

Más contenido relacionado

Similar a Proficy machine edition logging

Writing native Mac apps in C# with Xamarin.Mac - Aaron Bockover
Writing native Mac apps in C# with Xamarin.Mac - Aaron BockoverWriting native Mac apps in C# with Xamarin.Mac - Aaron Bockover
Writing native Mac apps in C# with Xamarin.Mac - Aaron BockoverXamarin
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletMitchinson
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...WithTheBest
 
To speed up your hard disk speed we need to configure a special buffer in the...
To speed up your hard disk speed we need to configure a special buffer in the...To speed up your hard disk speed we need to configure a special buffer in the...
To speed up your hard disk speed we need to configure a special buffer in the...Harshith Agarwal
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universitylhkslkdh89009
 
Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7helpido9
 
AdvancedWord01
AdvancedWord01AdvancedWord01
AdvancedWord01adisg
 
Rich Internet Applications (RIA) Web Testing
Rich Internet Applications (RIA) Web TestingRich Internet Applications (RIA) Web Testing
Rich Internet Applications (RIA) Web TestingMathias Roth
 
Pobs cleanup-steps-nauman
Pobs cleanup-steps-naumanPobs cleanup-steps-nauman
Pobs cleanup-steps-naumanNauman R
 

Similar a Proficy machine edition logging (13)

MySQL Tools And Gui
MySQL Tools And GuiMySQL Tools And Gui
MySQL Tools And Gui
 
Mysql: Tools & Gui
Mysql: Tools & GuiMysql: Tools & Gui
Mysql: Tools & Gui
 
Writing native Mac apps in C# with Xamarin.Mac - Aaron Bockover
Writing native Mac apps in C# with Xamarin.Mac - Aaron BockoverWriting native Mac apps in C# with Xamarin.Mac - Aaron Bockover
Writing native Mac apps in C# with Xamarin.Mac - Aaron Bockover
 
Open microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutletOpen microsoft visual studio/tutorialoutlet
Open microsoft visual studio/tutorialoutlet
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
Line Graph Analysis using R Script for Intel Edison - IoT Foundation Data - N...
 
To speed up your hard disk speed we need to configure a special buffer in the...
To speed up your hard disk speed we need to configure a special buffer in the...To speed up your hard disk speed we need to configure a special buffer in the...
To speed up your hard disk speed we need to configure a special buffer in the...
 
Cis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry universityCis407 a ilab 1 web application development devry university
Cis407 a ilab 1 web application development devry university
 
Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7Cis 407 i lab 1 of 7
Cis 407 i lab 1 of 7
 
AdvancedWord01
AdvancedWord01AdvancedWord01
AdvancedWord01
 
Rich Internet Applications (RIA) Web Testing
Rich Internet Applications (RIA) Web TestingRich Internet Applications (RIA) Web Testing
Rich Internet Applications (RIA) Web Testing
 
Pobs cleanup-steps-nauman
Pobs cleanup-steps-naumanPobs cleanup-steps-nauman
Pobs cleanup-steps-nauman
 
QTP
QTPQTP
QTP
 

Más de Iamtubalcain

Proficy machine edition environment
Proficy machine edition environmentProficy machine edition environment
Proficy machine edition environmentIamtubalcain
 
Proficy machine edition security PPT
Proficy machine edition security PPTProficy machine edition security PPT
Proficy machine edition security PPTIamtubalcain
 
Proficy machine edition logic pc view ethernet
Proficy machine edition logic pc view ethernetProficy machine edition logic pc view ethernet
Proficy machine edition logic pc view ethernetIamtubalcain
 
Proficy machine edition logic pc view duplication
Proficy machine edition logic pc view duplicationProficy machine edition logic pc view duplication
Proficy machine edition logic pc view duplicationIamtubalcain
 
Proficy machine edition logic pc and view int
Proficy machine edition logic pc and view intProficy machine edition logic pc and view int
Proficy machine edition logic pc and view intIamtubalcain
 
Proficy machine edition logic developer plc
Proficy machine edition logic developer plcProficy machine edition logic developer plc
Proficy machine edition logic developer plcIamtubalcain
 
Proficy machine edition alarms
Proficy machine edition alarmsProficy machine edition alarms
Proficy machine edition alarmsIamtubalcain
 
Instruction set reference [by allen bradley]
Instruction set reference  [by allen bradley]Instruction set reference  [by allen bradley]
Instruction set reference [by allen bradley]Iamtubalcain
 

Más de Iamtubalcain (8)

Proficy machine edition environment
Proficy machine edition environmentProficy machine edition environment
Proficy machine edition environment
 
Proficy machine edition security PPT
Proficy machine edition security PPTProficy machine edition security PPT
Proficy machine edition security PPT
 
Proficy machine edition logic pc view ethernet
Proficy machine edition logic pc view ethernetProficy machine edition logic pc view ethernet
Proficy machine edition logic pc view ethernet
 
Proficy machine edition logic pc view duplication
Proficy machine edition logic pc view duplicationProficy machine edition logic pc view duplication
Proficy machine edition logic pc view duplication
 
Proficy machine edition logic pc and view int
Proficy machine edition logic pc and view intProficy machine edition logic pc and view int
Proficy machine edition logic pc and view int
 
Proficy machine edition logic developer plc
Proficy machine edition logic developer plcProficy machine edition logic developer plc
Proficy machine edition logic developer plc
 
Proficy machine edition alarms
Proficy machine edition alarmsProficy machine edition alarms
Proficy machine edition alarms
 
Instruction set reference [by allen bradley]
Instruction set reference  [by allen bradley]Instruction set reference  [by allen bradley]
Instruction set reference [by allen bradley]
 

Proficy machine edition logging

  • 1. In Control Panel Select Admin Tools
  • 4. We will use the MS Access Driver
  • 5. 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
  • 6. 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.
  • 7.  
  • 8. 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”
  • 9. 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
  • 11. 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
  • 12. Don’t forget to download the Project
  • 13. Open the database file you created eg “Myaccessfile.mdb” Doubleclick on the column headers to change them to match your logging script
  • 15.  
  • 17. Select Table1 as per you logging script to check the table is ok
  • 19. Start runtime and click on your button to run the connect script
  • 20.  
  • 21. Click on your button to run the MSaccess script
  • 22. You should have logged data

Notas del editor

  1. Select: Start---settings---control panel---administrative tools
  2. Select Data sources (ODBC)
  3. We need to add our own DSN Data Source Name
  4. Now we need to to specify the driver that will be used to obtain the data from the source and pass it to the database
  5. Now specify the DSN and select Create. I have called it MyLog and have put in a description in case I need to create some more connections
  6. This will bring up an input box where we will name the database file “myaccessfile” is this one click ok
  7. We get confirmation that we now have an MS Access database file that will be supplied with data through our connection (DSN) MYlog
  8. The way in which we get data from our project to the MS Access database is to use a script command “dbconnect” which connects to the ODBC source (MyLog). Select how the script runs, here it’s on condition that the bool variable ODBC comes on momentarily
  9. You can only call SQL commands after having a connection. Here dbSQL INSERT into puts values into the database table the syntax is most important and is shown in detail in the help file. Here the variable odbc will will be placed into a column named “odbc” if the column isn’t found data won’t be logged.
  10. We need to put in a script to close our connection
  11. We will put a button on our panel to start MS Access. A momentary button that has the Appexec command will achieve this.
  12. We must download for the scripts to take effect
  13. Locate your database file “ Myaccessfile” be aware that there can be problems with the path of these files. Path names with spaces in the route sometimes will not work ie “documents and settings” We need to change the header names from field 6 etc to the names written in our logging script
  14. Save the changes
  15. Keep it simple and maybe accept table1
  16. MS Access will prompt for a key which is a good way to follow your data
  17. Finally check the table has the correct header names and close Access
  18. We have a button on our screen that runs the dbconnect script
  19. We had a message box programmed in our script to come up if we connected or not
  20. We added a button to our screen to launch MS Access
  21. Hopefully you will now have access open and data showing the data does not update live but will keep logging in the background and will show when the table is re-opened