I need some help with a noob question:
I need to rule with 2 buttons one PWM value:
 - button 1 pressed -> PWM value =100
 - button 2 pressed -> PWM value = 200

So far what I did doesn't seems to work.
Quote 0 0
You must realize that on ladder logic all lines are executed, which means that the second line will always overwrite what the first line wrote on DOOR_CMD. The easiest way to do this is use the MOVE block with execution control enabled. Then you connect your button to the EN pin of the MOVE block, so that if the button is pressed, it will move the value into DOOR_CMD. If the button is not pressed, nothing will happen. Something like this:
Quote 0 0