Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Tue Nov 21, 2017 3:56 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Bit Level Logic Example
PostPosted: Mon Nov 16, 2009 4:05 pm 
Offline
User avatar

Joined: Thu Mar 02, 2006 2:12 pm
Posts: 487
Location: Salt Lake City, Utah
Code:
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.

http://www.beijerelectronicsinc.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group