PRESS
MACHINE
CONTROLLER
MACHINE CONTROLLER
Controller function
To design the controller we must know the motions and actions of
press well to determine the input and output needed in controller and
write the suitable program to do this motions and actions
The motions and actions required
 When press on down switch  press will stop the motion in up
direction and move downwards
 When press on up switch  the press will stop the motion in
down direction and move upwards
 When stop switch was pressed  stop any motion
 When the press touch the upper limit switch  stop motion in
upward direction
 When the press touch the lower limit switch  stop motion in
downwards direction and move upward
 Green Led Indicator Light on when power switch is on and off
when the Emergency Stop Switch is Pressed
 Red led indicator light on when Emergency stop Switch is
Pressed
 Yellow Led Indicator light on when the press move downward
According to the required motions and actions we designe and
programing the circuit whiche achive the required functions
ControlCircuitLayout
Controller Board Circuit
Hand Box Controller Circuit
Control Panel
CONTROLLER COMPONENT
No Qty Component Image
1 1 Electric Control panel box 30 x 40 cm
2 2 Plastic box 115, 75, 38 mm L, W, H
3 1
8 Output Relay Module
[KIT.8RELAY]
4 2 Limit Switch
5 1 Arduino UNO Circuit
6 1
Power Supply 12 VDC
[KIT.SMPS.12V.3A]
7 1 3SC8 AC contactor 35 A
8 8 Pluggable Terminal Block 2 Pin
9 3 Push Button Switch
10 4 10 KΩ Resistor
11 1 Emergency Stop Switch
12 1 Machine Switch
13
3
Led Indicator 220 VAC
Red, Green and Yellow
14
1
Pkg
Wire Terminal 1 mm
15 1 Holes Prototype PCB 9x7 cm
16 4 Wire Gland for limit Switches
17 2
Wire Gland for Power Cable & Motor
Cable
18 2 Wire Gland for DCV Cable
19 2 Wire Gland for Hand Box Cable
20 16 Plastic Hex Spacer with Bolts and Nuts
21 1
10 m Cable 2 Wires 3 mm for Power
and Motor
22 1
3 m Cable 5 Wires 0.5 mm for Hand Box
Remote
23 1 3 m Cable 2 Wires 1 mm for DCV
24 1
6 m Cable 2 Wires 0.5 mm for Limit
Switches
25 1
5 m Wire 0.5 mm for each color “Red,
Black, Yellow and Blue”
26 1 Terminal Blocks Rail
27 4 Terminal Blocks Ends
28 30 Terminal Blocks 3 mm
29 1 Plastic Cable Tray 20 x 30 cm
30
1
pkg
Cable Ties 3.5 x 150 mm
31 30
Screw Drive Bolts With Nuts and
Washers M4 x 15 10 mm
 8 Output Relay Module (Enabled with 3 ~ 12 Volts) [KIT.8RELAY]
Features:
1) Operating with 12VDC(300mA).
2) Open each relay with 3 ~ 12 volts ( Can be directly connected to
Microcontrollers , Arduino Boards or PC port).
3) Output of each relay can be used for current up to 7A (at 28Vdc or
at 240Vac).
4) Each relay with LED illuminate when the relay is enabled.
5) Dimensions: 100 x 52 mm
6) Easy to connect the wires through PCB screw terminal blocks
(Enlarge the photo to see it clearly).
 Limit switch
 Dual circuit snap-action limit switch
 Actuator heads are adjustable in 90° increments through 360°
 Actuator can be adjusted through 360° about rotary shaft on
lever types
 Metal enclosure, protection to IP67
 Limit Switch Actuator Roller Lever
 Operating Force Max 13.34N
 Contact Voltage AC Max 500V
 Contact Current AC Max 10A
 Contact Voltage DC Max 250V
 Contact Current DC Max 10A
 Contact Configuration 1NO and 1 NC
 Arduino UNO Board
 Microcontroller: ATmega328
 Operating Voltage: 5V
 Input Voltage (recommended): 7-12V
 Input Voltage (limits): 6-20V
 Digital I/O Pins: 14 (of which 6 provide PWM output)
 Analog Input Pins: 6
 DC Current per I/O Pin: 40 mA
 DC Current for 3.3V Pin:50 mA
 Flash Memory: 32 KB (ATmega328) of which 0.5 KB used by
bootloader
 SRAM: 2 KB (ATmega328)
 EEPROM: 1 KB (ATmega328)
 Clock Speed: 16 MHz
 Arduino Program
-------------------------------------------------------------------------------------------------------------
int button1Pin = 4; // pushbutton 1 pin
int button2Pin = 5; // pushbutton 2 pin
int button3Pin = 6; // pushbutton 2 pin
int button4Pin = 7; // pushbutton 2 pin
int led1Pin = 0; // LED pin
int led2Pin = 1; // LED pin
void setup()
{
// Set up the pushbutton pins to be an input:
pinMode(button1Pin, INPUT);
pinMode(button2Pin, INPUT);
pinMode(button3Pin, INPUT);
pinMode(button4Pin, INPUT);
// Set up the LED pin to be an output:
pinMode(led1Pin, OUTPUT);
pinMode(led2Pin, OUTPUT);
}
void loop()
{
int UP, DN, STOP, LM ; // variables to hold the pushbutton states
DN = digitalRead(button1Pin);
UP = digitalRead(button2Pin);
STOP = digitalRead(button3Pin);
LM = digitalRead(button4Pin);
if (DN == HIGH) {
digitalWrite(led2Pin, LOW);
delay(200);
digitalWrite(led1Pin, HIGH);
}
else if (UP == HIGH) {
digitalWrite(led1Pin, LOW);
delay(200);
digitalWrite(led2Pin, HIGH);
}
else if (STOP == HIGH){
digitalWrite(led1Pin, LOW);
digitalWrite(led2Pin, LOW);
}
else if (LM == HIGH){
digitalWrite(led2Pin, LOW);
}
}
---------------------------------------------------------------------------------
 HEX file
