Code samples demonstrating aspects of the Qlarity language.
Moderators: Jeremy, QSI Software Support
by Ron L. on Mon Nov 16, 2009 4:05 pm
- Code: Select all
init commobj := modbuscomm
init parent := default
init register := 1
init vartype := mb_uint16
'example code in MBVirtualRegisterV2
func ValueChanged()
dim u as unibyte
u := intvalue
if (u and unibyte(0x01)) <> 0 then
else
endif
if (u and unibyte(0x02)) <> 0 then
else
endif
'...
if (u and unibyte(0x80)) <> 0 then
else
endif
endfunc
-

Ron L.
-
- Posts: 352
- Joined: Thu Mar 02, 2006 2:12 pm
- Location: Salt Lake City, Utah
-
Return to Language
Users browsing this forum: No registered users and 1 guest