sunnykmc
SunnyKMC
級別: 工控俠客
|
三菱FX2N有什么指令可BIT轉移給d寄存器值 及d寄存器值反轉BIT值回中號 d寄存器最大值不知能否到255(及反轉時)或者最大到? 比如 M0 = OFF,M1 = OFF,M2 = OFF,M3 = OFF <=>則D0 = 00 M0 = ON,M1 = OFF,M2 = OFF,M3 = OFF <=>則D0 = 01 M0 = OFF,M1 = ON,M2 = OFF,M3 = OFF <=>則D0 = 02 M0 = ON,M1 = ON,M2 = OFF,M3 = OFF <=>則D0 = 03 M0 = OFF,M1 = OFF,M2 = ON,M3 = OFF <=>則D0 = 04 M0 = ON,M1 = OFF,M2 = ON,M3 = OFF <=>則D0 = 05 M0 = OFF,M1 = ON,M2 = ON,M3 = OFF <=>則D0 = 06 M0 = ON,M1 = ON,M2 = ON,M3 = OFF <=>則D0 = 07 M0 = OFF,M1 = OFF,M2 = OFF,M3 = ON <=>則D0 = 08 M0 = ON,M1 = OFF,M2 = OFF,M3 = ON <=>則D0 = 09 M0 = OFF,M1 = ON,M2 = OFF,M3 = ON <=>則D0 = 10 M0 = ON,M1 = ON,M2 = OFF,M3 = ON <=>則D0 = 11 M0 = OFF,M1 = OFF,M2 = ON,M3 = ON <=>則D0 = 12 M0 = ON,M1 = OFF,M2 = ON,M3 = ON <=>則D0 = 13 M0 = OFF,M1 = ON,M2 = ON,M3 = ON <=>則D0 = 14 M0 = ON,M1 = ON,M2 = ON,M3 = ON <=>則D0 = 15 : : ==========以下新增另一延伸問題========== 如果要"范圍單一M"(M0~M254)轉為D寄存器值或反轉BIT值回M M0~M254只要一個沒有ON,則D0=0 M0=ON <=>D0=1 M1=ON <=>D0=2 M2=ON <=>D0=3 M3=ON <=>D0=4 M4=ON <=>D0=5 M5=ON <=>D0=6 M6=ON <=>D0=7 M7=ON <=>D0=8 M8=ON <=>D0=9 M9=ON <=>D0=10 M10=ON <=>D0=11 M11=ON <=>D0=12 M12=ON <=>D0=13 M13=ON <=>D0=14 M14=ON <=>D0=15 M15=ON <=>D0=16 : M254=ON <=>D0=255 又有何指令支援 [ 此帖被sunnykmc在2019-01-14 17:21重新編輯 ] |
---|---|
|
wzy139076378
年輕不是你玩的理由,而是你奮斗的資本。
級別: 網絡英雄
|
MOV K4M0 D0 MOV D0 K4M0 |
|
---|---|---|
本帖最近評分記錄:
|
sunnykmc
SunnyKMC
級別: 工控俠客
|
如果要"范圍單一M"(M0~M254)轉為D寄存器值或反轉BIT值回M M0~M254只要一個沒有ON,則D0=0 M0=ON <=>D0=1 M1=ON <=>D0=2 M2=ON <=>D0=3 M3=ON <=>D0=4 M4=ON <=>D0=5 M5=ON <=>D0=6 M6=ON <=>D0=7 M7=ON <=>D0=8 M8=ON <=>D0=9 M9=ON <=>D0=10 M10=ON <=>D0=11 M11=ON <=>D0=12 M12=ON <=>D0=13 M13=ON <=>D0=14 M14=ON <=>D0=15 M15=ON <=>D0=16 : M254=ON <=>D0=255 又有何指令支援 |
---|---|
|
w45062099
多做事,少說話!
級別: 略有小成
|
DECO、ENCO |
|
---|---|---|
本帖最近評分記錄:
|
sunnykmc
SunnyKMC
級別: 工控俠客
|
為何我用 DECO D0 M0 K8 DECO D0 Y0 K8 D0=0 ,Y0=ON ,M0=OFF D0=1 ,Y1=ON ,M1=OFF D0=2 ,Y2=ON ,M2=OFF D0=3 ,Y3=ON ,M3=OFF D0=4 ,Y4=ON ,M4=OFF D0=5 ,Y5=ON ,M5=OFF D0=6 ,Y6=ON ,M6=OFF D0=7 ,Y7=ON ,M7=OFF D0=8 ,Y8=ON ,M8=ON :( 以下D0=9~255;Y M皆可有對應ON) : 但為何D0=0~7,則M0~M7 皆OFF ============ DECO D0 S100 K8 看來也可對應 [ 此帖被sunnykmc在2019-01-14 22:57重新編輯 ] |
---|---|
|
sunnykmc
SunnyKMC
級別: 工控俠客
|
不可對應M的原因找到了 我在M0~M7 前面各對應加了X0~X7 開關 作測試用 只是為何如此不行呢 [ 此帖被sunnykmc在2019-01-14 23:36重新編輯 ] |
---|---|
|
sunnykmc
SunnyKMC
級別: 工控俠客
|
這位先進 你好 FX3U以前在用時沒注意到位這部份 不知你這位的訪問的使用是如何用 像歐姆龍的W或H類似三菱的M 可以用BIT 不知FX3U如何使用 |
---|---|
|