Did you find this code helpful?
3 members have voted
Recorded Live:
Thursday, January 13, 2011
Presented By Anthony Nicolaides
Applications Engineer - Unitronics Inc.
Part 1 - We will explore how to set up a data table in VisiLogic and use it to log data. We will show how to create a data table, and how to link each column to a register type. We will then use the ladder section to create a time/event driven routine to log data.
Part 2 - We will learn how to use DataXport to pull the data table from the PLC and save it to the PC as an excel file. We will learn how to set up a time based automatic download, and an even based download over TCP/IP.
Data Tables and Data Logging (1)
<object width="960" height="745"><param name="movie" value="http://www.youtube.com/watch?v=rpFBXIpvmLM?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param'>http://www.youtube.com/watch?v=rpFBXIpvmLM?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=rpFBXIpvmLM?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="745"></embed></object>
Data Tables and Data Logging (2)
<object width="960" height="745"><param name="movie" value="http://www.youtube.com/watch?v=gjW8Tszj0B4?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param'>http://www.youtube.com/watch?v=gjW8Tszj0B4?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=gjW8Tszj0B4?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="745"></embed></object>
Data Tables and Data Logging (3)
<object width="960" height="745"><param name="movie" value="http://www.youtube.com/watch?v=yVfOwtUvHXA?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param'>http://www.youtube.com/watch?v=yVfOwtUvHXA?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=yVfOwtUvHXA?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="745"></embed></object>
Data Tables and Data Logging (4)
<object width="960" height="745"><param name="movie" value="http://www.youtube.com/watch?v=YdAiK7oPkBQ?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param'>http://www.youtube.com/watch?v=YdAiK7oPkBQ?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=YdAiK7oPkBQ?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="745"></embed></object>
Data Tables and Data Logging (5)
<object width="960" height="745"><param name="movie" value="http://www.youtube.com/watch?v=t3bnSHqmoSw?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param'>http://www.youtube.com/watch?v=t3bnSHqmoSw?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/watch?v=t3bnSHqmoSw?fs=1&hl=en_US&rel=0&hd=1&color1=0x5d1719&color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="960" height="745"></embed></object>
Questions Asked by Attendees
Q: Are these data tables accessible via communications? Are there register that can be read or written too?
A: yes, these registers are accessible. there is a special DLL and instructions/examples with it. Please send mail to support@unitronics.com and we will send you the relevant info.
Q: What difference is between RAM and Flash memory for data tables?
A: In RAM the controller can read and write. Flash memory is Read Only. It's downloaded with the downloading the project. When you select "Part of project" in columns properties, you set the column as Flash
Q: You said you could only have 33 column. Can I set up one column and have 35 MI values in it
A: Yes, then, when you read them (it can be other types of operands too) you will receive them in a vector
Q: what to do not to lose the first written information
A: There is a limit in data. When you come to the end - you filled the whole table - you decide what to do. Return and start rewriting from first line is only an option. Much greater possibilities to log data offers SD. But this is another topic...
0 Comments
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now