10/21/2015 9:01 PM | |
Joined: 3/30/2011 Last visit: 1/30/2025 Posts: 737 Rating: (258) |
Hello, BYTE is 8bit WORD is 16 bit DWORD is 32 bit QB5 is a byte, if you want to set bit 0 and bit 4 (Q5.0 and Q5.4) you have to write this code (in step5) : L KM 00010001 T QB5 first instruction means load constant value 00010001 (binary format). But you can also write L KH 11 (11hex=00010001bin) L KF 17 (17dec=00010001bin) 88hex is bin 10001000 (bit 7 and bit 3). You can do translation between bin - hex - dec with Windows calculator or you can learn manual method here. If something is not clear please ask again...... |
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ |
|
Follow us on