Hello,
I am trying to create a program for Omron CJ1M PLC for a Parking Lot Control System. The system design is as follows:
1. Sensor detects a car at the entry,
2. Initiates gate to open,
3. Car passes the gate and another sensor detects this and the gate closes.
4. The car is parked at one of the spots in the car park and sensor detects this and sends a signal to controller suggesting that the spot is occupied.
5. The controller then calculates the remaining spaces and displays the availability on a Display Unit.
This is a common scenario one must have observed at the parking lots in Huge Shopping Malls.
I have to incorporate a Function Block using Structured text in this program.
The problem I am facing is how do I program the inputs from multiple sensors (sensors at the parking spots) as a single input to the function block and use it to in the calculation in the Structured Text and Display the result as the output of the function block.
Please throw some light on this problem.
Thanks.
I am trying to create a program for Omron CJ1M PLC for a Parking Lot Control System. The system design is as follows:
1. Sensor detects a car at the entry,
2. Initiates gate to open,
3. Car passes the gate and another sensor detects this and the gate closes.
4. The car is parked at one of the spots in the car park and sensor detects this and sends a signal to controller suggesting that the spot is occupied.
5. The controller then calculates the remaining spaces and displays the availability on a Display Unit.
This is a common scenario one must have observed at the parking lots in Huge Shopping Malls.
I have to incorporate a Function Block using Structured text in this program.
The problem I am facing is how do I program the inputs from multiple sensors (sensors at the parking spots) as a single input to the function block and use it to in the calculation in the Structured Text and Display the result as the output of the function block.
Please throw some light on this problem.
Thanks.