Advantech RS-485 Barcode Reader User Manual


 
6-128 ADAM-5000
Command Set
5080 Counter/
Frequency Module
#aaSi #aaSi
However, if the response is in frequency mode , you'll
see one similar to the example below:
>0000098700000006490000000762000000011600(cr)
As all 4 values are concatenated into one numerical
string such as above, we can still easily discern the
values of 4 channels specifically as:
0000098700,0000064900,0000076200,0000011600
What you see here is actually the input values of all
channels returned from slot 2 of the ADAM-5000 system
at address 16h and in decimal format. However, it is not
the actual frequency.
Each actual frequency can be obtained by dividing the
response value by 100. Therefore, taking an example of
the value above, the actual frequency should be:
actual frequency = 98700/100 = 987
If the response is:
>0000F1000002000000031000000DD400(cr)
The command requests the module in slot 2 of the
ADAM-5000 system at address 16h to return the input
values of all channels.
The module response that input values if all channels
are hexdecimal:
0000F100,00020000,00031000,000DD400
The actual frequency can be obtained by transfering
hexdecimal format to decimal format .Then divide the
response value by 100. Therefore, taking an example of
the value above, the actual frequency should be:
F100 (hexdecimal)=24100 (decimal)
actual frequency = 24100/100 = 241