Hi,
I am working on sending data via a comm port using mscomm32 to some electronic display equipment.
The electronic equipment will mimic the data on the users form via electronic digits. The form will have at least 4 fields showing numeric data only.
i.e: 1st Field displays numeric data from 0 to 999 as shown below:
1st Field Data: 0-999
2nd Field Data: 0-9
3rd Field Data: 0-99
4th Field Data: 0-999
I need to send the electronics the data in binary format and include some address data also:
So for example I need to split the 1st Field Data data into 3 parts and add the address data to each part:
Using 1st field as an example and the figure 295
example after split:
Module1: 2
Module2: 9
Module3: 5
Then I have to convert the above into its binary format:
00000001:00000010
00000010:00001001
00000011:00000101
The electronic equipment is expecting to recieve for each module an address data followed by the data for that address.
Please can anyone advise or post an example of how to achieve the above goals.
I am not looking at pushing the data yet, I just want to get the format right for each field and its individual modules.
Thanks in advance
Daz.....
I am working on sending data via a comm port using mscomm32 to some electronic display equipment.
The electronic equipment will mimic the data on the users form via electronic digits. The form will have at least 4 fields showing numeric data only.
i.e: 1st Field displays numeric data from 0 to 999 as shown below:
1st Field Data: 0-999
2nd Field Data: 0-9
3rd Field Data: 0-99
4th Field Data: 0-999
I need to send the electronics the data in binary format and include some address data also:
So for example I need to split the 1st Field Data data into 3 parts and add the address data to each part:
Using 1st field as an example and the figure 295
example after split:
Module1: 2
Module2: 9
Module3: 5
Then I have to convert the above into its binary format:
00000001:00000010
00000010:00001001
00000011:00000101
The electronic equipment is expecting to recieve for each module an address data followed by the data for that address.
Please can anyone advise or post an example of how to achieve the above goals.
I am not looking at pushing the data yet, I just want to get the format right for each field and its individual modules.
Thanks in advance
Daz.....