FC: Encoder value reading //open auxiliary DB encoder reading OPN DB 16 L PIB 0 T IB 0 //encoder loading for codification L IB 0 T DBB 1 NOP 0 //128 binary A DBX 1.7 = M 7.7 //64 binary AN DBX 1.6 A M 7.7 O A DBX 1.6 AN M 7.7 = M 7.6 //32 binary AN DBX 1.5 A M 7.6 O A DBX 1.5 AN M 7.6 = M 7.5 //16 binary AN DBX 1.4 A M 7.5 O A DBX 1.4 AN M 7.5 = M 7.4 //8 binary AN DBX 1.3 A M 7.4 O A DBX 1.3 AN M 7.4 = M 7.3 //4 binary AN DBX 1.2 A M 7.3 O
此为256度绝对值编码器(360度也一样只不过多一点输入点),编码器直接输出雷格码。 雷格码,例如:220(十进制)=011011100(二进制)=10110010(雷格码) 1 0 1 1 0 0 1 0 X X X X X X X X 7 6 5 4 3 2 1 0 X代表PLC的输入点,你可在MW6里读出当前机器的位置
在三菱PLC里可以用MOV K3M0 D0读出当前的机器位置