Design the following on RSlogix500:

1. Turn on PL1 when PB1 has been pressed for 2 seconds, use TON.
2. Turn off PL2 for 3 seconds when PB2 is first released, use TOF.
3. Turn on PL3 unless PB3 has been pressed and held for at least 2 seconds, use TON.
4. Turn on PL4 for 2 seconds when PB4 is first released, use TOF.

1 answer

Here is the ladder logic program for the given requirements using RSLogix 500:

1. Turn on PL1 when PB1 has been pressed for 2 seconds:
```
PB1 --] [ ]--[ ]----(T4:0)---] [PL1]
| PT=2000
[/]
```

2. Turn off PL2 for 3 seconds when PB2 is first released:
```
PB2 --| |--[ ]---[/]---(T4:1)---] [PL2]
```

3. Turn on PL3 unless PB3 has been pressed and held for at least 2 seconds:
```
PB3 --] [ ]--[ ]----(T4:2)---/---] [PL3]
| PT=2000
[/]--[ ]--[ ]
|
|
]--[PL3]
```

4. Turn on PL4 for 2 seconds when PB4 is first released:
```
PB4 --| |---[ ]---(T4:3)---[/]---] [PL4]
```