166
0 0 0 0 0 1 0 0 1 0 1 0 0 0 1 1
0 0 0 0 0 1 1 0 1 1 1 1 0 0 1 0
D10
b15
b15 b0
b0
D100
Transform the binary value to gray code.
GRY has32 bits mode DGRY, which can transform32 bits gray code.
Range is 0~32,767 (16 bits instruction); 0~2,147,483,647 (32 bits instruction).
4-8-17 Gray code to binary [GBIN,DGBIN]
1) Summary
Transform the gray code to binary data.
Gray code to binary [GBIN,DGBIN]
Normally ON/OFF,
rising/falling edge
2) Operands
Soft element address need coding
Soft element address to save coding result
3) Suitable soft components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD; DM
includes DM, DHM; DS includes DS, DHS. M includes M, HM, SM; S includes S, HS; T
includes T, HT; C includes C, HC.
Each bit of D10 will XOR with the bit on
its left side. As the related gray code, the
left bit will not change (the left bit is 0);
the transformation result is stored in
D100.
tudonghoatoancau.com