Professional Documents
Culture Documents
1. Parking Information
2. "FULL" display
3. "EMPTY" display
4. Ultrasonic sensor for OUT detection
5. Ultrasonic sensor for IN detection
6. Parking Area
3. Setting Data
a. Setting data with the number 5(five) and data can be set in accordance with the capacity of
parking areas.
INPUT PLC :
0000 ; Ultrasonic sensor for IN detection.
0001 ; Ultrasonic sensor for OUT detection.
OUTPUT PLC :
0500 ; Output for "FULL" display.
0501 ; Output for "EMPTY" display.
PLC Programming for Parking Information using PLC Keyence
Reading Ladder PLC Programming for Parking Information using PLC Keyence :
Step 1 :
Setting Data equal capacity of parking areas
a.If 1100 = OFF Then DM0001 = 15.
Remarks :
a.1. If capacity of parking areas = 0 Then DM0001 = 10.
a.2. If capacity of parking areas = 5 Then DM0001 = 10 + 5 = 15.
a.3. If capacity of parking areas = 1000 Then DM0001 = 10 + 1000 = 1010.
Step 2 :
"FULL" display => ON
a.If 0000 = ON Then Increments the DM0000 by 1(one).
b.If DM0000 equal or more than 15 ( capacity of parking areas = 5 ) Then 1000 = ON.
c.If 1000 = ON Then 0500 = ON.
Step 3 :
"EMPTY" display => ON
a.If 0001 = ON Then Decrements the DM0000 by 1(one).
b.If DM0000 less than 15 ( capacity of parking areas = 5 ) Then 1001 = ON.
c.If 1001 = ON Then 0501 = ON.
Step 4 :
Minimum and Maximum Limits
Minimum Limits :
a.If DM0000 less than 10 ( LDB 1100 => LDA DM0000 => CMP #00010 => LD 2009 ) Then
DM0000=10 ( DW #00010 DM0000 ).
Maximum Limits :
b.If DM0000 more than DM0001/capacity of parking areas ( LDB 1100 => LDA DM0000 =>
CMP DM0001 => LD 2011 ) Then DM0001=DM0000 ( LDA DM0001 => STA DM0000 ).