ICP DAS USA ISaGRAF WinCE ViewPAC User Manual page 115

Table of Contents

Advertisement

■UserGetCoil
Description:
This function is to get the value from a Boolean variable by Modbus network address.
Syntax:
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
UserShare.UserGetCoil(Convert.ToUInt16(1), iStatus)
Demo program :
ISaGRAF WinCE ViewPAC CD-ROM: \napdos\isagraf\vp-25w7-23w7\vb.net-2008-demo\wp_vb01
6-7
ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vp-25w7Vp-23w7Vp-4137Vp-25w6Vp-23w6Vp-4136

Table of Contents