-------------------------------------------------------------------------------------------------
:100000000C9461000C947E000C947E000C947E0095
:100010000C947E000C947E000C947E000C947E0068
:100020000C947E000C947E000C947E000C947E0058
:100030000C947E000C947E000C947E000C947E0048
:100040000C94F5000C947E000C947E000C947E00C1
:100050000C947E000C947E000C947E000C947E0028
:100060000C947E000C947E00000000080002010049
:100070000003040700000000000000000102040863
:100080001020408001020408102001020408102002
:10009000040404040404040402020202020203032E
:1000A00003030303000000002300260029000000D2
:1000B0000000250028002B0000000000240027007D
:1000C0002A0011241FBECFEFD8E0DEBFCDBF11E064
:1000D000A0E0B1E0E2E3F5E002C005900D92AA30A5
:1000E000B107D9F721E0AAE0B1E001C01D92A53126
:1000F000B207E1F70E9487020C9497020C9400006B
:1001000060E0809108010E94EE0160E080910601AC
:100110000E94EE0160E0809104010E94EE0160E027
:10012000809102010E94EE0161E080910A010E942B
:10013000EE0161E0809100010C94EE01EF92FF92DC
:100140000F931F93CF93DF93809108010E945D026C
:100150007C01809106010E945D028C018091040166
:100160000E945D02EC01809102010E945D02EA940E
:10017000EF2879F460E0809100010E94270268EC8A
:1001800070E080E090E00E94620161E080910A01ED
:100190001DC00130110569F460E080910A010E94E0
:1001A000270268EC70E080E090E00E94620161E06C
:1001B0000BC0219731F460E080910A010E94270270
:1001C00002C0019759F460E080910001DF91CF9166
:1001D0001F910F91FF90EF900C942702DF91CF9128
:1001E0001F910F91FF90EF9008951F920F920FB6FD
:1001F0000F9211242F933F938F939F93AF93BF93AD
:1002000080910D0190910E01A0910F01B09110010C
:1002100030910C0123E0230F2D3720F40196A11D0E
:10022000B11D05C026E8230F0296A11DB11D209324
:100230000C0180930D0190930E01A0930F01B093D8
:1002400010018091110190911201A0911301B091C0
:1002500014010196A11DB11D80931101909312010B
:10026000A0931301B0931401BF91AF919F918F910F
:100270003F912F910F900FBE0F901F9018953FB791
:10028000F8948091110190911201A0911301B09105
:10029000140126B5A89B05C02F3F19F00196A11D9A
:1002A000B11D3FBF6627782F892F9A2F620F711DCE
:1002B000811D911D42E0660F771F881F991F4A9587
:1002C000D1F70895CF92DF92EF92FF92CF93DF9311
:1002D0006B017C010E943F01EB01C114D104E104D8
:1002E000F10489F00E9496020E943F016C1B7D0B75
:1002F000683E734090F381E0C81AD108E108F10824
:10030000C851DC4FEACFDF91CF91FF90EF90DF90A3
:10031000CF900895789484B5826084BD84B581605F
:1003200084BD85B5826085BD85B5816085BDEEE6FD
:10033000F0E0808181608083E1E8F0E010828081DC
:1003400082608083808181608083E0E8F0E080814A
:1003500081608083E1EBF0E0808184608083E0EB6A
:10036000F0E0808181608083EAE7F0E08081846052
:1003700080838081826080838081816080838081AE
:10038000806880831092C1000895833081F028F442
:10039000813099F08230A1F008958730A9F088303B
:1003A000B9F08430D1F4809180008F7D03C08091BA
:1003B00080008F7780938000089584B58F7702C086
:1003C00084B58F7D84BD08958091B0008F7703C080
:1003D0008091B0008F7D8093B0000895CF93DF931C
:1003E00090E0FC01E458FF4F2491FC01E057FF4FDF
:1003F0008491882349F190E0880F991FFC01E8540B
:10040000FF4FA591B49182559F4FFC01C591D491A6
:100410009FB7611108C0F8948C91209582238C932A
:10042000888182230AC0623051F4F8948C91322F73
:10043000309583238C938881822B888304C0F89421
:100440008C91822B8C939FBFDF91CF9108950F9356
:100450001F93CF93DF931F92CDB7DEB7282F30E0E5
:10046000F901E859FF4F8491F901E458FF4F1491C5
:10047000F901E057FF4F04910023C9F0882321F0D0
:1004800069830E94C5016981E02FF0E0EE0FFF1F34
:10049000E255FF4FA591B4919FB7F8948C916111EB
:1004A00003C01095812301C0812B8C939FBF0F90B7
:1004B000DF91CF911F910F910895CF93DF93282F54
:1004C00030E0F901E859FF4F8491F901E458FF4FFA
:1004D000D491F901E057FF4FC491CC2391F08111E1
:1004E0000E94C501EC2FF0E0EE0FFF1FEC55FF4F0F
:1004F000A591B4912C912D2381E090E021F480E02E
:1005000002C080E090E0DF91CF91089508950E94AD
:100510008A010E9486020E948000C0E0D0E00E9412
:100520009E002097E1F30E940000F9CF0895F8940F
:02053000FFCFFB
:0A05320001000700060005000400A8
:00000001FF
-----------------------------------------------------------------------------------
 Arduino Simulation Circuit
The Simulation Done with using Proteus 8 Professional Application

Press machine controller