
Scenario:
This lane allows bidirectional traffic and includes direction detection functionality to open barriers/rolling doors according to the direction of travel.
※ The barriers/rolling doors used in this setup have timed drop and anti-pinch functions. Therefore, this example only controls the "Up" contact of the barriers/rolling doors anddoes not control the "Stop" & "Down" contacts.
※ The anti-pinch RF for the rolling doors in this setup is triggered in parallel with the same DI point on the PLC. It is normally open, and when a vehicle passes through, it short-circuits, causing the rolling door to continuously trigger the "Up" contact.
Conditions:
A. Vehicle Entry (1F ➡ B1)
1. After the vehicle enters and meets the direction detection for 1F, the long-range card reader is activated, and the B1 red light is turned on.
2.When the card reader identifies a valid card, it triggers the "Up" function for both the barriergate and the rolling door.
3. The B1 traffic light remains green while in standby. When a vehicle enters 1F, the light changes to red to warn that no vehicles should exit from B1 until the vehicle passes through and meets the direction detection for B1. Once the vehicle meets B1's direction detection, the B1 traffic light returns to green.
B. Vehicle Exit (B1➡ 1F)
1. After the vehicle exits and meets the direction detection for B1, the B1 red light is activated.
2. Once the vehicle satisfies the B1 exit direction detection, it triggers the "Up" function for both the barrier gate and the rolling door.
3. The 1F traffic light remains green while in standby. When a vehicle exits from B1, the light changes to red to warn that no vehicles should enter 1F until the vehicle has passed through. Once the vehicle meets the direction detection for 1F, the 1F traffic light returns to green.
| DI/DO Contacts | |||||||
| DI | Device | Status | Optional | DO | Device | Status | Optional |
| X0 | 1F RF-A | NO | Y0 | Barrier Up | NO | ||
| X1 | 1F RF-B | NO | Y1 | Rolling Door Up | NO | ||
| X2 | B1 RF-C | NO | Y2 | B1 Red Light | NO | ||
| X3 | B1 RF-D | NO | Y3 | 1F Red Light | NO | ||
| X4 | Barrier Anti-pinch | NO | Y4 | Activate Card Reader | NO | ||
| X5 | Rolling Door Anti-pinch | NO | Y5 | B1 Green Light | NO | ||
| X6 | Card Reader RELAY (Valid Card Opens Door Output) | NO | Y6 | 1F Green Light | NO | ||
Command Explanation:
The following durations can all be customized to match the specific lane configuration on site.
WEB Configuration Interface & Ladder Diagram :



Referenced Commands:
Rising Edge Trigger / Falling Edge Trigger / Direction Detection / Pulse Output