Speak with authority, quality is trustworthy.

How to implement S7 - 200 PLC control two axis stepper motor reset. - detailed examples

by:Coolmay     2020-06-22
1, the topic request

some devices have two sets of stepping driving system, stepper drive models for SH - 2 h042ma, stepping motor model for 17 hs111, two phase four step motor line dc 24 v, requirement: press the button SB1, step into the motive drive X direction and Y direction of the institutions, reset when the X direction near the proximity switch SQ1 stops, the Y direction near the proximity switch for SQ2 stops, the reset is complete. ( 1) 1 set of main software and hardware configuration 1, STEP7 - Micro/WIN V4. 0. 2, two types of 17 hs111 stepper motor. Models for SH - 3, 2 sets 2 h042ma stepper driver. 4, 1 CPU226CN. ( 2) Stepper motor and stepper drive connection

this system chooses the stepper motor is two phase four-wire stepping motor, the model is 17 hs111, this type of line wiring diagram as shown in figure 3 - of stepper motor 2 ( In the figure only draw 1 electric motor) 。 The meaning is: 4 root of stepper motor lead wire respectively is: red, green, yellow and blue with red lead wire should be stepping drive A + terminal is connected, the green lead should be A - with stepping drive Connected to terminals, yellow lead wire should be connected to the stepper drive b + terminal, blue lead should b - with the stepper driver Connected to terminals.

( 3) PLC and wiring of stepper motor, stepper drives

stepping drive has a total of Yin and Yang two configurations, the relations with the control signal, Siemens PLC controller output signals is + 24 v ( The PNP connection) , so you should use a total of Yin connection, a total of Yin connection is stepping drive D1R - And CP - With the power of negative sub, as shown in figure 3 - 2. Refers to, by the way, mitsubishi PLC controller output is low potential signals ( The NPN connection) Yang connection, so you should use.

programming

1, 2, the main program

2, regarding the initialization

3, X direction stop

4, Y direction to stop

' The key 】

. Write a program of key point is to initialize and force stop for SMB67 set stepper motor, its core is on the understanding of SMB67 registers. SMB67 = 16 # 85 of meaning is regarding allowed, select regarding mode, single period of operation, time benchmark microseconds, regarding pulse update and update regarding cycle.

to stop regarding the output, you must first in the control byte prohibited regarding the output, and to execute commands PLS.

if you don't want to partial pressure resistance on the output side, then on the PLC controller of 1 l + terminals (DC + 5 v is feasible, but the problem is that this group of all the other output signal for the DC + 5 v, so when the design to the comprehensive advantages and disadvantages, and trade-offs.


Shenzhen Coolmay Technology Co., Ltd. promises that we will manufature our products in accordance with the strictest quality standards.
Shenzhen Coolmay Technology Co., Ltd. builds value for our investors through the strength of our customers’ satisfaction and by consistently producing superior operating results.
The value you get from watching how Shenzhen Coolmay Technology Co., Ltd. operates and runs our company and the potential mentorship you would get from us will go a long way towards helping customers understand our company.
There are different types of , mainly plc controller price and programmable control systems.
Chat Online
Chat Online
Chat Online inputting...
Sign in with: