当为WinGP指定了一个控制器/PLC驱动程序时
WriteDeviceBit("#WinGP", "M100", nDataAry(0), 1)
当为WinGP指定了一个以上的控制器/PLC驱动程序时
WriteDeviceBit("#WinGP.PLC1", "M100", nDataAry(0), 1)
PLC1是连接至WinGP的控制器/PLC名称。
当用Memory Link驱动程序时
WriteDeviceBit("#WinGP.#MEMLINK", "10000", nDataAry(0), 1)
当使用WinGP内部寄存器时
WriteDeviceBit("#WinGP", "USR10000", nDataAry(0), 1)
WriteDeviceBit("#WinGP", "LS10000", nDataAry(0), 1)
或
WriteDeviceBit("#WinGP.#INTERNAL", "USR10000", nDataAry(0), 1)
WriteDeviceBit("#WinGP.#INTERNAL ", "LS10000", nDataAry(0), 1)