Followers 0

# INCREASE AND DECREASE VALUE D200

## 7 posts in this topic

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 .

##### Share on other sites

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

##### Share on other sites

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

##### Share on other sites

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.

1 person likes this

##### Share on other sites
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 .

##### Share on other sites

Study the instruction DECO

##### Share on other sites

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?