ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
10-6
10.4.1 Digital R/W Functions
■
UserSetCoil
Description:
This function is to set the value to a Boolean variable by Modbus network address.
Syntax:
UserShare.UserSetCoil(ushort iUserAddress, byte iStatus)
Parameter:
iUserAddress : Specify the Modbus Network Address of Variable (1 to 8191)
iStatus : Set the status. For instance, iStatus = 1 for True, iStatus = 0 for False
Return Value:
None
Example:
// Set the output variable of Modbus Network Address “1” to True.
UserShare.UserSetCoil(Convert.ToUInt16(1), 1);
Demo program :
ISaGRAF WinCE ViewPAC CD-ROM:
\napdos\isagraf\vp-25w7-23w7\CSharp.net-2008-demo\wp_CSharp01
■
UserGetCoil
Description:
This function is to get the value from a Boolean variable by Modbus network address.
Syntax:
UserShare.UserGetCoil(ushort iUserAddress, out byte iStatus)
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”.
byte iStatus;
UserShare.UserGetCoil(Convert.ToUInt16(1),out iStatus);
Demo program :
ISaGRAF WinCE ViewPAC CD-ROM:
\napdos\isagraf\vp-25w7-23w7\CSharp.net-2008-demo\wp_CSharp01
Summary of Contents for ISaGRAF VP-23W7
Page 44: ......
Page 118: ......
Page 177: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 17 VP 23W7 23W6 Unit mm ...
Page 178: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 18 VP 25W7 25W6 Unit mm ...
Page 179: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 19 ...
Page 180: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 20 VP 41x7 41x6 Unit mm ...
Page 185: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 25 ...