Industrial Control Programming
Industrial Control Programming
Industrial Control
Module B - Programming
LKS_JATENG_2024_TP19_M1_introduction_en
Module B – Programming
With the attached mounting layout and its electrical diagrams it is intended to simulate the operation of the
following drilling machine.
Legend:
MA1: Main Conveyor PX1 : Pos 1 Product Detect
MA2: Drill Process PX2 : Pos 2 Product Detect
MA3: Ream Process PX3 : Pos 3 Product Detect
P3 : Process Indicator LS1 : Drill Limit Position
LS2 : Ream Limit Position
S3 : Emergency Switch
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 3 of 11
DATE 10.03.2024
HMI – Screen “Automatic”
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 4 of 11
DATE 10.03.2024
PLC Inputs/ Outputs
SYMBOL TYPE COMMENT
PX1 BOOL PLC – Input (A2)
PX2 BOOL PLC – Input (A2)
PX3 BOOL PLC – Input (A2)
LS1 BOOL PLC – Input (A2)
LS2 BOOL PLC – Input (A2)
S3 BOOL PLC – Input (A2)
Q1 BOOL PLC – Input (A2)
SS1 RIGHT BOOL PLC – Input (A2)
SS1 LEFT BOOL PLC – Input (A2)
MA2 BOOL PLC – Output (A3)
MA3 BOOL PLC – Output (A3)
P3 BOOL PLC – Output (A3)
P2 BOOL PLC – Output (A3)
Q2 BOOL PLC – Output (A3)
Q3 BOOL PLC – Output (A3)
Mode_Manual BOOL PLC – Variable
Mode_Auto BOOL PLC – Variable
Cycle Active BOOL PLC – Variable
Cycle Stop BOOL PLC – Variable
HMI_Button_1 BOOL PLC – Variable
HMI_Button_2 BOOL PLC – Variable
HMI_Button_3 BOOL PLC – Variable
HMI_Button_4 BOOL PLC – Variable
HMI_Button_5 BOOL PLC – Variable
HMI_Button_6 BOOL PLC – Variable
HMI_Button_7 BOOL PLC – Variable
HMI_Button_8 BOOL PLC – Variable
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 5 of 11
DATE 10.03.2024
PLC Inputs/ Outputs
SYMBOL TYPE COMMENT
HMI_Button_9 BOOL PLC – Variable
HMI_Button_10 BOOL PLC – Variable
HMI_Button_11 BOOL PLC – Variable
HMI_Button_12 BOOL PLC – Variable
SIGN IN BOOL PLC – Variable
SIGN OUT BOOL PLC – Variable
MA1_CW BOOL PLC – Variable
MA1_CCW BOOL PLC – Variable
MA1_PL BOOL PLC – Variable
MA1 BOOL PLC – Variable
OPERATOR BOOL PLC – Variable
ENGINEER BOOL PLC – Variable
QTY_Order INT PLC – Variable
QTY_Drill INT PLC – Variable
QTY_Ream INT PLC – Variable
Order_Count INT PLC – Variable
Drill_Count INT PLC – Variable
Ream_Count INT PLC – Variable
QTY_PROD INT PLC – Variable
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 6 of 11
DATE 10.03.2024
Details : Home Screen
7 3 5
4
6
1
2
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 7 of 11
DATE 10.03.2024
Details : Manual Screen
8 10 12 15 28
14 17
9 11 13 16
27
22 24
26
23 25
18 19 20 21
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 8 of 11
DATE 10.03.2024
Position Variable Action Comment
21 PX3 Background Control Colour State “0” = Colour “Dark Green”
State “1” = Colour “Light Green”
22 MA2 Background Control Colour State “0” = Colour “Dark Yellow”
State “1” = Colour “Light Yellow”
23 LS1 Background Control Colour State “0” = Colour “Dark Green”
State “1” = Colour “Light Green”
24 MA3 Background Control Colour State “0” = Colour “Dark Green”
State “1” = Colour “Light Green”
25 LS2 Background Control Colour State “0” = Colour “Dark Green”
State “1” = Colour “Light Green”
26 HMI_Button_7 Button Event Set bit while key is pressed/Momentary
27 Error Background Control Colour State “0” = Colour “Gray”, Text “ERROR
(Word Lamp) OFF”
State “1” = Colour “Red” , Text “ERROR 1”
State “2” = Colour “Yellow” , Text “ERROR
2”
State “3” = Colour “Purple” , Text “ERROR
3”
28 --- Button Event Active “Home”
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 9 of 11
DATE 10.03.2024
Details : Automatic Screen
37 42
30 32 34 35 38
43
39
31 33 44
36
40 41
29
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 11 of 11
DATE 10.03.2024
Position Variable Action Comment
39 QTY_Ream Input Field Range 0 to 10
40 HMI_Button_11 Button Event Set bit while key is pressed/Momentary
41 HMI_Button_12 Button Event Set bit while key is pressed/Momentary
42 Order_Count Output Field Range 0 to 10
43 Drill_Count Output Field Range 0 to 10
44 Ream_Count Output Field Range 0 to 10
VERSION 1.0
LKS_PROV_JATENG_2024_HMI_PRE 9 of 11
DATE 10.03.2024
Power On All actuators : OFF
Page2
0 0
0 Warming_up Q2
K1 A
1
1
0
1 Q3
1
1 0 MA2 : ON
Ready TON> 7S MA3 : ON
P3 : ON
P2 : ON
MA1_PL : Blink
0 1 MA1_PL : ON MA1 : OFF
1 Hz
Warming_up : OFF
TON : ON TON : OFF Ready: ON 1
Warming_up
0 0
Q2 : OFF Q2
K1 Q3 : OFF
MA2 : OFF
MA3 : OFF 1 0
P3 : OFF Q3
1 P2 : OFF
1
0
TON>3S
TON : OFF
Warming_up : ON
TON: ON
Warming Up
LKSP_2024_JATENG_PRE
0 0 1 Page6: Mode_Automatic
Ready Ready OPERATOR Page4: Mode_Manual
1 1 0
1 1 1
Mode_Manual Mode_Auto ENGINEER
TON : RESET TON : RESET
0 0 0
0 0 SIGN IN 0
SS1 Left SS1 Right BUTTON
1 1 1
1
0 0 PASSWORD = 0
TON>1S TON>1S 2023
1 1 1
Mode_Manual Mode_Auto
LKSP_2024_JATENG_PRE
Error 1: OFF 0 0 0
MA1 MA2 Error 1
Error : OFF
1 1 1
0 0
Error 2
1 0 1
Ready PX2 LS1
1
0
1 0 Error 3
1
K1
1
0
TON : ON TON : ON
0 0
TON >15S TON >15S
Error: ON
Error 1: ON Q2 : OFF
Warming_up: 1 1 Q3 : OFF
OFF MA1 : OFF
Ready: OFF MA2 : OFF
MA3 : OFF
Error 2: ON Error 3: ON Warming_up : OFF
Mode_Manual : OFF
Mode_Automatic : OFF
Cycle_active: OFF
Cycle_Stop: OFF
0 0
HMI_Button_7 HMI_Button_7
1 1
Mode_Error
LKSP_2024_JATENG_PRE
0
ENGINEER Q2: OFF
Q3 : OFF
1
0
HMI_Button_1
1
0
HMI_Button_2
1 1
PX3 PX1
0 0
LKSP_2024_JATENG_PRE
0 0
PX2 PX3
1 1
1 1
HMI_Button_3 HMI_Button_5
0 0
0 0
HMI_Button_4 HMI_Button_6
1 0 1 0
MA2 MA3
1 1
LKSP_2024_JATENG_PRE
0 0
Cycle_active Cycle_active
1 1
0 0
HMI_Button_10 HMI_Button_9
1 1
Cycle_Stop: ON
Cycle_active: OFF
Q2 : OFF
Q3 : OFF
1 MA1 : OFF
HMI_Button_10
MA2 : OFF
0
MA3 : OFF
Order_Count = 0
Cycle_Stop: ON Drill_Count = 0
Ream_Count = 0
0
HMI_Button_10
Cycle_Stop: OFF
1
HMI_Button_10
Cycle_Stop: OFF
LKSP_2024_JATENG_PRE
1 1
Cycle_active Cycle_active D
0 0
0
ENGINEER 0
OPERATOR
1
1
ENGINEER
1
0
HMI_Button_11
0
Target_Order = 2 Target_Order = 0
1 Target_Drill = 3 Target_Drill = 0
0 Target_Ream = 3 Target_Ream = 0
HMI_Button_12
TON : ON TON : ON
0
0
TON> 1S TON> 2S
1 1
0 D
Mode_Automatic
1
Cycle_active
0
1
Cycle_Stop
LKSP_2024_JATENG_PRE
0 Reference: OFF
Reference X 1
PX1
1
1
0 MA2 : OFF
HMI_Button_8 1
LS1
1
0 0
TON >2S
0
Target_Order > 0 1 1
LS2
1
0
MA2 : Blink 2 Hz
TON : ON 1
Cycle_active : Set PX2
1 0
LS1
0 1
TON >3S
PX3
0
L 0
1 0
Q2 : ON TON >3S
1
MA1_CW : ON Target_Drill > 0
1
0
MA2 : OFF
1 Drill_Count +1
PX1 1
Target_Ream > 0
0
0
0 0
TON >2S
PX2
Reference: ON
1
1
0
Q2 : OFF
Drill_Count >=
Target_Drill
Y
MA1_CW : OFF
1
0 Q2 : ON
TON >1S MA1_CW : ON
1
Y
1
PX2
MA2 : ON
0
0
0 PX3
LS1
1
1
0 Z
TON >3S
LKSP_2024_JATENG_PRE
X
PLC – Function Description Page 8
Page8 Page9
Z J K
1
1
Q2 : ON 0
Q2 : OFF
MA1_CW : ON CYCLE STOP L
MA1_CW : OFF
1
0 1
PX3
TON >1S
Cycle_active: OFF
1
0 Q2 : OFF
Q3 : OFF
Q2 : OFF MA1 : OFF
MA1_CW : OFF MA2 : OFF
MA3 : ON
Order_Count +1
Drill_Count = 0
MA3 : OFF
Order_Count = 0
0 Drill_Count = 0
Ream_Count = 0
LS2 0
PX1
1
1
0
TON >3S 0
Order_Count >=
Target_Order K
1
MA3 : OFF
Cycle_active: OFF
Q2 : OFF
0 Q3 : OFF
TON >2S
MA1 : OFF
1 MA2 : OFF
MA3 : OFF
Order_Count = 0
MA3 : Blink 2 Hz Drill_Count = 0
Ream_Count = 0
1
LS2
0
TON >3S
MA3 : OFF
0
TON >2S
J
LKSP_2024_JATENG_PRE
LKSP_2024_JATENG_PRE