165
If multiple bits in the source address is 1, the high bit side is ignored, and if the source
address is 0, the instruction will not be executed.
When the driver input is OFF, the instruction is not executed and the coding output is
unchanged.
n = 4, the encoded object has 2
4
=16 bits, that is, bit15 ~ bit0 in D0. The encoding result is
stored in the lower 4 bits in D1, that is, bit3 ~ bit0.
The lowest bit of 1 in D0 is bit5, ignoring all high bits 1, and encoding bit5 with bit3-bit0 as
5, bit2 and bit0 as 1.
4-8-16 Binary to Gray code [GRY]
1) Summary
Transform the binary data to gray code.
Binary to gray [GRY,DGRY]
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.
Source (BIN) → target (GRY)
tudonghoatoancau.com