Posted 5 Dec 2016 (edited) Hello, Need your advice. I am trying decimal number convert to binary and do output. for example If inside D90 I have 11 decimal number then for me need active output Y0, Y1 and Y3. I tried make this code below, but it is not work, don't active output . Maybe fx3g PLC have function how need to do it? Edited 5 Dec 2016 by saruans Share this post Link to post Share on other sites
Posted 5 Dec 2016 (edited) You can't double coil an output. Either use SET RESET or put all the compares statements together before the specific coil. But in this case one instruction will do MOV D106 K1Y0 If you want more than the first 4 bits then use K2Y0 K3Y0 etc. Each K is 4 bits Edited 5 Dec 2016 by Gambit Share this post Link to post Share on other sites
Posted 5 Dec 2016 Gambit, thank. Now, the code is working Share this post Link to post Share on other sites