In regards to your existing programming knowledge, think of the controller/program tags as the place where you declare and initialize tags/variables. Once you have created a tag there you can use it in your code.
So, Lets try and create the code first then add in your inputs later on...
OK so you will need a rung of code for you pump control, a rung to delat the monitoring, a rung to check your oil pressure and tags associated with it.
Go into controller tags, edit tags, then create the tags below:
- PumpStart_PB.....Bool
- PumpStop_PB.....Bool
- PumpRun_Cmd.....Bool
- PumpPressure_Timer.....Timer
- PumpPressure_Alarm.....Bool
- PumpPressure.....Real
Pump Control: Create the first rung to operate the pump.
When
PumpStart_PB is true OR PumpRun_Cmd is true
AND
PumpStop_PB is false
AND
PumpPressure_Alarm is false
Pressure Monitoring Delay Timer: Create the second rung to start the timer.
When
PumpRun_Cmd is true
Start PumpPressure_Timer, with a preset of 3000
Pressure Monitoring Alarm: Create the third rung to monitor the pressure.
When
When PumpPressure_Timer.DN
AND
PumpPressure Less than 40.0 OR PumpPressure Greater than 60.0
Use a coil to activate PumpPressure_Alarm
Use the help files using f1 on an instruction, they are really helpful. Everything described above can be acheived using: XIC, XIO, TON, OTE
Hopefully that will give you an insight into how that code works, once you have that up and running you will be able to replace the those tags with the real inputs and outputs.
Ash
Edit: Just noticed your flow diagram mentioned end process if the pump pressure is within its range. What do you want to happen then?