2011年11月4日

PLC WriteDeviceRandom方法

在MX component Programming 中Act元件
提供了WriteDeviceRandom方法
需要填入的資料如下:
1.Device List
2.Total Write Device count
3.Device Value
假設現在要寫入的Device有D200,D208,D201
在C#中DEVICE要寫入的資料為:
string strTmp = "D200" + '\n' + "D208" + '\n' + "D201" + '\n'
在VB.Net中則為:
dim strTmp as string = "D200" + vblf + "D208" + vblf + "D201" + vblf

沒有留言:

張貼留言