6.5.20 ENCO
Input/output Operand
Data type
IN
VW, IW, QW, MW, SMW, LW, SW, AIW, T, C, AC, constant, *VD, *AC, *LD Word
OUT
VB, IB, QB, MB, SMB, LB, SB, AC, *VD, *LD, *AC
Byte
ENCO: The nth bit of the input word is equal to 1.The low
four bits value of output byte is n.
Example :
As shown in the above figure : The 15th bit of the input word vw0 is equal to 1.The
low four bits value of output byte vb10 is 15.
114
Made with FlippingBook - Online magazine maker