BUJAR GASHI Posted July 29, 2019 Report Posted July 29, 2019 Dear all , Am trying to setup and condition of PLC in order to control analog output . so question is : how can i make that when i have signal on X001(K100) == D200 to increase value for 100 when i have signal on X001 and X002 (K50) === D200 to set valu ( 100 + 50) = 150 When i have signal in X001 and X002 and X003(k70) === D200 to set (100+50+70) = 220 but when i have X001 and X003 than D200 to set (100+70) = 170 So i have 11 inputs with different combination to control speed of VFD depend on inputs . Thanks . Quote
DaMro Posted July 29, 2019 Report Posted July 29, 2019 Hi, I think the simple method is: if X001 = ON then MOV k100 to some register f.e. D10 if X001=OFF then mov K0 to register D10 if X002 = ON then MOV K50 to register D11 if X002 = OFF then mov K0 to register D11 and same for all other inputs. finally add D10 + D11 + next registers and send this value to D200 Quote
nehpets Posted July 29, 2019 Report Posted July 29, 2019 To be honest, I think 11 inputs are a little overkill for what you are trying to achieve, this gives the possibility of 2^11 (1024) settings. How many different settings are required? Steve Quote
BUJAR GASHI Posted July 29, 2019 Author Report Posted July 29, 2019 actuali i need to make permutation so there are 5 combination with input . i created solution by mov command but there are a lot of combinatio . so am trying to controll VFD speed acording to X000 inputs . i thought if there is any solution do decrease line of code. Quote
BUJAR GASHI Posted July 29, 2019 Author Report Posted July 29, 2019 8 hours ago, DaMro said: Hi, I think the simple method is: if X001 = ON then MOV k100 to some register f.e. D10 if X001=OFF then mov K0 to register D10 if X002 = ON then MOV K50 to register D11 if X002 = OFF then mov K0 to register D11 and same for all other inputs. finally add D10 + D11 + next registers and send this value to D200 similar to what you mention already am workig to control vfd. i thout if there is any simple solution bacause there 5 combination by 5 in permutation . Quote
WattUp Posted July 31, 2019 Report Posted July 31, 2019 Most VFD have a multiple input speed selection settings. Maybe that would be easier? Or can you just use analog signal and a POT or HMI to set the output? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.