Download WinCON - ISaGRAF User`s Manual

Transcript
Return Value:
None
Example:
‘ Set the output variable of Modbus Network Address “1” to True.
ScanKernel.UserShare.UserSetCoil(Convert.ToUInt16(1), 1)
Demo program :
WINCON8xx7 CD-ROM: \napdos\isagraf\wincon\VB.NET_Demo\vbdmo_01
WINCON8xx7 CD-ROM: \napdos\isagraf\wincon\VB.NET_Demo\vbdmo_02
WINCON8xx7 CD-ROM: \napdos\isagraf\wincon\VB.NET_Demo\vbdmo_03
■
UserGetCoil
Description:
This function is to get the value from a boolean variable by Modbus network address.
Syntax:
ScanKernel.UserShare.UserGetCoil ( iUserAddress As System.UInt16, ByRef iStatus
As byte)
Parameter:
iUserAddress : Specify the Modbus Network Address of Variable (1 to 8191)
iStatus : Get the variable status , iStatus = 1 for True, iStatus = 0 for False
Return Value:
None
Example:
‘ Get the variable status of Network Address “1”.
Dim iStatus As Byte
ScanKernel.UserShare.UserGetCoil(Convert.ToUInt16(1), iStatus)
Demo program :
WINCON8xx7 CD-ROM: \napdos\isagraf\wincon\VB.NET_Demo\vbdmo_02
WINCON8xx7 CD-ROM: \napdos\isagraf\wincon\VB.NET_Demo\vbdmo_03
Getting Started : Wincon-8037/8337/8737 – The Web PAC, Ver. 1.0 , Apr.2005 by ICP DAS
93