字幕列表 影片播放
Hello, and welcome to Aerotech's AutomationOne Motion Control Platform educational series.
大家好,歡迎來到 Aerotech 的 AutomationOne 運動控制平臺教育系列。
Aerotech is a company that solves your toughest precision motion and automation challenges.
Aerotech 是一家為您解決最棘手的精密運動和自動化難題的公司。
AutomationOne is a motion control platform consisting of software-based controls and development tools, PC and drive-based control hardware, and hardware-based drives for servo motors and other devices.
AutomationOne 是一個運動控制平臺,包括基於軟件的控制和開發工具、基於 PC 和驅動器的控制硬件,以及用於伺服電機和其他設備的基於硬件的驅動器。
In this video, you'll discover the features of AutomationOne's file system and how they function.
在本視頻中,您將瞭解 AutomationOne 文件系統的功能及其運作方式。
My name is Alex, and I'm a Control Systems Specialist for Aerotech.
我叫亞歷克斯,是航空技術公司的控制系統專家。
What is the file system?
什麼是文件系統?
The AutomationOne controller supports a hierarchical file system with directories and files.
AutomationOne 控制器支持包含目錄和文件的分級文件系統。
This is where the machine's AeroScript programs, libraries, data collection files, and other user files can be stored.
機器的 AeroScript 程序、程序庫、數據收集文件和其他用戶文件都存放在這裡。
Effectively, this operates like your typical Windows computer file system, with the ability to store your files within user-created directories and file paths.
實際上,它的操作類似於典型的 Windows 計算機文件系統,可以將文件存儲在用戶創建的目錄和文件路徑中。
This ability to store programs and other data on the controller ensures that the controller's behavior remains consistent regardless of the configuration of the connected MDK machine.
這種在控制器上存儲程序和其他數據的功能可確保控制器的行為保持一致,無論所連接的 MDK 機器配置如何。
So how can we access the user file system?
那麼,我們如何訪問用戶文件系統呢?
Well, there are a few different ways we can access the controller file system.
我們可以通過幾種不同的方式訪問控制器文件系統。
The first is through the Configure Workspace interface.
第一種是通過 "配置工作區 "界面。
This is the most simplest.
這是最簡單的。
To do this, you have to go up through the Configure Workspace interface and then down to the Controller Files tab.
要做到這一點,您必須向上穿過配置工作區界面,然後向下進入控制器文件選項卡。
From here, you can see how the file system resembles your usual file system-like interface like you might see in Windows.
從這裡,你可以看到文件系統如何與你在 Windows 中看到的類似文件系統的界面相似。
Access to the Configure Workspace allows you to navigate through and sort the files, directories, create directories, copy files, delete your files, and open the source and plot files all from this interface.
通過訪問配置工作區,您可以瀏覽和分類文件、目錄、創建目錄、複製文件、刪除文件,以及打開源文件和繪圖文件。
You are also able to upload files from your local system, i.e. the computer, to the controller as well as download controller files to your local system, i.e. the computer.
您還可以將文件從在地系統(即電腦)上傳到控制器,以及將控制器文件下載到在地系統(即電腦)。
In our first example here, we're going to be using an iXC2e drive-based controller, and we're going to be creating a folder and doing some quick basic testing just to show you the functionality that we can access through this interface.
在第一個示例中,我們將使用基於 iXC2e 驅動器的控制器,創建一個文件夾並進行一些快速的基本測試,向大家展示我們可以通過該界面訪問的功能。
So first, let's go ahead and create a file.
首先,讓我們創建一個文件。
We're going to start by creating an initial test folder here and just call it Test.
我們首先要在這裡創建一個初始測試文件夾,並將其命名為 "測試"。
And we can double-click to open that.
我們可以雙擊打開它。
And let's actually go ahead and then upload a file to this folder.
讓我們繼續前進,上傳一個文件到這個文件夾。
Now before we do that, quickly jump over to the desktop and create a text document.
在此之前,請快速跳轉到桌面,創建一個文本文檔。
We can open that and verify that there are no contents inside.
我們可以打開它,確認裡面沒有任何物品。
So then let's go ahead and upload files, select our desktop, search for text files, and it has it uploaded there.
然後,讓我們繼續上傳文件,選擇桌面,搜索文本文件,它就會把文件上傳到那裡。
Now we can right-click this and select Open to actually view and modify the text file directly here from the develop workspace.
現在,我們可以右鍵單擊該文件,然後選擇 "打開",這樣就可以直接從開發工作區查看和修改文本文件了。
So let's go ahead and do that.
那我們就開始吧。
And then jump back over and we'll download this from the controller onto our computer.
然後跳轉回來,我們將把它從控制器下載到電腦上。
So we can do that using either the right-click or the navigational buttons at the top.
是以,我們可以使用右鍵或頂部的導航按鈕來實現。
Now to make a distinction, we'll name this something else so that we can go in and verify that the plot contents that we just made do show up here.
現在,為了區別開來,我們將給它取一個別的名字,這樣就可以進入並驗證我們剛剛創建的繪圖內容是否顯示在這裡。
So now if we jump back over to the desktop, we should see our new file.
現在,如果我們跳回到桌面,就會看到我們的新文件。
And if we open that, we can verify that it matches what we just wrote to our file.
如果我們打開它,就可以驗證它是否與我們剛剛寫入文件的內容一致。
Now if you were to go back and open up that original text file that we created on the desktop, you'll notice that it would still be blank because, well, we didn't edit that file.
現在,如果你回頭打開我們在桌面上創建的原始文本文件,你會發現它仍然是空白的,因為我們沒有編輯該文件。
We edited the file that we uploaded to our controller.
我們編輯了上傳到控制器的文件。
And that, of course, is an important distinction we have to make.
當然,這是我們必須做出的重要區分。
So our uploading, downloading, and editing of the files should be as simple as doing something like this.
是以,我們上傳、下載和編輯文件的操作應該像這樣簡單。
Now the second and third methods for interacting with the controller file system involve using either AeroScript commands or our APIs.
現在,與控制器文件系統交互的第二種和第三種方法涉及使用 AeroScript 命令或我們的 API。
Both the AeroScript and AAPI commands allow you for another easy way to interact with the file system, mainly just including the ability to read and write to the file contents.
AeroScript 和 AAPI 命令允許您以另一種簡單的方式與文件系統交互,主要包括讀寫文件內容的能力。
In this example, we will be using AeroScript commands to open a file, write to the file, then read from that file and display a message on the Aero Automation 1 banner.
在本例中,我們將使用 AeroScript 命令打開文件、寫入文件、讀取文件並在 Aero Automation 1 橫幅上顯示一條資訊。
The specific example we are running can be found in the help file.
我們運行的具體示例可以在幫助文件中找到。
However, you can also pause the video and just copy it straight from here.
不過,您也可以暫停視頻,直接從這裡複製。
So here are going to be our initial commands to create the file and open the file that we want to edit.
下面是我們創建文件和打開要編輯的文件的初始命令。
Now we can see here this is our file path to the my text file.
現在我們可以看到,這是我的文本文件的文件路徑。
But if we were to look at that in our file system, we'll notice that it doesn't actually exist.
但如果我們在文件系統中查看,就會發現它實際上並不存在。
There is no my files then my text file dot text file path.
沒有我的文件,然後是我的文本文件點文本文件路徑。
Right now we just have Automation 1 example programs and tests.
現在,我們只有自動化 1 示例程序和測試。
But running this program should create a brand new file called my text file with a folder called my files.
但運行該程序後,會創建一個名為 "我的文本文件 "的全新文件,文件夾名為 "我的文件"。
Here we can see the actual contents that we're planning on writing to the file.
在這裡,我們可以看到計劃寫入文件的實際內容。
We then close it and then we reopen it in read mode.
然後關閉它,再以讀取模式重新打開。
And then finally write those contents to the Automation 1 banner.
最後將這些內容寫入自動化 1 橫幅。
So it should show up either up here at the top or on our notification bar.
是以,它應該顯示在頂部或通知欄上。
So let's go ahead and run.
所以,讓我們繼續跑吧。
And we can see that it shows up on our notification bar and the top banner.
我們可以看到它顯示在通知欄和頂部橫幅上。
And if we jumped over to the file system itself, we'll see that we now do have a new folder called my files with a new file called my text file.
如果我們跳轉到文件系統本身,我們會看到現在確實有一個名為 "我的文件 "的新文件夾,其中有一個名為 "我的文本文件 "的新文件。
We can open that file up and of course verify that the contents that we thought we were writing do actually show up here.
我們可以打開該文件,當然也可以驗證我們認為寫入的內容是否真的顯示在這裡。
So why is this important?
為什麼這很重要?
Well functionality like this is quite useful in both data collection and storage.
這樣的功能在數據收集和存儲方面都非常有用。
The ability for a user to create their own files and log files recordings can be invaluable as a feature.
用戶可以創建自己的文件和日誌文件記錄,這是一項非常寶貴的功能。
By utilizing something like text files and these file system commands, we would be able to record and store stage information like position, velocity, or current commands and then store them on a separate file within the controller file system.
利用文本文件和這些文件系統命令,我們就能記錄和存儲舞臺資訊,如位置、速度或當前命令,然後將它們存儲到控制器文件系統中的一個單獨文件中。
Now briefly switching gears for a second, there are a few very important details that you should know about the controller file system as well as some more minor details.
現在,我們來簡單談談控制器文件系統的一些非常重要的細節,以及一些更次要的細節。
First and foremost, you cannot write or specify Windows directories from within the AeroScript programming language.
首先,您不能在 AeroScript 編程語言中寫入或指定 Windows 目錄。
Automation One's AeroScript language only reads and writes to the Automation One controller file system.
Automation One 的 AeroScript 語言只能讀寫 Automation One 控制器文件系統。
It will not read or write to a Windows directory and file path.
它不會讀取或寫入 Windows 目錄和文件路徑。
To achieve similar functionality where you can write from AeroScript to a file stored at a Windows directory, you're going to have to use some form of the AeroTec APIs.
要實現從 AeroScript 向存儲在 Windows 目錄中的文件寫入的類似功能,您必須使用某種形式的 AeroTec API。
Either through simply using the APIs to gather and write the information directly or use some form of a custom DLL or executable written using the APIs that can then achieve the needed collect information and write data to the file on the Windows side of things.
要麼直接使用 API 來收集和寫入資訊,要麼使用某種形式的自定義 DLL 或使用 API 編寫的可執行文件,從而實現所需的資訊收集,並將數據寫入 Windows 方面的文件。
You could then call this custom DLL or executable using something like the callback command.
然後,您可以使用類似回調命令的方式調用這個自定義 DLL 或可執行文件。
Another albeit a small detail is that unlike a Windows PC file system, the Automation One controller file system utilizes the forward slash character instead of a backslash in the programming commands.
另一個小細節是,與 Windows PC 文件系統不同,Automation One 控制器文件系統在編程命令中使用的是正斜槓字元,而不是反斜槓。
So if you are trying to manipulate the controller file system via AeroScript or the API commands, just keep that in mind.
是以,如果您想通過 AeroScript 或 API 命令來操作控制器文件系統,請記住這一點。
Like a Windows file system, however, all paths are absolute paths within the controller file system.
不過,與 Windows 文件系統一樣,所有路徑都是控制器文件系統內的絕對路徑。
Meaning there is no assumption about where the file is being stored if you don't give it an absolute file path.
也就是說,如果不提供絕對文件路徑,就無法假設文件的存儲位置。
So if you do want to reference any file within the controller file system, you must provide the full file path on the controller.
是以,如果要引用控制器文件系統中的任何文件,必須提供控制器上的完整文件路徑。
Additionally, controller file paths are not case sensitive.
此外,控制器文件路徑不區分大小寫。
So a file with capital letters can be open and written to using non-capital letters from within programming commands.
是以,可以在編程命令中使用非大寫字母打開和寫入大寫字母文件。
Finally, what about limitations?
最後,限制因素是什麼?
If this is a file system, aren't there memory constraints on the controller?
如果這是一個文件系統,那麼控制器上不是有內存限制嗎?
And yes, you would be correct.
是的,你是對的。
Because this is a file system, there are memory limitations on what each controller can actually handle.
由於這是一個文件系統,每個控制器實際能處理的內存有限。
Especially for drive-based controllers where the memory is self-contained on the drive itself.
尤其是基於硬盤的控制器,其內存本身就包含在硬盤中。
For PC-based controllers, this file system limitation is limited only by whatever the computer's memory storage limitation is.
對於基於 PC 的控制器,文件系統的限制僅受計算機內存存儲限制的影響。
This is because the controller file system lives on the computer where the ISMC is.
這是因為控制器文件系統位於 ISMC 所在的計算機上。
On the other hand, for drive-based controllers, the storage limitation is roughly 5 gigabytes.
另一方面,對於基於驅動器的控制器,存儲限制大約為 5 千兆字節。
This is just due to the nature of standalone drives and the memory capabilities currently available.
這只是由於獨立硬盤的性質和目前可用的內存能力所致。
Again, this is because the ISMC controller lives on the drive itself and so all the memory is stored there as well.
這同樣是因為 ISMC 控制器位於硬盤上,是以所有內存也存儲在硬盤上。
Now this is just the memory available offline for a drive-based controller.
這只是基於驅動器的控制器的離線可用內存。
While connected to a computer, they are still able to access files located on the computer itself.
在連接到計算機時,它們仍能訪問計算機本身的文件。
So if you stored your AeroScript programs or MCD files on the desktop, you can still open and run those from the desktop.
是以,如果你將 AeroScript 程序或 MCD 文件存儲在桌面上,你仍然可以從桌面打開並運行這些程序。
Just the onboard user file system has this roughly 5 gigabyte storage limitation.
只有板載用戶文件系統有大約 5 千兆字節的存儲限制。
That said though, this does not mean that you can simply open and run whatever size file program that you want on a PC or drive-based controller.
儘管如此,這並不意味著你可以在 PC 或基於硬盤的控制器上隨意打開和運行任何大小的文件程序。
You could certainly try to upload large gigabyte-sized files to the file system, but the AutomationOne controller is not going to be able to run programs more than a few hundred thousand lines long.
您當然可以嘗試向文件系統上傳千兆字節大小的大文件,但 AutomationOne 控制器無法運行超過幾十萬行的程序。
So because of this, our compiled programs should only have a maximum size of about 200 megabytes.
是以,我們編譯後的程序最大隻能有 200 兆字節左右。
On these rare occasions though, where you do have very large programs that you need to run, AutomationOne does have a feature called the Command Queue that can be used for these much larger files.
在極少數情況下,如果您需要運行非常大的程序,AutomationOne 確實有一個名為命令隊列的功能,可用於處理這些大得多的文件。
This feature does, however, require the use of RC or .NET APIs to operate.
不過,該功能需要使用 RC 或 .NET API 才能運行。
Finally, if you do want to know the available memory that you have left to use on the controller, you can find this using the FileInfo command through the AutomationOne console.
最後,如果您想知道控制器上還有多少可用內存,可以通過 AutomationOne 控制檯的 FileInfo 命令查找。
Specifically, we want to look at the available user space line.
具體來說,我們要查看可用的用戶空間行。
In this image, we can see a value of 5.2G.
在這張圖片中,我們可以看到 5.2G 的數值。
This indicates that we have 5.2 gigabytes of available memory on our iXC2e drive-based controller.
這表明我們基於 iXC2e 硬盤的控制器上有 5.2 千兆字節的可用內存。
This is what we're running in our example.
這就是我們在示例中運行的內容。
This, in essence, summarizes what the file system is, how we can access it, and how we can use it.
這基本上概括了什麼是文件系統、如何訪問文件系統以及如何使用文件系統。
That concludes this motion control platform educational video.
本運動控制平臺教學視頻到此結束。
Thank you for watching, and I hope you enjoyed learning about the AutomationOne controller's file system and how it functions.
感謝您的觀看,希望您喜歡瞭解 AutomationOne 控制器的文件系統及其功能。