Search found 1 match

by howard
Fri 16. Dec 2011, 17:17
Forum: PCAN-Explorer 5 & Add-ins
Topic: Divide 4 bytes variable into individual bytes (VBS)
Replies: 1
Views: 5244

Divide 4 bytes variable into individual bytes (VBS)

I have an virtual variable which is 4 bytes unsigned type
I have to put this value in a char array before transmitting via PCAN

Set TrimValue = Signals("Trim Value (Set)")

Data(2) = TrimValue.Value/16777216 '2^24 i used this because i think right shift does not work in 'PCAN
Data(3 ...