RELIANCE ELECTRIC WR-D4007 對象存儲RAPID數(shù)據(jù)的路徑

RapidDomain命名空間允許訪問機器人系統(tǒng)中的RAPID數(shù)據(jù)。
有許多FlexPendant SDK類代表不同的RAPID
數(shù)據(jù)類型。還有一個UserDefined類用于引用RECORD
RAPID中的結(jié)構(gòu)。
ValueChanged事件在持續(xù)時啟用來自控制器的通知
RAPID數(shù)據(jù)已更改
共享模塊中的lared
如果您的應用程序要與多移動系統(tǒng)一起使用(具有一個
控制器和幾個運動任務/機器人),可能會發(fā)生RAPID實例
您需要訪問的是在-Shared RAPID模塊中聲明的。這樣的模塊可以
被所有任務使用,T_ROB1、T_ROB2等等。
以下示例顯示了如何創(chuàng)建一個RapidData對象,該對象引用
實例“reg100”,它是在共享模塊中聲明的。
表示RAPID數(shù)據(jù)值
RapidData對象存儲RAPID數(shù)據(jù)的路徑。但這還不夠
如果你想訪問它的值(至少如果你想修改它的話)。要做到這一點,你
需要創(chuàng)建另一個對象,該對象表示RAPID數(shù)據(jù)的值。
在RapidDomain名稱空間中,有代表不同RAPID的類型
數(shù)據(jù)類型。要創(chuàng)建表示RAPID數(shù)據(jù)值所需的對象
使用RapidData屬性Value并將其強制轉(zhuǎn)換為相應的類型,用于
例如Num、Bool或Tooldata。

The RapidDomain namespace enables access to RAPID data in the robot system.
There are numerous FlexPendant SDK classes representing the different RAPID
data types. There is also a UserDefined class used to reference RECORD
structures in RAPID.
The ValueChanged event enables notification from the controller when persistent
RAPID data has changed
lared in a shared module
If your application is to be used with a multi-move system (a system with one
controller and several motion tasks/robots), it may happen that the RAPID instance
you need to access is declared in a -Shared RAPID module. Such a module can
be used by all tasks, T_ROB1, T_ROB2 and so on.
The following example shows how to create a RapidData object that refers to the
instance “reg100”, which is declared in a shared module.
epresenting the RAPID data value
The RapidData object stores the path to the RAPID data. But this is not enough
if you want to access its value (at least not if you want to modify it). To do that you
need to create another object, which represents the value of the RAPID data.
In the RapidDomain namespace there are types representing the different RAPID
data types. To create the object needed to represent the RAPID data value you
use the RapidData property Value and cast it to the corresponding type, for
example Num, Bool or Tooldata.