I don’t know much about generating G8501 fields.
The content of my dex document is as follows:
DXSXYZ1234567VAV0/61
ST0010001
ID1ABC98765*****12234
VA145502450
VA39149
CA3*****27002254752000
CA42500
EA2EGS0
EA3********2410
G85DD0B
SE100001
DXE11
What needs to be calculated is as follows:
ST0010001
ID1ABC98765*****12234
VA145502450
VA39149
CA3*****27002254752000
CA42500
EA2EGS0
EA3********24*10
The value calculated according to CRC-16/MODBUS is: B25D
But the value calculated by some websites is: DD0B
So I need your help. Tell me the correct calculation method of G8501. It would be great if there is a code example. I look forward to your reply. Thank you.
The value calculated according to CRC-16/MODBUS is: B25D
But the value calculated by some websites is: DD0B
张运才 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.