ISaGRAF WinCE ViewPAC User Manual , V.1.6 , 1/2017 by ICP DAS
6-9
■
UserGetReg_short
■
UserGetReg_long
■
UserGetReg_float
Description:
These functions are to get 16-bit short integer, 32-bit long integer & 32-bit float value from the specified
Modbus network address.
Syntax:
UserShare. UserGetReg_Short (ByVal
iUserAddress
As System.UInt16, ByRef
iStatus
As Integer) As
Byte
UserShare. UserGetReg_Long (ByVal
iUserAddress
As System.UInt16, ByRef
iStatus
As Integer) As
Byte
UserShare. UserGetReg_Float (ByVal
iUserAddress
As System.UInt16, ByRef
iStatus
As Single) As
Byte
Parameter:
iUserAddress : Specify the Network Address of Variable (1 to 8191)
iStatus : Get the short or long integer or float value.
Example:
Dim float_val As Single
Dim short_val As Int16
Dim long_val As Int32
‘ Get float value of the variable of Modbus Network Address “7”.
UserShare.UserGetReg_float(Convert.ToUInt16(7), float_val)
‘ Get long value of the variable of Modbus Network Address “9”.
UserShare.UserGetReg_long(Convert.ToUInt16(9), long_val)
‘ Get short value of the variable of Modbus Network Address “11”.
UserShare.UserGetReg_short(Convert.ToUInt16(11), short_val)
Demo program :
ISaGRAF WinCE ViewPAC CD-ROM:
\napdos\isagraf\vp-25w7-23w7\vb.net-2008-demo\wp_vb02 for R/W analog I/O
\napdos\isagraf\vp-25w7-23w7\vb.net-2008-demo\wp_vb03 for R/W internal long integer, Timer and
Real (floating-point) values.
Note
:
The long integer & timer & float variable’s Network Address No. must occupy 2 No. in the ISaGRAF
project. (refer to
of “User’s Manual of ISaGRAF Embedded Controllers” or in the CD-ROM:
\napdos\isagraf\vp-25w7-23w7\english-manu\” User_Manual_I_8xx7.pdf”)
Содержание ISaGRAF VP-23W7
Страница 44: ......
Страница 118: ......
Страница 134: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS 9 2 On line help of ICP DAS add on functions function blocks ...
Страница 176: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 16 Appendix C Hardware Interface Dimension ...
Страница 177: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 17 VP 23W7 23W6 Unit mm ...
Страница 178: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 18 VP 25W7 25W6 Unit mm ...
Страница 179: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 19 ...
Страница 180: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 20 VP 41x7 41x6 Unit mm ...
Страница 185: ...ISaGRAF WinCE ViewPAC User Manual V 1 6 1 2017 by ICP DAS Ap 25 ...